diff --git a/packages/sponge/src/typings/index.ts b/packages/sponge/src/typings/index.ts
index e69de29b..0f17d9ee 100644
--- a/packages/sponge/src/typings/index.ts
+++ b/packages/sponge/src/typings/index.ts
@@ -0,0 +1,1927 @@
+///
A typical id format follows the pattern of `modId:name`
+ * or `minecraft:name`
. However the prefix may be omitted for
+ * default/vanilla minecraft types.
This location differs based on the implementation and is therefore + * implementation-specific.
+ *To elaborate, this is how it is handled in Minecraft based on side: + *
+ *Consult your specific implementation if they support placing this + * elsewhere.
+ */ + // @ts-ignore + getSavesDirectory(): any; + /** + * Returns if the {@link Server} is available for use. The result of this method is entirely + * dependent on the implementation. + */ + // @ts-ignore + isServerAvailable(): boolean; + /** + * Gets the {@link Server}. + */ + // @ts-ignore + getServer(): org.spongepowered.api.Server; + /** + * Retrieves the GameDictionary (item dictionary) for this {@link Game}. + */ + // @ts-ignore + getGameDictionary(): any; + /** + * Returns the current platform, or implementation, this {@link Game} is running on. + */ + // @ts-ignore + getPlatform(): org.spongepowered.api.Platform; + /** + * Gets the {@link GameRegistry}. + */ + // @ts-ignore + getRegistry(): org.spongepowered.api.GameRegistry; + /** + * Gets the {@link DataManager} instance to register + * {@link DataSerializable}s, and get the related {@link DataBuilder}s. + */ + // @ts-ignore + getDataManager(): org.spongepowered.api.data.DataManager; + /** + * Gets the {@link PropertyRegistry} instance to register + * {@link PropertyStore}s. + */ + // @ts-ignore + getPropertyRegistry(): org.spongepowered.api.data.property.PropertyRegistry; + /** + * Gets the {@link PluginManager}. + */ + // @ts-ignore + getPluginManager(): org.spongepowered.api.plugin.PluginManager; + /** + * Gets the {@link EventManager}. + */ + // @ts-ignore + getEventManager(): org.spongepowered.api.event.EventManager; + /** + * Gets the {@link AssetManager}. + */ + // @ts-ignore + getAssetManager(): org.spongepowered.api.asset.AssetManager; + /** + * Gets the {@link ConfigManager} used to load and manage configuration files + * for plugins. + */ + // @ts-ignore + getConfigManager(): org.spongepowered.api.config.ConfigManager; + /** + * Gets the command dispatcher used for registering and dispatching + * registered commands. + */ + // @ts-ignore + getCommandManager(): org.spongepowered.api.command.CommandManager; + /** + * Gets the game's instance of the service manager, which is the gateway + * to various services provided by Sponge (command registration and so on). + *Services registered by other plugins may be available too.
+ */ + // @ts-ignore + getServiceManager(): org.spongepowered.api.service.ServiceManager; + /** + * Gets the scheduler used to schedule tasks. + */ + // @ts-ignore + getScheduler(): org.spongepowered.api.scheduler.Scheduler; + /** + * Gets the {@link ChannelRegistrar} for creating network channels. + */ + // @ts-ignore + getChannelRegistrar(): org.spongepowered.api.network.ChannelRegistrar; + /** + * Gets the {@link TeleportHelper}, used to find safe {@link Location}s. + */ + // @ts-ignore + getTeleportHelper(): org.spongepowered.api.world.TeleportHelper; + /** + * Gets the {@link CauseStackManager} for handling the current event cause + * stack and context information. + */ + // @ts-ignore + getCauseStackManager(): org.spongepowered.api.event.CauseStackManager; + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.GameDictionary.Entry.ts b/packages/sponge/src/typings/org.spongepowered.api.GameDictionary.Entry.ts new file mode 100644 index 00000000..7d689b45 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.GameDictionary.Entry.ts @@ -0,0 +1,42 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace GameDictionary { + // @ts-ignore + interface Entry { + /** + * Returns the type of item contained by this entry. + */ + // @ts-ignore + getType(): org.spongepowered.api.item.ItemType; + /** + * Tests whether the provided item stack matches this entry's + * specifications. + */ + // @ts-ignore + matches(stack: org.spongepowered.api.item.inventory.ItemStack): boolean; + /** + * Returns whether this entry checks against the item type and extra + * data associated with the stack. If this returns {@code true}, any + * {@link ItemStack} whose {@link ItemType} and manipulators match + * those of the {@linkplain #getTemplate() template} will {@linkplain + * #matches(ItemStack) match} this entry; however, not all manipulators + * present in the template are required to match those in the item + * stack to cause them to match. If this returns {@code false}, any + * item stack whose {@link ItemType} matches that of the entry will + * match this entry. + */ + // @ts-ignore + isSpecific(): boolean; + /** + * Returns an item stack snapshot for plugins to inspect this entry. + * The returned snapshot will {@linkplain #matches(ItemStack) match} + * this entry. The size of the snapshot will always be 1. + */ + // @ts-ignore + getTemplate(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.GameDictionary.ts b/packages/sponge/src/typings/org.spongepowered.api.GameDictionary.ts new file mode 100644 index 00000000..2f0ccc00 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.GameDictionary.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + // @ts-ignore + interface GameDictionary { + /** + * Registers an {@link org.spongepowered.api.GameDictionary.Entry} + * in the dictionary with a String key. The stack size is ignored. + */ + // @ts-ignore + register(key: string, entry: org.spongepowered.api.GameDictionary.Entry): void; + /** + * Retrieves the entries registered for the given key. The stack sizes are + * set to 1. + */ + // @ts-ignore + get(key: string): any[] /*java.util.Set*/; + /** + * Retrieves all entries registered in this game dictionary, mapped by their + * key. + */ + // @ts-ignore + getAll(): any; + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.GameRegistry.ts b/packages/sponge/src/typings/org.spongepowered.api.GameRegistry.ts new file mode 100644 index 00000000..e60f142c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.GameRegistry.ts @@ -0,0 +1,206 @@ +declare namespace org { + namespace spongepowered { + namespace api { + // @ts-ignore + interface GameRegistry { + /** + * Attempts to retrieve the specific type of {@link CatalogType} based on + * the string id given. + *Some types may not be available for various reasons including but not + * restricted to: mods adding custom types, plugins providing custom types, + * game version changes.
+ */ + // @ts-ignore + getType(typeClass: any, id: string): any; + /** + * Gets a collection of all available found specific types of + * {@link CatalogType} requested. + *The presented {@link CatalogType}s may not exist in default catalogs + * due to various reasons including but not restricted to: mods, plugins, + * game changes.
+ */ + // @ts-ignore + getAllOf(typeClass: any): any[] /*java.util.Collection*/; + /** + * Gets a collection of all available found specific types of + * {@link CatalogType} requested. + */ + // @ts-ignore + getAllFor(pluginId: string, typeClass: any): any[] /*java.util.Collection*/; + /** + * Gets all {@link CatalogType} for Minecraft as a base mod. Note that + * some {@link CatalogType}s are not originally from the game itself, and + * may be provided by Sponge. + */ + // @ts-ignore + getAllForMinecraft(typeClass: any): any[] /*java.util.Collection*/; + /** + * Gets all {@link CatalogType} for Sponge as a base mod. Note that + * some {@link CatalogType}s are not originally from the game itself, and + * may be provided by Sponge. + */ + // @ts-ignore + getAllForSponge(typeClass: any): any[] /*java.util.Collection*/; + /** + * Registers the {@link CatalogRegistryModule} for dummy registration and + * handling. + *By default, the only supported modules that can be registered are + * dependent that plugins are not attempting to register new modules for + * API-provided {@link CatalogType}s.
+ */ + // @ts-ignore + registerModule(catalogClass: any, registryModule: org.spongepowered.api.registry.CatalogRegistryModule): org.spongepowered.api.GameRegistry; + /** + * Registers the desired {@link RegistryModule}. + */ + // @ts-ignore + registerModule(module: org.spongepowered.api.registry.RegistryModule): org.spongepowered.api.GameRegistry; + /** + * Registers a {@link Supplier} for creating the desired {@link ResettableBuilder}. + */ + // @ts-ignore + registerBuilderSupplier(builderClass: any, supplier: any): org.spongepowered.api.GameRegistry; + /** + * Gets a builder of the desired class type, examples may include: + * {@link org.spongepowered.api.item.inventory.ItemStack.Builder}, etc. + */ + // @ts-ignore + createBuilder(builderClass: any): org.spongepowered.api.util.ResettableBuilder; + /** + * Registers a new {@link CatalogType} instance if registration for that + * type is supported. + *Note that this is intended only for registering new instances of + * already existing CatalogTypes, not for registering entirely new + * CatalogType classes.
+ */ + // @ts-ignore + register(type: any, obj: org.spongepowered.api.CatalogType): org.spongepowered.api.CatalogType; + /** + * Gets a {@link Collection} of the default GameRules. + */ + // @ts-ignore + getDefaultGameRules(): any[] /*java.util.Collection*/; + /** + * Gets the {@link Statistic} for the given {@link StatisticType} and + * {@link EntityType}. If the statistic group is not a valid + * {@link EntityStatistic} group then {@link Optional#empty()} will be + * returned. + */ + // @ts-ignore + getEntityStatistic(statType: org.spongepowered.api.statistic.StatisticType, entityType: org.spongepowered.api.entity.EntityType): any; + /** + * Gets the {@link Statistic} for the given {@link StatisticType} and + * {@link ItemType}. If the statistic group is not a valid + * {@link ItemStatistic} group then {@link Optional#empty()} will be + * returned. + */ + // @ts-ignore + getItemStatistic(statType: org.spongepowered.api.statistic.StatisticType, itemType: org.spongepowered.api.item.ItemType): any; + /** + * Gets the {@link Statistic} for the given {@link StatisticType} and + * {@link BlockType}. If the statistic group is not a valid + * {@link BlockStatistic} group then {@link Optional#empty()} will be + * returned. + */ + // @ts-ignore + getBlockStatistic(statType: org.spongepowered.api.statistic.StatisticType, blockType: org.spongepowered.api.block.BlockType): any; + /** + * Gets the {@link Rotation} with the provided degrees. + */ + // @ts-ignore + getRotationFromDegree(degrees: number): any; + /** + * Loads a {@link Favicon} from the specified encoded string. The format of + * the input depends on the implementation. + */ + // @ts-ignore + loadFavicon(raw: string): org.spongepowered.api.network.status.Favicon; + /** + * Loads a favicon from a specified {@link Path}. + */ + // @ts-ignore + loadFavicon(path: any): org.spongepowered.api.network.status.Favicon; + /** + * Loads a favicon from a specified {@link URL}. + */ + // @ts-ignore + loadFavicon(url: any): org.spongepowered.api.network.status.Favicon; + /** + * Loads a favicon from a specified {@link InputStream}. + */ + // @ts-ignore + loadFavicon(input: any): org.spongepowered.api.network.status.Favicon; + /** + * Loads a favicon from a specified {@link BufferedImage}. + */ + // @ts-ignore + loadFavicon(image: any): org.spongepowered.api.network.status.Favicon; + /** + * Retrieves the crafting RecipeRegistry for this GameRegistry. + */ + // @ts-ignore + getCraftingRecipeRegistry(): org.spongepowered.api.item.recipe.crafting.CraftingRecipeRegistry; + /** + * Retrieves the smelting RecipeRegistry for this GameRegistry. + */ + // @ts-ignore + getSmeltingRecipeRegistry(): org.spongepowered.api.item.recipe.smelting.SmeltingRecipeRegistry; + /** + * Gets a {@link ResourcePack} that's already been created by its ID. + */ + // @ts-ignore + getResourcePackById(id: string): any; + /** + * Gets a {@link DisplaySlot} which displays only for teams with the + * provided color. + */ + // @ts-ignore + getDisplaySlotForColor(color: org.spongepowered.api.text.format.TextColor): any; + /** + * Registers a new {@link AbstractAITask} with an {@link Agent} as the + * owner. The complete id will be in the format of + *{@link PluginContainer#getId()}:id
.
+ */
+ // @ts-ignore
+ registerAITaskType(plugin: any, id: string, name: string, aiClass: any): org.spongepowered.api.entity.ai.task.AITaskType;
+ /**
+ * Gets the {@link ExtentBufferFactory} for creating buffers
+ * to store extent data.
+ */
+ // @ts-ignore
+ getExtentBufferFactory(): org.spongepowered.api.world.extent.ExtentBufferFactory;
+ /**
+ * Gets the {@link ValueFactory} for creating values.
+ */
+ // @ts-ignore
+ getValueFactory(): org.spongepowered.api.data.value.ValueFactory;
+ /**
+ * Gets the {@link VillagerRegistry} for the register mappings of
+ * {@link Career}s to {@link TradeOfferGenerator}s based on a level.
+ */
+ // @ts-ignore
+ getVillagerRegistry(): org.spongepowered.api.item.merchant.VillagerRegistry;
+ /**
+ * Gets the internal {@link TextSerializerFactory}.
+ */
+ // @ts-ignore
+ getTextSerializerFactory(): org.spongepowered.api.text.serializer.TextSerializerFactory;
+ /**
+ * Gets the internal {@link SelectorFactory}.
+ */
+ // @ts-ignore
+ getSelectorFactory(): org.spongepowered.api.text.selector.SelectorFactory;
+ /**
+ * Gets a locale for the specified locale code, e.g. {@code en_US}.
+ */
+ // @ts-ignore
+ getLocale(locale: string): any;
+ /**
+ * Gets the {@link Translation} with the provided ID.
+ */
+ // @ts-ignore
+ getTranslationById(id: string): any;
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.GameState.ts b/packages/sponge/src/typings/org.spongepowered.api.GameState.ts
new file mode 100644
index 00000000..b96552d8
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.GameState.ts
@@ -0,0 +1,37 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ // @ts-ignore
+ class GameState {
+ // @ts-ignore
+ public static CONSTRUCTION: org.spongepowered.api.GameState;
+ // @ts-ignore
+ public static PRE_INITIALIZATION: org.spongepowered.api.GameState;
+ // @ts-ignore
+ public static INITIALIZATION: org.spongepowered.api.GameState;
+ // @ts-ignore
+ public static POST_INITIALIZATION: org.spongepowered.api.GameState;
+ // @ts-ignore
+ public static LOAD_COMPLETE: org.spongepowered.api.GameState;
+ // @ts-ignore
+ public static SERVER_ABOUT_TO_START: org.spongepowered.api.GameState;
+ // @ts-ignore
+ public static SERVER_STARTING: org.spongepowered.api.GameState;
+ // @ts-ignore
+ public static SERVER_STARTED: org.spongepowered.api.GameState;
+ // @ts-ignore
+ public static SERVER_STOPPING: org.spongepowered.api.GameState;
+ // @ts-ignore
+ public static SERVER_STOPPED: org.spongepowered.api.GameState;
+ // @ts-ignore
+ public static GAME_STOPPING: org.spongepowered.api.GameState;
+ // @ts-ignore
+ public static GAME_STOPPED: org.spongepowered.api.GameState;
+ // @ts-ignore
+ public static values(): org.spongepowered.api.GameState[];
+ // @ts-ignore
+ public static valueOf(name: string): org.spongepowered.api.GameState;
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.MinecraftVersion.ts b/packages/sponge/src/typings/org.spongepowered.api.MinecraftVersion.ts
new file mode 100644
index 00000000..aeb38428
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.MinecraftVersion.ts
@@ -0,0 +1,30 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ // @ts-ignore
+ interface MinecraftVersion {
+ /**
+ * Gets the name of this Minecraft version.
+ * + * Note: The returned name does not necessarily represent + * the name of a Minecraft version. Depending on the client and + * implementation, this may also just return a numeric value. + *
+ */ + // @ts-ignore + getName(): string; + /** + * Returns whether this version is an older version that doesn't support + * all of the features in {@link StatusResponse}. These versions are only + * supported for the {@link ClientPingServerEvent}, normally they should not be + * able to join the server. + *+ * For Vanilla, this returns {@code true} for all clients older than 1.7. + *
+ */ + // @ts-ignore + isLegacy(): boolean; + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.Nameable.ts b/packages/sponge/src/typings/org.spongepowered.api.Nameable.ts new file mode 100644 index 00000000..1e3a5b4b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.Nameable.ts @@ -0,0 +1,14 @@ +declare namespace org { + namespace spongepowered { + namespace api { + // @ts-ignore + interface Nameable { + /** + * Gets the human-readable name of this object. + */ + // @ts-ignore + getName(): org.spongepowered.api.text.translation.Translation; + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.Platform.Component.ts b/packages/sponge/src/typings/org.spongepowered.api.Platform.Component.ts new file mode 100644 index 00000000..e4164c3d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.Platform.Component.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace Platform { + // @ts-ignore + class Component { + // @ts-ignore + public static GAME: org.spongepowered.api.Platform.Component; + // @ts-ignore + public static API: org.spongepowered.api.Platform.Component; + // @ts-ignore + public static IMPLEMENTATION: org.spongepowered.api.Platform.Component; + // @ts-ignore + public static values(): org.spongepowered.api.Platform.Component[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.Platform.Component; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.Platform.Type.ts b/packages/sponge/src/typings/org.spongepowered.api.Platform.Type.ts new file mode 100644 index 00000000..313066ff --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.Platform.Type.ts @@ -0,0 +1,36 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace Platform { + // @ts-ignore + class Type { + // @ts-ignore + public static CLIENT: org.spongepowered.api.Platform.Type; + // @ts-ignore + public static SERVER: org.spongepowered.api.Platform.Type; + // @ts-ignore + public static UNKNOWN: org.spongepowered.api.Platform.Type; + // @ts-ignore + public static values(): org.spongepowered.api.Platform.Type[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.Platform.Type; + /** + * Checks for whether the platform is {@link #SERVER}. + */ + // @ts-ignore + public isServer(): boolean; + /** + * Checks for whether the platform is {@link #CLIENT}. + */ + // @ts-ignore + public isClient(): boolean; + /** + * Checks for whether the platform is known. + */ + // @ts-ignore + public isKnown(): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.Platform.ts b/packages/sponge/src/typings/org.spongepowered.api.Platform.ts new file mode 100644 index 00000000..bb7e0d96 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.Platform.ts @@ -0,0 +1,56 @@ +declare namespace org { + namespace spongepowered { + namespace api { + // @ts-ignore + interface Platform { + // @ts-ignore + API_ID: string; + /** + * Retrieves the current {@link Type} this platform is running on. + */ + // @ts-ignore + getType(): org.spongepowered.api.Platform.Type; + /** + * Retrieves the current {@link Type} the platform is executing on. + *A Minecraft instance will have a client and server thread. If the + * server is executing, this will return {@linkplain Type#SERVER} but + * {@link Platform#getType()} would return {@linkplain Type#CLIENT}.
+ */ + // @ts-ignore + getExecutionType(): org.spongepowered.api.Platform.Type; + /** + * Returns the {@link PluginContainer} for the specified platform + * {@link Component}. + */ + // @ts-ignore + getContainer(component: org.spongepowered.api.Platform.Component): org.spongepowered.api.plugin.PluginContainer; + /** + * Returns the current API plugin container. + */ + // @ts-ignore + getApi(): org.spongepowered.api.plugin.PluginContainer; + /** + * Returns the current implementation plugin container. + */ + // @ts-ignore + getImplementation(): org.spongepowered.api.plugin.PluginContainer; + /** + * Gets the current Minecraft version of this platform. + */ + // @ts-ignore + getMinecraftVersion(): org.spongepowered.api.MinecraftVersion; + /** + * Returns this platform instance, as a key-value map. + *The returned map instance is connected directly to this platform + * instance. Existing keys like name and version are not modifiable, but + * new keys are stored in this instance and are shared between any + * references to a map obtained through the retrieved map.
+ *This mechanism allows for platform-specific information like Forge + * version.
+ */ + // @ts-ignore + asMap(): MapThis only works for online players.
+ *Note: Do not use names for persistent storage, the + * Notch of today may not be the Notch of yesterday.
+ */ + // @ts-ignore + getPlayer(name: string): any; + /** + * Gets all currently loaded {@link World}s. + */ + // @ts-ignore + getWorlds(): any[] /*java.util.Collection*/; + /** + * Gets the properties of all unloaded worlds. + */ + // @ts-ignore + getUnloadedWorlds(): any[] /*java.util.Collection*/; + /** + * Gets the properties of all worlds, loaded or otherwise. + */ + // @ts-ignore + getAllWorldProperties(): any[] /*java.util.Collection*/; + /** + * Gets a loaded {@link World} by its unique id ({@link UUID}), if it + * exists. + */ + // @ts-ignore + getWorld(uniqueId: any): any; + /** + * Gets a loaded {@link World} by name, if it exists. + */ + // @ts-ignore + getWorld(worldName: string): any; + /** + * Gets the properties of default world. + */ + // @ts-ignore + getDefaultWorld(): any; + /** + * Gets the default {@link World} name that the server creates and loads. + */ + // @ts-ignore + getDefaultWorldName(): string; + /** + * Loads a {@link World} from the default storage container. If a world with + * the given name is already loaded then it is returned instead. + */ + // @ts-ignore + loadWorld(worldName: string): any; + /** + * Loads a {@link World} from the default storage container. If a world with + * the given UUID is already loaded then it is returned instead. + */ + // @ts-ignore + loadWorld(uniqueId: any): any; + /** + * Loads a {@link World} from the default storage container. If the world + * associated with the given properties is already loaded then it is + * returned instead. + */ + // @ts-ignore + loadWorld(properties: org.spongepowered.api.world.storage.WorldProperties): any; + /** + * Gets the {@link WorldProperties} of a world. If a world with the given + * name is loaded then this is equivalent to calling + * {@link World#getProperties()}. However, if no loaded world is found then + * an attempt will be made to match unloaded worlds. + */ + // @ts-ignore + getWorldProperties(worldName: string): any; + /** + * Gets the {@link WorldProperties} of a world. If a world with the given + * UUID is loaded then this is equivalent to calling + * {@link World#getProperties()}. However, if no loaded world is found then + * an attempt will be made to match unloaded worlds. + */ + // @ts-ignore + getWorldProperties(uniqueId: any): any; + /** + * Unloads a {@link World}, if there are any connected players in the given + * world then no operation will occur. + *A world which is unloaded will be removed from memory. However if it + * is still enabled according to {@link WorldProperties#isEnabled()} then it + * will be loaded again if the server is restarted.
+ */ + // @ts-ignore + unloadWorld(world: org.spongepowered.api.world.World): boolean; + /** + * Creates a new {@link WorldProperties} from the given + * {@link WorldArchetype}. For the creation of the WorldArchetype please see + * {@link org.spongepowered.api.world.WorldArchetype.Builder}. + *If the {@link World} exists at the folder name given, the properties + * representing that folder name are returned instead.
+ *Although the world is created it is not loaded at this time. Please + * see one of the following methods for loading the world.
+ *If the world is already loaded then the following will occur:
+ *The sever scoreboard is used with the Vanilla /scoreboard command, + * automatic score updating through criteria, and other things.
+ *The server scoreboard may not be available if dimension 0 + * is not yet loaded. In Vanilla, this will only occur when the + * server is first starting, as dimension 0 is normally always loaded.
+ */ + // @ts-ignore + getServerScoreboard(): any; + /** + * Returns information about the chunk layout used by this server + * implementation. + */ + // @ts-ignore + getChunkLayout(): org.spongepowered.api.world.storage.ChunkLayout; + /** + * Gets the time, in ticks, since this server began running for the current + * session. + *This value is not persisted across server restarts, it is set to zero + * each time the server starts.
+ */ + // @ts-ignore + getRunningTimeTicks(): number; + /** + * Gets the message channel that server-wide messages are sent through. + */ + // @ts-ignore + getBroadcastChannel(): org.spongepowered.api.text.channel.MessageChannel; + /** + * Sets the channel that server-wide messages should be sent through. + */ + // @ts-ignore + setBroadcastChannel(channel: org.spongepowered.api.text.channel.MessageChannel): void; + /** + * Gets the bound {@link InetSocketAddress} from where this server is + * accepting connections. + */ + // @ts-ignore + getBoundAddress(): any; + /** + * Tests if the server has a whitelist enabled. + */ + // @ts-ignore + hasWhitelist(): boolean; + /** + * Sets whether the server is utilizing a whitelist. + */ + // @ts-ignore + setHasWhitelist(enabled: boolean): void; + /** + * Tests if this server is set to online mode. + * Online mode authenticates users against Minecraft's servers, false + * performs no validity checks. + */ + // @ts-ignore + getOnlineMode(): boolean; + /** + * Gets the default message that is displayed in the server list of the + * client. + */ + // @ts-ignore + getMotd(): org.spongepowered.api.text.Text; + /** + * Shuts down the server, and kicks all players with the default kic + * k message. + *For the Sponge implementation on the client, this will trigger the + * Integrated Server to shutdown a tick later.
+ */ + // @ts-ignore + shutdown(): void; + /** + * Shuts down the server, and kicks all players with the given message. + */ + // @ts-ignore + shutdown(kickMessage: org.spongepowered.api.text.Text): void; + /** + * Gets the command source used for commands coming from this server's + * console. + */ + // @ts-ignore + getConsole(): org.spongepowered.api.command.source.ConsoleSource; + /** + * Gets the ChunkTicketManager used for requesting tickets to force load + * chunks. + */ + // @ts-ignore + getChunkTicketManager(): org.spongepowered.api.world.ChunkTicketManager; + /** + * Gets the {@link GameProfileManager} for resolving game profiles. + */ + // @ts-ignore + getGameProfileManager(): org.spongepowered.api.profile.GameProfileManager; + /** + * Gets the current ticks per second. A tick represents one cycle of the + * game loop. + *Note: The server aims to limit itself at 20 ticks per second. Lower + * ticks per second may elude to the server taking more time to process + * information per tick. Examples of overburdening the server per tick + * include spawning 10,000 cows in a small area.
+ */ + // @ts-ignore + getTicksPerSecond(): number; + /** + * Gets the default resource pack. The default resource pack is sent to + * players when they join the server. + */ + // @ts-ignore + getDefaultResourcePack(): any; + /** + * Gets the player idle timeout, in minutes. + *A return value of {@code 0} disables the player idle timeout.
+ */ + // @ts-ignore + getPlayerIdleTimeout(): number; + /** + * Sets the player idle timeout, in minutes. + *A value of {@code 0} disables the player idle timeout.
+ */ + // @ts-ignore + setPlayerIdleTimeout(timeout: number): void; + /** + * Checks if the current thread matches the main thread of the server. + */ + // @ts-ignore + isMainThread(): boolean; + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.Sponge.ts b/packages/sponge/src/typings/org.spongepowered.api.Sponge.ts new file mode 100644 index 00000000..33085113 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.Sponge.ts @@ -0,0 +1,123 @@ +declare namespace org { + namespace spongepowered { + namespace api { + // @ts-ignore + class Sponge { + constructor() + /** + * Gets the {@link Game} instance. There is ever only going + * to be a single game instance at any given time, except during + * the various extraneous {@link GameState}s that the game instance + * is otherwise unavailable. + */ + // @ts-ignore + public static getGame(): org.spongepowered.api.Game; + /** + * Returns the current platform, or implementation, this {@link Game} + * is running on. + */ + // @ts-ignore + public static getPlatform(): org.spongepowered.api.Platform; + /** + * Gets the {@link GameRegistry} instance. + */ + // @ts-ignore + public static getRegistry(): org.spongepowered.api.GameRegistry; + /** + * Gets the {@link DataManager} instance. + */ + // @ts-ignore + public static getDataManager(): org.spongepowered.api.data.DataManager; + /** + * Gets the {@link PropertyRegistry} instance to register + * {@link PropertyStore}s. + */ + // @ts-ignore + public static getPropertyRegistry(): org.spongepowered.api.data.property.PropertyRegistry; + /** + * Gets the {@link PluginManager} instance. + */ + // @ts-ignore + public static getPluginManager(): org.spongepowered.api.plugin.PluginManager; + /** + * Gets the {@link EventManager} instance. + */ + // @ts-ignore + public static getEventManager(): org.spongepowered.api.event.EventManager; + /** + * Gets the {@link AssetManager} instance. + */ + // @ts-ignore + public static getAssetManager(): org.spongepowered.api.asset.AssetManager; + /** + * Gets the {@link ConfigManager} used to load and manage configuration files + * for plugins. + */ + // @ts-ignore + public static getConfigManager(): org.spongepowered.api.config.ConfigManager; + /** + * Gets the {@link CommandManager} instance. + */ + // @ts-ignore + public static getCommandManager(): org.spongepowered.api.command.CommandManager; + /** + * Gets the game's instance of the service manager, which is the gateway + * to various services provided by Sponge (command registration and so on). + *Services registered by other plugins may be available too.
+ */ + // @ts-ignore + public static getServiceManager(): org.spongepowered.api.service.ServiceManager; + /** + * Gets the scheduler used to schedule tasks. + */ + // @ts-ignore + public static getScheduler(): org.spongepowered.api.scheduler.Scheduler; + /** + * Gets the {@link ChannelRegistrar} for creating network channels. + */ + // @ts-ignore + public static getChannelRegistrar(): org.spongepowered.api.network.ChannelRegistrar; + /** + * Gets the {@link TeleportHelper}, used to find safe {@link Location}s. + */ + // @ts-ignore + public static getTeleportHelper(): org.spongepowered.api.world.TeleportHelper; + /** + * Gets whether a {@link Server} instance is available without throwing an + * exception from calling {@link #getServer()}. + */ + // @ts-ignore + public static isServerAvailable(): boolean; + /** + * Gets the {@link Server} instance from the + * {@link Game} instance. + *Note: During various {@link GameState}s, a {@link Server} instance + * may NOT be available. During these specific states, + * calling {@link Game#getServer()} will throw an exception. To double + * check, call {@link #isServerAvailable()}
+ */ + // @ts-ignore + public static getServer(): org.spongepowered.api.Server; + /** + * Gets the {@link GameDictionary} instance from the + * {@link Game} instance. + */ + // @ts-ignore + public static getDictionary(): any; + /** + * Gets the {@link CauseStackManager} instance from the + * {@link Game} instance. + */ + // @ts-ignore + public static getCauseStackManager(): org.spongepowered.api.event.CauseStackManager; + /** + * Gets the {@link MetricsConfigManager} instance, allowing data/metric gathering + * systems to determine whether they have permission to gather server + * metrics. + */ + // @ts-ignore + public static getMetricsConfigManager(): org.spongepowered.api.util.metric.MetricsConfigManager; + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.Advancement.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.Advancement.Builder.ts new file mode 100644 index 00000000..12f05040 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.Advancement.Builder.ts @@ -0,0 +1,43 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace Advancement { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.CatalogBuilder { + /** + * Sets the parent {@link Advancement}. Defaults to {code null}. + */ + // @ts-ignore + parent(parent: org.spongepowered.api.advancement.Advancement): org.spongepowered.api.advancement.Advancement.Builder; + /** + * Sets the {@link AdvancementCriterion} that should be used + * for the advancement. Defaults to {@link AdvancementCriterion#EMPTY}. + */ + // @ts-ignore + criterion(criterion: org.spongepowered.api.advancement.criteria.AdvancementCriterion): org.spongepowered.api.advancement.Advancement.Builder; + /** + * Sets the {@link DisplayInfo}. Defaults to {code null}. + */ + // @ts-ignore + displayInfo(displayInfo: org.spongepowered.api.advancement.DisplayInfo): org.spongepowered.api.advancement.Advancement.Builder; + // @ts-ignore + id(id: string): org.spongepowered.api.advancement.Advancement.Builder; + /** + * Sets the name of the {@link Advancement}. Defaults to + * the plain {@link DisplayInfo#getTitle()} if the + * {@link DisplayInfo} is present. Otherwise will it default + * to the identifier ({@link #id(String)}). + */ + // @ts-ignore + name(name: string): org.spongepowered.api.advancement.Advancement.Builder; + // @ts-ignore + build(): org.spongepowered.api.advancement.Advancement; + // @ts-ignore + from(value: org.spongepowered.api.advancement.Advancement): org.spongepowered.api.advancement.Advancement.Builder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.Advancement.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.Advancement.ts new file mode 100644 index 00000000..35b2b1f0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.Advancement.ts @@ -0,0 +1,53 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + // @ts-ignore + interface Advancement extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.TextRepresentable { + /** + * Creates a new {@link Builder} to create {@link Advancement}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.advancement.Advancement.Builder; + /** + * Gets the {@link AdvancementTree} this advancement is located in, + * will only be present if the root advancement was used to create + * a {@link AdvancementTree}. + */ + // @ts-ignore + getTree(): any; + /** + * Gets all the children {@link Advancement}s. + */ + // @ts-ignore + getChildren(): any[] /*java.util.Collection*/; + /** + * Gets all the {@link AdvancementCriterion} that should be achieved + * before this advancement is unlocked. {@link AdvancementCriterion#EMPTY} + * will be returned if no criterion was assigned. + *This {@link AdvancementCriterion} can be a AND or OR operation that + * contains multiple possible {@link AdvancementCriterion}s.
+ */ + // @ts-ignore + getCriterion(): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + /** + * Gets the parent {@link Advancement}, if present. + */ + // @ts-ignore + getParent(): any; + /** + * Gets the {@link DisplayInfo} of this advancement, if present. + */ + // @ts-ignore + getDisplayInfo(): any; + /** + * Gets the {@link Text} lines that would be used to + * display a toast notification. + */ + // @ts-ignore + toToastText(): any[] /*java.util.List*/; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.AdvancementProgress.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.AdvancementProgress.ts new file mode 100644 index 00000000..d512b3ff --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.AdvancementProgress.ts @@ -0,0 +1,48 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + // @ts-ignore + interface AdvancementProgress extends org.spongepowered.api.advancement.Progressable { + /** + * Gets the {@link Advancement}. + */ + // @ts-ignore + getAdvancement(): org.spongepowered.api.advancement.Advancement; + /** + * Gets the {@link CriterionProgress} for the given + * {@link AdvancementCriterion} if the specified criterion is + * present on the {@link Advancement}. + *For AND and OR criteria will wrapped {@link CriterionProgress} be + * provided that will interact with the {@link CriterionProgress}s + * for every child {@link AdvancementCriterion}s.
+ */ + // @ts-ignore + get(criterion: org.spongepowered.api.advancement.criteria.AdvancementCriterion): any; + /** + * Gets the {@link ScoreCriterionProgress} for the given + * {@link ScoreAdvancementCriterion} if the specified criterion is + * present on the {@link Advancement}. + */ + // @ts-ignore + get(criterion: org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion): any; + /** + * Gets the {@link CriterionProgress} for the + * given {@link AdvancementCriterion}. + *For AND and OR criteria will wrapped {@link CriterionProgress} be + * provided that will interact with the {@link CriterionProgress}s + * for every child {@link AdvancementCriterion}s.
+ */ + // @ts-ignore + require(criterion: org.spongepowered.api.advancement.criteria.AdvancementCriterion): org.spongepowered.api.advancement.criteria.CriterionProgress; + /** + * Gets the {@link ScoreCriterionProgress} for the + * given {@link ScoreAdvancementCriterion}. + */ + // @ts-ignore + require(criterion: org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion): org.spongepowered.api.advancement.criteria.ScoreCriterionProgress; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.AdvancementTree.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.AdvancementTree.Builder.ts new file mode 100644 index 00000000..77a02200 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.AdvancementTree.Builder.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace AdvancementTree { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.CatalogBuilder { + /** + * Sets the root {@link Advancement}. The root advancement MUST have + * {@link DisplayInfo} present. + */ + // @ts-ignore + rootAdvancement(rootAdvancement: org.spongepowered.api.advancement.Advancement): org.spongepowered.api.advancement.AdvancementTree.Builder; + /** + * Sets the background of {@link AdvancementTree}. + *Defaults to the stone background: + * {@code minecraft:textures/gui/advancements/backgrounds/stone.png}
+ */ + // @ts-ignore + background(background: string): org.spongepowered.api.advancement.AdvancementTree.Builder; + // @ts-ignore + id(id: string): org.spongepowered.api.advancement.AdvancementTree.Builder; + /** + * Sets the name of the {@link AdvancementTree}. Defaults to + * the plain {@link DisplayInfo#getTitle()} of the root + * {@link Advancement} if {@link DisplayInfo} is present. + * Otherwise will it default to the identifier ({@link #id(String)}). + */ + // @ts-ignore + name(name: string): org.spongepowered.api.advancement.AdvancementTree.Builder; + // @ts-ignore + build(): org.spongepowered.api.advancement.AdvancementTree; + // @ts-ignore + from(value: org.spongepowered.api.advancement.AdvancementTree): org.spongepowered.api.advancement.AdvancementTree.Builder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.AdvancementTree.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.AdvancementTree.ts new file mode 100644 index 00000000..08612ba6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.AdvancementTree.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + // @ts-ignore + interface AdvancementTree extends org.spongepowered.api.CatalogType { + /** + * Creates a new {@link Builder} to create {@link AdvancementTree}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.advancement.AdvancementTree.Builder; + /** + * Gets the root {@link Advancement}. + */ + // @ts-ignore + getRootAdvancement(): org.spongepowered.api.advancement.Advancement; + /** + * Gets the background texture of this tree. + */ + // @ts-ignore + getBackgroundPath(): string; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.AdvancementType.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.AdvancementType.ts new file mode 100644 index 00000000..21e81b45 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.AdvancementType.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + // @ts-ignore + interface AdvancementType extends org.spongepowered.api.CatalogType { + /** + * Gets the {@link TextFormat} of the advancement type. + */ + // @ts-ignore + getTextFormat(): org.spongepowered.api.text.format.TextFormat; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.AdvancementTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.AdvancementTypes.ts new file mode 100644 index 00000000..1b0a34bd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.AdvancementTypes.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + // @ts-ignore + class AdvancementTypes { + // @ts-ignore + public static CHALLENGE: org.spongepowered.api.advancement.AdvancementType; + // @ts-ignore + public static GOAL: org.spongepowered.api.advancement.AdvancementType; + // @ts-ignore + public static TASK: org.spongepowered.api.advancement.AdvancementType; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.DisplayInfo.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.DisplayInfo.Builder.ts new file mode 100644 index 00000000..82474dcb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.DisplayInfo.Builder.ts @@ -0,0 +1,73 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace DisplayInfo { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link AdvancementType}. Defaults + * to {@link AdvancementTypes#TASK}. + */ + // @ts-ignore + type(advancementType: org.spongepowered.api.advancement.AdvancementType): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Sets the description. Defaults to {@link Text#EMPTY}. + */ + // @ts-ignore + description(description: org.spongepowered.api.text.Text): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Sets the title. + */ + // @ts-ignore + title(title: org.spongepowered.api.text.Text): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Sets the icon of the advancement with the + * specified {@link ItemType}. + */ + // @ts-ignore + icon(itemType: org.spongepowered.api.item.ItemType): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Sets the icon of the advancement with the + * specified {@link ItemStack}. + */ + // @ts-ignore + icon(itemStack: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Sets the icon of the advancement with the + * specified {@link ItemStackSnapshot}. + */ + // @ts-ignore + icon(itemStackSnapshot: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Sets whether a toast should be shown. This is the notification + * that will be displayed in the top right corner. + *Defaults to {@code true}.
+ */ + // @ts-ignore + showToast(showToast: boolean): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Sets whether a notification should be shown in the global chat. + *Defaults to {@code true}.
+ */ + // @ts-ignore + announceToChat(announceToChat: boolean): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Sets whether the {@link Advancement} should be hidden. + *Hidden advancements will only appear in the tree once they + * are unlocked. The lines that connect them to other advancements + * are still present.
+ */ + // @ts-ignore + hidden(hidden: boolean): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Builds the {@link DisplayInfo}. + */ + // @ts-ignore + build(): org.spongepowered.api.advancement.DisplayInfo; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.DisplayInfo.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.DisplayInfo.ts new file mode 100644 index 00000000..b52b7b8e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.DisplayInfo.ts @@ -0,0 +1,56 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + // @ts-ignore + interface DisplayInfo { + /** + * Creates a new {@link Builder} to create {@link DisplayInfo}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Gets the {@link AdvancementType}. + */ + // @ts-ignore + getType(): org.spongepowered.api.advancement.AdvancementType; + /** + * Gets the description. + */ + // @ts-ignore + getDescription(): org.spongepowered.api.text.Text; + /** + * Gets the icon. + */ + // @ts-ignore + getIcon(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Gets the title. + */ + // @ts-ignore + getTitle(): org.spongepowered.api.text.Text; + /** + * Gets whether a toast should be shown. + *The toast is the notification that will be displayed + * in the top right corner.
+ */ + // @ts-ignore + doesShowToast(): boolean; + /** + * Gets whether a notification should be shown in the global chat. + */ + // @ts-ignore + doesAnnounceToChat(): boolean; + /** + * Gets whether this advancement is hidden. + *Hidden advancements will only appear in the tree once they + * are unlocked. The lines that connect them to other advancements + * are still present.
+ */ + // @ts-ignore + isHidden(): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.Progressable.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.Progressable.ts new file mode 100644 index 00000000..f00d7fd3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.Progressable.ts @@ -0,0 +1,34 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + // @ts-ignore + interface Progressable { + /** + * Gets whether this {@link Progressable} is achieved. + */ + // @ts-ignore + achieved(): boolean; + /** + * Gets the time that the {@link Progressable} was + * achieved if present. + */ + // @ts-ignore + get(): any; + /** + * Grants this {@link Progressable}, if achieved before + * that time will be returned. + */ + // @ts-ignore + grant(): any; + /** + * Revokes the {@link Progressable} status. The time that the {@link Progressable} + * was achieved before will be returned if present. + */ + // @ts-ignore + revoke(): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.TreeLayout.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.TreeLayout.ts new file mode 100644 index 00000000..785f17b8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.TreeLayout.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + // @ts-ignore + interface TreeLayout { + /** + * Gets the {@link AdvancementTree} this layout is assigned to. + */ + // @ts-ignore + getTree(): org.spongepowered.api.advancement.AdvancementTree; + /** + * Gets all the {@link TreeLayoutElement}s that are + * present in this layout. + */ + // @ts-ignore + getElements(): any[] /*java.util.Collection*/; + /** + * Gets the {@link TreeLayoutElement} for the specified {@link Advancement}, + * {@link Optional#empty()} will be returned if the advancement is not present + * in the tree or if there is no {@link DisplayInfo} present. + */ + // @ts-ignore + getElement(advancement: org.spongepowered.api.advancement.Advancement): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.TreeLayoutElement.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.TreeLayoutElement.ts new file mode 100644 index 00000000..02d81fa5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.TreeLayoutElement.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + // @ts-ignore + interface TreeLayoutElement { + /** + * Gets the {@link Advancement}. + */ + // @ts-ignore + getAdvancement(): org.spongepowered.api.advancement.Advancement; + /** + * Gets the position of the {@link Advancement}. + */ + // @ts-ignore + getPosition(): any /*Vector2d*/; + /** + * Sets the position of the {@link Advancement}. + */ + // @ts-ignore + setPosition(position: any /*Vector2d*/): void; + /** + * Sets the position of the {@link Advancement}. + */ + // @ts-ignore + setPosition(x: number, y: number): void; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.AdvancementCriterion.BaseBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.AdvancementCriterion.BaseBuilder.ts new file mode 100644 index 00000000..886eb617 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.AdvancementCriterion.BaseBuilder.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace AdvancementCriterion { + // @ts-ignore + interface BaseBuilder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link FilteredTrigger}. + */ + // @ts-ignore + trigger(trigger: org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger): org.spongepowered.api.advancement.criteria.AdvancementCriterion.BaseBuilder; + /** + * Sets the name of the {@link AdvancementCriterion}. Names can be + * shared between multiple criteria, although it isn't allowed when + * using them for the same {@link Advancement}. + */ + // @ts-ignore + name(name: string): org.spongepowered.api.advancement.criteria.AdvancementCriterion.BaseBuilder; + /** + * Builds a new {@link AdvancementCriterion}. + */ + // @ts-ignore + build(): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.AdvancementCriterion.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.AdvancementCriterion.Builder.ts new file mode 100644 index 00000000..6fc10504 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.AdvancementCriterion.Builder.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace AdvancementCriterion { + // @ts-ignore + interface Builder extends org.spongepowered.api.advancement.criteria.AdvancementCriterion.BaseBuilder { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.AdvancementCriterion.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.AdvancementCriterion.ts new file mode 100644 index 00000000..625b230b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.AdvancementCriterion.ts @@ -0,0 +1,69 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + // @ts-ignore + interface AdvancementCriterion { + // @ts-ignore + EMPTY: org.spongepowered.api.advancement.criteria.AdvancementCriterion; + // @ts-ignore + DUMMY: org.spongepowered.api.advancement.criteria.AdvancementCriterion; + /** + * Creates a new {@link Builder} to create {@link AdvancementCriterion}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.advancement.criteria.AdvancementCriterion.Builder; + /** + * Gets the name of this criterion. + */ + // @ts-ignore + getName(): string; + /** + * Combines this {@link AdvancementCriterion} with the other criteria + * to create an AND operation. + *There is no guarantee that the returned extends {@link AndCriterion}, + * this depends on if there are duplicate criteria, {@link #EMPTY} + * is present, or when no extra criteria are provided.
+ */ + // @ts-ignore + and(criteria: org.spongepowered.api.advancement.criteria.AdvancementCriterion): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + /** + * Combines this {@link AdvancementCriterion} with the other criteria + * to create an AND operation. + *There is no guarantee that the returned extends {@link AndCriterion}, + * this depends on if there are duplicate criteria, {@link #EMPTY} + * is present, or when no extra criteria are provided.
+ */ + // @ts-ignore + and(criteria: any): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + /** + * Combines this {@link AdvancementCriterion} with the other criteria + * to create an OR operation. + *There is no guarantee that the returned extends {@link OrCriterion}, + * this depends on if there are duplicate criteria, {@link #EMPTY} + * is present, or when no extra criteria are provided.
+ */ + // @ts-ignore + or(criteria: org.spongepowered.api.advancement.criteria.AdvancementCriterion): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + /** + * Combines this {@link AdvancementCriterion} with the other criteria + * to create an OR operation. + *There is no guarantee that the returned extends {@link OrCriterion}, + * this depends on if there are duplicate criteria, {@link #EMPTY} + * is present, or when no extra criteria are provided.
+ */ + // @ts-ignore + or(criteria: any): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + /** + * Gets the {@link FilteredTrigger} of this + * {@link AdvancementCriterion}, if present. + */ + // @ts-ignore + getTrigger(): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.AndCriterion.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.AndCriterion.ts new file mode 100644 index 00000000..f0f5fe9f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.AndCriterion.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + // @ts-ignore + interface AndCriterion extends org.spongepowered.api.advancement.criteria.OperatorCriterion { + /** + * Attempts to build a new AND operation with the + * given {@link AdvancementCriterion}s. + *There is no guarantee that the returned extends {@link AndCriterion}, + * this depends on if there are duplicate criteria, {@link #EMPTY} + * is present, or when no extra criteria are provided.
+ */ + // @ts-ignore + of(criteria: org.spongepowered.api.advancement.criteria.AdvancementCriterion): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + /** + * Attempts to build a new AND operation with the + * given {@link AdvancementCriterion}s. + *There is no guarantee that the returned extends {@link AndCriterion}, + * this depends on if there are duplicate criteria, {@link #EMPTY} + * is present, or when no extra criteria are provided.
+ */ + // @ts-ignore + of(criteria: any): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.CriterionProgress.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.CriterionProgress.ts new file mode 100644 index 00000000..08c5cad9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.CriterionProgress.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + // @ts-ignore + interface CriterionProgress extends org.spongepowered.api.advancement.Progressable { + /** + * Gets the {@link AdvancementCriterion}. + */ + // @ts-ignore + getCriterion(): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.OperatorCriterion.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.OperatorCriterion.ts new file mode 100644 index 00000000..9cb7e9ca --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.OperatorCriterion.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + // @ts-ignore + interface OperatorCriterion extends org.spongepowered.api.advancement.criteria.AdvancementCriterion { + /** + * Attempts to find all the children {@link AdvancementCriterion}s + * with the specified name. The children will be checked recursively. + */ + // @ts-ignore + find(name: string): any[] /*java.util.Collection*/; + /** + * Attempts to find the first child {@link AdvancementCriterion} with + * the specified name. The children will be checked recursively, but + * direct children are prioritized. + */ + // @ts-ignore + findFirst(name: string): any; + /** + * Gets the children {@link AdvancementCriterion}s of this + * {@link OperatorCriterion}. May contain {@link OperatorCriterion}s. + */ + // @ts-ignore + getCriteria(): any[] /*java.util.Collection*/; + /** + * Gets the leaf {@link AdvancementCriterion}s. This means that there will + * never be any {@link OperatorCriterion}s in this list. + */ + // @ts-ignore + getLeafCriteria(): any[] /*java.util.Collection*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.OrCriterion.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.OrCriterion.ts new file mode 100644 index 00000000..0b32f399 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.OrCriterion.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + // @ts-ignore + interface OrCriterion extends org.spongepowered.api.advancement.criteria.OperatorCriterion { + /** + * Attempts to build a new OR operation with the + * given {@link AdvancementCriterion}s. + *There is no guarantee that the returned extends {@link OrCriterion}, + * this depends on if there are duplicate criteria, {@link #EMPTY} + * is present, or when no extra criteria are provided.
+ */ + // @ts-ignore + of(criteria: org.spongepowered.api.advancement.criteria.AdvancementCriterion): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + /** + * Attempts to build a new OR operation with the + * given {@link AdvancementCriterion}s. + *There is no guarantee that the returned extends {@link OrCriterion}, + * this depends on if there are duplicate criteria, {@link #EMPTY} + * is present, or when no extra criteria are provided.
+ */ + // @ts-ignore + of(criteria: any): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.Builder.ts new file mode 100644 index 00000000..2157472b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.Builder.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace ScoreAdvancementCriterion { + // @ts-ignore + interface Builder extends org.spongepowered.api.advancement.criteria.AdvancementCriterion.BaseBuilder { + /** + * Sets the goal value. This value must be greater then zero. + *Defaults to {@code 1}.
+ */ + // @ts-ignore + goal(goal: number): org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.Builder; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.ts new file mode 100644 index 00000000..168f6304 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + // @ts-ignore + interface ScoreAdvancementCriterion extends org.spongepowered.api.advancement.criteria.AdvancementCriterion { + /** + * Creates a new {@link Builder} which can be used to create + * a {@link ScoreAdvancementCriterion}. + */ + // @ts-ignore + builder(): org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.Builder; + /** + * Gets the goal value. + */ + // @ts-ignore + getGoal(): number; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.ScoreCriterionProgress.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.ScoreCriterionProgress.ts new file mode 100644 index 00000000..d9c067f5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.ScoreCriterionProgress.ts @@ -0,0 +1,45 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + // @ts-ignore + interface ScoreCriterionProgress extends org.spongepowered.api.advancement.criteria.CriterionProgress { + // @ts-ignore + getCriterion(): org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion; + /** + * Gets the goal value. + */ + // @ts-ignore + getGoal(): number; + /** + * Gets the score value. + */ + // @ts-ignore + getScore(): number; + /** + * Adds the target score value, the score cannot exceed + * the goal value ({@link #getGoal()}) or be under zero. + * The achieved time will be returned if the goal is met. + */ + // @ts-ignore + set(score: number): any; + /** + * Adds the target score value, the score cannot exceed + * the goal value ({@link #getGoal()}). The achieved time + * will be returned if the goal is met. + */ + // @ts-ignore + add(score: number): any; + /** + * Removes the target score value, the score cannot go under zero. + * The achieved time will be returned if the goal is met before. + */ + // @ts-ignore + remove(score: number): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.Builder.ts new file mode 100644 index 00000000..7d9e2f6b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.Builder.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace trigger { + namespace FilteredTrigger { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link Trigger}. + */ + // @ts-ignore + type(type: org.spongepowered.api.advancement.criteria.trigger.Trigger): org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.Builder; + /** + * Sets the {@link FilteredTriggerConfiguration}. + */ + // @ts-ignore + config(config: org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration): org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.Builder; + /** + * Builds the {@link FilteredTrigger}. + */ + // @ts-ignore + build(): org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.ts new file mode 100644 index 00000000..09091e03 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace trigger { + // @ts-ignore + interface FilteredTrigger { + /** + * Creates a new {@link Trigger.Builder}. + */ + // @ts-ignore + builder(): org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.Builder; + /** + * Gets the {@link Trigger}. + */ + // @ts-ignore + getType(): org.spongepowered.api.advancement.criteria.trigger.Trigger; + /** + * Gets the {@link FilteredTriggerConfiguration} of this trigger. + */ + // @ts-ignore + getConfiguration(): org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration.Empty.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration.Empty.ts new file mode 100644 index 00000000..065acf06 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration.Empty.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace trigger { + namespace FilteredTriggerConfiguration { + // @ts-ignore + class Empty implements org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration { + constructor() + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration.ts new file mode 100644 index 00000000..c5bf8301 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace trigger { + // @ts-ignore + interface FilteredTriggerConfiguration { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder.ts new file mode 100644 index 00000000..91bad858 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder.ts @@ -0,0 +1,89 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace trigger { + namespace Trigger { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the class for the {@link FilteredTriggerConfiguration} as + * a {@link DataSerializable}. The configuration will be constructed + * using the {@link DataBuilder} that is registered for + * the {@link DataSerializable}. + */ + // @ts-ignore + dataSerializableConfig(dataConfigClass: any): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Sets the class for the {@link FilteredTriggerConfiguration} as + * a config serializable. This configuration will be constructed + * using Configurate (with {@link TypeSerializer}s). + */ + // @ts-ignore + typeSerializableConfig(configClass: any): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Sets the class for the {@link FilteredTriggerConfiguration} as + * a config serializable. This configuration will be constructed using + * Configurate (with {@link TypeSerializer}s) with a + * specific {@link TypeSerializerCollection} instead of the global one. + */ + // @ts-ignore + typeSerializableConfig(configClass: any, typeSerializerCollection: any /*TypeSerializerCollection*/): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Sets the class for the {@link FilteredTriggerConfiguration} as + * a json serializable. This configuration will be constructed using + * the provided {@link Gson} instance. + */ + // @ts-ignore + jsonSerializableConfig(configClass: any, gson: any /*Gson*/): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Sets the class for the {@link FilteredTriggerConfiguration} as + * a json serializable. This configuration will be constructed using + * the default {@link Gson} instance. + */ + // @ts-ignore + jsonSerializableConfig(configClass: any): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Sets the class for the {@link FilteredTriggerConfiguration} to use + * {@link FilteredTriggerConfiguration.Empty}. + */ + // @ts-ignore + emptyConfig(): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Adds the {@link Consumer} to handle the triggers. If no handler is + * provided then will the result of the trigger always be {@code true}, + * which results in triggering the {@link Criterion}. + *The {@link Cause} of the event should be used to determine + * whether the configuration matches the requirements to trigger + * the criterion.
+ */ + // @ts-ignore + listener(eventListener: any): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Sets the identifier of the {@link Trigger} + * (without the namespace). + */ + // @ts-ignore + id(id: string): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Sets the name of the {@link Trigger}. Defaults + * to the identifier ({@link #id(String)}). + */ + // @ts-ignore + name(name: string): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Builds a {@link Trigger}. + */ + // @ts-ignore + build(): org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + from(value: org.spongepowered.api.advancement.criteria.trigger.Trigger): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.Trigger.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.Trigger.ts new file mode 100644 index 00000000..d0ec7eb4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.Trigger.ts @@ -0,0 +1,44 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace trigger { + // @ts-ignore + interface Trigger extends org.spongepowered.api.CatalogType { + /** + * Creates a new {@link Builder} which can be used to create + * a {@link Trigger}. + */ + // @ts-ignore + builder(): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Gets the type of the used {@link FilteredTriggerConfiguration}. + */ + // @ts-ignore + getConfigurationType(): any; + /** + * Triggers the {@link Trigger} for all + * the online {@link Player}s. + */ + // @ts-ignore + trigger(): void; + /** + * Triggers the {@link Trigger} for the + * specified {@link Player}s. + */ + // @ts-ignore + trigger(players: any): void; + /** + * Triggers the {@link Trigger} for the + * specified {@link Player}. + */ + // @ts-ignore + trigger(player: org.spongepowered.api.entity.living.player.Player): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.Triggers.ts b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.Triggers.ts new file mode 100644 index 00000000..126eecdc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.advancement.criteria.trigger.Triggers.ts @@ -0,0 +1,69 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace trigger { + // @ts-ignore + class Triggers { + // @ts-ignore + public static BRED_ANIMALS: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static BREWED_POTION: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static CHANGED_DIMENSION: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static CONSTRUCT_BEACON: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static CONSUME_ITEM: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static CURED_ZOMBIE_VILLAGER: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static ENCHANTED_ITEM: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static ENTER_BLOCK: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static ENTITY_HURT_PLAYER: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static ENTITY_KILLED_PLAYER: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static IMPOSSIBLE: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static INVENTORY_CHANGED: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static ITEM_DURABILITY_CHANGED: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static LEVITATION: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static LOCATION: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static NETHER_TRAVEL: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static PLACED_BLOCK: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static PLAYER_HURT_ENTITY: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static PLAYER_KILLED_ENTITY: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static RECIPE_UNLOCKED: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static SLEPT_IN_BED: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static SUMMONED_ENTITY: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static TAME_ANIMAL: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static TICK: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static USED_ENDER_EYE: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static USED_TOTEM: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static VILLAGER_TRADE: org.spongepowered.api.advancement.criteria.trigger.Trigger; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.asset.Asset.ts b/packages/sponge/src/typings/org.spongepowered.api.asset.Asset.ts new file mode 100644 index 00000000..8ea59dee --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.asset.Asset.ts @@ -0,0 +1,86 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace asset { + // @ts-ignore + interface Asset { + // @ts-ignore + DEFAULT_CHARSET: any; + /** + * Returns the original {@link Plugin} owner of this Asset. + */ + // @ts-ignore + getOwner(): org.spongepowered.api.plugin.PluginContainer; + /** + * Returns the {@link URL} to this Asset. + */ + // @ts-ignore + getUrl(): any; + /** + * Copies this Asset to the specified 'output' {@link Path}. + */ + // @ts-ignore + copyToFile(output: any): void; + /** + * Copies this Asset to the specified 'output' {@link Path}. + */ + // @ts-ignore + copyToFile(output: any, overwrite: boolean): void; + /** + * Copies this Asset to the specified 'output' {@link Path}. + */ + // @ts-ignore + copyToFile(output: any, overwrite: boolean, onlyIfAbsent: boolean): void; + /** + * Copies this Asset to the specified 'outputDirectory' {@link Path}. + */ + // @ts-ignore + copyToDirectory(outputDirectory: any): void; + /** + * Copies this Asset to the specified 'outputDirectory' {@link Path}. + */ + // @ts-ignore + copyToDirectory(outputDirectory: any, overwrite: boolean): void; + /** + * Copies this Asset to the specified 'outputDirectory' {@link Path}. + */ + // @ts-ignore + copyToDirectory(outputDirectory: any, overwrite: boolean, onlyIfAbsent: boolean): void; + /** + * Returns the the last portion of the Asset URL, e.g. the file name. + */ + // @ts-ignore + getFileName(): string; + /** + * Reads this Asset in it's entirety as a {@link String} and returns the + * result. + */ + // @ts-ignore + readString(): string; + /** + * Reads this Asset in it's entirety as a {@link String} and returns the + * result. + */ + // @ts-ignore + readString(charset: any): string; + /** + * Reads all lines from the asset and returns the result. + */ + // @ts-ignore + readLines(): any[] /*java.util.List*/; + /** + * Reads all lines from the asset and returns the result. + */ + // @ts-ignore + readLines(charset: any): any[] /*java.util.List*/; + /** + * Reads this Asset in it's entirety as a byte array and returns the + * result. + */ + // @ts-ignore + readBytes(): number[]; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.asset.AssetId.ts b/packages/sponge/src/typings/org.spongepowered.api.asset.AssetId.ts new file mode 100644 index 00000000..fec044a0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.asset.AssetId.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace asset { + // @ts-ignore + interface AssetId { + /** + * The path to the {@link Asset} in the asset folder of the plugin. + */ + // @ts-ignore + value(): string; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.asset.AssetManager.ts b/packages/sponge/src/typings/org.spongepowered.api.asset.AssetManager.ts new file mode 100644 index 00000000..5dd7e7ea --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.asset.AssetManager.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace asset { + // @ts-ignore + interface AssetManager { + /** + * Returns the {@link Asset} of the specified name for the specified + * {@link Plugin} instance. + */ + // @ts-ignore + getAsset(plugin: any, name: string): any; + /** + * Returns the {@link Asset} of the specified name within the domain of the + * implementation. This method will typically call + * {@link #getAsset(Object, String)} using a dummy + * {@link PluginContainer} for the SpongeAPI implementation. + */ + // @ts-ignore + getAsset(name: string): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.BlockSnapshot.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.block.BlockSnapshot.Builder.ts new file mode 100644 index 00000000..31da8f4e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.BlockSnapshot.Builder.ts @@ -0,0 +1,48 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace BlockSnapshot { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.ImmutableDataBuilder { + /** + * Sets the {@link WorldProperties} for this {@link BlockSnapshot}. + *+ * This is used to grab the {@link UUID} of the World for this snapshot. + *
+ */ + // @ts-ignore + world(worldProperties: org.spongepowered.api.world.storage.WorldProperties): org.spongepowered.api.block.BlockSnapshot.Builder; + /** + * Sets the {@link BlockState} for this {@link BlockSnapshot}. + */ + // @ts-ignore + blockState(blockState: org.spongepowered.api.block.BlockState): org.spongepowered.api.block.BlockSnapshot.Builder; + /** + * Sets the coordinates of this {@link BlockSnapshot} from a {@link Vector3i}. + */ + // @ts-ignore + position(position: any /*Vector3i*/): org.spongepowered.api.block.BlockSnapshot.Builder; + /** + * Copies over block data from a {@link Location}. + */ + // @ts-ignore + from(location: org.spongepowered.api.world.Location): org.spongepowered.api.block.BlockSnapshot.Builder; + /** + * Sets the {@link UUID} of the user who created this + * {@link BlockSnapshot}. + */ + // @ts-ignore + creator(uuid: any): org.spongepowered.api.block.BlockSnapshot.Builder; + /** + * Sets the {@link UUID} of the user who last notified this + * {@link BlockSnapshot}. + */ + // @ts-ignore + notifier(uuid: any): org.spongepowered.api.block.BlockSnapshot.Builder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.BlockSnapshot.ts b/packages/sponge/src/typings/org.spongepowered.api.block.BlockSnapshot.ts new file mode 100644 index 00000000..deb4f096 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.BlockSnapshot.ts @@ -0,0 +1,82 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + // @ts-ignore + interface BlockSnapshot extends org.spongepowered.api.data.LocatableSnapshot { + // @ts-ignore + NONE: org.spongepowered.api.block.BlockSnapshot; + /** + * Creates a {@link Builder} to get {@link BlockSnapshot}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.block.BlockSnapshot.Builder; + /** + * Gets the {@link BlockState}. + */ + // @ts-ignore + getState(): org.spongepowered.api.block.BlockState; + /** + * Gets the extended {@link BlockState}. This applies extended properties + * that are usually located around the associated {@link BlockType}. Check + * {@link BlockState#withExtendedProperties(Location)} for more info. + */ + // @ts-ignore + getExtendedState(): org.spongepowered.api.block.BlockState; + /** + * Creates a copy of the {@link BlockSnapshot} with the provided + * {@link BlockState}. Any additional data associated with a + * {@link TileEntity} or custom data may be lost. + *Note: all custom data, including implementation detailed + * data relating to any and all {@link TileEntity} instances that + * was included in this snapshot will NOT copy over to the new + * snapshot.
+ */ + // @ts-ignore + withState(blockState: org.spongepowered.api.block.BlockState): org.spongepowered.api.block.BlockSnapshot; + /** + * Creates a copy of the {@link BlockSnapshot} with the provided + * {@link DataContainer}. Note that this is equal to calling + * {@link Builder#build(DataView)}. All data is + * validated and + */ + // @ts-ignore + withContainer(container: org.spongepowered.api.data.DataContainer): org.spongepowered.api.block.BlockSnapshot; + /** + * Restores the {@link BlockSnapshot} to the {@link Location} stored within + * the snapshot. If the {@link Location} is not available, the snapshot will + * not be restored. + *If forced, the state of the block will change its {@link BlockType} + * to match that of the snapshot then set the state. However, if force is + * set to false and the {@link BlockType}s does not match, false will be + * returned. + * If notifyNeighbors is true, neighboring blocks will be notified of + * changes at the restored block location triggering physic updates.
+ */ + // @ts-ignore + restore(force: boolean, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Gets the {@link UUID}, if available, of the user who created this + * {@link BlockSnapshot}. + */ + // @ts-ignore + getCreator(): any; + /** + * Gets the {@link UUID}, if available, of the user who last notified this + * {@link BlockSnapshot}. + */ + // @ts-ignore + getNotifier(): any; + /** + * Creates a new {@link TileEntityArchetype} for use with {@link Schematic}s + * and placing the archetype in multiple locations. + *If this blocksnapshot does not contain a tile entity then this will + * return {@link Optional#empty()}.
+ */ + // @ts-ignore + createArchetype(): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.BlockSoundGroup.ts b/packages/sponge/src/typings/org.spongepowered.api.block.BlockSoundGroup.ts new file mode 100644 index 00000000..ea823a3a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.BlockSoundGroup.ts @@ -0,0 +1,46 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + // @ts-ignore + interface BlockSoundGroup { + /** + * Gets the volume used when playing sounds. + */ + // @ts-ignore + getVolume(): number; + /** + * Gets the pitch used when playing sounds. + */ + // @ts-ignore + getPitch(): number; + /** + * Gets the sound played when the block is breaking. + */ + // @ts-ignore + getBreakSound(): org.spongepowered.api.effect.sound.SoundType; + /** + * Gets the sound played when the block is stepped on. + */ + // @ts-ignore + getStepSound(): org.spongepowered.api.effect.sound.SoundType; + /** + * Gets the sound played when the block is placed. + */ + // @ts-ignore + getPlaceSound(): org.spongepowered.api.effect.sound.SoundType; + /** + * Gets the sound played when the block is hit. + */ + // @ts-ignore + getHitSound(): org.spongepowered.api.effect.sound.SoundType; + /** + * Gets the sound played when a {@link Living} entity falls onto the block. + */ + // @ts-ignore + getFallSound(): org.spongepowered.api.effect.sound.SoundType; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.BlockState.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.block.BlockState.Builder.ts new file mode 100644 index 00000000..49175f49 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.BlockState.Builder.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace BlockState { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.ImmutableDataBuilder { + /** + * Sets the {@link BlockType} for the {@link BlockState} to build. + *The {@link BlockType} is used for some pre-validation on addition of + * {@link DataManipulator}s through {@link #add(DataManipulator)}. It is + * important to understand that not all manipulators are compatible with + * all {@link BlockType}s.
+ */ + // @ts-ignore + blockType(blockType: org.spongepowered.api.block.BlockType): org.spongepowered.api.block.BlockState.Builder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.BlockState.MatcherBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.block.BlockState.MatcherBuilder.ts new file mode 100644 index 00000000..b9ddfefb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.BlockState.MatcherBuilder.ts @@ -0,0 +1,39 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace BlockState { + // @ts-ignore + class MatcherBuilder implements org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the root {@link BlockType} for the {@link StateMatcher}. + *Note that the {@link BlockType type} must be set prior + * to setting various {@link BlockTrait traits} and their values.
+ */ + // @ts-ignore + public type(type: org.spongepowered.api.block.BlockType): org.spongepowered.api.block.BlockState.MatcherBuilder; + /** + * Adds the desired {@link BlockTrait} and {code value} to this + * builder, if the desired {@link BlockTrait} does not belong to the + * original {@link BlockType} as provided by {@link #type(BlockType)}, + * an exception is thrown. Likewise, if a {@code value} is not within + * the possible values for the desired trait of the desired type, an + * exception is thrown. + */ + // @ts-ignore + public trait(trait: org.spongepowered.api.block.trait.BlockTrait, value: any): org.spongepowered.api.block.BlockState.MatcherBuilder; + /** + * Creates a new {@link StateMatcher}. + */ + // @ts-ignore + public build(): org.spongepowered.api.block.BlockState.StateMatcher; + // @ts-ignore + public from(value: org.spongepowered.api.block.BlockState.StateMatcher): org.spongepowered.api.block.BlockState.MatcherBuilder; + // @ts-ignore + public reset(): org.spongepowered.api.block.BlockState.MatcherBuilder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.BlockState.StateMatcher.ts b/packages/sponge/src/typings/org.spongepowered.api.block.BlockState.StateMatcher.ts new file mode 100644 index 00000000..99b68ffe --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.BlockState.StateMatcher.ts @@ -0,0 +1,36 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace BlockState { + // @ts-ignore + class StateMatcher { + /** + * Gets a {@code true} return value if the provided {@link BlockState} + * sufficiently matches this matcher, such that the {@link BlockType} + * matches, and the pre-defined {@link BlockTrait} values match. + */ + // @ts-ignore + public matches(state: org.spongepowered.api.block.BlockState): boolean; + // @ts-ignore + public test(blockState: org.spongepowered.api.block.BlockState): boolean; + /** + * Gets a {@link List} of compatible {@link BlockState}s. + * Since all {@link BlockState}s are known in the initialization + * of a {@link BlockType}, the states are already deterministic + * and cannot change themselves. + */ + // @ts-ignore + public getCompatibleStates(): any[] /*java.util.List*/; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.BlockState.ts b/packages/sponge/src/typings/org.spongepowered.api.block.BlockState.ts new file mode 100644 index 00000000..12b1b89f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.BlockState.ts @@ -0,0 +1,104 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + // @ts-ignore + interface BlockState extends org.spongepowered.api.data.ImmutableDataHolder, org.spongepowered.api.data.property.DirectionRelativePropertyHolder, org.spongepowered.api.CatalogType { + /** + * Creates a new {@link Builder} for building {@link BlockState}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.block.BlockState.Builder; + /** + * Constructs a new {@link MatcherBuilder} to construct a {@link StateMatcher}. + */ + // @ts-ignore + matcher(type: org.spongepowered.api.block.BlockType): org.spongepowered.api.block.BlockState.MatcherBuilder; + /** + * Gets the base type of block. + *The type does not include block data such as the contents of + * inventories.
+ */ + // @ts-ignore + getType(): org.spongepowered.api.block.BlockType; + /** + * Applies extended properties for the current @{link BlockType} if any to + * the current {@link BlockState}. This usually is gathered from surrounding + * {@link BlockState}'s. + *Note: This should only be called for live {@link BlockState}'s at + * a specific {@link Location} for accurate results.
+ *+ * Examples of some extended properties are: + *
+ *The format of the internal ID may vary between implementations + * but in Minecraft, it follows the format of {@code domain:type}, an + * example being {@code minecraft:stone}.
+ */ + // @ts-ignore + getName(): string; + /** + * Return the default state for this block. + */ + // @ts-ignore + getDefaultState(): org.spongepowered.api.block.BlockState; + /** + * Gets a {@link Collection} of all {@link BlockState}s for this + * {@link BlockType}. + */ + // @ts-ignore + getAllBlockStates(): any[] /*java.util.Collection*/; + /** + * Return the {@link ItemType} that represents this block. + */ + // @ts-ignore + getItem(): any; + /** + * Gets if this BlockType is set to receive random block ticks. + *Random block ticks are most commonly used for growth of plants.
+ */ + // @ts-ignore + getTickRandomly(): boolean; + /** + * Sets if the BlockType should receive random block ticks. + *Random block ticks are most commonly used for growth of plants.
+ */ + // @ts-ignore + setTickRandomly(tickRandomly: boolean): void; + /** + * Gets an immutable {@link Collection} of all applicable + * {@link BlockTrait}s for this {@link BlockType}. + */ + // @ts-ignore + getTraits(): any[] /*java.util.Collection*/; + /** + * Attempts to retrieve the {@link BlockTrait} instance associated with + * this {@link BlockState}s {@link BlockType} by string id. If there is no + * {@link BlockTrait} available, {@link Optional#empty()} is returned. + */ + // @ts-ignore + getTrait(blockTrait: string): any; + /** + * Gets the {@link BlockSoundGroup} for this block. + */ + // @ts-ignore + getSoundGroup(): org.spongepowered.api.block.BlockSoundGroup; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.BlockTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.block.BlockTypes.ts new file mode 100644 index 00000000..f54799e6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.BlockTypes.ts @@ -0,0 +1,519 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + // @ts-ignore + class BlockTypes { + // @ts-ignore + public static ACACIA_DOOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ACACIA_FENCE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ACACIA_FENCE_GATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ACACIA_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ACTIVATOR_RAIL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static AIR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ANVIL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BARRIER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BEACON: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BED: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BEDROCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BEETROOTS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BIRCH_DOOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BIRCH_FENCE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BIRCH_FENCE_GATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BIRCH_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BLACK_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BLACK_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BLUE_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BLUE_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BONE_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BOOKSHELF: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BREWING_STAND: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BRICK_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BRICK_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BROWN_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BROWN_MUSHROOM: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BROWN_MUSHROOM_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BROWN_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CACTUS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CAKE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CARPET: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CARROTS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CAULDRON: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CHAIN_COMMAND_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CHEST: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CHORUS_FLOWER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CHORUS_PLANT: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CLAY: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static COAL_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static COAL_ORE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static COBBLESTONE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static COBBLESTONE_WALL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static COCOA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static COMMAND_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CONCRETE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CONCRETE_POWDER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CRAFTING_TABLE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CYAN_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CYAN_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DARK_OAK_DOOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DARK_OAK_FENCE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DARK_OAK_FENCE_GATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DARK_OAK_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DAYLIGHT_DETECTOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DAYLIGHT_DETECTOR_INVERTED: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DEADBUSH: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DETECTOR_RAIL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DIAMOND_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DIAMOND_ORE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DIRT: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DISPENSER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DOUBLE_PLANT: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DOUBLE_STONE_SLAB: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DOUBLE_STONE_SLAB2: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DOUBLE_WOODEN_SLAB: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DRAGON_EGG: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DROPPER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static EMERALD_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static EMERALD_ORE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ENCHANTING_TABLE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ENDER_CHEST: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static END_BRICKS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static END_GATEWAY: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static END_PORTAL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static END_PORTAL_FRAME: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static END_ROD: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static END_STONE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static FARMLAND: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static FENCE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static FENCE_GATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static FIRE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static FLOWER_POT: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static FLOWING_LAVA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static FLOWING_WATER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static FROSTED_ICE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static FURNACE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GLASS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GLASS_PANE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GLOWSTONE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GOLDEN_RAIL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GOLD_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GOLD_ORE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GRASS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GRASS_PATH: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GRAVEL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GRAY_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GRAY_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GREEN_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GREEN_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static HARDENED_CLAY: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static HAY_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static HEAVY_WEIGHTED_PRESSURE_PLATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static HOPPER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ICE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static IRON_BARS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static IRON_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static IRON_DOOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static IRON_ORE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static IRON_TRAPDOOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static JUKEBOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static JUNGLE_DOOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static JUNGLE_FENCE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static JUNGLE_FENCE_GATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static JUNGLE_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LADDER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LAPIS_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LAPIS_ORE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LAVA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LEAVES: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LEAVES2: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LEVER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LIGHT_BLUE_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LIGHT_BLUE_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LIGHT_WEIGHTED_PRESSURE_PLATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LIME_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LIME_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LIT_FURNACE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LIT_PUMPKIN: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LIT_REDSTONE_LAMP: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LIT_REDSTONE_ORE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LOG: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LOG2: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static MAGENTA_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static MAGENTA_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static MAGMA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static MELON_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static MELON_STEM: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static MOB_SPAWNER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static MONSTER_EGG: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static MOSSY_COBBLESTONE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static MYCELIUM: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static NETHERRACK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static NETHER_BRICK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static NETHER_BRICK_FENCE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static NETHER_BRICK_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static NETHER_WART: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static NETHER_WART_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static NOTEBLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static OAK_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static OBSERVER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static OBSIDIAN: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ORANGE_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ORANGE_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PACKED_ICE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PINK_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PINK_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PISTON: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PISTON_EXTENSION: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PISTON_HEAD: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PLANKS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PORTAL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static POTATOES: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static POWERED_COMPARATOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static POWERED_REPEATER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PRISMARINE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PUMPKIN: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PUMPKIN_STEM: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PURPLE_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PURPLE_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PURPUR_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PURPUR_DOUBLE_SLAB: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PURPUR_PILLAR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PURPUR_SLAB: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PURPUR_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static QUARTZ_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static QUARTZ_ORE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static QUARTZ_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static RAIL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static REDSTONE_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static REDSTONE_LAMP: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static REDSTONE_ORE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static REDSTONE_TORCH: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static REDSTONE_WIRE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static RED_FLOWER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static RED_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static RED_MUSHROOM: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static RED_MUSHROOM_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static RED_NETHER_BRICK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static RED_SANDSTONE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static RED_SANDSTONE_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static RED_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static REEDS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static REPEATING_COMMAND_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SAND: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SANDSTONE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SANDSTONE_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SAPLING: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SEA_LANTERN: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SILVER_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SILVER_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SKULL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SLIME: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SNOW: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SNOW_LAYER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SOUL_SAND: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SPONGE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SPRUCE_DOOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SPRUCE_FENCE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SPRUCE_FENCE_GATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SPRUCE_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STAINED_GLASS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STAINED_GLASS_PANE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STAINED_HARDENED_CLAY: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STANDING_BANNER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STANDING_SIGN: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STICKY_PISTON: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STONE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STONEBRICK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STONE_BRICK_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STONE_BUTTON: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STONE_PRESSURE_PLATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STONE_SLAB: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STONE_SLAB2: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STONE_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STRUCTURE_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STRUCTURE_VOID: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static TALLGRASS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static TNT: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static TORCH: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static TRAPDOOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static TRAPPED_CHEST: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static TRIPWIRE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static TRIPWIRE_HOOK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static UNLIT_REDSTONE_TORCH: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static UNPOWERED_COMPARATOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static UNPOWERED_REPEATER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static VINE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WALL_BANNER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WALL_SIGN: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WATER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WATERLILY: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WEB: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WHEAT: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WHITE_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WHITE_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WOODEN_BUTTON: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WOODEN_DOOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WOODEN_PRESSURE_PLATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WOODEN_SLAB: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WOOL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static YELLOW_FLOWER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static YELLOW_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static YELLOW_SHULKER_BOX: org.spongepowered.api.block.BlockType; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.ScheduledBlockUpdate.ts b/packages/sponge/src/typings/org.spongepowered.api.block.ScheduledBlockUpdate.ts new file mode 100644 index 00000000..d2b6e466 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.ScheduledBlockUpdate.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + // @ts-ignore + interface ScheduledBlockUpdate extends org.spongepowered.api.world.Locatable { + /** + * Gets the amount of ticks until this SBU should cause the block to update. + */ + // @ts-ignore + getTicks(): number; + /** + * Sets the amount of ticks until this SBU should cause the block to update. + */ + // @ts-ignore + setTicks(ticks: number): void; + /** + * Gets the priority of this scheduled block update. + */ + // @ts-ignore + getPriority(): number; + /** + * Sets the priority of this scheduled block update. + */ + // @ts-ignore + setPriority(priority: number): void; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.Banner.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.Banner.ts new file mode 100644 index 00000000..aec43f35 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.Banner.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface Banner extends org.spongepowered.api.block.tileentity.TileEntity { + /** + * Gets the {@link BannerData data} of this {@link Banner banner}. + */ + // @ts-ignore + getBannerData(): org.spongepowered.api.data.manipulator.mutable.tileentity.BannerData; + /** + * Gets the {@link Value} for the base {@link DyeColor}. + */ + // @ts-ignore + baseColor(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link PatternListValue} of all patterns for the + * {@link Banner}. + */ + // @ts-ignore + patternsList(): org.spongepowered.api.data.value.mutable.PatternListValue; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.Bed.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.Bed.ts new file mode 100644 index 00000000..79173f8d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.Bed.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface Bed extends org.spongepowered.api.block.tileentity.TileEntity { + /** + * Gets the {@link org.spongepowered.api.data.manipulator.mutable.tileentity.BedData data} of this {@link Bed bed}. + */ + // @ts-ignore + getBedData(): org.spongepowered.api.data.manipulator.mutable.tileentity.BedData; + /** + * Gets the {@link DyeableData data} of this {@link Bed bed}. + */ + // @ts-ignore + getDyeableData(): org.spongepowered.api.data.manipulator.mutable.DyeableData; + /** + * Gets the {@link Value} for the {@link DyeColor color}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.CommandBlock.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.CommandBlock.ts new file mode 100644 index 00000000..5902376f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.CommandBlock.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface CommandBlock extends org.spongepowered.api.block.tileentity.TileEntity, org.spongepowered.api.command.source.CommandBlockSource { + /** + * Executes the currently stored command. + */ + // @ts-ignore + execute(): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.Comparator.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.Comparator.ts new file mode 100644 index 00000000..90b6e27f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.Comparator.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface Comparator extends org.spongepowered.api.block.tileentity.TileEntity { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.DaylightDetector.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.DaylightDetector.ts new file mode 100644 index 00000000..398a6237 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.DaylightDetector.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface DaylightDetector extends org.spongepowered.api.block.tileentity.TileEntity { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.EnchantmentTable.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.EnchantmentTable.ts new file mode 100644 index 00000000..a21e81f6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.EnchantmentTable.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface EnchantmentTable extends org.spongepowered.api.block.tileentity.TileEntity { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.EndGateway.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.EndGateway.ts new file mode 100644 index 00000000..74e4e1db --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.EndGateway.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface EndGateway extends org.spongepowered.api.block.tileentity.TileEntity { + /** + * Gets a copy of the {@link EndGatewayData} containing all available + * data this {@link EndGateway} has. + */ + // @ts-ignore + getEndGatewayData(): org.spongepowered.api.data.manipulator.mutable.tileentity.EndGatewayData; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.EndPortal.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.EndPortal.ts new file mode 100644 index 00000000..898989c4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.EndPortal.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface EndPortal extends org.spongepowered.api.block.tileentity.TileEntity { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.EnderChest.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.EnderChest.ts new file mode 100644 index 00000000..1f50c8f5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.EnderChest.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface EnderChest extends org.spongepowered.api.block.tileentity.TileEntity { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.FlowerPot.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.FlowerPot.ts new file mode 100644 index 00000000..e7aec0f8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.FlowerPot.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface FlowerPot extends org.spongepowered.api.block.tileentity.TileEntity { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.Jukebox.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.Jukebox.ts new file mode 100644 index 00000000..9df0ffb6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.Jukebox.ts @@ -0,0 +1,34 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface Jukebox extends org.spongepowered.api.block.tileentity.TileEntity { + /** + * Attempts to play the currently stored record according to the + * {@link RepresentedItemData} of this {@link Jukebox}. + */ + // @ts-ignore + playRecord(): void; + /** + * Stops the currently playing record, if any. + */ + // @ts-ignore + stopRecord(): void; + /** + * Ejects the record item in this Jukebox into the world. + */ + // @ts-ignore + ejectRecord(): void; + /** + * Ejects the current record in this Jukebox and inserts the given one. + */ + // @ts-ignore + insertRecord(record: org.spongepowered.api.item.inventory.ItemStack): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.MobSpawner.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.MobSpawner.ts new file mode 100644 index 00000000..be5f5154 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.MobSpawner.ts @@ -0,0 +1,92 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface MobSpawner extends org.spongepowered.api.block.tileentity.TileEntity { + /** + * Trigger an immediate spawn of a batch of entities. + *This will obey the restrictions of maximum nearby entities and player + * range unless the {@code force} flag is set.
+ */ + // @ts-ignore + spawnEntityBatchImmediately(force: boolean): void; + /** + * Gets the {@link MobSpawnerData} for this mob spawner. + */ + // @ts-ignore + getMobSpawnerData(): org.spongepowered.api.data.manipulator.mutable.MobSpawnerData; + /** + * Gets the {@link MutableBoundedValue} for the remaining delay before + * a new attempt at spawning an {@link Entity} is made. + */ + // @ts-ignore + remainingDelay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the minimum spawn delay + * required between attempts to spawn an {@link Entity}. + */ + // @ts-ignore + minimumSpawnDelay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the maximum spawn delay + * required between attempts to spawn an {@link Entity}. + */ + // @ts-ignore + maximumSpawnDelay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the count of successful + * spawns of all {@link Entity} instances from the owning spawner. This + * count is simply a total count, there is no limitation on how many + * attempts are made to spawn an {@link Entity}. + */ + // @ts-ignore + spawnCount(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the limitation on the number + * of nearby {@link Entity} instances can exist near the owning spawner. The + * limitation is that if there are more {@link Entity} instances than the + * provided value, no attempts to spawn a new {@link Entity} will be made. + */ + // @ts-ignore + maximumNearbyEntities(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the minimum range a + * {@link Player} must remain in proximity of the spawner, such that if a + * {@link Player} is NOT within the provided range, no attempts to spawn an + * {@link Entity} is made. + */ + // @ts-ignore + requiredPlayerRange(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the maximum range that an + * {@link Entity} can be spawned from the spawner. + */ + // @ts-ignore + spawnRange(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link Value} + * for the overridden + * {@link WeightedSerializableObject}{@codeUse this method to check if processing should be run on this + * {@link TileEntity}. If it is valid, then processing can be run on it. + * If not, then processing should wait until it becomes valid or is + * destroyed.
+ */ + // @ts-ignore + isValid(): boolean; + /** + * Changes the validation of this tile entity. + *If the tile entity is invalid, no processing will be done on this + * {@link TileEntity} until it either becomes valid or is reset on the next + * tick.
+ *If the tile entity is valid, then processing can continue and this + * {@link TileEntity} will not be reset on the next tick.
+ */ + // @ts-ignore + setValid(valid: boolean): void; + /** + * Gets the type of {@link TileEntity} this is. + */ + // @ts-ignore + getType(): org.spongepowered.api.block.tileentity.TileEntityType; + /** + * Gets the {@link BlockState} that this {@link TileEntity} represents. + */ + // @ts-ignore + getBlock(): org.spongepowered.api.block.BlockState; + /** + * Creates a new {@link TileEntityArchetype} for use with {@link Schematic}s + * and placing the archetype in multiple locations. + */ + // @ts-ignore + createArchetype(): org.spongepowered.api.block.tileentity.TileEntityArchetype; + /** + * Creates a {@link LocatableBlock} for this {@link TileEntity}. Can be used + * as a simpler method of making them. Since this does not persist the + * data of this {@link TileEntity}, it should not be used in place of a + * {@link BlockSnapshot} where data is being safely cloned. + */ + // @ts-ignore + getLocatableBlock(): org.spongepowered.api.world.LocatableBlock; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder.ts new file mode 100644 index 00000000..82906cc0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder.ts @@ -0,0 +1,43 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace TileEntityArchetype { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.persistence.DataBuilder { + // @ts-ignore + reset(): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + // @ts-ignore + from(value: org.spongepowered.api.block.tileentity.TileEntityArchetype): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + // @ts-ignore + from(location: org.spongepowered.api.world.Location): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + /** + * Sets the {@link BlockState} of the archetype. + */ + // @ts-ignore + state(state: org.spongepowered.api.block.BlockState): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + // @ts-ignore + tile(tileEntityType: org.spongepowered.api.block.tileentity.TileEntityType): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + // @ts-ignore + tile(tileEntity: org.spongepowered.api.block.tileentity.TileEntity): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + // @ts-ignore + tileData(dataView: org.spongepowered.api.data.DataView): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + // @ts-ignore + setData(manipulator: org.spongepowered.api.data.manipulator.DataManipulator): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + // @ts-ignore + set(value: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + // @ts-ignore + set(key: org.spongepowered.api.data.key.Key, value: any): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + /** + * Creates a new {@link TileEntityArchetype} from this builder. + */ + // @ts-ignore + build(): org.spongepowered.api.block.tileentity.TileEntityArchetype; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.TileEntityArchetype.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.TileEntityArchetype.ts new file mode 100644 index 00000000..d98149d6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.TileEntityArchetype.ts @@ -0,0 +1,45 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface TileEntityArchetype extends org.spongepowered.api.data.Archetype { + /** + * Creates a {@link Builder} to get {@link TileEntityArchetype}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + /** + * Gets the block state for this archetype. Note that this state is + * unchangeable, as much as {@link #getTileEntityType()} is. The underlying + * data is mutable, but all the data is heavily tied to the tile entity + * type. + */ + // @ts-ignore + getState(): org.spongepowered.api.block.BlockState; + /** + * Gets the {@link TileEntityType} for this archetype. + */ + // @ts-ignore + getTileEntityType(): org.spongepowered.api.block.tileentity.TileEntityType; + /** + * Gets the raw {@link TileEntity} data that would be applied to the + * generated tile entity. Note that this is a copied container. + */ + // @ts-ignore + getTileData(): org.spongepowered.api.data.DataContainer; + /** + * Sets the raw data for the desired {@link TileEntity}. Note that position + * values are not used as those are dependent on usage. + */ + // @ts-ignore + setRawData(container: org.spongepowered.api.data.DataView): void; + // @ts-ignore + copy(): org.spongepowered.api.block.tileentity.TileEntityArchetype; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.TileEntityType.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.TileEntityType.ts new file mode 100644 index 00000000..a2106e10 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.TileEntityType.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface TileEntityType extends org.spongepowered.api.CatalogType { + /** + * Returns the tile entity class for this type. + */ + // @ts-ignore + getTileEntityType(): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.TileEntityTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.TileEntityTypes.ts new file mode 100644 index 00000000..0f91a632 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.TileEntityTypes.ts @@ -0,0 +1,61 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + class TileEntityTypes { + // @ts-ignore + public static BANNER: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static BEACON: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static BREWING_STAND: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static CHEST: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static COMMAND_BLOCK: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static COMPARATOR: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static DAYLIGHT_DETECTOR: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static DISPENSER: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static DROPPER: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static ENCHANTMENT_TABLE: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static ENDER_CHEST: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static END_GATEWAY: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static END_PORTAL: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static FLOWER_POT: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static FURNACE: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static HOPPER: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static JUKEBOX: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static MOB_SPAWNER: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static NOTE: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static PISTON: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static SHULKER_BOX: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static SIGN: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static SKULL: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static STRUCTURE: org.spongepowered.api.block.tileentity.TileEntityType; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.Beacon.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.Beacon.ts new file mode 100644 index 00000000..4facc37a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.Beacon.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace carrier { + // @ts-ignore + interface Beacon extends org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier { + /** + * Gets the number of completed levels of valid beacon structure blocks + * beneath this beacon. + */ + // @ts-ignore + getCompletedLevels(): number; + /** + * Gets the current {@link BeaconData} for this beacon. + */ + // @ts-ignore + getBeaconData(): org.spongepowered.api.data.manipulator.mutable.tileentity.BeaconData; + /** + * Gets the {@link OptionalValue} for the primary + * {@link PotionEffectType}. + */ + // @ts-ignore + primaryEffect(): org.spongepowered.api.data.value.mutable.OptionalValue; + /** + * Gets the {@link OptionalValue} for the secondary + * {@link PotionEffectType}. + */ + // @ts-ignore + secondaryEffect(): org.spongepowered.api.data.value.mutable.OptionalValue; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.BrewingStand.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.BrewingStand.ts new file mode 100644 index 00000000..cb474f85 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.BrewingStand.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace carrier { + // @ts-ignore + interface BrewingStand extends org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier { + /** + * Attempts to brew the current potions if possible. + *This will work if there is a compatible recipe.
+ */ + // @ts-ignore + brew(): boolean; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.Chest.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.Chest.ts new file mode 100644 index 00000000..30dcb236 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.Chest.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace carrier { + // @ts-ignore + interface Chest extends org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier { + /** + * Returns the inventory representing the combination of this chest + * and its neighbor (which form a double chest), if available. + *If this chest is not part of a double chest, then this method + * will return {@link Optional#empty()}.
+ */ + // @ts-ignore + getDoubleChestInventory(): any; + /** + * Returns the connected {@link Chest}s, if available. + */ + // @ts-ignore + getConnectedChests(): any[] /*java.util.Set*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.Dispenser.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.Dispenser.ts new file mode 100644 index 00000000..98d40c63 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.Dispenser.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace carrier { + // @ts-ignore + interface Dispenser extends org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier, org.spongepowered.api.entity.projectile.source.BlockProjectileSource { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.Dropper.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.Dropper.ts new file mode 100644 index 00000000..10fffd00 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.Dropper.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace carrier { + // @ts-ignore + interface Dropper extends org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.Furnace.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.Furnace.ts new file mode 100644 index 00000000..a620f47a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.Furnace.ts @@ -0,0 +1,49 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace carrier { + // @ts-ignore + interface Furnace extends org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier { + /** + * Attempts to smelt the current items if possible. + *This will work if there is a compatible recipe.
+ */ + // @ts-ignore + smelt(): boolean; + /** + * Gets this furnace's {@link FurnaceData}. + */ + // @ts-ignore + getFurnaceData(): org.spongepowered.api.data.manipulator.mutable.tileentity.FurnaceData; + /** + * Gets the {@link MutableBoundedValue} for the already passed burn time. + */ + // @ts-ignore + passedBurnTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the maximum amount of fuel that + * can be supplied with the used fuel item. + */ + // @ts-ignore + maxBurnTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the already passed cook time of + * the item stack in this furnace. + */ + // @ts-ignore + passedCookTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the total time the item stack + * has to cook until it is cooked. + */ + // @ts-ignore + maxCookTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.Hopper.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.Hopper.ts new file mode 100644 index 00000000..78db9f36 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.Hopper.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace carrier { + // @ts-ignore + interface Hopper extends org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier { + /** + * Requests this {@link Hopper} to transfer an item to the next carrier. + *Since {@link Hopper}s normally send items to other + * {@link TileEntityCarrier}s adjacent to themselves, if there is no + * available carrier to send an item to, this will perform nothing.
+ */ + // @ts-ignore + transferItem(): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.ShulkerBox.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.ShulkerBox.ts new file mode 100644 index 00000000..b4e09b13 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.ShulkerBox.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace carrier { + // @ts-ignore + interface ShulkerBox extends org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier { + /** + * Gets a copy of the {@link DyeableData} representing the color of this + * {@link ShulkerBox}. + */ + // @ts-ignore + getDyeData(): org.spongepowered.api.data.manipulator.mutable.DyeableData; + /** + * Gets the current {@link Value} of {@link DyeColor} for this + * {@link ShulkerBox}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier.ts b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier.ts new file mode 100644 index 00000000..776da68a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace carrier { + // @ts-ignore + interface TileEntityCarrier extends org.spongepowered.api.block.tileentity.TileEntity, org.spongepowered.api.item.inventory.BlockCarrier { + // @ts-ignore + getInventory(): org.spongepowered.api.item.inventory.type.TileEntityInventory; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.trait.BlockTrait.ts b/packages/sponge/src/typings/org.spongepowered.api.block.trait.BlockTrait.ts new file mode 100644 index 00000000..2e8a2a2f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.block.trait.BlockTrait.ts @@ -0,0 +1,43 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace trait { + // @ts-ignore + interface BlockTrait extends org.spongepowered.api.CatalogType { + /** + * Gets the name of this {@link BlockTrait}. + */ + // @ts-ignore + getName(): string; + /** + * Gets all possible values for a specific {@link BlockTrait}. The + * included values may not be in any particular order. The returned + * {@link Collection} should be considered immutable. + */ + // @ts-ignore + getPossibleValues(): any[] /*java.util.Collection*/; + /** + * Gets the class type of the {@link BlockTrait}'s values. + */ + // @ts-ignore + getValueClass(): any; + /** + * Gets the {@link Predicate} used to determine valid values for this. + * {@link BlockTrait}. Any "value" that returnstrue
when
+ * {@link Predicate#test(Object)} is called is valid. The
+ * {@link Predicate} is specific to this trait.
+ */
+ // @ts-ignore
+ getPredicate(): any;
+ /**
+ * Attempts to parse the provided value as a value dictated possible by this trait or {@link Optional#empty()} otherwise.
+ */
+ // @ts-ignore
+ parseValue(value: string): any;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.trait.BooleanTrait.ts b/packages/sponge/src/typings/org.spongepowered.api.block.trait.BooleanTrait.ts
new file mode 100644
index 00000000..63523f3b
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.block.trait.BooleanTrait.ts
@@ -0,0 +1,13 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace block {
+ namespace trait {
+ // @ts-ignore
+ interface BooleanTrait extends org.spongepowered.api.block.trait.BlockTrait {
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.trait.BooleanTraits.ts b/packages/sponge/src/typings/org.spongepowered.api.block.trait.BooleanTraits.ts
new file mode 100644
index 00000000..3acb2834
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.block.trait.BooleanTraits.ts
@@ -0,0 +1,281 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace block {
+ namespace trait {
+ // @ts-ignore
+ class BooleanTraits {
+ // @ts-ignore
+ public static ACACIA_DOOR_OPEN: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static ACACIA_DOOR_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static ACACIA_FENCE_EAST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static ACACIA_FENCE_GATE_IN_WALL: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static ACACIA_FENCE_GATE_OPEN: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static ACACIA_FENCE_GATE_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static ACACIA_FENCE_NORTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static ACACIA_FENCE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static ACACIA_FENCE_WEST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static ACTIVATOR_RAIL_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static BED_OCCUPIED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static BIRCH_DOOR_OPEN: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static BIRCH_DOOR_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static BIRCH_FENCE_EAST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static BIRCH_FENCE_GATE_IN_WALL: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static BIRCH_FENCE_GATE_OPEN: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static BIRCH_FENCE_GATE_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static BIRCH_FENCE_NORTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static BIRCH_FENCE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static BIRCH_FENCE_WEST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static BREWING_STAND_HAS_BOTTLE_0: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static BREWING_STAND_HAS_BOTTLE_1: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static BREWING_STAND_HAS_BOTTLE_2: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static COBBLESTONE_WALL_EAST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static COBBLESTONE_WALL_NORTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static COBBLESTONE_WALL_SOUTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static COBBLESTONE_WALL_UP: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static COBBLESTONE_WALL_WEST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static DARK_OAK_DOOR_OPEN: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static DARK_OAK_DOOR_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static DARK_OAK_FENCE_EAST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static DARK_OAK_FENCE_GATE_IN_WALL: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static DARK_OAK_FENCE_GATE_OPEN: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static DARK_OAK_FENCE_GATE_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static DARK_OAK_FENCE_NORTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static DARK_OAK_FENCE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static DARK_OAK_FENCE_WEST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static DETECTOR_RAIL_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static DIRT_SNOWY: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static DISPENSER_TRIGGERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static DOUBLE_STONE_SLAB2_SEAMLESS: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static DOUBLE_STONE_SLAB_SEAMLESS: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static DROPPER_TRIGGERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static END_PORTAL_FRAME_EYE: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static FENCE_EAST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static FENCE_GATE_IN_WALL: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static FENCE_GATE_OPEN: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static FENCE_GATE_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static FENCE_NORTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static FENCE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static FENCE_WEST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static FIRE_EAST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static FIRE_NORTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static FIRE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static FIRE_UP: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static FIRE_WEST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static GLASS_PANE_EAST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static GLASS_PANE_NORTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static GLASS_PANE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static GLASS_PANE_WEST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static GOLDEN_RAIL_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static GRASS_SNOWY: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static HOPPER_ENABLED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static IRON_BARS_EAST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static IRON_BARS_NORTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static IRON_BARS_SOUTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static IRON_BARS_WEST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static IRON_DOOR_OPEN: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static IRON_DOOR_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static IRON_TRAPDOOR_OPEN: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static JUKEBOX_HAS_RECORD: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static JUNGLE_DOOR_OPEN: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static JUNGLE_DOOR_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static JUNGLE_FENCE_EAST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static JUNGLE_FENCE_GATE_IN_WALL: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static JUNGLE_FENCE_GATE_OPEN: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static JUNGLE_FENCE_GATE_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static JUNGLE_FENCE_NORTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static JUNGLE_FENCE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static JUNGLE_FENCE_WEST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static LEAVES2_CHECK_DECAY: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static LEAVES2_DECAYABLE: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static LEAVES_CHECK_DECAY: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static LEAVES_DECAYABLE: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static LEVER_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static MYCELIUM_SNOWY: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static NETHER_BRICK_FENCE_EAST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static NETHER_BRICK_FENCE_NORTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static NETHER_BRICK_FENCE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static NETHER_BRICK_FENCE_WEST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static PISTON_EXTENDED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static PISTON_HEAD_SHORT: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static POWERED_COMPARATOR_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static POWERED_REPEATER_LOCKED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static SKULL_NODROP: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static SPONGE_WET: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static SPRUCE_DOOR_OPEN: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static SPRUCE_DOOR_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static SPRUCE_FENCE_EAST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static SPRUCE_FENCE_GATE_IN_WALL: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static SPRUCE_FENCE_GATE_OPEN: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static SPRUCE_FENCE_GATE_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static SPRUCE_FENCE_NORTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static SPRUCE_FENCE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static SPRUCE_FENCE_WEST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static STAINED_GLASS_PANE_EAST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static STAINED_GLASS_PANE_NORTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static STAINED_GLASS_PANE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static STAINED_GLASS_PANE_WEST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static STICKY_PISTON_EXTENDED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static STONE_BUTTON_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static STONE_PRESSURE_PLATE_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static TNT_EXPLODE: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static TRAPDOOR_OPEN: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static TRIPWIRE_ATTACHED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static TRIPWIRE_DISARMED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static TRIPWIRE_EAST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static TRIPWIRE_HOOK_ATTACHED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static TRIPWIRE_HOOK_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static TRIPWIRE_NORTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static TRIPWIRE_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static TRIPWIRE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static TRIPWIRE_WEST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static UNPOWERED_COMPARATOR_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static UNPOWERED_REPEATER_LOCKED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static VINE_EAST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static VINE_NORTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static VINE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static VINE_UP: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static VINE_WEST: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static WOODEN_BUTTON_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static WOODEN_DOOR_OPEN: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static WOODEN_DOOR_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ // @ts-ignore
+ public static WOODEN_PRESSURE_PLATE_POWERED: org.spongepowered.api.block.trait.BooleanTrait;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.trait.EnumTrait.ts b/packages/sponge/src/typings/org.spongepowered.api.block.trait.EnumTrait.ts
new file mode 100644
index 00000000..cd2e20ea
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.block.trait.EnumTrait.ts
@@ -0,0 +1,13 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace block {
+ namespace trait {
+ // @ts-ignore
+ interface EnumTrait extends org.spongepowered.api.block.trait.BlockTrait {
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.trait.EnumTraits.ts b/packages/sponge/src/typings/org.spongepowered.api.block.trait.EnumTraits.ts
new file mode 100644
index 00000000..8babc154
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.block.trait.EnumTraits.ts
@@ -0,0 +1,333 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace block {
+ namespace trait {
+ // @ts-ignore
+ class EnumTraits {
+ // @ts-ignore
+ public static ACACIA_DOOR_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static ACACIA_DOOR_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static ACACIA_DOOR_HINGE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static ACACIA_FENCE_GATE_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static ACACIA_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static ACACIA_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static ACACIA_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static ACTIVATOR_RAIL_SHAPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static ANVIL_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static BED_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static BED_PART: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static BIRCH_DOOR_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static BIRCH_DOOR_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static BIRCH_DOOR_HINGE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static BIRCH_FENCE_GATE_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static BIRCH_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static BIRCH_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static BIRCH_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static BRICK_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static BRICK_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static BRICK_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static BROWN_MUSHROOM_BLOCK_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static CARPET_COLOR: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static CHEST_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static COBBLESTONE_WALL_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static COCOA_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static DARK_OAK_DOOR_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static DARK_OAK_DOOR_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static DARK_OAK_DOOR_HINGE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static DARK_OAK_FENCE_GATE_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static DARK_OAK_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static DARK_OAK_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static DARK_OAK_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static DETECTOR_RAIL_SHAPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static DIRT_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static DISPENSER_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static DOUBLE_PLANT_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static DOUBLE_PLANT_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static DOUBLE_STONE_SLAB2_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static DOUBLE_STONE_SLAB_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static DOUBLE_WOODEN_SLAB_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static DROPPER_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static ENDER_CHEST_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static END_PORTAL_FRAME_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static FENCE_GATE_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static FLOWER_POT_CONTENTS: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static FURNACE_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static GOLDEN_RAIL_SHAPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static HAY_BLOCK_AXIS: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static HOPPER_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static IRON_DOOR_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static IRON_DOOR_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static IRON_DOOR_HINGE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static IRON_TRAPDOOR_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static IRON_TRAPDOOR_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static JUNGLE_DOOR_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static JUNGLE_DOOR_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static JUNGLE_DOOR_HINGE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static JUNGLE_FENCE_GATE_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static JUNGLE_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static JUNGLE_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static JUNGLE_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static LADDER_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static LEAVES2_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static LEAVES_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static LEVER_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static LIT_FURNACE_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static LIT_PUMPKIN_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static LOG2_AXIS: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static LOG2_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static LOG_AXIS: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static LOG_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static MELON_STEM_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static MONSTER_EGG_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static NETHER_BRICK_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static NETHER_BRICK_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static NETHER_BRICK_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static OAK_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static OAK_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static OAK_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static PISTON_EXTENSION_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static PISTON_EXTENSION_TYPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static PISTON_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static PISTON_HEAD_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static PISTON_HEAD_TYPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static PLANKS_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static PORTAL_AXIS: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static POWERED_COMPARATOR_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static POWERED_COMPARATOR_MODE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static POWERED_REPEATER_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static PRISMARINE_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static PUMPKIN_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static PUMPKIN_STEM_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static QUARTZ_BLOCK_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static QUARTZ_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static QUARTZ_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static QUARTZ_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static RAIL_SHAPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static REDSTONE_TORCH_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static REDSTONE_WIRE_EAST: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static REDSTONE_WIRE_NORTH: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static REDSTONE_WIRE_SOUTH: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static REDSTONE_WIRE_WEST: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static RED_FLOWER_TYPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static RED_MUSHROOM_BLOCK_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static RED_SANDSTONE_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static RED_SANDSTONE_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static RED_SANDSTONE_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static RED_SANDSTONE_TYPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static SANDSTONE_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static SANDSTONE_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static SANDSTONE_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static SANDSTONE_TYPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static SAND_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static SAPLING_TYPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static SKULL_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static SPRUCE_DOOR_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static SPRUCE_DOOR_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static SPRUCE_DOOR_HINGE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static SPRUCE_FENCE_GATE_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static SPRUCE_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static SPRUCE_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static SPRUCE_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static STAINED_GLASS_COLOR: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static STAINED_GLASS_PANE_COLOR: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static STAINED_HARDENED_CLAY_COLOR: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static STICKY_PISTON_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static STONEBRICK_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static STONE_BRICK_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static STONE_BRICK_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static STONE_BRICK_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static STONE_BUTTON_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static STONE_SLAB2_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static STONE_SLAB2_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static STONE_SLAB_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static STONE_SLAB_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static STONE_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static STONE_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static STONE_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static STONE_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static TALLGRASS_TYPE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static TORCH_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static TRAPDOOR_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static TRAPDOOR_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static TRAPPED_CHEST_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static TRIPWIRE_HOOK_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static UNLIT_REDSTONE_TORCH_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static UNPOWERED_COMPARATOR_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static UNPOWERED_COMPARATOR_MODE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static UNPOWERED_REPEATER_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static WALL_BANNER_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static WALL_SIGN_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static WOODEN_BUTTON_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static WOODEN_DOOR_FACING: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static WOODEN_DOOR_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static WOODEN_DOOR_HINGE: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static WOODEN_SLAB_HALF: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static WOODEN_SLAB_VARIANT: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static WOOL_COLOR: org.spongepowered.api.block.trait.EnumTrait;
+ // @ts-ignore
+ public static YELLOW_FLOWER_TYPE: org.spongepowered.api.block.trait.EnumTrait;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.trait.IntegerTrait.ts b/packages/sponge/src/typings/org.spongepowered.api.block.trait.IntegerTrait.ts
new file mode 100644
index 00000000..285e1f31
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.block.trait.IntegerTrait.ts
@@ -0,0 +1,13 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace block {
+ namespace trait {
+ // @ts-ignore
+ interface IntegerTrait extends org.spongepowered.api.block.trait.BlockTrait {
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.block.trait.IntegerTraits.ts b/packages/sponge/src/typings/org.spongepowered.api.block.trait.IntegerTraits.ts
new file mode 100644
index 00000000..9461b3bc
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.block.trait.IntegerTraits.ts
@@ -0,0 +1,75 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace block {
+ namespace trait {
+ // @ts-ignore
+ class IntegerTraits {
+ // @ts-ignore
+ public static ANVIL_DAMAGE: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static BEETROOT_AGE: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static CACTUS_AGE: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static CAKE_BITES: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static CARROTS_AGE: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static CAULDRON_LEVEL: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static COCOA_AGE: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static DAYLIGHT_DETECTOR_INVERTED_POWER: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static DAYLIGHT_DETECTOR_POWER: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static FARMLAND_MOISTURE: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static FIRE_AGE: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static FLOWER_POT_LEGACY_DATA: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static FLOWING_LAVA_LEVEL: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static FLOWING_WATER_LEVEL: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static HEAVY_WEIGHTED_PRESSURE_PLATE_POWER: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static LAVA_LEVEL: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static LIGHT_WEIGHTED_PRESSURE_PLATE_POWER: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static MELON_STEM_AGE: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static NETHER_WART_AGE: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static POTATOES_AGE: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static POWERED_REPEATER_DELAY: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static PUMPKIN_STEM_AGE: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static REDSTONE_WIRE_POWER: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static REEDS_AGE: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static SAPLING_STAGE: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static SNOW_LAYER_LAYERS: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static STANDING_BANNER_ROTATION: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static STANDING_SIGN_ROTATION: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static UNPOWERED_REPEATER_DELAY: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static WATER_LEVEL: org.spongepowered.api.block.trait.IntegerTrait;
+ // @ts-ignore
+ public static WHEAT_AGE: org.spongepowered.api.block.trait.IntegerTrait;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.boss.BossBar.ts b/packages/sponge/src/typings/org.spongepowered.api.boss.BossBar.ts
new file mode 100644
index 00000000..f725367c
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.boss.BossBar.ts
@@ -0,0 +1,82 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace boss {
+ // @ts-ignore
+ interface BossBar extends org.spongepowered.api.util.Identifiable {
+ /**
+ * Gets the name of this boss bar.
+ */
+ // @ts-ignore
+ getName(): org.spongepowered.api.text.Text;
+ /**
+ * Sets the name of this boss bar.
+ */
+ // @ts-ignore
+ setName(name: org.spongepowered.api.text.Text): org.spongepowered.api.boss.BossBar;
+ /**
+ * Gets the percent.
+ */
+ // @ts-ignore
+ getPercent(): number;
+ /**
+ * Sets the percent.
+ * The percent must be between {@code 0.0} and {@code 1.0}.
+ */ + // @ts-ignore + setPercent(percent: number): org.spongepowered.api.boss.BossBar; + /** + * Gets the color. + */ + // @ts-ignore + getColor(): org.spongepowered.api.boss.BossBarColor; + /** + * Sets the color. + */ + // @ts-ignore + setColor(color: org.spongepowered.api.boss.BossBarColor): org.spongepowered.api.boss.BossBar; + /** + * Gets the overlay. + */ + // @ts-ignore + getOverlay(): org.spongepowered.api.boss.BossBarOverlay; + /** + * Sets the overlay. + */ + // @ts-ignore + setOverlay(overlay: org.spongepowered.api.boss.BossBarOverlay): org.spongepowered.api.boss.BossBar; + /** + * If the sky should darken. + */ + // @ts-ignore + shouldDarkenSky(): boolean; + /** + * Sets if the sky should darken. + */ + // @ts-ignore + setDarkenSky(darkenSky: boolean): org.spongepowered.api.boss.BossBar; + /** + * If the end boss music should be played. + */ + // @ts-ignore + shouldPlayEndBossMusic(): boolean; + /** + * Sets if the end boss music should be played. + */ + // @ts-ignore + setPlayEndBossMusic(playEndBossMusic: boolean): org.spongepowered.api.boss.BossBar; + /** + * If fog should be created. + */ + // @ts-ignore + shouldCreateFog(): boolean; + /** + * Sets if fog should be created. + */ + // @ts-ignore + setCreateFog(createFog: boolean): org.spongepowered.api.boss.BossBar; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.boss.BossBarColor.ts b/packages/sponge/src/typings/org.spongepowered.api.boss.BossBarColor.ts new file mode 100644 index 00000000..2801dce6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.boss.BossBarColor.ts @@ -0,0 +1,11 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace boss { + // @ts-ignore + interface BossBarColor extends org.spongepowered.api.CatalogType { + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.boss.BossBarColors.ts b/packages/sponge/src/typings/org.spongepowered.api.boss.BossBarColors.ts new file mode 100644 index 00000000..c4a92767 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.boss.BossBarColors.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace boss { + // @ts-ignore + class BossBarColors { + // @ts-ignore + public static BLUE: org.spongepowered.api.boss.BossBarColor; + // @ts-ignore + public static GREEN: org.spongepowered.api.boss.BossBarColor; + // @ts-ignore + public static PINK: org.spongepowered.api.boss.BossBarColor; + // @ts-ignore + public static PURPLE: org.spongepowered.api.boss.BossBarColor; + // @ts-ignore + public static RED: org.spongepowered.api.boss.BossBarColor; + // @ts-ignore + public static WHITE: org.spongepowered.api.boss.BossBarColor; + // @ts-ignore + public static YELLOW: org.spongepowered.api.boss.BossBarColor; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.boss.BossBarOverlay.ts b/packages/sponge/src/typings/org.spongepowered.api.boss.BossBarOverlay.ts new file mode 100644 index 00000000..d63aff08 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.boss.BossBarOverlay.ts @@ -0,0 +1,11 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace boss { + // @ts-ignore + interface BossBarOverlay extends org.spongepowered.api.CatalogType { + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.boss.BossBarOverlays.ts b/packages/sponge/src/typings/org.spongepowered.api.boss.BossBarOverlays.ts new file mode 100644 index 00000000..46b54f95 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.boss.BossBarOverlays.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace boss { + // @ts-ignore + class BossBarOverlays { + // @ts-ignore + public static NOTCHED_10: org.spongepowered.api.boss.BossBarOverlay; + // @ts-ignore + public static NOTCHED_12: org.spongepowered.api.boss.BossBarOverlay; + // @ts-ignore + public static NOTCHED_20: org.spongepowered.api.boss.BossBarOverlay; + // @ts-ignore + public static NOTCHED_6: org.spongepowered.api.boss.BossBarOverlay; + // @ts-ignore + public static PROGRESS: org.spongepowered.api.boss.BossBarOverlay; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.boss.ServerBossBar.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.boss.ServerBossBar.Builder.ts new file mode 100644 index 00000000..db8b8e31 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.boss.ServerBossBar.Builder.ts @@ -0,0 +1,59 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace boss { + namespace ServerBossBar { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the name of the boss bar. + */ + // @ts-ignore + name(name: org.spongepowered.api.text.Text): org.spongepowered.api.boss.ServerBossBar.Builder; + /** + * Sets the percent. + *The percent must be between {@code 0.0} and {@code 1.0}.
+ */ + // @ts-ignore + percent(percent: number): org.spongepowered.api.boss.ServerBossBar.Builder; + /** + * Sets the color. + */ + // @ts-ignore + color(color: org.spongepowered.api.boss.BossBarColor): org.spongepowered.api.boss.ServerBossBar.Builder; + /** + * Sets the overlay. + */ + // @ts-ignore + overlay(overlay: org.spongepowered.api.boss.BossBarOverlay): org.spongepowered.api.boss.ServerBossBar.Builder; + /** + * Sets if the sky should darken. + */ + // @ts-ignore + darkenSky(darkenSky: boolean): org.spongepowered.api.boss.ServerBossBar.Builder; + /** + * Sets if the end boss music should be played. + */ + // @ts-ignore + playEndBossMusic(playEndBossMusic: boolean): org.spongepowered.api.boss.ServerBossBar.Builder; + /** + * Sets if fog should be created. + */ + // @ts-ignore + createFog(createFog: boolean): org.spongepowered.api.boss.ServerBossBar.Builder; + /** + * Sets if the boss bar is visible. + */ + // @ts-ignore + visible(visible: boolean): org.spongepowered.api.boss.ServerBossBar.Builder; + /** + * Build the boss bar from the values in this builder. + */ + // @ts-ignore + build(): org.spongepowered.api.boss.ServerBossBar; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.boss.ServerBossBar.ts b/packages/sponge/src/typings/org.spongepowered.api.boss.ServerBossBar.ts new file mode 100644 index 00000000..70391007 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.boss.ServerBossBar.ts @@ -0,0 +1,65 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace boss { + // @ts-ignore + interface ServerBossBar extends org.spongepowered.api.boss.BossBar { + /** + * Creates a new {@link Builder} to create {@link ServerBossBar}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.boss.ServerBossBar.Builder; + // @ts-ignore + setName(name: org.spongepowered.api.text.Text): org.spongepowered.api.boss.ServerBossBar; + // @ts-ignore + setPercent(percent: number): org.spongepowered.api.boss.ServerBossBar; + // @ts-ignore + setColor(color: org.spongepowered.api.boss.BossBarColor): org.spongepowered.api.boss.ServerBossBar; + // @ts-ignore + setOverlay(overlay: org.spongepowered.api.boss.BossBarOverlay): org.spongepowered.api.boss.ServerBossBar; + // @ts-ignore + setDarkenSky(darkenSky: boolean): org.spongepowered.api.boss.ServerBossBar; + // @ts-ignore + setPlayEndBossMusic(playEndBossMusic: boolean): org.spongepowered.api.boss.ServerBossBar; + // @ts-ignore + setCreateFog(createFog: boolean): org.spongepowered.api.boss.ServerBossBar; + /** + * If this boss bar is visible. + */ + // @ts-ignore + isVisible(): boolean; + /** + * Sets if this boss bar is visible. + */ + // @ts-ignore + setVisible(visible: boolean): org.spongepowered.api.boss.ServerBossBar; + /** + * Gets a collection of all players on this boss bar. + */ + // @ts-ignore + getPlayers(): any[] /*java.util.Collection*/; + /** + * Adds a player to this boss bar. + */ + // @ts-ignore + addPlayer(player: org.spongepowered.api.entity.living.player.Player): org.spongepowered.api.boss.ServerBossBar; + /** + * Adds a collection of players to this boss bar. + */ + // @ts-ignore + addPlayers(players: any[] /*java.util.Collection*/): org.spongepowered.api.boss.ServerBossBar; + /** + * Removes a player from this boss bar. + */ + // @ts-ignore + removePlayer(player: org.spongepowered.api.entity.living.player.Player): org.spongepowered.api.boss.ServerBossBar; + /** + * Removes a collection of players from this boss bar. + */ + // @ts-ignore + removePlayers(players: any[] /*java.util.Collection*/): org.spongepowered.api.boss.ServerBossBar; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.CommandCallable.ts b/packages/sponge/src/typings/org.spongepowered.api.command.CommandCallable.ts new file mode 100644 index 00000000..32ce498d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.CommandCallable.ts @@ -0,0 +1,59 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + interface CommandCallable { + /** + * Execute the command based on input arguments. + *The implementing class must perform the necessary permission + * checks.
+ */ + // @ts-ignore + process(source: org.spongepowered.api.command.CommandSource, arguments: string): org.spongepowered.api.command.CommandResult; + /** + * Gets a list of suggestions based on input. + *If a suggestion is chosen by the user, it will replace the last + * word.
+ */ + // @ts-ignore + getSuggestions(source: org.spongepowered.api.command.CommandSource, arguments: string, targetPosition: org.spongepowered.api.world.Location): any[] /*java.util.List*/; + /** + * Test whether this command can probably be executed by the given source. + *If implementations are unsure if the command can be executed by + * the source, {@code true} should be returned. Return values of this method + * may be used to determine whether this command is listed in command + * listings.
+ */ + // @ts-ignore + testPermission(source: org.spongepowered.api.command.CommandSource): boolean; + /** + * Gets a short one-line description of this command. + *The help system may display the description in the command list.
+ */ + // @ts-ignore + getShortDescription(source: org.spongepowered.api.command.CommandSource): any; + /** + * Gets a longer formatted help message about this command. + *It is recommended to use the default text color and style. Sections + * with text actions (e.g. hyperlinks) should be underlined.
+ *Multi-line messages can be created by separating the lines with + * {@code \n}.
+ *The help system may display this message when a source requests + * detailed information about a command.
+ */ + // @ts-ignore + getHelp(source: org.spongepowered.api.command.CommandSource): any; + /** + * Gets the usage string of this command. + *A usage string may look like + * {@code [-w <world>] <var1> <var2>}.
+ *The string must not contain the command alias.
+ */ + // @ts-ignore + getUsage(source: org.spongepowered.api.command.CommandSource): org.spongepowered.api.text.Text; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.CommandException.ts b/packages/sponge/src/typings/org.spongepowered.api.command.CommandException.ts new file mode 100644 index 00000000..4912d9c0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.CommandException.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + class CommandException extends org.spongepowered.api.util.TextMessageException { + /** + * Constructs a new {@link CommandException} with the given message. + */ + constructor(message: org.spongepowered.api.text.Text) + /** + * Constructs a new {@link CommandException} with the given message and + * the given cause. + */ + constructor(message: org.spongepowered.api.text.Text, cause: any) + /** + * Constructs a new {@link CommandException} with the given message. + */ + constructor(message: org.spongepowered.api.text.Text, includeUsage: boolean) + /** + * Constructs a new {@link CommandException} with the given message and + * the given cause. + */ + constructor(message: org.spongepowered.api.text.Text, cause: any, includeUsage: boolean) + /** + * Gets whether the exception should include usage in + * the presentation of the exception/stack-trace. + */ + // @ts-ignore + public shouldIncludeUsage(): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.CommandManager.ts b/packages/sponge/src/typings/org.spongepowered.api.command.CommandManager.ts new file mode 100644 index 00000000..3615c805 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.CommandManager.ts @@ -0,0 +1,86 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + interface CommandManager extends org.spongepowered.api.command.dispatcher.Dispatcher { + /** + * Register a given command using the given list of aliases. + *If there is a conflict with one of the aliases (i.e. that alias + * is already assigned to another command), then the alias will be skipped. + * It is possible for there to be no alias to be available out of + * the provided list of aliases, which would mean that the command would not + * be assigned to any aliases.
+ *The first non-conflicted alias becomes the "primary alias."
+ */ + // @ts-ignore + register(plugin: any, callable: org.spongepowered.api.command.CommandCallable, alias: string): any; + /** + * Register a given command using the given list of aliases. + *If there is a conflict with one of the aliases (i.e. that alias + * is already assigned to another command), then the alias will be skipped. + * It is possible for there to be no alias to be available out of + * the provided list of aliases, which would mean that the command would + * not be assigned to any aliases.
+ *The first non-conflicted alias becomes the "primary alias."
+ */ + // @ts-ignore + register(plugin: any, callable: org.spongepowered.api.command.CommandCallable, aliases: any[] /*java.util.List*/): any; + /** + * Register a given command using a given list of aliases. + *The provided callback function will be called with a list of aliases + * that are not taken (from the list of aliases that were requested) and + * it should return a list of aliases to actually register. Aliases may be + * removed, and if no aliases remain, then the command will not be + * registered. It may be possible that no aliases are available, and thus + * the callback would receive an empty list. New aliases should not be added + * to the list in the callback as this may cause + * {@link IllegalArgumentException} to be thrown.
+ *The first non-conflicted alias becomes the "primary alias."
+ */ + // @ts-ignore + register(plugin: any, callable: org.spongepowered.api.command.CommandCallable, aliases: any[] /*java.util.List*/, callback: any): any; + /** + * Remove a command identified by the given mapping. + */ + // @ts-ignore + removeMapping(mapping: org.spongepowered.api.command.CommandMapping): any; + /** + * Gets a set of plugin containers that have commands registered. + */ + // @ts-ignore + getPluginContainers(): any[] /*java.util.Set*/; + /** + * Gets a set of commands owned by the given plugin instance. + */ + // @ts-ignore + getOwnedBy(instance: any): any[] /*java.util.Set*/; + /** + * Gets the owner of a CommandMapping, if any is present. + */ + // @ts-ignore + getOwner(mapping: org.spongepowered.api.command.CommandMapping): any; + /** + * Gets the number of registered aliases. + */ + // @ts-ignore + size(): number; + /** + * Execute the command based on input arguments. + *The implementing class must perform the necessary permission + * checks.
+ */ + // @ts-ignore + process(source: org.spongepowered.api.command.CommandSource, arguments: string): org.spongepowered.api.command.CommandResult; + /** + * Gets a list of suggestions based on input. + *If a suggestion is chosen by the user, it will replace the last + * word.
+ */ + // @ts-ignore + getSuggestions(source: org.spongepowered.api.command.CommandSource, arguments: string, targetPosition: org.spongepowered.api.world.Location): any[] /*java.util.List*/; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.CommandMapping.ts b/packages/sponge/src/typings/org.spongepowered.api.command.CommandMapping.ts new file mode 100644 index 00000000..f65ee6e5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.CommandMapping.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + interface CommandMapping { + /** + * Gets the primary alias. + */ + // @ts-ignore + getPrimaryAlias(): string; + /** + * Gets an immutable list of all aliases. + *The returned list must contain at least one entry, of which one must + * be the one returned by {@link #getPrimaryAlias()}.
+ *There may be several versions of the same alias with different + * casing, although generally implementations should ignore the casing + * of aliases.
+ */ + // @ts-ignore + getAllAliases(): any[] /*java.util.Set*/; + /** + * Gets the callable. + */ + // @ts-ignore + getCallable(): org.spongepowered.api.command.CommandCallable; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.CommandMessageFormatting.ts b/packages/sponge/src/typings/org.spongepowered.api.command.CommandMessageFormatting.ts new file mode 100644 index 00000000..1630d545 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.CommandMessageFormatting.ts @@ -0,0 +1,34 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + class CommandMessageFormatting { + // @ts-ignore + public static PIPE_TEXT: org.spongepowered.api.text.Text; + // @ts-ignore + public static SPACE_TEXT: org.spongepowered.api.text.Text; + // @ts-ignore + public static STAR_TEXT: org.spongepowered.api.text.Text; + // @ts-ignore + public static LT_TEXT: org.spongepowered.api.text.Text; + // @ts-ignore + public static GT_TEXT: org.spongepowered.api.text.Text; + // @ts-ignore + public static ELLIPSIS_TEXT: org.spongepowered.api.text.Text; + /** + * Format text to be output as an error directly to a sender. Not necessary + * when creating an exception to be thrown + */ + // @ts-ignore + public static error(error: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text; + /** + * Format text to be output as a debug message directly to a sender. + */ + // @ts-ignore + public static debug(debug: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.CommandNotFoundException.ts b/packages/sponge/src/typings/org.spongepowered.api.command.CommandNotFoundException.ts new file mode 100644 index 00000000..a77723e9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.CommandNotFoundException.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + class CommandNotFoundException extends org.spongepowered.api.command.CommandException { + /** + * Create an exception with the default message. + */ + constructor(command: string) + /** + * Create an exception with a custom message. + */ + constructor(message: org.spongepowered.api.text.Text, command: string) + /** + * Returns the command that was queried for. + */ + // @ts-ignore + public getCommand(): string; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.CommandPermissionException.ts b/packages/sponge/src/typings/org.spongepowered.api.command.CommandPermissionException.ts new file mode 100644 index 00000000..5af52ccc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.CommandPermissionException.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + class CommandPermissionException extends org.spongepowered.api.command.CommandException { + /** + * Create an exception with the default message. + */ + constructor() + /** + * Create a permissions exception with a custom message. + */ + constructor(message: org.spongepowered.api.text.Text) + /** + * Create a permissions exception with a custom message and cause. + */ + constructor(message: org.spongepowered.api.text.Text, cause: any) + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.CommandResult.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.command.CommandResult.Builder.ts new file mode 100644 index 00000000..48345dbe --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.CommandResult.Builder.ts @@ -0,0 +1,44 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace CommandResult { + // @ts-ignore + class Builder { + /** + * Sets if the command has been processed. + */ + // @ts-ignore + public successCount(successCount: any): org.spongepowered.api.command.CommandResult.Builder; + /** + * Sets the amount of blocks affected by the command. + */ + // @ts-ignore + public affectedBlocks(affectedBlocks: any): org.spongepowered.api.command.CommandResult.Builder; + /** + * Sets the amount of entities affected by the command. + */ + // @ts-ignore + public affectedEntities(affectedEntities: any): org.spongepowered.api.command.CommandResult.Builder; + /** + * Sets the amount of items affected by the command. + */ + // @ts-ignore + public affectedItems(affectedItems: any): org.spongepowered.api.command.CommandResult.Builder; + /** + * Sets the query result of the command, e.g. the time of the day, + * an amount of money or a player's amount of XP. + */ + // @ts-ignore + public queryResult(queryResult: any): org.spongepowered.api.command.CommandResult.Builder; + /** + * Builds the {@link CommandResult}. + */ + // @ts-ignore + public build(): org.spongepowered.api.command.CommandResult; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.CommandResult.ts b/packages/sponge/src/typings/org.spongepowered.api.command.CommandResult.ts new file mode 100644 index 00000000..0a6f2721 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.CommandResult.ts @@ -0,0 +1,84 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + class CommandResult { + /** + * Returns a {@link Builder}. + */ + // @ts-ignore + public static builder(): org.spongepowered.api.command.CommandResult.Builder; + /** + * Returns a new {@link CommandResult} indicating that a command was + * processed. + */ + // @ts-ignore + public static empty(): org.spongepowered.api.command.CommandResult; + /** + * Returns a result indicating the command was processed with a single + * success. + */ + // @ts-ignore + public static success(): org.spongepowered.api.command.CommandResult; + /** + * Returns a result indicating the command was processed with a single + * success. + */ + // @ts-ignore + public static successCount(count: number): org.spongepowered.api.command.CommandResult; + /** + * Returns a result indicating the command was processed with an + * amount of affected blocks. + */ + // @ts-ignore + public static affectedBlocks(count: number): org.spongepowered.api.command.CommandResult; + /** + * Returns a result indicating the command was processed with an + * amount of affected entities. + */ + // @ts-ignore + public static affectedEntities(count: number): org.spongepowered.api.command.CommandResult; + /** + * Returns a result indicating the command was processed with an + * amount of affected items. + */ + // @ts-ignore + public static affectedItems(count: number): org.spongepowered.api.command.CommandResult; + /** + * Returns a result indicating the command was processed with an + * amount of queries. + */ + // @ts-ignore + public static queryResult(count: number): org.spongepowered.api.command.CommandResult; + /** + * Gets the success count of the command. + */ + // @ts-ignore + public getSuccessCount(): any; + /** + * Gets the number of blocks affected by the command. + */ + // @ts-ignore + public getAffectedBlocks(): any; + /** + * Gets the number of entities affected by the command. + */ + // @ts-ignore + public getAffectedEntities(): any; + /** + * Gets the number of items affected by the command. + */ + // @ts-ignore + public getAffectedItems(): any; + /** + * Gets the query result of the command, e.g. the time of the day, + * an amount of money or a player's amount of XP. + */ + // @ts-ignore + public getQueryResult(): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.CommandSource.ts b/packages/sponge/src/typings/org.spongepowered.api.command.CommandSource.ts new file mode 100644 index 00000000..c5c1a635 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.CommandSource.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + interface CommandSource extends org.spongepowered.api.text.channel.MessageReceiver, org.spongepowered.api.service.permission.Subject { + /** + * Gets the name identifying this command source. + */ + // @ts-ignore + getName(): string; + /** + * Gets the locale used by this command source. If this + * {@link CommandSource} does have a {@link Locale} configured or does not + * support configuring a {@link Locale}, {@link Locales#DEFAULT} is used. + */ + // @ts-ignore + getLocale(): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.ImmutableCommandMapping.ts b/packages/sponge/src/typings/org.spongepowered.api.command.ImmutableCommandMapping.ts new file mode 100644 index 00000000..543a902a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.ImmutableCommandMapping.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + class ImmutableCommandMapping implements org.spongepowered.api.command.CommandMapping { + /** + * Create a new instance. + */ + constructor(callable: org.spongepowered.api.command.CommandCallable, primary: string, alias: string) + /** + * Create a new instance. + */ + constructor(callable: org.spongepowered.api.command.CommandCallable, primary: string, aliases: any[] /*java.util.Collection*/) + // @ts-ignore + public getPrimaryAlias(): string; + // @ts-ignore + public getAllAliases(): any[] /*java.util.Set*/; + // @ts-ignore + public getCallable(): org.spongepowered.api.command.CommandCallable; + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.InvocationCommandException.ts b/packages/sponge/src/typings/org.spongepowered.api.command.InvocationCommandException.ts new file mode 100644 index 00000000..3b9ac9a0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.InvocationCommandException.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + class InvocationCommandException extends org.spongepowered.api.command.CommandException { + /** + * Constructs a new exception with the given message and the given cause. + */ + constructor(message: org.spongepowered.api.text.Text, cause: any) + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.args.ArgumentParseException.WithUsage.ts b/packages/sponge/src/typings/org.spongepowered.api.command.args.ArgumentParseException.WithUsage.ts new file mode 100644 index 00000000..7c99bcf1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.args.ArgumentParseException.WithUsage.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + namespace ArgumentParseException { + // @ts-ignore + class WithUsage extends org.spongepowered.api.command.args.ArgumentParseException { + constructor(wrapped: org.spongepowered.api.command.args.ArgumentParseException, usage: org.spongepowered.api.text.Text) + /** + * Gets the usage associated with this exception. + */ + // @ts-ignore + public getUsage(): org.spongepowered.api.text.Text; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.args.ArgumentParseException.ts b/packages/sponge/src/typings/org.spongepowered.api.command.args.ArgumentParseException.ts new file mode 100644 index 00000000..19b02409 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.args.ArgumentParseException.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + // @ts-ignore + class ArgumentParseException extends org.spongepowered.api.command.CommandException { + /** + * Return a new {@link ArgumentParseException} with the given message, source and position. + */ + constructor(message: org.spongepowered.api.text.Text, source: string, position: number) + /** + * Return a new {@link ArgumentParseException} with the given message, cause, source and position. + */ + constructor(message: org.spongepowered.api.text.Text, cause: any, source: string, position: number) + // @ts-ignore + public getText(): org.spongepowered.api.text.Text; + /** + * Return a string pointing to the position of the arguments when this + * exception occurs. + */ + // @ts-ignore + public getAnnotatedPosition(): string; + /** + * Gets the position of the last fetched argument in the provided source + * string. + */ + // @ts-ignore + public getPosition(): number; + /** + * Returns the source string arguments are being parsed from. + */ + // @ts-ignore + public getSourceString(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.args.ChildCommandElementExecutor.ts b/packages/sponge/src/typings/org.spongepowered.api.command.args.ChildCommandElementExecutor.ts new file mode 100644 index 00000000..d5e02d67 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.args.ChildCommandElementExecutor.ts @@ -0,0 +1,43 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + // @ts-ignore + class ChildCommandElementExecutor extends org.spongepowered.api.command.args.CommandElement implements org.spongepowered.api.command.spec.CommandExecutor { + /** + * Create a new combined argument element and executor to handle the + * parsing and execution of child commands. + */ + constructor(fallbackExecutor: org.spongepowered.api.command.spec.CommandExecutor) + /** + * Create a new combined argument element and executor to handle the + * parsing and execution of child commands. + */ + constructor(fallbackExecutor: org.spongepowered.api.command.spec.CommandExecutor, fallbackElements: org.spongepowered.api.command.args.CommandElement, fallbackOnFail: boolean) + /** + * Register a child command for a given set of aliases. + */ + // @ts-ignore + public register(callable: org.spongepowered.api.command.CommandCallable, aliases: any[] /*java.util.List*/): any; + /** + * Register a child command for a given set of aliases. + */ + // @ts-ignore + public register(callable: org.spongepowered.api.command.CommandCallable, aliases: string): any; + // @ts-ignore + public complete(src: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs, context: org.spongepowered.api.command.args.CommandContext): any[] /*java.util.List*/; + // @ts-ignore + public parse(source: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs, context: org.spongepowered.api.command.args.CommandContext): void; + // @ts-ignore + protected parseValue(source: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs): any; + // @ts-ignore + public execute(src: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandContext): org.spongepowered.api.command.CommandResult; + // @ts-ignore + public getUsage(src: org.spongepowered.api.command.CommandSource): org.spongepowered.api.text.Text; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandArgs.Snapshot.ts b/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandArgs.Snapshot.ts new file mode 100644 index 00000000..c47e2f01 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandArgs.Snapshot.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + namespace CommandArgs { + // @ts-ignore + class Snapshot { + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandArgs.ts b/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandArgs.ts new file mode 100644 index 00000000..d3e58e91 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandArgs.ts @@ -0,0 +1,116 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + // @ts-ignore + class CommandArgs { + /** + * Create a new CommandArgs instance with the given raw input and arguments. + */ + constructor(rawInput: string, args: any[] /*java.util.List*/) + /** + * Return whether more arguments remain to be read. + */ + // @ts-ignore + public hasNext(): boolean; + /** + * Try to read the next argument without advancing the current index. + */ + // @ts-ignore + public peek(): string; + /** + * Try to read the next argument, advancing the current index if successful. + */ + // @ts-ignore + public next(): string; + /** + * Try to read the next argument, advancing the current index if successful + * or returning an absent optional if not. + */ + // @ts-ignore + public nextIfPresent(): any; + /** + * Create a parse exception with the provided message which has the position + * of the last parsed argument attached. The returned exception must be + * thrown at the target + */ + // @ts-ignore + public createError(message: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.ArgumentParseException; + /** + * Gets a list of all arguments as a string. The returned list is immutable. + */ + // @ts-ignore + public getAll(): any[] /*java.util.List*/; + /** + * Return this arguments object's current state. Can be used to reset with + * the {@link #setState(Object)} method. + */ + // @ts-ignore + public getState(): any; + /** + * Restore the arguments object's state to a state previously used. + */ + // @ts-ignore + public setState(state: any): void; + /** + * Return the raw string used to provide input to this arguments object. + */ + // @ts-ignore + public getRaw(): string; + /** + * Get an arg at the specified position. + */ + // @ts-ignore + public get(index: number): string; + /** + * Insert an arg as the next arg to be returned by {@link #next()}. + */ + // @ts-ignore + public insertArg(value: string): void; + /** + * Remove the arguments parsed between startState and endState. + */ + // @ts-ignore + public removeArgs(startState: any, endState: any): void; + /** + * Remove the arguments parsed between two snapshots. + */ + // @ts-ignore + public removeArgs(startSnapshot: org.spongepowered.api.command.args.CommandArgs.Snapshot, endSnapshot: org.spongepowered.api.command.args.CommandArgs.Snapshot): void; + /** + * Returns the number of arguments + */ + // @ts-ignore + public size(): number; + /** + * Gets the current position in raw input. + */ + // @ts-ignore + public getRawPosition(): number; + /** + * Gets a snapshot of the data inside this context to allow it to be + * restored later. + */ + // @ts-ignore + public getSnapshot(): org.spongepowered.api.command.args.CommandArgs.Snapshot; + /** + * Resets a {@link CommandArgs} to a previous state using a previously + * created {@link CommandArgs.Snapshot}. + */ + // @ts-ignore + public applySnapshot(snapshot: org.spongepowered.api.command.args.CommandArgs.Snapshot): void; + /** + * Resets a {@link CommandArgs} to a previous state using a previously + * created {@link CommandArgs.Snapshot}. + *If resetArgs is set to false, this snapshot will not reset the + * argument list to its previous state, only the index.
+ */ + // @ts-ignore + public applySnapshot(snapshot: org.spongepowered.api.command.args.CommandArgs.Snapshot, resetArgs: boolean): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandContext.Snapshot.ts b/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandContext.Snapshot.ts new file mode 100644 index 00000000..63264eae --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandContext.Snapshot.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + namespace CommandContext { + // @ts-ignore + class Snapshot { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandContext.ts b/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandContext.ts new file mode 100644 index 00000000..40032f48 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandContext.ts @@ -0,0 +1,103 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + // @ts-ignore + class CommandContext { + /** + * Create a new empty CommandContext. + */ + constructor() + // @ts-ignore + public static TARGET_BLOCK_ARG: string; + // @ts-ignore + public static TAB_COMPLETION: string; + /** + * Gets all values for the given argument. May return an empty list if no + * values are present. + */ + // @ts-ignore + public getAll(key: string): any[] /*java.util.Collection*/; + /** + * Gets all values for the given argument. May return an empty list if no + * values are present. + */ + // @ts-ignore + public getAll(key: org.spongepowered.api.text.Text): any[] /*java.util.Collection*/; + /** + * Gets the value for the given key if the key has only one value. + *An empty {@link Optional} indicates that there are either zero or more + * than one values for the given key. Use {@link #hasAny(Text)} to verify + * which.
+ */ + // @ts-ignore + public getOne(key: string): any; + /** + * Gets the value for the given key if the key has only one value. + *An empty {@link Optional} indicates that there are either zero or more + * than one values for the given key. Use {@link #hasAny(Text)} to verify + * which.
+ */ + // @ts-ignore + public getOne(key: org.spongepowered.api.text.Text): any; + /** + * Gets the value for the given key if the key has only one value, throws an + * exception otherwise. + */ + // @ts-ignore + public requireOne(key: string): any; + /** + * Gets the value for the given key if the key has only one value, throws an + * exception otherwise. + */ + // @ts-ignore + public requireOne(key: org.spongepowered.api.text.Text): any; + /** + * Insert an argument into this context. + */ + // @ts-ignore + public putArg(key: string, value: any): void; + /** + * Insert an argument into this context. + */ + // @ts-ignore + public putArg(key: org.spongepowered.api.text.Text, value: any): void; + /** + * Perform a permissions check, throwing an exception if the required + * permissions are not present. + */ + // @ts-ignore + public checkPermission(commander: org.spongepowered.api.command.CommandSource, permission: string): void; + /** + * Returns whether this context has any value for the given argument key. + */ + // @ts-ignore + public hasAny(key: string): boolean; + /** + * Returns whether this context has any value for the given argument key. + */ + // @ts-ignore + public hasAny(key: org.spongepowered.api.text.Text): boolean; + /** + * Gets a snapshot of the data inside this context to allow it to be + * restored later. + *This is only guaranteed to create a shallow copy of the + * backing store. If any value is mutable, any changes to that value + * will be reflected in this snapshot. It is therefore not recommended + * that you keep this snapshot around for longer than is necessary.
+ */ + // @ts-ignore + public createSnapshot(): org.spongepowered.api.command.args.CommandContext.Snapshot; + /** + * Resets a {@link CommandContext} to a previous state using a previously + * created {@link Snapshot}. + */ + // @ts-ignore + public applySnapshot(snapshot: org.spongepowered.api.command.args.CommandContext.Snapshot): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandElement.ts b/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandElement.ts new file mode 100644 index 00000000..d90a5857 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandElement.ts @@ -0,0 +1,55 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + // @ts-ignore + abstract class CommandElement { + constructor(key: org.spongepowered.api.text.Text) + /** + * Return the key to be used for this object. + */ + // @ts-ignore + public getKey(): org.spongepowered.api.text.Text; + /** + * Return the plain key, to be used when looking up this command element in + * a {@link CommandContext}. If the key is a {@link TranslatableText}, this + * is the translation's id. Otherwise, this is the result of + * {@link Text#toPlain()}. + */ + // @ts-ignore + public getUntranslatedKey(): string; + /** + * Attempt to extract a value for this element from the given arguments and + * put it in the given context. This method normally delegates to + * {@link #parseValue(CommandSource, CommandArgs)} for getting the values. + * This method is expected to have no side-effects for the source, meaning + * that executing it will not change the state of the {@link CommandSource} + * in any way. + */ + // @ts-ignore + public parse(source: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs, context: org.spongepowered.api.command.args.CommandContext): void; + /** + * Attempt to extract a value for this element from the given arguments. + * This method is expected to have no side-effects for the source, meaning + * that executing it will not change the state of the {@link CommandSource} + * in any way. + */ + // @ts-ignore + protected abstract parseValue(source: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs): any; + /** + * Fetch completions for command arguments. + */ + // @ts-ignore + public abstract complete(src: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs, context: org.spongepowered.api.command.args.CommandContext): any[] /*java.util.List*/; + /** + * Return a usage message for this specific argument. + */ + // @ts-ignore + public getUsage(src: org.spongepowered.api.command.CommandSource): org.spongepowered.api.text.Text; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandFlags.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandFlags.Builder.ts new file mode 100644 index 00000000..002878a7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandFlags.Builder.ts @@ -0,0 +1,85 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + namespace CommandFlags { + // @ts-ignore + class Builder { + /** + * Allow a flag with any of the provided specifications that has no + * value. This flag will be exposed in a {@link CommandContext} under + * the key equivalent to the first flag in the specification array. + * The specifications are handled as so for each element in the + * {@code specs} array: + *If a command that supports flags accepts negative numbers (or + * arguments that may begin with a dash), setting this to + * {@link UnknownFlagBehavior#IGNORE} will cause these elements to + * be ignored by the flag parser and will be parsed by the command's + * non-flag elements instead.
+ */ + // @ts-ignore + public setUnknownShortFlagBehavior(behavior: org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior): org.spongepowered.api.command.args.CommandFlags.Builder; + /** + * Whether flags should be anchored to the beginning of the text (so + * flags will only be picked up if they are at the beginning of the + * input). + */ + // @ts-ignore + public setAnchorFlags(anchorFlags: boolean): org.spongepowered.api.command.args.CommandFlags.Builder; + /** + * Build a flag command element using the given command element to + * handle all non-flag arguments. + *If you wish to add multiple elements here, wrap them in + * {@link GenericArguments#seq(CommandElement...)}
+ */ + // @ts-ignore + public buildWith(wrapped: org.spongepowered.api.command.args.CommandElement): org.spongepowered.api.command.args.CommandElement; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior.ts b/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior.ts new file mode 100644 index 00000000..e13a66df --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + namespace CommandFlags { + // @ts-ignore + class UnknownFlagBehavior { + // @ts-ignore + public static ERROR: org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior; + // @ts-ignore + public static ACCEPT_NONVALUE: org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior; + // @ts-ignore + public static ACCEPT_VALUE: org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior; + // @ts-ignore + public static IGNORE: org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior; + // @ts-ignore + public static values(): org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandFlags.ts b/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandFlags.ts new file mode 100644 index 00000000..847105f8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.args.CommandFlags.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + // @ts-ignore + class CommandFlags extends org.spongepowered.api.command.args.CommandElement { + constructor(childElement: org.spongepowered.api.command.args.CommandElement, usageFlags: MapThis will return only one value.
+ */ + // @ts-ignore + public static markTrue(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent online players, or if nothing matches + * and the source is a {@link Player}, give the player. If nothing matches + * and the source is not a player, throw an exception. + *Gives values of type {@link Player}.
+ *This argument accepts the following inputs:
+ *This may return multiple players. If you must only return one, wrap + * this element in an {@link #onlyOne(CommandElement)} call.
+ */ + // @ts-ignore + public static playerOrSource(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent online players. Returns values of type + * {@link Player}. + *This argument accepts the following inputs:
+ *This may return multiple players. If you must only return one, wrap + * this element in an {@link #onlyOne(CommandElement)} call.
+ */ + // @ts-ignore + public static player(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent players who have been online at some + * point, as a {@link User}. + *This argument accepts the following inputs:
+ *This may return multiple {@link User}s. If you must only return one, + * wrap this element in an {@link #onlyOne(CommandElement)} call.
+ *This may not return the {@link Player} object for an online user. If + * you wish to operate on an associated {@link Player} object if the user is + * online, use {@link User#getPlayer()}.
+ */ + // @ts-ignore + public static user(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent players who have been online at some + * point, as a {@link User}, or if nothing matches and the source is a + * {@link User}, give the user. If nothing matches and the source is not + * a {@link User}, throw an exception. + *This argument accepts the following inputs:
+ *This may return multiple {@link User}s. If you must only return one, + * wrap this element in an {@link #onlyOne(CommandElement)} call.
+ *This may not return the {@link Player} object for an online user. If + * you wish to operate on an associated {@link Player} object if the user is + * online, use {@link User#getPlayer()}.
+ */ + // @ts-ignore + public static userOrSource(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent a world. This returns + * {@link WorldProperties} objects rather than an actual {@link World} in + * order to include unloaded worlds. + *This argument accepts the following inputs:
+ *This may return multiple {@link WorldProperties}s. If you must only + * return one, wrap this element in an {@link #onlyOne(CommandElement)} + * call.
+ */ + // @ts-ignore + public static world(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent a dimension. Returns values of type + * {@link DimensionType}. + *This argument accepts the following inputs:
+ *This may return multiple {@link DimensionType}s. If you must only + * return one, wrap this element in an {@link #onlyOne(CommandElement)} + * call.
+ */ + // @ts-ignore + public static dimension(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent a {@link Vector3d}. + *This will return one value.
+ */ + // @ts-ignore + public static vector3d(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent a {@link Location}. + *This will return one value.
+ */ + // @ts-ignore + public static location(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument that is a member of the specified {@link CatalogType} + * T. + *This argument accepts the following inputs:
+ *This may return multiple instances of T. If you must only return one, + * wrap this element in an {@link #onlyOne(CommandElement)} call.
+ */ + // @ts-ignore + public static catalogedElement(key: org.spongepowered.api.text.Text, catalogType: any): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent a {@link PluginContainer}'s id. + *This argument accepts the following inputs:
+ *This may return multiple {@link PluginContainer}s. If you must only + * return one, wrap this element in an {@link #onlyOne(CommandElement)} + * call.
+ */ + // @ts-ignore + public static plugin(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Gets a builder to create a command element that parses flags. + *There should only be ONE of these in a command element sequence if you + * wish to use flags. A {@link CommandFlags.Builder} can handle multiple + * flags that have different behaviors. Using multiple builders in the same + * sequence may cause unexpected behavior.
+ *Any command elements that are not associated with flags should be + * placed into the {@link CommandFlags.Builder#buildWith(CommandElement)} + * parameter, allowing the flags to be used throughout the argument string. + *
+ */ + // @ts-ignore + public static flags(): org.spongepowered.api.command.args.CommandFlags.Builder; + /** + * Consumes a series of arguments. Usage is the elements concatenated + */ + // @ts-ignore + public static seq(elements: org.spongepowered.api.command.args.CommandElement): org.spongepowered.api.command.args.CommandElement; + /** + * Return an argument that allows selecting from a limited set of values. + *If there are 5 or fewer choices available, the choices will be shown + * in the command usage. Otherwise, the usage will only display only the + * key.
+ *Choices are case sensitive. If you do not require + * case sensitivity, see {@link #choicesInsensitive(Text, Map)}.
+ *To override this behavior, see + * {@link #choices(Text, Map, boolean, boolean)}.
+ *When parsing, only one choice may be selected, returning its + * associated value.
+ */ + // @ts-ignore + public static choices(key: org.spongepowered.api.text.Text, choices: MapIf there are 5 or fewer choices available, the choices will be shown + * in the command usage. Otherwise, the usage will only display only the + * key.
+ *Choices are not case sensitive. If you require + * case sensitivity, see {@link #choices(Text, Map)}
+ *To override this behavior, see + * {@link #choices(Text, Map, boolean, boolean)}.
+ *When parsing, only one choice may be selected, returning its + * associated value.
+ */ + // @ts-ignore + public static choicesInsensitive(key: org.spongepowered.api.text.Text, choices: MapUnless {@code choicesInUsage} is true, general command usage will only + * display the provided key.
+ *Choices are case sensitive. If you do not require + * case sensitivity, see {@link #choices(Text, Map, boolean, boolean)}
+ *When parsing, only one choice may be selected, returning its + * associated value.
+ */ + // @ts-ignore + public static choices(key: org.spongepowered.api.text.Text, choices: MapUnless {@code choicesInUsage} is true, general command usage will only + * display the provided key.
+ *When parsing, only one choice may be selected, returning its + * associated value.
+ */ + // @ts-ignore + public static choices(key: org.spongepowered.api.text.Text, choices: MapIf there are 5 or fewer choices available, the choices will be shown + * in the command usage. Otherwise, the usage will only display only the + * key.
+ *To override this behavior, see {@link #choices(Text, Map, boolean)}. + *
+ *Only one choice may be selected, returning its associated value.
+ */ + // @ts-ignore + public static choices(key: org.spongepowered.api.text.Text, keys: any, values: any): org.spongepowered.api.command.args.CommandElement; + /** + * Return an argument that allows selecting from a limited set of values. + * Unless {@code choicesInUsage} is true, general command usage will only + * display the provided key. + *Only one choice may be selected, returning its associated value.
+ */ + // @ts-ignore + public static choices(key: org.spongepowered.api.text.Text, keys: any, values: any, choicesInUsage: boolean): org.spongepowered.api.command.args.CommandElement; + /** + * Returns a command element that matches the first of the provided elements + * that parses tab completion matches from all options. + */ + // @ts-ignore + public static firstParsing(elements: org.spongepowered.api.command.args.CommandElement): org.spongepowered.api.command.args.CommandElement; + /** + * Make the provided command element optional. + *This means the command element is not required. However, if the + * element is provided with invalid format and there are no more args + * specified, any errors will still be passed on.
+ */ + // @ts-ignore + public static optional(element: org.spongepowered.api.command.args.CommandElement): org.spongepowered.api.command.args.CommandElement; + /** + * Make the provided command element optional. + *This means the command element is not required. However, if the + * element is provided with invalid format and there are no more args + * specified, any errors will still be passed on. If the given element's key + * and {@code value} are not null and this element is not provided the + * element's key will be set to the given value.
+ */ + // @ts-ignore + public static optional(element: org.spongepowered.api.command.args.CommandElement, value: any): org.spongepowered.api.command.args.CommandElement; + /** + * Make the provided command element optional + * This means the command element is not required. + * If the argument is provided but of invalid format, it will be skipped. + */ + // @ts-ignore + public static optionalWeak(element: org.spongepowered.api.command.args.CommandElement): org.spongepowered.api.command.args.CommandElement; + /** + *Make the provided command element optional.
+ *This means the command element is not required.
+ *Command values will be stored under their provided keys in the + * CommandContext.
+ */ + // @ts-ignore + public static repeated(element: org.spongepowered.api.command.args.CommandElement, times: number): org.spongepowered.api.command.args.CommandElement; + /** + * Require all remaining args to match as many instances of + * {@link CommandElement} as will fit. Command element values will be stored + * under their provided keys in the CommandContext. + */ + // @ts-ignore + public static allOf(element: org.spongepowered.api.command.args.CommandElement): org.spongepowered.api.command.args.CommandElement; + /** + * Require an argument to be a string. Any provided argument will fit in + * under this argument. + *Gives values of type {@link String}. This will return only one value. + *
+ */ + // @ts-ignore + public static string(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Require an argument to be an integer (base 10). + *Gives values of type {@link Integer}. This will return only one value. + *
+ */ + // @ts-ignore + public static integer(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Require an argument to be a long (base 10). + *Gives values of type {@link Long}. This will return only one value. + *
+ */ + // @ts-ignore + public static longNum(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Require an argument to be an double-precision floating point number. + *Gives values of type {@link Double}. This will return only one value. + *
+ */ + // @ts-ignore + public static doubleNum(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Require an argument to be a boolean. + *The recognized true values are:
+ *The recognized false values are:
+ *Gives values of type {@link Boolean}. This will return only one value. + *
+ */ + // @ts-ignore + public static bool(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Require the argument to be a key under the provided enum. + *Gives values of type T. This will return only one value.
+ */ + // @ts-ignore + public static enumValue(key: org.spongepowered.api.text.Text, type: any): org.spongepowered.api.command.args.CommandElement; + /** + * Require one or more strings, which are combined into a single, + * space-separated string. + *Gives values of type {@link String}. This will return only one value. + *
+ */ + // @ts-ignore + public static remainingJoinedStrings(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Require one or more strings, without any processing, which are combined + * into a single, space-separated string. + *Gives values of type {@link String}. This will return only one value. + *
+ */ + // @ts-ignore + public static remainingRawJoinedStrings(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect a literal sequence of arguments. This element matches the input + * against a predefined array of arguments expected to be present, + * case-insensitively. + *This will return only one value.
+ */ + // @ts-ignore + public static literal(key: org.spongepowered.api.text.Text, expectedArgs: string): org.spongepowered.api.command.args.CommandElement; + /** + * Expect a literal sequence of arguments. This element matches the input + * against a predefined array of arguments expected to be present, + * case-insensitively. + *This will return only one value.
+ */ + // @ts-ignore + public static literal(key: org.spongepowered.api.text.Text, putValue: any, expectedArgs: string): org.spongepowered.api.command.args.CommandElement; + /** + * Restricts the given command element to only insert one value into the + * context at the provided key. + *If more than one value is returned by an element, or the target key + * already contains a value, this will throw an + * {@link ArgumentParseException}
+ */ + // @ts-ignore + public static onlyOne(element: org.spongepowered.api.command.args.CommandElement): org.spongepowered.api.command.args.CommandElement; + /** + * Checks a permission for a given command argument to be used. + *If the element attempts to parse an argument and the user does not + * have the permission, a {@link ArgumentParseException} will be thrown.
+ */ + // @ts-ignore + public static requiringPermission(element: org.spongepowered.api.command.args.CommandElement, permission: string): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent an {@link Entity}. + *This argument accepts the following inputs:
+ *This argument accepts the following inputs:
+ *This argument accepts the following inputs:
+ *This argument accepts the following inputs:
+ *This argument accepts the following inputs:
+ *This argument accepts the following inputs:
+ *This argument accepts the following inputs:
+ *This will return only one value.
+ */ + // @ts-ignore + public static url(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to return an IP address, in the form of an + * {@link InetAddress}. + *This will return only one value.
+ */ + // @ts-ignore + public static ip(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to return an IP address, in the form of an + * {@link InetAddress}, or if nothing matches and the source is a + * {@link RemoteSource}, return the source's address. + *This will return only one value.
+ */ + // @ts-ignore + public static ipOrSource(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to return a {@link BigDecimal}. + */ + // @ts-ignore + public static bigDecimal(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to return a {@link BigInteger}. + *This will return only one value.
+ */ + // @ts-ignore + public static bigInteger(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to be a valid {@link DataContainer}. + *This will return only one value.
+ */ + // @ts-ignore + public static dataContainer(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to be a {@link UUID}. + *This will return only one value.
+ */ + // @ts-ignore + public static uuid(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to be valid {@link Text}. + *This will return only one value.
+ */ + // @ts-ignore + public static text(key: org.spongepowered.api.text.Text, serializer: org.spongepowered.api.text.serializer.TextSerializer, allRemaining: boolean): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to be a date-time, in the form of a + * {@link LocalDateTime}. If no date is specified, {@link LocalDate#now()} + * is used; if no time is specified, {@link LocalTime#MIDNIGHT} is used. + *Date-times are expected in the ISO-8601 format.
+ *This will return only one value.
+ */ + // @ts-ignore + public static dateTime(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to be a date-time, in the form of a + * {@link LocalDateTime}. If no date is specified, {@link LocalDate#now()} + * is used; if no time is specified, {@link LocalTime#MIDNIGHT} is used. + *If no argument at all is specified, defaults to + * {@link LocalDateTime#now()}.
+ *Date-times are expected in the ISO-8601 format.
+ *This will return only one value.
+ */ + // @ts-ignore + public static dateTimeOrNow(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to be a {@link Duration}. + *Durations are expected in the following format: {@code #D#H#M#S}. + * This is not case sensitive.
+ *This will return only one value.
+ */ + // @ts-ignore + public static duration(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Uses a custom set of suggestions for an argument. The provided + * suggestions will replace the regular ones. + */ + // @ts-ignore + public static withSuggestions(argument: org.spongepowered.api.command.args.CommandElement, suggestions: any): org.spongepowered.api.command.args.CommandElement; + /** + * Uses a custom set of suggestions for an argument. The provided + * suggestions will replace the regular ones. + *If {@code requireBegin} is false, then the already typed argument + * will not be used to filter the provided suggestions.
+ */ + // @ts-ignore + public static withSuggestions(argument: org.spongepowered.api.command.args.CommandElement, suggestions: any, requireBegin: boolean): org.spongepowered.api.command.args.CommandElement; + /** + * Uses a custom set of suggestions for an argument. The provided + * suggestions will replace the regular ones. + */ + // @ts-ignore + public static withSuggestions(argument: org.spongepowered.api.command.args.CommandElement, suggestions: any): org.spongepowered.api.command.args.CommandElement; + /** + * Uses a custom set of suggestions for an argument. The provided + * suggestions will replace the regular ones. + *If {@code requireBegin} is false, then the already typed argument + * will not be used to filter the provided suggestions.
+ */ + // @ts-ignore + public static withSuggestions(argument: org.spongepowered.api.command.args.CommandElement, suggestions: any, requireBegin: boolean): org.spongepowered.api.command.args.CommandElement; + /** + * Filters an argument's suggestions. A suggestion will only be used if it + * matches the predicate. + */ + // @ts-ignore + public static withConstrainedSuggestions(argument: org.spongepowered.api.command.args.CommandElement, predicate: any): org.spongepowered.api.command.args.CommandElement; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.args.PatternMatchingCommandElement.ts b/packages/sponge/src/typings/org.spongepowered.api.command.args.PatternMatchingCommandElement.ts new file mode 100644 index 00000000..1ebf653b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.args.PatternMatchingCommandElement.ts @@ -0,0 +1,36 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + // @ts-ignore + abstract class PatternMatchingCommandElement extends org.spongepowered.api.command.args.CommandElement { + constructor(key: org.spongepowered.api.text.Text) + // @ts-ignore + protected parseValue(source: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs): any; + // @ts-ignore + public complete(src: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs, context: org.spongepowered.api.command.args.CommandContext): any[] /*java.util.List*/; + /** + * Tests a string against a set of valid choices to see if it is a + * case-insensitive match. + */ + // @ts-ignore + protected getExactMatch(choices: any, potentialChoice: string): any; + /** + * Gets the available choices for this command source. + */ + // @ts-ignore + protected abstract getChoices(source: org.spongepowered.api.command.CommandSource): any; + /** + * Gets the value for a given choice. For any result in + * {@link #getChoices(CommandSource)}, this must return a non-null value. + * Otherwise, an {@link IllegalArgumentException} may be throw. + */ + // @ts-ignore + protected abstract getValue(choice: string): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.args.SelectorCommandElement.ts b/packages/sponge/src/typings/org.spongepowered.api.command.args.SelectorCommandElement.ts new file mode 100644 index 00000000..b359da5c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.args.SelectorCommandElement.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + // @ts-ignore + abstract class SelectorCommandElement extends org.spongepowered.api.command.args.PatternMatchingCommandElement { + constructor(key: org.spongepowered.api.text.Text) + // @ts-ignore + protected parseValue(source: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs): any; + // @ts-ignore + public complete(src: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs, context: org.spongepowered.api.command.args.CommandContext): any[] /*java.util.List*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.args.parsing.InputTokenizer.ts b/packages/sponge/src/typings/org.spongepowered.api.command.args.parsing.InputTokenizer.ts new file mode 100644 index 00000000..7c152c1d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.args.parsing.InputTokenizer.ts @@ -0,0 +1,44 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + namespace parsing { + // @ts-ignore + interface InputTokenizer { + /** + * Use an input string tokenizer that supports quoted arguments and + * character escapes. + *Forcing lenient to true makes the following apply:
+ *The returned collection cannot be modified.
+ */ + // @ts-ignore + getCommands(): any[] /*java.util.Set*/; + /** + * Gets a list of primary aliases. + *The returned collection cannot be modified.
+ */ + // @ts-ignore + getPrimaryAliases(): any[] /*java.util.Set*/; + /** + * Gets a list of all the command aliases, which includes the primary alias. + *A command may have more than one alias assigned to it. The returned + * collection cannot be modified.
+ */ + // @ts-ignore + getAliases(): any[] /*java.util.Set*/; + /** + * Gets the {@link CommandMapping} associated with an alias. Returns null if + * no command is named by the given alias. + */ + // @ts-ignore + get(alias: string): any; + /** + * Gets the {@link CommandMapping} associated with an alias in the context + * of a given {@link CommandSource}. Returns null if no command is named by + * the given alias. + */ + // @ts-ignore + get(alias: string, source: org.spongepowered.api.command.CommandSource): any; + /** + * Gets all the {@link CommandMapping}s associated with an alias. + */ + // @ts-ignore + getAll(alias: string): any[] /*java.util.Set*/; + /** + * Gets all commands currently registered with this dispatcher. The returned + * value is immutable. + */ + // @ts-ignore + getAll(): any; + /** + * Returns whether the dispatcher contains a registered command for the + * given alias. + */ + // @ts-ignore + containsAlias(alias: string): boolean; + /** + * Returns whether the dispatcher contains the given mapping. + */ + // @ts-ignore + containsMapping(mapping: org.spongepowered.api.command.CommandMapping): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.dispatcher.SimpleDispatcher.ts b/packages/sponge/src/typings/org.spongepowered.api.command.dispatcher.SimpleDispatcher.ts new file mode 100644 index 00000000..2f1bab6e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.dispatcher.SimpleDispatcher.ts @@ -0,0 +1,114 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace dispatcher { + // @ts-ignore + class SimpleDispatcher implements org.spongepowered.api.command.dispatcher.Dispatcher { + /** + * Creates a basic new dispatcher. + */ + constructor() + /** + * Creates a new dispatcher with a specific disambiguator. + */ + constructor(disambiguatorFunc: org.spongepowered.api.command.dispatcher.Disambiguator) + // @ts-ignore + public static FIRST_DISAMBIGUATOR: org.spongepowered.api.command.dispatcher.Disambiguator; + /** + * Register a given command using the given list of aliases. + *If there is a conflict with one of the aliases (i.e. that alias + * is already assigned to another command), then the alias will be skipped. + * It is possible for there to be no alias to be available out of + * the provided list of aliases, which would mean that the command would not + * be assigned to any aliases.
+ *The first non-conflicted alias becomes the "primary alias."
+ */ + // @ts-ignore + public register(callable: org.spongepowered.api.command.CommandCallable, alias: string): any; + /** + * Register a given command using the given list of aliases. + *If there is a conflict with one of the aliases (i.e. that alias + * is already assigned to another command), then the alias will be skipped. + * It is possible for there to be no alias to be available out of + * the provided list of aliases, which would mean that the command would not + * be assigned to any aliases.
+ *The first non-conflicted alias becomes the "primary alias."
+ */ + // @ts-ignore + public register(callable: org.spongepowered.api.command.CommandCallable, aliases: any[] /*java.util.List*/): any; + /** + * Register a given command using a given list of aliases. + *The provided callback function will be called with a list of aliases + * that are not taken (from the list of aliases that were requested) and + * it should return a list of aliases to actually register. Aliases may be + * removed, and if no aliases remain, then the command will not be + * registered. It may be possible that no aliases are available, and thus + * the callback would receive an empty list. New aliases should not be added + * to the list in the callback as this may cause + * {@link IllegalArgumentException} to be thrown.
+ *The first non-conflicted alias becomes the "primary alias."
+ */ + // @ts-ignore + public register(callable: org.spongepowered.api.command.CommandCallable, aliases: any[] /*java.util.List*/, callback: any): any; + /** + * Remove a mapping identified by the given alias. + */ + // @ts-ignore + public remove(alias: string): any[] /*java.util.Collection*/; + /** + * Remove all mappings identified by the given aliases. + */ + // @ts-ignore + public removeAll(aliases: any[] /*java.util.Collection*/): boolean; + /** + * Remove a command identified by the given mapping. + */ + // @ts-ignore + public removeMapping(mapping: org.spongepowered.api.command.CommandMapping): any; + /** + * Remove all mappings contained with the given collection. + */ + // @ts-ignore + public removeMappings(mappings: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public getCommands(): any[] /*java.util.Set*/; + // @ts-ignore + public getPrimaryAliases(): any[] /*java.util.Set*/; + // @ts-ignore + public getAliases(): any[] /*java.util.Set*/; + // @ts-ignore + public get(alias: string): any; + // @ts-ignore + public get(alias: string, source: org.spongepowered.api.command.CommandSource): any; + // @ts-ignore + public containsAlias(alias: string): boolean; + // @ts-ignore + public containsMapping(mapping: org.spongepowered.api.command.CommandMapping): boolean; + // @ts-ignore + public process(source: org.spongepowered.api.command.CommandSource, commandLine: string): org.spongepowered.api.command.CommandResult; + // @ts-ignore + public getSuggestions(src: org.spongepowered.api.command.CommandSource, arguments: string, targetPosition: org.spongepowered.api.world.Location): any[] /*java.util.List*/; + // @ts-ignore + public testPermission(source: org.spongepowered.api.command.CommandSource): boolean; + // @ts-ignore + public getShortDescription(source: org.spongepowered.api.command.CommandSource): any; + // @ts-ignore + public getHelp(source: org.spongepowered.api.command.CommandSource): any; + /** + * Gets the number of registered aliases. + */ + // @ts-ignore + public size(): number; + // @ts-ignore + public getUsage(source: org.spongepowered.api.command.CommandSource): org.spongepowered.api.text.Text; + // @ts-ignore + public getAll(alias: string): any[] /*java.util.Set*/; + // @ts-ignore + public getAll(): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.source.CommandBlockSource.ts b/packages/sponge/src/typings/org.spongepowered.api.command.source.CommandBlockSource.ts new file mode 100644 index 00000000..2f261334 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.source.CommandBlockSource.ts @@ -0,0 +1,47 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace source { + // @ts-ignore + interface CommandBlockSource extends org.spongepowered.api.world.Locatable, org.spongepowered.api.command.CommandSource, org.spongepowered.api.data.DataHolder { + /** + * Gets the {@link CommandData} for this source. + */ + // @ts-ignore + getCommandData(): org.spongepowered.api.data.manipulator.mutable.CommandData; + /** + * Gets the currently stored command. + */ + // @ts-ignore + storedCommand(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the success count of the last executed command. + *The success count is the number of times the most recently used + * command of this command block succeeded. Most commands can only succeed + * once per execution, but certain commands (such as those which accept + * players as arguments) can succeed multiple times, and this value will be + * set accordingly. This success count can also be polled via a redstone + * comparator.
+ */ + // @ts-ignore + successCount(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this command block will keep track of the output from the + * last command it executed. + */ + // @ts-ignore + doesTrackOutput(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the last command output. + *This will only be available if {@link #doesTrackOutput()} is set to + * true, otherwise {@link Optional#empty()} will be returned.
+ */ + // @ts-ignore + lastOutput(): org.spongepowered.api.data.value.mutable.OptionalValue; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.source.ConsoleSource.ts b/packages/sponge/src/typings/org.spongepowered.api.command.source.ConsoleSource.ts new file mode 100644 index 00000000..2c6cc585 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.source.ConsoleSource.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace source { + // @ts-ignore + interface ConsoleSource extends org.spongepowered.api.command.CommandSource { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.source.ProxySource.ts b/packages/sponge/src/typings/org.spongepowered.api.command.source.ProxySource.ts new file mode 100644 index 00000000..4d69650a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.source.ProxySource.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace source { + // @ts-ignore + interface ProxySource extends org.spongepowered.api.command.CommandSource { + /** + * Gets the {@link CommandSource} this source is created by. + */ + // @ts-ignore + getOriginalSource(): org.spongepowered.api.command.CommandSource; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.source.RconSource.ts b/packages/sponge/src/typings/org.spongepowered.api.command.source.RconSource.ts new file mode 100644 index 00000000..a3125c24 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.source.RconSource.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace source { + // @ts-ignore + interface RconSource extends org.spongepowered.api.command.source.RemoteSource { + /** + * Gets whether this client is logged in, or authenticated. + */ + // @ts-ignore + getLoggedIn(): boolean; + /** + * Sets whether this client is logged in, or authenticated. + */ + // @ts-ignore + setLoggedIn(loggedIn: boolean): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.source.RemoteSource.ts b/packages/sponge/src/typings/org.spongepowered.api.command.source.RemoteSource.ts new file mode 100644 index 00000000..cecbaef8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.source.RemoteSource.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace source { + // @ts-ignore + interface RemoteSource extends org.spongepowered.api.command.CommandSource { + /** + * Gets connection information for this source. + */ + // @ts-ignore + getConnection(): org.spongepowered.api.network.RemoteConnection; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.source.SignSource.ts b/packages/sponge/src/typings/org.spongepowered.api.command.source.SignSource.ts new file mode 100644 index 00000000..8f438249 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.source.SignSource.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace source { + // @ts-ignore + interface SignSource extends org.spongepowered.api.command.source.ProxySource, org.spongepowered.api.world.Locatable { + /** + * Gets the sign {@link TileEntity} that this source has been created for. + */ + // @ts-ignore + getSign(): org.spongepowered.api.block.tileentity.Sign; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.spec.CommandExecutor.ts b/packages/sponge/src/typings/org.spongepowered.api.command.spec.CommandExecutor.ts new file mode 100644 index 00000000..449ca717 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.spec.CommandExecutor.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace spec { + // @ts-ignore + interface CommandExecutor { + /** + * Callback for the execution of a command. + */ + // @ts-ignore + execute(src: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandContext): org.spongepowered.api.command.CommandResult; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.spec.CommandSpec.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.command.spec.CommandSpec.Builder.ts new file mode 100644 index 00000000..996f0952 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.spec.CommandSpec.Builder.ts @@ -0,0 +1,95 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace spec { + namespace CommandSpec { + // @ts-ignore + class Builder { + /** + * Sets the permission that will be checked before using this command. + */ + // @ts-ignore + public permission(permission: string): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * Sets the callback that will handle this command's execution. + */ + // @ts-ignore + public executor(executor: org.spongepowered.api.command.spec.CommandExecutor): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * Adds more child arguments for this command. + * If an executor or arguments are set, they are used as fallbacks. + */ + // @ts-ignore + public children(children: MapThe default for this is true, which emulates the + * behavior from previous API revisions.
+ */ + // @ts-ignore + public childArgumentParseExceptionFallback(childCommandFallback: boolean): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * Sets the argument specification for this command. Generally, for a + * multi-argument command the {@link GenericArguments#seq(CommandElement...)} + * method is used to parse a sequence of args. + */ + // @ts-ignore + public arguments(args: org.spongepowered.api.command.args.CommandElement): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * Sets the argument specification for this command. This method accepts + * a sequence of arguments. This is equivalent to calling {@code + * arguments(seq(args))}. + */ + // @ts-ignore + public arguments(args: org.spongepowered.api.command.args.CommandElement): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * Sets the input tokenizer to be used to convert input from a string + * into a list of argument tokens. + */ + // @ts-ignore + public inputTokenizer(parser: org.spongepowered.api.command.args.parsing.InputTokenizer): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * Create a new {@link CommandSpec} based on the data provided in this + * builder. + */ + // @ts-ignore + public build(): org.spongepowered.api.command.spec.CommandSpec; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.command.spec.CommandSpec.ts b/packages/sponge/src/typings/org.spongepowered.api.command.spec.CommandSpec.ts new file mode 100644 index 00000000..4601252c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.command.spec.CommandSpec.ts @@ -0,0 +1,84 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace spec { + // @ts-ignore + class CommandSpec implements org.spongepowered.api.command.CommandCallable { + /** + * Return a new builder for a CommandSpec. + */ + // @ts-ignore + public static builder(): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * Check the relevant permission for this command with the provided source, + * throwing an exception if the source does not have permission to use + * the command. + */ + // @ts-ignore + public checkPermission(source: org.spongepowered.api.command.CommandSource): void; + /** + * Process this command with existing arguments and context objects. + */ + // @ts-ignore + public populateContext(source: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs, context: org.spongepowered.api.command.args.CommandContext): void; + /** + * Return tab completion results using the existing parsed arguments and + * context. Primarily useful when including a subcommand in an existing + * specification. + */ + // @ts-ignore + public complete(source: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs, context: org.spongepowered.api.command.args.CommandContext): any[] /*java.util.List*/; + /** + * Gets the active executor for this command. Generally not a good idea to + * call this directly, unless you are handling arg parsing specially + */ + // @ts-ignore + public getExecutor(): org.spongepowered.api.command.spec.CommandExecutor; + /** + * Gets the active input tokenizer used for this command. + */ + // @ts-ignore + public getInputTokenizer(): org.spongepowered.api.command.args.parsing.InputTokenizer; + // @ts-ignore + public process(source: org.spongepowered.api.command.CommandSource, arguments: string): org.spongepowered.api.command.CommandResult; + // @ts-ignore + public getSuggestions(source: org.spongepowered.api.command.CommandSource, arguments: string, targetPos: org.spongepowered.api.world.Location): any[] /*java.util.List*/; + // @ts-ignore + public testPermission(source: org.spongepowered.api.command.CommandSource): boolean; + /** + * Gets a short, one-line description used with this command if any is + * present. + */ + // @ts-ignore + public getShortDescription(source: org.spongepowered.api.command.CommandSource): any; + /** + * Gets the extended description used with this command if any is present. + */ + // @ts-ignore + public getExtendedDescription(source: org.spongepowered.api.command.CommandSource): any; + /** + * Gets the usage for this command appropriate for the provided command + * source. + */ + // @ts-ignore + public getUsage(source: org.spongepowered.api.command.CommandSource): org.spongepowered.api.text.Text; + /** + * Return a longer description for this command. This description is + * composed of at least all present of the short description, the usage + * statement, and the extended description + */ + // @ts-ignore + public getHelp(source: org.spongepowered.api.command.CommandSource): any; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.config.ConfigDir.ts b/packages/sponge/src/typings/org.spongepowered.api.config.ConfigDir.ts new file mode 100644 index 00000000..7432c49f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.config.ConfigDir.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace config { + // @ts-ignore + interface ConfigDir { + /** + * Whether the the shared root for configuration should be used, or instead, + * the plugin-specific configuration directory. + */ + // @ts-ignore + sharedRoot(): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.config.ConfigManager.ts b/packages/sponge/src/typings/org.spongepowered.api.config.ConfigManager.ts new file mode 100644 index 00000000..f7fccff4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.config.ConfigManager.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace config { + // @ts-ignore + interface ConfigManager { + /** + * Gets the configuration root for a plugin that utilizes the shared + * configuration folder. + *The shared configuration folder may refer to + * "config/" but this may vary between implementations and + * configurations.
+ *The plugin parameter is used to determine the filename for + * {@link ConfigRoot#getConfigPath()}.
+ */ + // @ts-ignore + getSharedConfig(instance: any): org.spongepowered.api.config.ConfigRoot; + /** + * Gets the configuration root for a plugin that utilizes a configuration + * folder specific to the plugin, which may also be a + * su-directory of the shared configuration folder. + *The provided plugin is used to determine the folder name.
+ */ + // @ts-ignore + getPluginConfig(instance: any): org.spongepowered.api.config.ConfigRoot; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.config.ConfigRoot.ts b/packages/sponge/src/typings/org.spongepowered.api.config.ConfigRoot.ts new file mode 100644 index 00000000..1be031d8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.config.ConfigRoot.ts @@ -0,0 +1,36 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace config { + // @ts-ignore + interface ConfigRoot { + /** + * Gets the pathname to the default configuration file for the plugin. + *If the configuration root is shared, then the returned pathname will + * refer to the path {@code $config/$plugin_id.conf} (where "$config" is the + * shared configuration directory). Otherwise, the returned pathname will + * refer to a file named "config.conf" stored in a directory specific to + * the plugin.
+ *The returned pathname may refer to a file that does not yet exist. + * It is up to the caller of this method to create the file if desired.
+ */ + // @ts-ignore + getConfigPath(): any; + /** + * Gets the configuration file that utilizes the default configuration + * pathname. + */ + // @ts-ignore + getConfig(): any; + /** + * Gets the directory that this configuration root refers to. + *The returned pathname may not refer to a directory that exists + * yet.
+ */ + // @ts-ignore + getDirectory(): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.config.DefaultConfig.ts b/packages/sponge/src/typings/org.spongepowered.api.config.DefaultConfig.ts new file mode 100644 index 00000000..faaabc1a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.config.DefaultConfig.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace config { + // @ts-ignore + interface DefaultConfig { + /** + * Whether the the shared root for configuration should be used. + */ + // @ts-ignore + sharedRoot(): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.Archetype.ts b/packages/sponge/src/typings/org.spongepowered.api.data.Archetype.ts new file mode 100644 index 00000000..0423095f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.Archetype.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface Archetype extends org.spongepowered.api.data.DataHolder { + /** + * Creates a new instance based on this archetype at the given location. + */ + // @ts-ignore + apply(location: org.spongepowered.api.world.Location): any; + /** + * Creates a new immutable snapshot based on this archetype. + */ + // @ts-ignore + toSnapshot(location: org.spongepowered.api.world.Location): org.spongepowered.api.data.LocatableSnapshot; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.DataAlreadyRegisteredException.ts b/packages/sponge/src/typings/org.spongepowered.api.data.DataAlreadyRegisteredException.ts new file mode 100644 index 00000000..608c9923 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.DataAlreadyRegisteredException.ts @@ -0,0 +1,44 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + class DataAlreadyRegisteredException extends org.spongepowered.api.data.DataException { + /** + * Constructs a new data already registered exception. + */ + constructor(manipulatorClass: any, immutableManipulatorClass: any, builder: org.spongepowered.api.data.manipulator.DataManipulatorBuilder) + /** + * Constructs a new data already registered exception with a message. + */ + constructor(message: string, manipulatorClass: any, immutableManipulatorClass: any, builder: org.spongepowered.api.data.manipulator.DataManipulatorBuilder) + /** + * Constructs a new data already registered exception with a message and + * a throwable cause. + */ + constructor(message: string, cause: any, manipulatorClass: any, immutableManipulatorClass: any, builder: org.spongepowered.api.data.manipulator.DataManipulatorBuilder) + /** + * Constructs a new data already registered exception with + * a throwable cause. + */ + constructor(cause: any, manipulatorClass: any, immutableManipulatorClass: any, builder: org.spongepowered.api.data.manipulator.DataManipulatorBuilder) + /** + * Gets the related data manipulator class. + */ + // @ts-ignore + public getManipulatorClass(): any; + /** + * Gets the related immutable data manipulator class. + */ + // @ts-ignore + public getImmutableManipulatorClass(): any; + /** + * Gets the related data manipulator builder. + */ + // @ts-ignore + public getBuilder(): org.spongepowered.api.data.manipulator.DataManipulatorBuilder; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.DataContainer.ts b/packages/sponge/src/typings/org.spongepowered.api.data.DataContainer.ts new file mode 100644 index 00000000..83513483 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.DataContainer.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface DataContainer extends org.spongepowered.api.data.DataView { + /** + * Creates a new {@link DataContainer} with a default + * {@link org.spongepowered.api.data.DataView.SafetyMode} of + * {@link org.spongepowered.api.data.DataView.SafetyMode#ALL_DATA_CLONED}. + */ + // @ts-ignore + createNew(): org.spongepowered.api.data.DataContainer; + /** + * Creates a new {@link DataContainer} with the provided + * {@link org.spongepowered.api.data.DataView.SafetyMode}. + */ + // @ts-ignore + createNew(safety: org.spongepowered.api.data.DataView.SafetyMode): org.spongepowered.api.data.DataContainer; + // @ts-ignore + set(path: org.spongepowered.api.data.DataQuery, value: any): org.spongepowered.api.data.DataContainer; + // @ts-ignore + set(key: org.spongepowered.api.data.key.Key, value: any): org.spongepowered.api.data.DataContainer; + // @ts-ignore + remove(path: org.spongepowered.api.data.DataQuery): org.spongepowered.api.data.DataContainer; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.DataException.ts b/packages/sponge/src/typings/org.spongepowered.api.data.DataException.ts new file mode 100644 index 00000000..9a17ab0b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.DataException.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + class DataException { + /** + * Constructs a new data exception. + */ + constructor() + /** + * Constructs a new data exception with a message. + */ + constructor(message: string) + /** + * Constructs a new data exception with a message and throwable cause. + */ + constructor(message: string, cause: any) + /** + * Constructs a new data exception with a throwable cause. + */ + constructor(cause: any) + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.DataHolder.ts b/packages/sponge/src/typings/org.spongepowered.api.data.DataHolder.ts new file mode 100644 index 00000000..6c3a37b1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.DataHolder.ts @@ -0,0 +1,33 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface DataHolder extends org.spongepowered.api.data.DataSerializable, org.spongepowered.api.data.property.PropertyHolder, org.spongepowered.api.data.value.mutable.CompositeValueStore { + /** + * Validates the container with known data required to set the raw data to + * this {@link DataHolder}. If the container is incomplete or contains + * invalid data,false
is returned.
+ * This validation should be checked prior to calling + * {@link #setRawData(DataView)} to avoid exceptions.
+ */ + // @ts-ignore + validateRawData(container: org.spongepowered.api.data.DataView): boolean; + /** + * Attempts to set all data of this {@link DataHolder} according to the + * {@link DataContainer}'s held information. Using this to modify known + * {@link DataManipulator} is unsupported and if the data is invalid, an + * {@link InvalidDataException} is thrown. + *This setter is used to provide setting custom data that is not + * represented by the Data API, including forge mods and other + * unknown data. Attempts at validating known {@link DataManipulator}s + * contained in the data container are made with the assumption that all + * necessary data exists.
+ */ + // @ts-ignore + setRawData(container: org.spongepowered.api.data.DataView): void; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.DataManager.ts b/packages/sponge/src/typings/org.spongepowered.api.data.DataManager.ts new file mode 100644 index 00000000..f9e65f8d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.DataManager.ts @@ -0,0 +1,122 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface DataManager { + /** + * Registers a {@link DataBuilder} that will dynamically build + * the given {@link DataSerializable} from a {@link DataContainer}. + *Builders may not always exist for a given {@link DataSerializable}, + * nor is it guaranteed that a provided builder will function with all + * {@link DataContainer}s. + *
+ */ + // @ts-ignore + registerBuilder(clazz: any, builder: org.spongepowered.api.data.persistence.DataBuilder): void; + /** + * Registers a {@link DataContentUpdater} for the desired + * {@link DataSerializable} such that any versioned data may be updated to + * newer versions for the most up to date {@link DataBuilder}. + */ + // @ts-ignore + registerContentUpdater(clazz: any, updater: org.spongepowered.api.data.persistence.DataContentUpdater): void; + /** + * Gets a wrapped fake {@link DataContentUpdater} that may wrap several + * {@link DataContentUpdater}s to translate versioned data from the desired + * {@code fromVersion} to the {@code toVersion}. If the version jump is too + * great or a {@link DataContentUpdater} has not been registered to cover + * the complete jump, {@link Optional#empty()} may be returned. + */ + // @ts-ignore + getWrappedContentUpdater(clazz: any, fromVersion: number, toVersion: number): any; + /** + * Attempts to retrieve the {@link DataBuilder} for the desired + * {@link DataSerializable} class. + *Builders may not always exist for a given {@link DataSerializable}, + * nor is it guaranteed that a provided builder will function with all + * {@link DataContainer}s.
+ */ + // @ts-ignore + getBuilder(clazz: any): any; + /** + * Attempts to translate an instance of the {@link DataSerializable} from + * the provided {@link DataView}. If there is no {@link DataBuilder} + * registered for the provided {@link DataSerializable}, then + * {@link Optional#empty()} may be returned. + */ + // @ts-ignore + deserialize(clazz: any, dataView: org.spongepowered.api.data.DataView): any; + /** + * Registers the given {@link ImmutableDataHolder} class with it's + * associated {@link ImmutableDataBuilder}. The builder can be used to + * create new instances of the given {@link ImmutableDataHolder} for data + * retrieval, data representation, etc. + */ + // @ts-ignore + register(holderClass: any, builder: org.spongepowered.api.data.ImmutableDataBuilder): void; + /** + * Registers a legacy {@code id} that is used by a previous version of + * {@link DataRegistration} from a plugin such that the custom data can + * be retained, while not being lost. + */ + // @ts-ignore + registerLegacyManipulatorIds(legacyId: string, registration: org.spongepowered.api.data.DataRegistration): void; + /** + * Attempts to retrieve the builder for the given + * {@link ImmutableDataHolder}. + *If the {@link ImmutableDataHolder} was not registered, multiple + * systems could fail to retrieve specific data.
+ */ + // @ts-ignore + getImmutableBuilder(holderClass: any): any; + /** + * Attempts to retrieve the builder for the given {@link DataManipulator}. + *If the {@link DataManipulator} was not registered, multiple systems + * could fail to retrieve specific data.
+ */ + // @ts-ignore + getManipulatorBuilder(manipulatorClass: any): any; + /** + * Attempts to retrieve the builder for the given + * {@link ImmutableDataManipulator}. + *If the {@link ImmutableDataManipulator} was not registered, multiple + * systems could fail to retrieve specific data.
+ */ + // @ts-ignore + getImmutableManipulatorBuilder(immutableManipulatorClass: any): any; + /** + * Registers a {@link DataTranslator} for the desired class. + */ + // @ts-ignore + registerTranslator(objectClass: any, translator: org.spongepowered.api.data.persistence.DataTranslator): void; + /** + * Gets the desired {@link DataTranslator} for the provided class. + */ + // @ts-ignore + getTranslator(objectClass: any): any; + /** + * Gets all {@link Class}es of all {@link DataManipulator}s registered for + * the provided {@link PluginContainer}. The provided {@link Collection} is + * considered immutable and can not be modified. + */ + // @ts-ignore + getAllRegistrationsFor(container: org.spongepowered.api.plugin.PluginContainer): any[] /*java.util.Collection*/; + /** + * Creates a new {@link DataContainer} with a default + * {@link org.spongepowered.api.data.DataView.SafetyMode} of + * {@link org.spongepowered.api.data.DataView.SafetyMode#ALL_DATA_CLONED}. + */ + // @ts-ignore + createContainer(): org.spongepowered.api.data.DataContainer; + /** + * Creates a new {@link DataContainer} with the provided + * {@link org.spongepowered.api.data.DataView.SafetyMode}. + */ + // @ts-ignore + createContainer(safety: org.spongepowered.api.data.DataView.SafetyMode): org.spongepowered.api.data.DataContainer; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.DataQuery.ts b/packages/sponge/src/typings/org.spongepowered.api.data.DataQuery.ts new file mode 100644 index 00000000..c3f825be --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.DataQuery.ts @@ -0,0 +1,95 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + class DataQuery { + /** + * Gets an empty {@link DataQuery}. This query is constant and never + * changes and therefor can be called multiple times returning the + * same instance. + */ + // @ts-ignore + public static of(): org.spongepowered.api.data.DataQuery; + /** + * Constructs a query using the given separator character and path. + *As an example, {@code new DataQuery('/', "a/b/c")} and + * {@code new DataQuery('.', "a.b.c")} represent the same path but are + * constructed using different separators.
+ */ + // @ts-ignore + public static of(separator: string, path: string): org.spongepowered.api.data.DataQuery; + /** + * Constructs a query using the given parts. + */ + // @ts-ignore + public static of(parts: string): org.spongepowered.api.data.DataQuery; + /** + * Constructs a query using the given parts. + */ + // @ts-ignore + public static of(parts: any[] /*java.util.List*/): org.spongepowered.api.data.DataQuery; + /** + * Gets the parts that make up this query. The returned list is immutable. + */ + // @ts-ignore + public getParts(): any[] /*java.util.List*/; + /** + * Returns a new query that is made up of this query's parts followed by the + * given query's parts. + */ + // @ts-ignore + public then(that: org.spongepowered.api.data.DataQuery): org.spongepowered.api.data.DataQuery; + /** + * Returns a new query that is made up of this query's parts followed by the + * given query. + */ + // @ts-ignore + public then(that: string): org.spongepowered.api.data.DataQuery; + /** + * Returns the parts of this query as individual queries. The returned list + * is immutable. + */ + // @ts-ignore + public getQueryParts(): any[] /*java.util.List*/; + /** + * Returns a {@link DataQuery} where the last node is "popped" off. If this + * query is already the top level query, then the {@link DataQuery#of()} is + * returned. + */ + // @ts-ignore + public pop(): org.spongepowered.api.data.DataQuery; + /** + * Returns a {@link DataQuery} where the first node is "popped" off. If this + * query is already the top level query, then the {@link DataQuery#of()} is + * returned. + */ + // @ts-ignore + public popFirst(): org.spongepowered.api.data.DataQuery; + /** + * Gets the last entry of this {@link DataQuery}. If this query is + * a single entry query or an empty query, it returns itself. + */ + // @ts-ignore + public last(): org.spongepowered.api.data.DataQuery; + /** + * Gets this query as a string separated by the given separator. + */ + // @ts-ignore + public asString(separator: string): string; + /** + * Gets this query as a string separated by the given separator character. + */ + // @ts-ignore + public asString(separator: string): string; + // @ts-ignore + public toString(): string; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: any): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.DataRegistration.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.data.DataRegistration.Builder.ts new file mode 100644 index 00000000..5f76c39f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.DataRegistration.Builder.ts @@ -0,0 +1,112 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace DataRegistration { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.CatalogBuilder { + /** + * Sets the {@link DataManipulator} class to be used. For the sake of + * generics, this method must be called prior to + * {@link #immutableClass(Class)} to properly infer generic usage + * by the compiler and at runtime. + */ + // @ts-ignore + dataClass(manipulatorClass: any): org.spongepowered.api.data.DataRegistration.Builder; + /** + * Sets the immutable class. THIS MUST BE CALLED AFTER + * {@link #dataClass(Class)}! + */ + // @ts-ignore + immutableClass(immutableDataClass: any): org.spongepowered.api.data.DataRegistration.Builder; + /** + * Optionally sets a separate implementation class for the + * {@link DataManipulator}. THIS MUST BE CALLED AFTER + * {@link #dataClass(Class)}! + */ + // @ts-ignore + dataImplementation(dataImplementationClass: any): org.spongepowered.api.data.DataRegistration.Builder; + /** + * Optionally sets a separate implementation class for the + * {@link ImmutableDataManipulator}. THIS MUST BE CALLED AFTER + * {@link #dataClass(Class)}! + */ + // @ts-ignore + immutableImplementation(immutableImplementationClass: any): org.spongepowered.api.data.DataRegistration.Builder; + /** + * Sets the id for the manipulator. The id should be formatted + * according to the normal {@link CatalogType} standard: + *{manipulator-id|
since the
+ * "pluginid"
+ * is gathered from {@link #buildAndRegister(PluginContainer)} provided
+ * {@link PluginContainer}.
+ * The importance of the id is that the id is what will be used for + * serialization and deserialization of custom plugin provided data, + * such that if the string changes, or a plugin is no longer available + * to register the data, the custom data being deserialized will not be + * available through the system, and may be lost.
+ */ + // @ts-ignore + manipulatorId(id: string): org.spongepowered.api.data.DataRegistration.Builder; + /** + * Sets a more generalized name to refer to the registered + * {@link DataManipulator} as a common name. + *As an example: if I have a DummyTestData, a name could be "Dummy". + *
+ */ + // @ts-ignore + dataName(name: string): org.spongepowered.api.data.DataRegistration.Builder; + /** + * Sets the {@link DataManipulatorBuilder} to be used to generate new + * {@link DataManipulator DataManipulators} and + * {@link ImmutableDataManipulator ImmutableDataManipulators}. + */ + // @ts-ignore + builder(builder: org.spongepowered.api.data.manipulator.DataManipulatorBuilder): org.spongepowered.api.data.DataRegistration.Builder; + /** + * Since {@link DataRegistration} objects should be considered + * singletons in that the data registered upon creation is already + * preformed, creating a new {@link DataRegistration} will always + * fail. + */ + // @ts-ignore + from(value: org.spongepowered.api.data.DataRegistration): org.spongepowered.api.data.DataRegistration.Builder; + // @ts-ignore + reset(): org.spongepowered.api.data.DataRegistration.Builder; + /** + * Registers all of the objects for the provided {@link DataRegistration} + * object, including the registration's + * {@link DataRegistration#getManipulatorClass()} for the + * {@link DataManipulator} and + * {@link DataRegistration#getImmutableManipulatorClass()} + * and {@link DataRegistration#getDataManipulatorBuilder()} object. More + * importantly, this also allows the proper identification of the + * {@link DataManipulator} itself by the provided + * {@link DataRegistration#getId()}, + * which, much like {@link CatalogType#getId()} is formatted with + *{plugin-id|:{manipulator-id|
.
+ * It is expected that as the required {@link PluginContainer} is used + * is not a default container from Sponge. The + * {@link PluginContainer#getId()} is utilized to generate the final + * {@link DataRegistration#getId()} for serialization purposes.
+ */ + // @ts-ignore + buildAndRegister(container: org.spongepowered.api.plugin.PluginContainer): org.spongepowered.api.data.DataRegistration; + /** + * {@inheritDoc} + * All of the objects for the provided {@link DataRegistration} + * object, including the registration's + * {@link DataRegistration#getManipulatorClass()} for the + * {@link DataManipulator} and + * {@link DataRegistration#getImmutableManipulatorClass()} + * and {@link DataRegistration#getDataManipulatorBuilder()} + * object will also be registered. + */ + // @ts-ignore + build(): org.spongepowered.api.data.DataRegistration; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.DataRegistration.ts b/packages/sponge/src/typings/org.spongepowered.api.data.DataRegistration.ts new file mode 100644 index 00000000..658f4ed8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.DataRegistration.ts @@ -0,0 +1,54 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface DataRegistration extends org.spongepowered.api.CatalogType { + /** + * Creates a new {@link Builder} to build a {@link DataRegistration}. + * Through the use of generics, this can be duck-typed to the generics of + * the desired {@link DataManipulator} type to be registered. + */ + // @ts-ignore + builder(): org.spongepowered.api.data.DataRegistration.Builder; + /** + * Gets the {@link DataManipulator} class for this registration. + */ + // @ts-ignore + getManipulatorClass(): any; + /** + * Gets the implementing class of the {@link DataManipulator} for this + * registration. + */ + // @ts-ignore + getImplementationClass(): any; + /** + * Gets the {@link ImmutableDataManipulator} class for this registration. + */ + // @ts-ignore + getImmutableManipulatorClass(): any; + /** + * Gets the implementing class of the {@link ImmutableDataManipulator} for + * this registration. + */ + // @ts-ignore + getImmutableImplementationClass(): any; + /** + * Gets the {@link DataManipulatorBuilder} registered for this registration. + */ + // @ts-ignore + getDataManipulatorBuilder(): org.spongepowered.api.data.manipulator.DataManipulatorBuilder; + /** + * Gets the owning {@link PluginContainer}. + */ + // @ts-ignore + getPluginContainer(): org.spongepowered.api.plugin.PluginContainer; + // @ts-ignore + getId(): string; + // @ts-ignore + getName(): string; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.DataRegistrationNotFoundException.ts b/packages/sponge/src/typings/org.spongepowered.api.data.DataRegistrationNotFoundException.ts new file mode 100644 index 00000000..5d12b167 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.DataRegistrationNotFoundException.ts @@ -0,0 +1,62 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + class DataRegistrationNotFoundException extends org.spongepowered.api.data.DataException { + /** + * Constructs a basic data registration not found exception. + */ + constructor() + /** + * Constructs a data registration not found exception with a specified + * registration query, which will be used as the message. + */ + constructor(registrationQuery: string) + /** + * Constructs a data registration not found exception with a specified + * message and registration query. + */ + constructor(message: string, registrationQuery: string) + /** + * Constructs a data registration not found exception with a message and a + * specified data manipulator class. + */ + constructor(message: string, manipulatorClass: any) + /** + * Constructs a data registration not found exception with a message, + * a throwable cause, and a specified data manipulator class. + */ + constructor(message: string, cause: any, manipulatorClass: any) + /** + * Constructs a data registration not found exception with a message, + * an immutable data manipulator class, and a mutable + * data manipulator class. + */ + constructor(message: string, manipulatorClass: any, immutableClass: any) + /** + * Constructs a data registration not found exception with a message, + * a throwable cause, an immutable data manipulator class, + * and a mutable data manipulator class. + */ + constructor(message: string, cause: any, manipulatorClass: any, immutableClass: any) + /** + * Gets the specified registration query, if present. + */ + // @ts-ignore + public getRegistrationQuery(): string; + /** + * Gets the data manipulator class, if present. + */ + // @ts-ignore + public getManipulatorClass(): any; + /** + * Gets the immutable data manipulator class, if present. + */ + // @ts-ignore + public getImmutableClass(): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.DataSerializable.ts b/packages/sponge/src/typings/org.spongepowered.api.data.DataSerializable.ts new file mode 100644 index 00000000..a1b1b02e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.DataSerializable.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface DataSerializable { + /** + * Gets the content version of this {@link DataSerializable}. The version + * may differ between instances of plugins and implementations such that + * the {@link DataView} from {@link #toContainer()} may include different + * information, or remove other information as they are no longer deemed + * necessary. The version goes hand in hand with {@link DataContentUpdater} + * as it is required when there exists any {@link DataView} of this + * {@link DataSerializable} with an "older" version. + */ + // @ts-ignore + getContentVersion(): number; + /** + * Serializes this object into a comprehensible {@link DataContainer}. + */ + // @ts-ignore + toContainer(): org.spongepowered.api.data.DataContainer; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.DataTransactionResult.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.data.DataTransactionResult.Builder.ts new file mode 100644 index 00000000..6742bf2b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.DataTransactionResult.Builder.ts @@ -0,0 +1,102 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace DataTransactionResult { + // @ts-ignore + class Builder implements org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the expectant {@link Type} to the provided + * type. A {@link DataTransactionResult} must always have a type to mark + * the transaction a "success" or "failure". + */ + // @ts-ignore + public result(type: org.spongepowered.api.data.DataTransactionResult.Type): org.spongepowered.api.data.DataTransactionResult.Builder; + /** + * Adds the provided {@link ImmutableValue} to the {@link List} of + * "replaced" {@link ImmutableValue}s. The replaced values are always + * copied for every {@link DataTransactionResult} for referencing. It is + * also possible to retrieve these replaced {@link ImmutableValue}s to + * {@link DataHolder#undo(DataTransactionResult)} at a later point in + * the lifespan of the {@link DataHolder}. + */ + // @ts-ignore + public replace(value: org.spongepowered.api.data.value.immutable.ImmutableValue): org.spongepowered.api.data.DataTransactionResult.Builder; + /** + * Adds the provided {@link ImmutableValue}s to the {@link List} of + * "replaced" {@link ImmutableValue}s. The replaced values are always + * copied for every {@link DataTransactionResult} for referencing. It is + * also possible to retrieve these replaced {@link ImmutableValue}s to + * {@link DataHolder#undo(DataTransactionResult)} at a later point in + * the lifespan of the {@link DataHolder}. + */ + // @ts-ignore + public replace(values: any): org.spongepowered.api.data.DataTransactionResult.Builder; + /** + * Adds the provided {@link ImmutableValue} to the {@link List} of + * "rejected" {@link ImmutableValue}s. The rejected values are always + * copied for every {@link DataTransactionResult} for referencing. It is + * also possible to retrieve these rejected {@link ImmutableValue}s to + * {@link DataHolder#undo(DataTransactionResult)} at a later point in + * the lifespan of the {@link DataHolder}. + */ + // @ts-ignore + public reject(value: org.spongepowered.api.data.value.immutable.ImmutableValue): org.spongepowered.api.data.DataTransactionResult.Builder; + /** + * Adds the provided {@link ImmutableValue}s to the {@link List} of + * "rejected" {@link ImmutableValue}s. The rejected values are always + * copied for every {@link DataTransactionResult} for referencing. It is + * also possible to retrieve these rejected {@link ImmutableValue}s to + * {@link DataHolder#undo(DataTransactionResult)} at a later point in + * the lifespan of the {@link DataHolder}. + */ + // @ts-ignore + public reject(values: any): org.spongepowered.api.data.DataTransactionResult.Builder; + /** + * Adds the provided {@link ImmutableValue} to the {@link List} of + * "successful" {@link ImmutableValue}s. The rejected values are always + * copied for every {@link DataTransactionResult} for referencing. It is + * also possible to retrieve these successful {@link ImmutableValue}s to + * {@link DataHolder#undo(DataTransactionResult)} at a later point in + * the lifespan of the {@link DataHolder}. + */ + // @ts-ignore + public success(value: org.spongepowered.api.data.value.immutable.ImmutableValue): org.spongepowered.api.data.DataTransactionResult.Builder; + /** + * Adds the provided {@link ImmutableValue}s to the {@link List} of + * "successful" {@link ImmutableValue}s. The rejected values are always + * copied for every {@link DataTransactionResult} for referencing. It is + * also possible to retrieve these successful {@link ImmutableValue}s to + * {@link DataHolder#undo(DataTransactionResult)} at a later point in + * the lifespan of the {@link DataHolder}. + */ + // @ts-ignore + public success(values: any): org.spongepowered.api.data.DataTransactionResult.Builder; + /** + * Combines the currently building {@link DataTransactionResult} with the + * one provided. Usually, this means that there is some merging of the + * {@link ImmutableValue}s based on {@link Key}. If this builder already + * has an {@link ImmutableValue} as being successfully offered, and the + * provided result shows the same key as being rejected, the rejected + * {@link ImmutableValue} will remain in the final result. + */ + // @ts-ignore + public absorbResult(result: org.spongepowered.api.data.DataTransactionResult): org.spongepowered.api.data.DataTransactionResult.Builder; + /** + * Builds a new {@link DataTransactionResult} with the providing + * {@link List}s of {@link ImmutableValue}s that are successfully + * offered, {@link ImmutableValue}s that were replaced, and + * {@link ImmutableValue}s that were rejected. + */ + // @ts-ignore + public build(): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public from(value: org.spongepowered.api.data.DataTransactionResult): org.spongepowered.api.data.DataTransactionResult.Builder; + // @ts-ignore + public reset(): org.spongepowered.api.data.DataTransactionResult.Builder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.DataTransactionResult.Type.ts b/packages/sponge/src/typings/org.spongepowered.api.data.DataTransactionResult.Type.ts new file mode 100644 index 00000000..09b19313 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.DataTransactionResult.Type.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace DataTransactionResult { + // @ts-ignore + class Type { + // @ts-ignore + public static UNDEFINED: org.spongepowered.api.data.DataTransactionResult.Type; + // @ts-ignore + public static SUCCESS: org.spongepowered.api.data.DataTransactionResult.Type; + // @ts-ignore + public static FAILURE: org.spongepowered.api.data.DataTransactionResult.Type; + // @ts-ignore + public static ERROR: org.spongepowered.api.data.DataTransactionResult.Type; + // @ts-ignore + public static CANCELLED: org.spongepowered.api.data.DataTransactionResult.Type; + // @ts-ignore + public static values(): org.spongepowered.api.data.DataTransactionResult.Type[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.data.DataTransactionResult.Type; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.DataTransactionResult.ts b/packages/sponge/src/typings/org.spongepowered.api.data.DataTransactionResult.ts new file mode 100644 index 00000000..1a9f9d66 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.DataTransactionResult.ts @@ -0,0 +1,164 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + class DataTransactionResult { + /** + * Gets a new {@link Builder} to build a new + * {@link DataTransactionResult}. + */ + // @ts-ignore + public static builder(): org.spongepowered.api.data.DataTransactionResult.Builder; + /** + * Creates a {@link DataTransactionResult} with no data successfully added, + * removed, or rejected, and with the + * {@link Type} of + * {@link Type#SUCCESS} + * result type. + */ + // @ts-ignore + public static successNoData(): org.spongepowered.api.data.DataTransactionResult; + /** + * Creates a new {@link DataTransactionResult} with the provided + * {@link ImmutableValue} being the successful addition. The result type is + * still {@link Type#SUCCESS}. If a {@link Value} is + * necessary, use {@link Value#asImmutable()} to use this method. A + * {@link DataTransactionResult} is always immutable once created, and any + * {@link BaseValue}s should be provided as {@link ImmutableValue}s or + * transformed into {@link ImmutableValue}s. + */ + // @ts-ignore + public static successResult(value: org.spongepowered.api.data.value.immutable.ImmutableValue): org.spongepowered.api.data.DataTransactionResult; + /** + * Creates a new {@link DataTransactionResult} with the provided + * {@link ImmutableValue} being the successful addition. The result type is + * still {@link Type#SUCCESS}. If a {@link Value} is + * necessary, use {@link Value#asImmutable()} to use this method. A + * {@link DataTransactionResult} is always immutable once created, and any + * {@link BaseValue}s should be provided as {@link ImmutableValue}s or + * transformed into {@link ImmutableValue}s. + */ + // @ts-ignore + public static successReplaceResult(successful: org.spongepowered.api.data.value.immutable.ImmutableValue, replaced: org.spongepowered.api.data.value.immutable.ImmutableValue): org.spongepowered.api.data.DataTransactionResult; + /** + * Creates a new {@link DataTransactionResult} with the provided + * {@link ImmutableValue}s being the successful additions and + * the provided {@link ImmutableValue}s that were replaced. The result type + * is still {@link Type#SUCCESS}. If a {@link Value} + * is necessary, use {@link Value#asImmutable()} to use this method. A + * {@link DataTransactionResult} is always immutable once created, and any + * {@link BaseValue}s should be provided as {@link ImmutableValue}s or + * transformed into {@link ImmutableValue}s. + */ + // @ts-ignore + public static successReplaceResult(successful: any[] /*java.util.Collection*/, replaced: any[] /*java.util.Collection*/): org.spongepowered.api.data.DataTransactionResult; + /** + * Creates a {@link DataTransactionResult} with the provided + * {@link ImmutableValue}s being successfully removed. The result type is + * still {@link Type#SUCCESS}. If a {@link Value} is necessary, use + * {@link Value#asImmutable()} to use this method. A {@link DataTransactionResult} + * is always immutable once created, and any {@link BaseValue}s should be provided + * as {@link ImmutableValue}s or transformed into {@link ImmutableValue}s. + */ + // @ts-ignore + public static successRemove(removed: any[] /*java.util.Collection*/): org.spongepowered.api.data.DataTransactionResult; + /** + * Creates a {@link DataTransactionResult} with the provided + * {@link ImmutableValue} being successfully removed. The result type is + * still {@link Type#SUCCESS}. If a {@link Value} is necessary, use + * {@link Value#asImmutable()} to use this method. A + * {@link DataTransactionResult} is always immutable once created, and a + * {@link BaseValue} should be provided as an {@link ImmutableValue} or + * transformed into an {@link ImmutableValue}. + */ + // @ts-ignore + public static successRemove(removed: org.spongepowered.api.data.value.immutable.ImmutableValue): org.spongepowered.api.data.DataTransactionResult; + /** + * Creates a new {@link DataTransactionResult} that ends in failure. The + * provided {@link ImmutableValue} is considered "rejected" and was not + * successfully added. + */ + // @ts-ignore + public static failResult(value: org.spongepowered.api.data.value.immutable.ImmutableValue): org.spongepowered.api.data.DataTransactionResult; + /** + * Creates a new {@link DataTransactionResult} that ends in failure. The + * provided {@link ImmutableValue}s are considered "rejected" and were not + * successfully added. + */ + // @ts-ignore + public static failResult(values: any): org.spongepowered.api.data.DataTransactionResult; + /** + * Creates a new {@link DataTransactionResult} that ends in failure. There + * is no additional data to include. + */ + // @ts-ignore + public static failNoData(): org.spongepowered.api.data.DataTransactionResult; + /** + * Creates a new {@link DataTransactionResult} that ends in failure. The + * provided {@link ImmutableValue} is considered "incompatible" and was not + * successfully added. + */ + // @ts-ignore + public static errorResult(value: org.spongepowered.api.data.value.immutable.ImmutableValue): org.spongepowered.api.data.DataTransactionResult; + /** + * Gets the type of result. + */ + // @ts-ignore + public getType(): org.spongepowered.api.data.DataTransactionResult.Type; + /** + * Gets whether this {@link DataTransactionResult} was successful or not. + */ + // @ts-ignore + public isSuccessful(): boolean; + /** + * If any {@link BaseValue}s applied onto a {@link CompositeValueStore} were + * successful, they'll be stored in the given list. + */ + // @ts-ignore + public getSuccessfulData(): any[] /*java.util.List*/; + /** + * If {@link Value}s were supplied to the operation, this + * collection will return any {@link ImmutableValue}s which were rejected + * by the target {@link DataHolder}. + */ + // @ts-ignore + public getRejectedData(): any[] /*java.util.List*/; + /** + * If the operation replaced any {@link Value}s, this returns a collection + * of the replaced {@link ImmutableValue}s. + */ + // @ts-ignore + public getReplacedData(): any[] /*java.util.List*/; + /** + * If this result of {@link #isSuccessful()} returns {@code true}, + * the provided {@link Consumer} is called provided a list of all + * "successful" data as retrieved from {@link #getSuccessfulData()}. + */ + // @ts-ignore + public ifSuccessful(consumer: any): void; + /** + * If this result of {@link #isSuccessful()} returns {@code true}, + * the provided {@link Consumer} is called provided a list of all + * "successful" data as retrieved from {@link #getSuccessfulData()}. + */ + // @ts-ignore + public ifSucessful(consumer: any): void; + /** + * Used to call a {@link Supplier} for an {@link Exception} of type + * {@code E} such that if this transaction's {@link #isSuccessful()} + * returns {@code false}, the supplier's exception is thrown. + */ + // @ts-ignore + public ifNotSuccessful(supplier: any): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.DataView.SafetyMode.ts b/packages/sponge/src/typings/org.spongepowered.api.data.DataView.SafetyMode.ts new file mode 100644 index 00000000..cef6dac1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.DataView.SafetyMode.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace DataView { + // @ts-ignore + class SafetyMode { + // @ts-ignore + public static ALL_DATA_CLONED: org.spongepowered.api.data.DataView.SafetyMode; + // @ts-ignore + public static CLONED_ON_SET: org.spongepowered.api.data.DataView.SafetyMode; + // @ts-ignore + public static NO_DATA_CLONED: org.spongepowered.api.data.DataView.SafetyMode; + // @ts-ignore + public static values(): org.spongepowered.api.data.DataView.SafetyMode[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.data.DataView.SafetyMode; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.DataView.ts b/packages/sponge/src/typings/org.spongepowered.api.data.DataView.ts new file mode 100644 index 00000000..f6afbf3d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.DataView.ts @@ -0,0 +1,391 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface DataView { + /** + * Gets the parent container of this DataView. + *Every DataView will always have a {@link DataContainer}.
+ *For any {@link DataContainer}, this will return itself.
+ */ + // @ts-ignore + getContainer(): org.spongepowered.api.data.DataContainer; + /** + * Gets the current path of this {@link DataView} from its root + * {@link DataContainer}. + *For any {@link DataContainer} itself, this will return an + * empty string as it is the root of the path.
+ *The full path will always include this {@link DataView}s name + * at the end of the path.
+ */ + // @ts-ignore + getCurrentPath(): org.spongepowered.api.data.DataQuery; + /** + * Gets the name of this individual {@link DataView} in the path. + *This will always be the final substring of the full path + * from {@link #getCurrentPath()}.
+ */ + // @ts-ignore + getName(): string; + /** + * Gets the parent {@link DataView} of this view. The parent directly + * contains this view according to the {@link #getCurrentPath()}. + *For any {@link DataContainer}, this will return an absent parent.
+ */ + // @ts-ignore + getParent(): any; + /** + * Gets a collection containing all keys in this {@link DataView}. + *If deep is set to true, then this will contain all the keys + * within any child {@link DataView}s (and their children, etc). + * These will be in a valid path notation for you to use.
+ *If deep is set to false, then this will contain only the keys + * of any direct children, and not their own children.
+ */ + // @ts-ignore + getKeys(deep: boolean): any[] /*java.util.Set*/; + /** + * Gets a Map containing all keys and their values for this {@link DataView}. + *If deep is set to true, then this will contain all the keys and + * values within any child {@link DataView}s (and their children, + * etc). These keys will be in a valid path notation for you to use.
+ *If deep is set to false, then this will contain only the keys and + * values of any direct children, and not their own children.
+ */ + // @ts-ignore + getValues(deep: boolean): MapPath can not be empty, to remove this {@link DataView}, call + * the associated parent to remove this views name.
+ */ + // @ts-ignore + remove(path: org.spongepowered.api.data.DataQuery): org.spongepowered.api.data.DataView; + /** + * Creates a new {@link DataView} at the desired path. + *If any data existed at the given path, that data will be + * overwritten with the newly constructed {@link DataView}.
+ */ + // @ts-ignore + createView(path: org.spongepowered.api.data.DataQuery): org.spongepowered.api.data.DataView; + /** + * Creates a new {@link DataView} with the given data at the desired + * path. + *If any data existed at the given path, that data will be overwritten + * with the newly constructed {@link DataView}.
+ */ + // @ts-ignore + createView(path: org.spongepowered.api.data.DataQuery, map: MapIf a {@link DataView} does not exist, or the data residing at + * the path is not an instance of a {@link DataView}, an absent is + * returned.
+ */ + // @ts-ignore + getView(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the underlying {@link Map} by path, if available. + *If a {@link Map} does not exist, or data residing at the path is not + * an instance of a {@link Map}, an absent is returned.
+ */ + // @ts-ignore + getMap(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link Boolean} by path, if available. + *If a {@link Boolean} does not exist, or the data residing at + * the path is not an instance of a {@link Boolean}, an absent is + * returned.
+ */ + // @ts-ignore + getBoolean(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link Short} by path, if available. + *If a {@link Short} does not exist, or the data residing at + * the path is not an instance of a {@link Short}, an absent is + * returned.
+ */ + // @ts-ignore + getShort(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link Byte} by path, if available. + *If a {@link Byte} does not exist, or the data residing at + * the path is not an instance of a {@link Byte}, an absent is + * returned.
+ */ + // @ts-ignore + getByte(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link Integer} by path, if available. + *If a {@link Integer} does not exist, or the data residing at + * the path is not an instance of a {@link Integer}, an absent is + * returned.
+ */ + // @ts-ignore + getInt(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link Long} by path, if available. + *If a {@link Long} does not exist, or the data residing at + * the path is not an instance of a {@link Long}, an absent is + * returned.
+ */ + // @ts-ignore + getLong(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link Float} by path, if available. + *If a {@link Float} does not exist, or the data residing at + * the path is not an instance of a {@link Float}, an absent is + * returned.
+ */ + // @ts-ignore + getFloat(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link Double} by path, if available. + *If a {@link Double} does not exist, or the data residing at + * the path is not an instance of a {@link Double}, an absent is + * returned.
+ */ + // @ts-ignore + getDouble(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link String} by path, if available. + *If a {@link String} does not exist, or the data residing at + * the path is not an instance of a {@link String}, an absent is + * returned.
+ */ + // @ts-ignore + getString(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link List} of something by path, if available. + *If a {@link List} of something does not exist, or the data + * residing at the path is not an instance of a {@link List} of something, + * an absent is returned.
+ */ + // @ts-ignore + getList(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link List} of {@link String} by path, if available. + *If a {@link List} of {@link String} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link String}, an absent is returned.
+ */ + // @ts-ignore + getStringList(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link List} of {@link Character} by path, if available. + *If a {@link List} of {@link Character} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link Character}, an absent is returned.
+ */ + // @ts-ignore + getCharacterList(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link List} of {@link Boolean} by path, if available. + *If a {@link List} of {@link Boolean} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link Boolean}, an absent is returned.
+ */ + // @ts-ignore + getBooleanList(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link List} of {@link Byte} by path, if available. + *If a {@link List} of {@link Byte} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link Byte}, an absent is returned.
+ */ + // @ts-ignore + getByteList(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link List} of {@link Short} by path, if available. + *If a {@link List} of {@link Short} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link Short}, an absent is returned.
+ */ + // @ts-ignore + getShortList(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link List} of {@link Integer} by path, if available. + *If a {@link List} of {@link Integer} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link Integer}, an absent is returned.
+ */ + // @ts-ignore + getIntegerList(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link List} of {@link Long} by path, if available. + *If a {@link List} of {@link Long} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link Long}, an absent is returned.
+ */ + // @ts-ignore + getLongList(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link List} of {@link Float} by path, if available. + *If a {@link List} of {@link Float} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link Float}, an absent is returned.
+ */ + // @ts-ignore + getFloatList(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link List} of {@link Double} by path, if available. + *If a {@link List} of {@link Double} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link Double}, an absent is returned.
+ */ + // @ts-ignore + getDoubleList(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link List} of {@link Map} by path, if available. + *If a {@link List} of {@link Map} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link Map}, an absent is returned.
+ */ + // @ts-ignore + getMapList(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link List} of {@link DataView} by path, if available. + *If a {@link List} of {@link DataView} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link DataView}, an absent is returned.
+ */ + // @ts-ignore + getViewList(path: org.spongepowered.api.data.DataQuery): any; + /** + * Gets the {@link DataSerializable} object by path, if available. + *If a {@link DataSerializable} exists, but is not the proper class + * type, or there is no data at the path given, an absent is returned.
+ *It is important that the {@link DataManager} provided is + * the same one that has registered many of the + * {@link DataBuilder}s to ensure the {@link DataSerializable} + * requested can be returned.
+ */ + // @ts-ignore + getSerializable(path: org.spongepowered.api.data.DataQuery, clazz: any): any; + /** + * Gets the {@link List} of {@link DataSerializable} by path, if available. + *If a {@link List} exists, but the contents of the list are not + * considered {@link DataSerializable} or are not of the proper type of + * {@link DataSerializable}, an absent is returned.
+ *It is important that the {@link DataManager} provided is + * the same one that has registered many of the + * {@link DataBuilder}s to ensure the {@link DataSerializable} + * requested can be returned.
+ */ + // @ts-ignore + getSerializableList(path: org.spongepowered.api.data.DataQuery, clazz: any): any; + /** + * Gets the {@link Object} object by path, if available. + *If a {@link Object} exists, but is not the proper class + * type, or there is no data at the path given, an absent is returned.
+ *It is important that the {@link DataManager} provided is + * the same one that has registered many of the + * {@link DataTranslator}s to ensure the {@link DataSerializable} + * requested can be returned.
+ */ + // @ts-ignore + getObject(path: org.spongepowered.api.data.DataQuery, objectClass: any): any; + /** + * Gets the {@link List} of {@link DataSerializable} by path, if available. + *If a {@link List} exists, but the contents of the list are not + * considered {@link DataTranslator}"able" or are not of the proper type of + * {@link DataTranslator}, an absent is returned.
+ *It is important that the {@link DataManager} provided is + * the same one that has registered many of the + * {@link DataTranslator}s to ensure the {@link Object} + * requested can be returned.
+ */ + // @ts-ignore + getObjectList(path: org.spongepowered.api.data.DataQuery, objectClass: any): any; + /** + * Gets the {@link CatalogType} object by path, if available. + *If a {@link CatalogType} exists, but is not named properly, not + * existing in a registry, or simply an invalid value will return + * an empty value.
+ */ + // @ts-ignore + getCatalogType(path: org.spongepowered.api.data.DataQuery, catalogType: any): any; + /** + * Gets the {@link List} of {@link CatalogType}s by path, if available. + *If a {@link List} exists, but contents of the list are not + * considered {@link CatalogType}s or are not of the proper type + * of {@link CatalogType}, an absent is returned.
+ */ + // @ts-ignore + getCatalogTypeList(path: org.spongepowered.api.data.DataQuery, catalogType: any): any; + /** + * Copies this {@link DataView} and all of it's contents into a new + * {@link DataContainer}. + *Note that the copy will not have the same path as this + * {@link DataView} since it will be constructed with the top level path + * being itself.
+ */ + // @ts-ignore + copy(): org.spongepowered.api.data.DataContainer; + /** + * Copies this {@link DataView} and all of it's contents into a new + * {@link DataContainer} with the given safety mode. + *Note that the copy will not have the same path as this + * {@link DataView} since it will be constructed with the top level path + * being itself.
+ */ + // @ts-ignore + copy(safety: org.spongepowered.api.data.DataView.SafetyMode): org.spongepowered.api.data.DataContainer; + /** + * Gets if this view contains no data. + */ + // @ts-ignore + isEmpty(): boolean; + /** + * Gets the {@link org.spongepowered.api.data.DataView.SafetyMode} of this data view. + */ + // @ts-ignore + getSafetyMode(): org.spongepowered.api.data.DataView.SafetyMode; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.ImmutableDataBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.data.ImmutableDataBuilder.ts new file mode 100644 index 00000000..bb7b268f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.ImmutableDataBuilder.ts @@ -0,0 +1,42 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface ImmutableDataBuilder extends org.spongepowered.api.data.persistence.DataBuilder { + /** + * Adds the given {@link DataManipulator} to the builder. The + * {@link DataManipulator} is copied when the {@link ImmutableDataHolder} + * is created. + */ + // @ts-ignore + add(manipulator: org.spongepowered.api.data.manipulator.DataManipulator): org.spongepowered.api.data.ImmutableDataBuilder; + /** + * Adds the given {@link ImmutableDataManipulator} to the builder. + */ + // @ts-ignore + add(manipulator: org.spongepowered.api.data.manipulator.ImmutableDataManipulator): org.spongepowered.api.data.ImmutableDataBuilder; + /** + * Adds the given {@link Key} with the given value. + */ + // @ts-ignore + add(key: org.spongepowered.api.data.key.Key, value: any): org.spongepowered.api.data.ImmutableDataBuilder; + /** + * Copies all known {@link DataManipulator}s from the given + * {@link ImmutableDataHolder}. This is a defensive copy as + * {@link DataManipulator} is mutable. + */ + // @ts-ignore + from(holder: org.spongepowered.api.data.ImmutableDataHolder): org.spongepowered.api.data.ImmutableDataBuilder; + /** + * Attempts to build a new {@link ImmutableDataHolder}. + */ + // @ts-ignore + build(): org.spongepowered.api.data.ImmutableDataHolder; + // @ts-ignore + reset(): org.spongepowered.api.data.ImmutableDataBuilder; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.ImmutableDataHolder.ts b/packages/sponge/src/typings/org.spongepowered.api.data.ImmutableDataHolder.ts new file mode 100644 index 00000000..341dfda5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.ImmutableDataHolder.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface ImmutableDataHolder extends org.spongepowered.api.data.DataSerializable, org.spongepowered.api.data.property.PropertyHolder, org.spongepowered.api.data.value.immutable.ImmutableValueStore { + /** + * Gets a copy of all properties defined on this + * {@link ImmutableDataHolder}, with their current values. + */ + // @ts-ignore + getManipulators(): any[] /*java.util.List*/; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.LocatableSnapshot.ts b/packages/sponge/src/typings/org.spongepowered.api.data.LocatableSnapshot.ts new file mode 100644 index 00000000..adaccafb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.LocatableSnapshot.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface LocatableSnapshot extends org.spongepowered.api.data.ImmutableDataHolder { + /** + * Gets the {@link UUID} of the world. + */ + // @ts-ignore + getWorldUniqueId(): any; + /** + * Gets the saved block position. + */ + // @ts-ignore + getPosition(): any /*Vector3i*/; + /** + * Gets the {@link Location} of the snapshot at which it may have been + * taken from. The {@link Location} being immutable signifies that the + * {@link LocatableSnapshot} can be re-created at the desired + * {@link Location}. + */ + // @ts-ignore + getLocation(): any; + /** + * Creates a copy of the snapshot with the provided + * {@link Location}. + */ + // @ts-ignore + withLocation(location: org.spongepowered.api.world.Location): org.spongepowered.api.data.LocatableSnapshot; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.MemoryDataContainer.ts b/packages/sponge/src/typings/org.spongepowered.api.data.MemoryDataContainer.ts new file mode 100644 index 00000000..56af53fb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.MemoryDataContainer.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + class MemoryDataContainer extends org.spongepowered.api.data.MemoryDataView implements org.spongepowered.api.data.DataContainer { + /** + * Creates a new {@link MemoryDataContainer} with a default + * {@link org.spongepowered.api.data.DataView.SafetyMode} of + * {@link org.spongepowered.api.data.DataView.SafetyMode#ALL_DATA_CLONED}. + */ + constructor() + /** + * Creates a new {@link MemoryDataContainer} with the provided + * {@link org.spongepowered.api.data.DataView.SafetyMode}. + */ + constructor(safety: org.spongepowered.api.data.DataView.SafetyMode) + // @ts-ignore + public getParent(): any; + // @ts-ignore + public getContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public set(path: org.spongepowered.api.data.DataQuery, value: any): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public set(key: org.spongepowered.api.data.key.Key, value: any): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public remove(path: org.spongepowered.api.data.DataQuery): org.spongepowered.api.data.DataContainer; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.MemoryDataView.ts b/packages/sponge/src/typings/org.spongepowered.api.data.MemoryDataView.ts new file mode 100644 index 00000000..423cc7ad --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.MemoryDataView.ts @@ -0,0 +1,111 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + class MemoryDataView implements org.spongepowered.api.data.DataView { + constructor(safety: org.spongepowered.api.data.DataView.SafetyMode) + constructor(parent: org.spongepowered.api.data.DataView, path: org.spongepowered.api.data.DataQuery, safety: org.spongepowered.api.data.DataView.SafetyMode) + // @ts-ignore + public getContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public getCurrentPath(): org.spongepowered.api.data.DataQuery; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getParent(): any; + // @ts-ignore + public getKeys(deep: boolean): any[] /*java.util.Set*/; + // @ts-ignore + public getValues(deep: boolean): MapCompare the two operands by applying this operator infix
+ * with respect to them. For example, if this object is
+ * {@link Operator#GREATER} then calling this method with
+ * object1
and object2
would effectively
+ * return:
returnValue = object1 > object2;
+ *
+ */
+ // @ts-ignore
+ public compare(operand1: org.spongepowered.api.data.Property, operand2: org.spongepowered.api.data.Property): boolean;
+ /**
+ * Stub for subclasses to implement their logic. Used so we can get the
+ * null comparison logic out of the way first and then only proceed with
+ * comparison if both arguments are non-null.
+ */
+ // @ts-ignore
+ protected apply(operand1: org.spongepowered.api.data.Property, operand2: org.spongepowered.api.data.Property): boolean;
+ /**
+ * Gets the default operator to use if none is specified.
+ */
+ // @ts-ignore
+ public static defaultOperator(): org.spongepowered.api.data.Property.Operator;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.Property.ts b/packages/sponge/src/typings/org.spongepowered.api.data.Property.ts
new file mode 100644
index 00000000..3f6d1811
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.data.Property.ts
@@ -0,0 +1,45 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace data {
+ // @ts-ignore
+ interface Property {
+ /**
+ * Gets the key for this property. Key is only used if an item stack can
+ * have more than one property of a particular type. If the property has no
+ * specific key, the property class name is returned so that properties of
+ * the same type are implicitly comparable.
+ */
+ // @ts-ignore
+ getKey(): any;
+ /**
+ * Gets the "value" of this property. "Value" may have different meanings
+ * depending on the exact type of this property.
+ */
+ // @ts-ignore
+ getValue(): any;
+ /**
+ * Gets the operator to use when comparing another property with this
+ * property.
+ */
+ // @ts-ignore
+ getOperator(): org.spongepowered.api.data.Property.Operator;
+ /**
+ * Compares this property to other
using this property's
+ * operator. This is equivalent to the code:
+ *+ *thisObject.getOperator().compare(thisObject, other);+ *
The order of the operands is important, since {@link Operator} treats + * its type as infix between the two operands, and thus (for example) if + * this property's operator is set to GREATER, then when calling this method + * we want to know whether this is GREATER than other + * and must pass in the operands in the corresponding order.
+ */ + // @ts-ignore + matches(other: org.spongepowered.api.data.Property): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.Queries.ts b/packages/sponge/src/typings/org.spongepowered.api.data.Queries.ts new file mode 100644 index 00000000..f8a47a47 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.Queries.ts @@ -0,0 +1,85 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + class Queries { + // @ts-ignore + public static CONTENT_VERSION: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static TYPE_CLASS: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static ORIGINAL: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static DEFAULT_REPLACEMENT: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static CUSTOM_REPLACEMENT: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static VALID: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static WEIGHTED_SERIALIZABLE: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static WEIGHTED_SERIALIZABLE_WEIGHT: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static ENCHANTMENT_ID: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static LEVEL: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static WEIGHTED_ITEM_QUANTITY: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static WORLD_NAME: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static WORLD_ID: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static CHUNK_X: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static CHUNK_Y: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static CHUNK_Z: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static BLOCK_TYPE: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static POSITION_X: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static POSITION_Y: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static POSITION_Z: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static VARIABLE_CHANCE: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static VARIABLE_BASE: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static VARIABLE_VARIANCE: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static VARIABLE_AMOUNT: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static COLOR_RED: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static COLOR_BLUE: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static COLOR_GREEN: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static CREATOR_ID: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static NOTIFIER_ID: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static JSON: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static TEXT_TITLE: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static TEXT_AUTHOR: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static TEXT_PAGE_LIST: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static FORCED_SPAWN: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static UUID_LEAST: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static UUID_MOST: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static POSITION: org.spongepowered.api.data.DataQuery; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.Transaction.ts b/packages/sponge/src/typings/org.spongepowered.api.data.Transaction.ts new file mode 100644 index 00000000..0607266b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.Transaction.ts @@ -0,0 +1,88 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + class Transaction implements org.spongepowered.api.data.DataSerializable { + /** + * Creates a new transaction. + */ + constructor(original: org.spongepowered.api.data.DataSerializable, defaultReplacement: org.spongepowered.api.data.DataSerializable) + /** + * Creates a new {@link Transaction} with the added possibility of + * intermediary transactions that may have taken place between + * what is {@link #getOriginal() original} and {@link #getDefault() + * the default result}. The list may be {@code null}, however the list + * will wrapped to become an unmodifiable list. + *It is imperative that the provided list is not to be modified + * outside this created {@link Transaction} synchronously and + * asynchronously as consumers of the provided list will not be able + * to react accordingly.
+ */ + constructor(original: org.spongepowered.api.data.DataSerializable, defaultReplacement: org.spongepowered.api.data.DataSerializable, intermediary: any[] /*java.util.List*/) + /** + * Gets the original snapshot. + */ + // @ts-ignore + public getOriginal(): org.spongepowered.api.data.DataSerializable; + /** + * Gets the default replacement snapshot. + */ + // @ts-ignore + public getDefault(): org.spongepowered.api.data.DataSerializable; + /** + * Gets a {@link List} of any and all intermediary transactions that may + * have taken place to get the final {@link Transaction} of + * {@link #getOriginal() the original} and {@link #getDefault() the default} + * results. This is exposed for monitoring purposes only, as the provided + * list is not modifiable. The list may be {@link List#isEmpty() empty} + * by default, but will never be {@code null}. + *Note that special processing with this list may sometimes only take + * place if {@link #getCustom() a custom} result has not been set by a plugin, + * or if {@link #isValid()} returns {@code false}.
+ */ + // @ts-ignore + public getIntermediary(): any[] /*java.util.List*/; + /** + * Gets the custom snapshot if one was set. + */ + // @ts-ignore + public getCustom(): any; + /** + * Sets the custom snapshot. If settingnull
, this will
+ * reset to use the {@link #getDefault()} snapshot.
+ */
+ // @ts-ignore
+ public setCustom(custom: org.spongepowered.api.data.DataSerializable): void;
+ /**
+ * Gets the proposed final snapshot, if the {@link #getCustom()} returns
+ * {@link Optional#isPresent()}, the custom is returned, otherwise,
+ * {@link #getDefault()} is returned.
+ */
+ // @ts-ignore
+ public getFinal(): org.spongepowered.api.data.DataSerializable;
+ /**
+ * Gets whether this transaction is marked as valid.
+ */
+ // @ts-ignore
+ public isValid(): boolean;
+ /**
+ * Sets whether this transaction is valid or not.
+ */
+ // @ts-ignore
+ public setValid(valid: boolean): void;
+ // @ts-ignore
+ public hashCode(): number;
+ // @ts-ignore
+ public equals(obj: any): boolean;
+ // @ts-ignore
+ public toString(): string;
+ // @ts-ignore
+ public getContentVersion(): number;
+ // @ts-ignore
+ public toContainer(): org.spongepowered.api.data.DataContainer;
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.key.Key.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.data.key.Key.Builder.ts
new file mode 100644
index 00000000..976848d8
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.data.key.Key.Builder.ts
@@ -0,0 +1,48 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace data {
+ namespace key {
+ namespace Key {
+ // @ts-ignore
+ interface Builder extends org.spongepowered.api.util.CatalogBuilder {
+ /**
+ * Starter method for the builder, to be used immediately after
+ * {@link Key#builder()} is called. This defines the generics for the
+ * builder itself to provide the properly generified {@link Key}.
+ * Common {@link TypeToken TypeTokens} can be found in + * {@link TypeTokens}. If a new TypeToken is to be created, it is + * recommended to create an anonymous class instance of a token, + * as recommended by Guava's wiki found + * here. + *
+ */ + // @ts-ignore + type(token: any): org.spongepowered.api.data.key.Key.Builder; + // @ts-ignore + id(id: string): org.spongepowered.api.data.key.Key.Builder; + // @ts-ignore + name(name: string): org.spongepowered.api.data.key.Key.Builder; + /** + * Sets the {@link DataQuery} recommended for use with + * {@link DataContainer}s. See {@link Key#getQuery()}. + */ + // @ts-ignore + query(query: org.spongepowered.api.data.DataQuery): org.spongepowered.api.data.key.Key.Builder; + /** + * Builds a new {@link Key}, provided that the + * {@link #type(TypeToken)}, {@link #id(String)}, + * {@link #name(String)}, and {@link #query(DataQuery)} + * are set. + */ + // @ts-ignore + build(): org.spongepowered.api.data.key.Key; + // @ts-ignore + from(value: org.spongepowered.api.data.key.Key): org.spongepowered.api.data.key.Key.Builder; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.key.Key.ts b/packages/sponge/src/typings/org.spongepowered.api.data.key.Key.ts new file mode 100644 index 00000000..cb2c9c7e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.key.Key.ts @@ -0,0 +1,47 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace key { + // @ts-ignore + interface Key extends org.spongepowered.api.CatalogType { + /** + * Creates a {@link Key.Builder} which allows creation of a {@link Key} + * to later be registered for accessing values from + * a {@link ValueContainer}. + */ + // @ts-ignore + builder(): org.spongepowered.api.data.key.Key.Builder; + /** + * Gets the class of the {@link BaseValue} this {@link Key} is representing. + */ + // @ts-ignore + getValueToken(): any; + /** + * Gets the class of the element of the {@link BaseValue} this {@link Key} + * is representing. On occasion, if the element is a {@link Collection} type, + * one can occasionally use {@link TypeToken#resolveType(Type)} with + * {@link Class#getTypeParameters()} as the type parameter of a collection + * is retrievable, such as the element type parameter for {@link List} or + * {@link Map}. + */ + // @ts-ignore + getElementToken(): any; + /** + * Gets the {@link DataQuery} for recommended use with + * {@link DataContainer}s. + */ + // @ts-ignore + getQuery(): org.spongepowered.api.data.DataQuery; + /** + * Register an event listener which listens to the value the key accesses + * changing. + */ + // @ts-ignore + registerEvent(holderFilter: any, listener: org.spongepowered.api.event.EventListener): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.key.KeyFactory.ts b/packages/sponge/src/typings/org.spongepowered.api.data.key.KeyFactory.ts new file mode 100644 index 00000000..8a98a0ab --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.key.KeyFactory.ts @@ -0,0 +1,49 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace key { + // @ts-ignore + class KeyFactory { + /** + * Creates a new {@link Key} with the providedE
element class
+ * and V
{@link Value} class along with the provided default
+ * {@link DataQuery} to be used with the generated {@link Key}.
+ * Note that {@link Key}s are not registered, but it is recommended to + * avoid generating {@link Key}s of potentially conflicting + * {@link DataQuery}(s).
+ */ + // @ts-ignore + public static makeSingleKey(elementToken: any, valueToken: any, query: org.spongepowered.api.data.DataQuery, id: string, name: string): org.spongepowered.api.data.key.Key; + /** + * Creates a new {@link Key} based on a {@link ListValue} of a type + *E
element along with the provided {@link DataQuery}.
+ */
+ // @ts-ignore
+ public static makeListKey(elementToken: any, valueToken: any, query: org.spongepowered.api.data.DataQuery, id: string, name: string): org.spongepowered.api.data.key.Key;
+ /**
+ * Creates a new {@link Key} based on a {@link SetValue} of a type
+ * E
element along with the provided {@link DataQuery}.
+ */
+ // @ts-ignore
+ public static makeSetKey(elementToken: any, valueToken: any, query: org.spongepowered.api.data.DataQuery, id: string, name: string): org.spongepowered.api.data.key.Key;
+ /**
+ * Creates a new {@link Key} based on a {@link MapValue} of the types
+ * K
keys and V
values with the provided
+ * {@link DataQuery} for accessing the {@link Map} in {@link DataView}s.
+ */
+ // @ts-ignore
+ public static makeMapKey(elementToken: any, valueToken: any, query: org.spongepowered.api.data.DataQuery, id: string, name: string): org.spongepowered.api.data.key.Key;
+ /**
+ * Creates a new {@link Key} based on an {@link OptionalValue} of the type
+ * E
element type with the provided {@link DataQuery} for
+ * accessing the optionally null value in {@link DataView}s.
+ */
+ // @ts-ignore
+ public static makeOptionalKey(elementToken: any, valueToken: any, query: org.spongepowered.api.data.DataQuery, id: string, name: string): org.spongepowered.api.data.key.Key;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.key.Keys.ts b/packages/sponge/src/typings/org.spongepowered.api.data.key.Keys.ts
new file mode 100644
index 00000000..9e712eac
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.data.key.Keys.ts
@@ -0,0 +1,539 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace data {
+ namespace key {
+ // @ts-ignore
+ class Keys {
+ // @ts-ignore
+ public static ABSORPTION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static ACCELERATION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static ACTIVE_ITEM: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static AFFECTS_SPAWNING: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static AGE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static AI_ENABLED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static ANGER: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static ANGRY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static AREA_EFFECT_CLOUD_AGE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static AREA_EFFECT_CLOUD_COLOR: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static AREA_EFFECT_CLOUD_DURATION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static AREA_EFFECT_CLOUD_DURATION_ON_USE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static AREA_EFFECT_CLOUD_PARTICLE_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static AREA_EFFECT_CLOUD_RADIUS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static AREA_EFFECT_CLOUD_RADIUS_ON_USE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static AREA_EFFECT_CLOUD_RADIUS_PER_TICK: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static AREA_EFFECT_CLOUD_REAPPLICATION_DELAY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static AREA_EFFECT_CLOUD_WAIT_TIME: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static ARMOR_STAND_HAS_ARMS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static ARMOR_STAND_HAS_BASE_PLATE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static ARMOR_STAND_IS_SMALL: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static ARMOR_STAND_MARKER: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static ARMOR_STAND_TAKING_DISABLED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static ARMOR_STAND_PLACING_DISABLED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static ART: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static ATTACHED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static ATTACK_DAMAGE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static AXIS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static BANNER_BASE_COLOR: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static BANNER_PATTERNS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static BASE_SIZE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static BASE_VEHICLE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static BEACON_PRIMARY_EFFECT: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static BEACON_SECONDARY_EFFECT: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static BIG_MUSHROOM_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static BODY_ROTATIONS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static BOOK_AUTHOR: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static BOOK_PAGES: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static BREAKABLE_BLOCK_TYPES: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static BRICK_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static CAN_BREED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static CAN_DROP_AS_ITEM: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static CAN_FLY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static CAN_GRIEF: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static CAN_PLACE_AS_BLOCK: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static CAREER: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static CHEST_ROTATION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static COAL_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static COLOR: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static COMMAND: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static COMPARATOR_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static CONNECTED_DIRECTIONS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static CONNECTED_EAST: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static CONNECTED_NORTH: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static CONNECTED_SOUTH: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static CONNECTED_WEST: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static CONTAINED_EXPERIENCE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static COOKED_FISH: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static COOLDOWN: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static CREEPER_CHARGED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static CRITICAL_HIT: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static CUSTOM_NAME_VISIBLE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static DAMAGE_ENTITY_MAP: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static DECAYABLE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static DELAY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static DESPAWN_DELAY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static DIRECTION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static DIRT_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static DISARMED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static DISGUISED_BLOCK_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static DISPLAY_NAME: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static DOMINANT_HAND: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static DOUBLE_PLANT_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static DYE_COLOR: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static END_GATEWAY_AGE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static END_GATEWAY_TELEPORT_COOLDOWN: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static EXACT_TELEPORT: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static EXHAUSTION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static EXIT_POSITION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static EXPERIENCE_FROM_START_OF_LEVEL: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static EXPERIENCE_LEVEL: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static EXPERIENCE_SINCE_LEVEL: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static EXPIRATION_TICKS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static EXPLOSION_RADIUS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static EXTENDED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static FALLING_BLOCK_CAN_HURT_ENTITIES: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static FALLING_BLOCK_STATE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static FALL_DAMAGE_PER_BLOCK: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static FALL_DISTANCE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static FALL_TIME: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static FILLED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static FIREWORK_EFFECTS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static FIREWORK_FLIGHT_MODIFIER: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static FIRE_DAMAGE_DELAY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static FIRE_TICKS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static FIRST_DATE_PLAYED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static FISH_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static FLUID_ITEM_STACK: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static FLUID_LEVEL: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static FLUID_TANK_CONTENTS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static FLYING_SPEED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static FOOD_LEVEL: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static FUSE_DURATION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static GAME_MODE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static GENERATION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static GLOWING: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static GOLDEN_APPLE_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static GROWTH_STAGE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static HAS_GRAVITY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static HEAD_ROTATION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static HEALTH: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static HEALTH_SCALE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static HEIGHT: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static HIDE_ATTRIBUTES: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static HIDE_CAN_DESTROY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static HIDE_CAN_PLACE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static HIDE_ENCHANTMENTS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static HIDE_MISCELLANEOUS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static HIDE_UNBREAKABLE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static HINGE_POSITION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static HORSE_COLOR: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static HORSE_STYLE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static INFINITE_DESPAWN_DELAY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static INFINITE_PICKUP_DELAY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static INVISIBLE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static INVULNERABILITY_TICKS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static INVULNERABLE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static IN_WALL: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static IS_ADULT: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static IS_AFLAME: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static IS_ELYTRA_FLYING: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static IS_FLYING: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static IS_JOHNNY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static IS_PLAYING: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static IS_SCREAMING: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static IS_SHEARED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static IS_SILENT: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static IS_SITTING: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static IS_SLEEPING: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static IS_SNEAKING: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static IS_SPRINTING: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static IS_WET: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static ITEM_BLOCKSTATE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static ITEM_DURABILITY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static ITEM_ENCHANTMENTS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static ITEM_LORE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static JOHNNY_VINDICATOR: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static KNOCKBACK_STRENGTH: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static LAST_ATTACKER: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static LAST_COMMAND_OUTPUT: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static LAST_DAMAGE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static LAST_DATE_PLAYED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static LAYER: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static LEFT_ARM_ROTATION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static LEFT_LEG_ROTATION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static LLAMA_STRENGTH: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static LLAMA_VARIANT: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static LOCK_TOKEN: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static LOG_AXIS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static MAX_AIR: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static MAX_BURN_TIME: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static MAX_COOK_TIME: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static MAX_FALL_DAMAGE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static MAX_HEALTH: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static MOISTURE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static NOTE_PITCH: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static OCCUPIED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static OCELOT_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static OFFSET: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static OPEN: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static PARROT_VARIANT: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static PASSED_BURN_TIME: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static PASSED_COOK_TIME: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static PASSENGERS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static PERSISTS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static PICKUP_DELAY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static PICKUP_RULE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static PIG_SADDLE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static PISTON_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static PLACEABLE_BLOCKS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static PLAIN_BOOK_PAGES: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static PLANT_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static PLAYER_CREATED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static PORTION_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static POTION_EFFECTS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static POTION_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static POWER: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static POWERED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static PRISMARINE_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static QUARTZ_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static RABBIT_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static RAIL_DIRECTION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static REMAINING_AIR: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static REMAINING_BREW_TIME: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static REPRESENTED_BLOCK: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static REPRESENTED_ITEM: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static REPRESENTED_PLAYER: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static RESPAWN_LOCATIONS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static RIGHT_ARM_ROTATION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static RIGHT_LEG_ROTATION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static ROTATION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SANDSTONE_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SAND_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SATURATION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SCALE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SEAMLESS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SHOULD_DROP: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SHRUB_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SIGN_LINES: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SKIN_UNIQUE_ID: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SKULL_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SLAB_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SLIME_SIZE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SNOWED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SPAWNABLE_ENTITY_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SPAWNER_ENTITIES: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SPAWNER_MAXIMUM_DELAY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SPAWNER_MAXIMUM_NEARBY_ENTITIES: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SPAWNER_MINIMUM_DELAY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SPAWNER_NEXT_ENTITY_TO_SPAWN: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SPAWNER_REMAINING_DELAY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SPAWNER_REQUIRED_PLAYER_RANGE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SPAWNER_SPAWN_COUNT: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SPAWNER_SPAWN_RANGE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static STAIR_SHAPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static STATISTICS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static STONE_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static STORED_ENCHANTMENTS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static STRUCTURE_AUTHOR: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static STRUCTURE_IGNORE_ENTITIES: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static STRUCTURE_INTEGRITY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static STRUCTURE_MODE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static STRUCTURE_POSITION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static STRUCTURE_POWERED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static STRUCTURE_SEED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static STRUCTURE_SHOW_AIR: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static STRUCTURE_SHOW_BOUNDING_BOX: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static STRUCTURE_SIZE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static STUCK_ARROWS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SUCCESS_COUNT: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static SUSPENDED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static TAMED_OWNER: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static TARGETED_ENTITY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static TARGETED_LOCATION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static TICKS_REMAINING: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static TOTAL_EXPERIENCE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static TRACKS_OUTPUT: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static TRADE_OFFERS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static TREE_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static UNBREAKABLE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static VANISH: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static VANISH_IGNORES_COLLISION: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static VANISH_PREVENTS_TARGETING: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static VEHICLE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static VELOCITY: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static WALKING_SPEED: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static WALL_TYPE: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static WILL_SHATTER: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static WIRE_ATTACHMENTS: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static WIRE_ATTACHMENT_EAST: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static WIRE_ATTACHMENT_NORTH: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static WIRE_ATTACHMENT_SOUTH: org.spongepowered.api.data.key.Key;
+ // @ts-ignore
+ public static WIRE_ATTACHMENT_WEST: org.spongepowered.api.data.key.Key;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.DataManipulator.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.DataManipulator.ts
new file mode 100644
index 00000000..4accf010
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.DataManipulator.ts
@@ -0,0 +1,103 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace data {
+ namespace manipulator {
+ // @ts-ignore
+ interface DataManipulator extends org.spongepowered.api.data.DataSerializable, org.spongepowered.api.data.value.ValueContainer {
+ /**
+ * Attempts to read data from the given {@link DataHolder} and fills the
+ * associated data onto this {@link DataManipulator}.
+ * Any data that overlaps existing data from the {@link DataHolder} will + * take priority and be overwritten from the pre-existing data from the + * {@link DataHolder}. It is recommended that a call from + * {@link DataHolder#supports(Class)} is checked prior to using this + * method on any {@link DataHolder}.
+ */ + // @ts-ignore + fill(dataHolder: org.spongepowered.api.data.DataHolder): any; + /** + * Attempts to read data from the given {@link DataHolder} and fills the + * associated data onto this {@link DataManipulator}. Any data that + * overlaps between this and the given {@link DataHolder} will be resolved + * using the given {@link MergeFunction}. + *Any data that overlaps existing data from the {@link DataHolder} will + * take priority and be overwritten from the pre-existing data from the + * {@link DataHolder}. It is recommended that a call from + * {@link DataHolder#supports(Class)} is checked prior to using this + * method on any {@link DataHolder}.
+ */ + // @ts-ignore + fill(dataHolder: org.spongepowered.api.data.DataHolder, overlap: org.spongepowered.api.data.merge.MergeFunction): any; + /** + * Attempts to read the raw data from the provided {@link DataContainer}. + * This manipulator should be "reset" to a default state and apply all data + * from the given {@link DataContainer}. If data is missing from the + * {@link DataContainer}, {@link Optional#empty()} can be returned. + */ + // @ts-ignore + from(container: org.spongepowered.api.data.DataContainer): any; + /** + * Sets the supported {@link Key}'s value such that the value is set on + * this {@link DataManipulator} without having to directly set the + * {@link Value} and {@link #set(BaseValue)} afterwards. The requirement + * for this to succeed is that the {@link Key} must be checked that it is + * supported via {@link #supports(BaseValue)} or {@link #supports(Key)} + * otherwise an {@link IllegalArgumentException} may be thrown. For + * fluency, after setting, this {@link DataManipulator} is returned. + */ + // @ts-ignore + set(key: org.spongepowered.api.data.key.Key, value: any): org.spongepowered.api.data.manipulator.DataManipulator; + /** + * Sets the supported {@link BaseValue} onto this {@link DataManipulator}. + * The requirement for this to succeed is that the {@link BaseValue} is + * checked for support via {@link #supports(BaseValue)} or + * {@link #supports(Key)} otherwise an {@link IllegalArgumentException} + * may be thrown. For fluency, after setting, this {@link DataManipulator} + * is returned. + */ + // @ts-ignore + set(value: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.data.manipulator.DataManipulator; + /** + * Sets the supported {@link BaseValue}s onto this {@link DataManipulator}. + * The requirement for this to succeed is that the {@link BaseValue} is + * checked for support via {@link #supports(BaseValue)} or + * {@link #supports(Key)} otherwise an {@link IllegalArgumentException} + * may be thrown. For fluency, after setting, this {@link DataManipulator} + * is returned. + */ + // @ts-ignore + set(values: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.data.manipulator.DataManipulator; + /** + * Sets the supported {@link BaseValue}s onto this {@link DataManipulator}. + * The requirement for this to succeed is that the {@link BaseValue} is + * checked for support via {@link #supports(BaseValue)} or + * {@link #supports(Key)} otherwise an {@link IllegalArgumentException} + * may be thrown. For fluency, after setting, this {@link DataManipulator} + * is returned. + */ + // @ts-ignore + set(values: any): org.spongepowered.api.data.manipulator.DataManipulator; + /** + * Applies a transformation on the provided value if available. This is + * the same as {@link CompositeValueStore#transform(Key, Function)}. + */ + // @ts-ignore + transform(key: org.spongepowered.api.data.key.Key, func: any): org.spongepowered.api.data.manipulator.DataManipulator; + // @ts-ignore + copy(): org.spongepowered.api.data.manipulator.DataManipulator; + /** + * Gets an {@link ImmutableDataManipulator} copy of this + * {@link DataManipulator} such that all backed {@link Value}s are copied + * into {@link ImmutableValue} counterparts. Any changes to this + * {@link DataManipulator} will NOT be reflected on the returned + * {@link ImmutableDataManipulator} and vice versa. + */ + // @ts-ignore + asImmutable(): org.spongepowered.api.data.manipulator.ImmutableDataManipulator; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.DataManipulatorBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.DataManipulatorBuilder.ts new file mode 100644 index 00000000..3ec81df5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.DataManipulatorBuilder.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + // @ts-ignore + interface DataManipulatorBuilder extends org.spongepowered.api.data.persistence.DataBuilder { + /** + * Creates a new specific {@link DataManipulator} for consumption. + */ + // @ts-ignore + create(): org.spongepowered.api.data.manipulator.DataManipulator; + /** + * Attempts to read data from the given {@link DataHolder} and constructs + * a new copy of the {@link DataManipulator} as an instance of + *T
.
+ * If the {@link DataHolder} does not contain the necessary information + * to pre-populate the {@link DataManipulator}, a fresh new + * {@link DataManipulator} is returned. If the {@link DataManipulator} is + * incompatible with the {@link DataHolder}, {@link Optional#empty()} is + * returned.
+ */ + // @ts-ignore + createFrom(dataHolder: org.spongepowered.api.data.DataHolder): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.ImmutableDataManipulator.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.ImmutableDataManipulator.ts new file mode 100644 index 00000000..741aa998 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.ImmutableDataManipulator.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + // @ts-ignore + interface ImmutableDataManipulator extends org.spongepowered.api.data.DataSerializable, org.spongepowered.api.data.value.ValueContainer { + /** + * Creates a new {@link ImmutableDataManipulator} with the provided value + * if the {@link Key} is supported by this {@link ImmutableDataManipulator} + * without exception. + */ + // @ts-ignore + with(key: org.spongepowered.api.data.key.Key, value: any): any; + /** + * Creates a new {@link ImmutableDataManipulator} with the provided + * {@link BaseValue} provided that the {@link BaseValue} is supported by + * this {@link ImmutableDataManipulator}. A simple check can be called for + * {@link #supports(BaseValue)} prior to ensure + * {@link Optional#isPresent()} returns {@code true}. + */ + // @ts-ignore + with(value: org.spongepowered.api.data.value.BaseValue): any; + // @ts-ignore + copy(): org.spongepowered.api.data.manipulator.ImmutableDataManipulator; + /** + * Gets a {@link DataManipulator} copy of this + * {@link ImmutableDataManipulator} such that all backed + * {@link ImmutableValue}s are copied into their {@link Value} + * counterparts. Any changes to this {@link ImmutableDataManipulator} will + * NOT be reflected on the returned {@link DataManipulator} and vice versa. + */ + // @ts-ignore + asMutable(): org.spongepowered.api.data.manipulator.DataManipulator; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.ImmutableDataManipulatorBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.ImmutableDataManipulatorBuilder.ts new file mode 100644 index 00000000..7ce9aabc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.ImmutableDataManipulatorBuilder.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + // @ts-ignore + interface ImmutableDataManipulatorBuilder extends org.spongepowered.api.data.persistence.DataBuilder { + /** + * Creates a new specific {@link ImmutableDataManipulator} for consumption. + */ + // @ts-ignore + createImmutable(): org.spongepowered.api.data.manipulator.ImmutableDataManipulator; + /** + * Attempts to read data from the given {@link DataHolder} and constructs + * a new copy of the {@link DataManipulator} as an instance of + *T
.
+ * If the {@link DataHolder} does not contain the necessary information + * to pre-populate the {@link DataManipulator}, a fresh new + * {@link DataManipulator} is returned. If the {@link DataManipulator} is + * incompatible with the {@link DataHolder}, {@link Optional#empty()} is + * returned.
+ */ + // @ts-ignore + createFrom(dataHolder: org.spongepowered.api.data.DataHolder): any; + /** + * Creates the desired {@link ImmutableDataManipulator} from the provided + * {@link ImmutableDataHolder}, if it is supported. + */ + // @ts-ignore + createFrom(dataHolder: org.spongepowered.api.data.ImmutableDataHolder): any; + // @ts-ignore + reset(): org.spongepowered.api.data.manipulator.ImmutableDataManipulatorBuilder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.catalog.CatalogBlockData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.catalog.CatalogBlockData.ts new file mode 100644 index 00000000..7803ecfc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.catalog.CatalogBlockData.ts @@ -0,0 +1,103 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace catalog { + // @ts-ignore + class CatalogBlockData { + // @ts-ignore + public static ATTACHED_DATA: any; + // @ts-ignore + public static AXIS_DATA: any; + // @ts-ignore + public static BIG_MUSHROOM_DATA: any; + // @ts-ignore + public static BRICK_DATA: any; + // @ts-ignore + public static CONNECTED_DIRECTION_DATA: any; + // @ts-ignore + public static DECAYABLE_DATA: any; + // @ts-ignore + public static DELAYABLE_DATA: any; + // @ts-ignore + public static DIRECTIONAL_DATA: any; + // @ts-ignore + public static DIRT_DATA: any; + // @ts-ignore + public static DISARMED_DATA: any; + // @ts-ignore + public static DISGUISED_BLOCK_DATA: any; + // @ts-ignore + public static DOUBLE_PLANT_DATA: any; + // @ts-ignore + public static DYEABLE_DATA: any; + // @ts-ignore + public static EXTENDED_DATA: any; + // @ts-ignore + public static FILLED_DATA: any; + // @ts-ignore + public static FLUID_LEVEL_DATA: any; + // @ts-ignore + public static GROWTH_DATA: any; + // @ts-ignore + public static HINGE_DATA: any; + // @ts-ignore + public static IN_WALL_DATA: any; + // @ts-ignore + public static LAYERED_DATA: any; + // @ts-ignore + public static MOISTURE_DATA: any; + // @ts-ignore + public static NO_DROP_DATA: any; + // @ts-ignore + public static OCCUPIED_DATA: any; + // @ts-ignore + public static OPEN_DATA: any; + // @ts-ignore + public static PISTON_DATA: any; + // @ts-ignore + public static PORTION_DATA: any; + // @ts-ignore + public static POWERED_DATA: any; + // @ts-ignore + public static PRISMARINE_DATA: any; + // @ts-ignore + public static QUARTZ_DATA: any; + // @ts-ignore + public static RAIL_DIRECTION_DATA: any; + // @ts-ignore + public static REDSTONE_POWERED_DATA: any; + // @ts-ignore + public static ROTATIONAL_DATA: any; + // @ts-ignore + public static SAND_DATA: any; + // @ts-ignore + public static SANDSTONE_DATA: any; + // @ts-ignore + public static SEAMLESS_DATA: any; + // @ts-ignore + public static SHRUB_DATA: any; + // @ts-ignore + public static SLAB_DATA: any; + // @ts-ignore + public static SNOWED_DATA: any; + // @ts-ignore + public static STAIR_SHAPE_DATA: any; + // @ts-ignore + public static STONE_DATA: any; + // @ts-ignore + public static TREE_DATA: any; + // @ts-ignore + public static WALL_DATA: any; + // @ts-ignore + public static WET_DATA: any; + // @ts-ignore + public static WIRE_ATTACHMENT_DATA: any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.catalog.CatalogEntityData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.catalog.CatalogEntityData.ts new file mode 100644 index 00000000..29ee0dfa --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.catalog.CatalogEntityData.ts @@ -0,0 +1,149 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace catalog { + // @ts-ignore + class CatalogEntityData { + // @ts-ignore + public static ACCELERATION_DATA: any; + // @ts-ignore + public static AGEABLE_DATA: any; + // @ts-ignore + public static AGENT_DATA: any; + // @ts-ignore + public static AGGRESSIVE_DATA: any; + // @ts-ignore + public static ANGERABLE_DATA: any; + // @ts-ignore + public static DISABLED_SLOTS_DATA: any; + // @ts-ignore + public static ART_DATA: any; + // @ts-ignore + public static BODY_PART_ROTATIONAL_DATA: any; + // @ts-ignore + public static BREATHING_DATA: any; + // @ts-ignore + public static BREEDABLE_DATA: any; + // @ts-ignore + public static CAREER_DATA: any; + // @ts-ignore + public static CHARGED_DATA: any; + // @ts-ignore + public static CRITICAL_HIT_DATA: any; + // @ts-ignore + public static DAMAGEABLE_DATA: any; + // @ts-ignore + public static DAMAGING_DATA: any; + // @ts-ignore + public static DISPLAY_NAME_DATA: any; + // @ts-ignore + public static DOMINANT_HAND_DATA: any; + // @ts-ignore + public static DYEABLE_DATA: any; + // @ts-ignore + public static EXPERIENCE_HOLDER_DATA: any; + // @ts-ignore + public static EXPIRABLE_DATA_CLASS: any; + // @ts-ignore + public static EXPLOSIVE_RADIUS_DATA: any; + // @ts-ignore + public static FALLING_BLOCK_DATA: any; + // @ts-ignore + public static FIREWORK_EFFECT_DATA: any; + // @ts-ignore + public static FIREWORK_ROCKET_DATA: any; + // @ts-ignore + public static FLYING_DATA: any; + // @ts-ignore + public static FOOD_DATA: any; + // @ts-ignore + public static FUSE_DATA: any; + // @ts-ignore + public static GAME_MODE_DATA: any; + // @ts-ignore + public static GLOWING_DATA: any; + // @ts-ignore + public static GRAVITY_DATA: any; + // @ts-ignore + public static GRIEFING_DATA: any; + // @ts-ignore + public static HEALTH_DATA: any; + // @ts-ignore + public static HORSE_DATA: any; + // @ts-ignore + public static IGNITEABLE_DATA: any; + // @ts-ignore + public static INVISIBILITY_DATA: any; + // @ts-ignore + public static JOHNNY_DATA: any; + // @ts-ignore + public static JOIN_DATA: any; + // @ts-ignore + public static KNOCKBACK_DATA: any; + // @ts-ignore + public static LEASH_DATA: any; + // @ts-ignore + public static TARGETED_ENTITY_DATA: any; + // @ts-ignore + public static LOCATION_DATA: any; + // @ts-ignore + public static MINECART_BLOCK_DATA: any; + // @ts-ignore + public static OCELOT_DATA: any; + // @ts-ignore + public static ORB_DATA: any; + // @ts-ignore + public static PASSENGER_DATA: any; + // @ts-ignore + public static PERSISTING_DATA: any; + // @ts-ignore + public static PLAYER_CREATED_DATA: any; + // @ts-ignore + public static PLAYING_DATA: any; + // @ts-ignore + public static POTION_EFFECT_DATA: any; + // @ts-ignore + public static RABBIT_DATA: any; + // @ts-ignore + public static REPRESENTED_ITEM_DATA: any; + // @ts-ignore + public static RESPAWN_LOCATION_DATA: any; + // @ts-ignore + public static PIG_SADDLE_DATA: any; + // @ts-ignore + public static SCREAMING_DATA: any; + // @ts-ignore + public static SILENT_DATA: any; + // @ts-ignore + public static SHATTERING_DATA: any; + // @ts-ignore + public static SHEARED_DATA: any; + // @ts-ignore + public static SITTING_DATA: any; + // @ts-ignore + public static SIZE_DATA: any; + // @ts-ignore + public static SLEEPING_DATA: any; + // @ts-ignore + public static SLIME_DATA: any; + // @ts-ignore + public static SNEAKING_DATA: any; + // @ts-ignore + public static STATISTIC_DATA: any; + // @ts-ignore + public static TAMEABLE_DATA: any; + // @ts-ignore + public static VEHICLE_DATA: any; + // @ts-ignore + public static VELOCITY_DATA: any; + // @ts-ignore + public static WET_DATA: any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.catalog.CatalogItemData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.catalog.CatalogItemData.ts new file mode 100644 index 00000000..815cf3e5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.catalog.CatalogItemData.ts @@ -0,0 +1,63 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace catalog { + // @ts-ignore + class CatalogItemData { + // @ts-ignore + public static BLOCK_ITEM_DATA: any; + // @ts-ignore + public static BREAKABLE_DATA: any; + // @ts-ignore + public static CLONEABLE_DATA: any; + // @ts-ignore + public static COAL_ITEM_DATA: any; + // @ts-ignore + public static COLORED_ITEM_DATA: any; + // @ts-ignore + public static COOKED_FISH_ITEM_DATA: any; + // @ts-ignore + public static DISPLAY_NAME_DATA: any; + // @ts-ignore + public static DURABILITY_DATA: any; + // @ts-ignore + public static DYEABLE_DATA: any; + // @ts-ignore + public static ENCHANTMENT_DATA: any; + // @ts-ignore + public static FIREWORK_EFFECT_DATA: any; + // @ts-ignore + public static FIREWORK_ROCKET_DATA: any; + // @ts-ignore + public static FISH_DATA: any; + // @ts-ignore + public static GOLDEN_APPLE_ITEM_DATA: any; + // @ts-ignore + public static INVENTORY_ITEM_DATA: any; + // @ts-ignore + public static LORE_DATA: any; + // @ts-ignore + public static MAP_ITEM_DATA: any; + // @ts-ignore + public static PAGED_DATA: any; + // @ts-ignore + public static PLACEABLE_DATA: any; + // @ts-ignore + public static POTION_EFFECT_DATA: any; + // @ts-ignore + public static POTION_TYPE_DATA: any; + // @ts-ignore + public static SPAWNABLE_DATA: any; + // @ts-ignore + public static STORED_ENCHANTMENT_DATA: any; + // @ts-ignore + public static TARGETED_LOCATION_DATA: any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.catalog.CatalogTileEntityData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.catalog.CatalogTileEntityData.ts new file mode 100644 index 00000000..c4f9be23 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.catalog.CatalogTileEntityData.ts @@ -0,0 +1,43 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace catalog { + // @ts-ignore + class CatalogTileEntityData { + // @ts-ignore + public static BANNER_DATA: any; + // @ts-ignore + public static BEACON_DATA: any; + // @ts-ignore + public static BREWING_DATA: any; + // @ts-ignore + public static COMMAND_DATA: any; + // @ts-ignore + public static COMPARISON_DATA: any; + // @ts-ignore + public static COOLDOWN_DATA: any; + // @ts-ignore + public static DISPLAY_NAME_DATA: any; + // @ts-ignore + public static FURNACE_DATA: any; + // @ts-ignore + public static LOCKABLE_DATA: any; + // @ts-ignore + public static NOTE_DATA: any; + // @ts-ignore + public static REPRESENTED_PLAYER_DATA: any; + // @ts-ignore + public static JUKEBOX_DATA: any; + // @ts-ignore + public static SIGN_DATA: any; + // @ts-ignore + public static MOB_SPAWNER_DATA: any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableColoredData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableColoredData.ts new file mode 100644 index 00000000..11064ad8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableColoredData.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableColoredData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the {@link Color}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableCommandData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableCommandData.ts new file mode 100644 index 00000000..cdb03a49 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableCommandData.ts @@ -0,0 +1,44 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableCommandData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the currently stored command. + */ + // @ts-ignore + storedCommand(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the success count of the last executed command. + *The success count is the number of times the most recently used + * command of this command block succeeded. Most commands can only succeed + * once per execution, but certain commands (such as those which accept + * players as arguments) can succeed multiple times, and this value will be + * set accordingly. This success count can also be polled via a redstone + * comparator.
+ */ + // @ts-ignore + successCount(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets whether this command block will keep track of the output from the + * last command it executed. + */ + // @ts-ignore + doesTrackOutput(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the last command output. + *This will only be available if {@link #doesTrackOutput()} is set to + * true, otherwise {@link Optional#empty()} will be returned.
+ */ + // @ts-ignore + lastOutput(): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData.ts new file mode 100644 index 00000000..df417d24 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableDisplayNameData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the display name as a {@link Text}. The display name may be + * player set, or it may be undefined. + */ + // @ts-ignore + displayName(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableDyeableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableDyeableData.ts new file mode 100644 index 00000000..3fd8da41 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableDyeableData.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableDyeableData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableFireworkEffectData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableFireworkEffectData.ts new file mode 100644 index 00000000..a6bdb721 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableFireworkEffectData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableFireworkEffectData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} of {@link FireworkEffect}s. + *Note that for {@link ItemTypes#FIREWORK_CHARGE} only the first effect + * will apply to the charge.
+ */ + // @ts-ignore + effects(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableFireworkRocketData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableFireworkRocketData.ts new file mode 100644 index 00000000..d9260a58 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableFireworkRocketData.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableFireworkRocketData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the flight modifier. + *Flight modifiers are tiered ranks of flight duration. Generally, + * the modifier is used to calculate the fuse time of a firework when + * launched. This can be approximated by multiplying 10 and the modifier, + * and adding a random number between 0 and 13. Again, this is a general + * approximation of what vanilla Minecraft performs.
+ */ + // @ts-ignore + flightModifier(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableListData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableListData.ts new file mode 100644 index 00000000..6a4e972e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableListData.ts @@ -0,0 +1,36 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableListData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableListValue} of this {@link ImmutableListData}. + */ + // @ts-ignore + getListValue(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + /** + * Gets the {@link List} value itself from this manipulator. + */ + // @ts-ignore + asList(): any[] /*java.util.List*/; + /** + * Gets an element of type {@code E} by the provided {@code index}. + */ + // @ts-ignore + get(index: number): any; + /** + * Returns whether the underlying {@link List} contains the provided + * {@code element}. + */ + // @ts-ignore + contains(element: any): boolean; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableMappedData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableMappedData.ts new file mode 100644 index 00000000..7bd83a1f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.ImmutableMappedData.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableMappedData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@code value} for the provided {@code key}, if available. + */ + // @ts-ignore + get(key: any): any; + /** + * Gets a {@link Set} of {@code keys} available in this manipulator. + */ + // @ts-ignore + getMapKeys(): any[] /*java.util.Set*/; + /** + * Gets the {@link java.util.Map.Entry} {@link Set} of values. + */ + // @ts-ignore + getMapValues(): any[] /*java.util.Set*/; + /** + * Gets the {@link ImmutableMapValue} of this manipulator. + */ + // @ts-ignore + getMapValue(): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + /** + * Gets this manipulator as a {@link Map}. + */ + // @ts-ignore + asMap(): MapNote that this is still usable with Java 8 method references. + * Referencing {@code this::getfoo()} is recommended.
+ */ + // @ts-ignore + protected registerKeyValue(key: org.spongepowered.api.data.key.Key, func: any): void; + /** + * Simple registration method for the keys to field getter methods. + *Note that this is still usable with Java 8 method references. + * Referencing {@code this::getfoo()} is recommended.
+ */ + // @ts-ignore + protected registerFieldGetter(key: org.spongepowered.api.data.key.Key, func: any): void; + // @ts-ignore + protected abstract registerGetters(): void; + // @ts-ignore + public copy(): org.spongepowered.api.data.manipulator.ImmutableDataManipulator; + // @ts-ignore + public get(key: org.spongepowered.api.data.key.Key): any; + // @ts-ignore + public getValue(key: org.spongepowered.api.data.key.Key): any; + // @ts-ignore + public supports(key: org.spongepowered.api.data.key.Key): boolean; + // @ts-ignore + public getKeys(): any[] /*java.util.Set*/; + // @ts-ignore + public getValues(): any[] /*java.util.Set*/; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: any): boolean; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + /** + * Implement this method to add the data to be persisted. + */ + // @ts-ignore + protected fillContainer(dataContainer: org.spongepowered.api.data.DataContainer): org.spongepowered.api.data.DataContainer; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableListData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableListData.ts new file mode 100644 index 00000000..a9e4ff3d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableListData.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace common { + // @ts-ignore + abstract class AbstractImmutableListData extends org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleData implements org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + constructor(value: any[] /*java.util.List*/, usedKey: org.spongepowered.api.data.key.Key) + constructor(usedKey: org.spongepowered.api.data.key.Key, value: any[] /*java.util.List*/) + constructor(usedKey: org.spongepowered.api.data.key.Key, value: any[] /*java.util.List*/, defaultValue: any[] /*java.util.List*/) + // @ts-ignore + protected getValueGetter(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + // @ts-ignore + public getListValue(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + // @ts-ignore + public asList(): any[] /*java.util.List*/; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableMappedData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableMappedData.ts new file mode 100644 index 00000000..7c09e9f4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableMappedData.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace common { + // @ts-ignore + abstract class AbstractImmutableMappedData extends org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleData implements org.spongepowered.api.data.manipulator.immutable.ImmutableMappedData { + constructor(value: MapIf there is no item, the snapshot will be empty. You can check this + * with {@link ItemStackSnapshot#isEmpty()}.
+ */ + // @ts-ignore + activeItem(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAffectsSpawningData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAffectsSpawningData.ts new file mode 100644 index 00000000..ca584e86 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAffectsSpawningData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableAffectsSpawningData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "affects spawning" state. + */ + // @ts-ignore + affectsSpawning(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAgeableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAgeableData.ts new file mode 100644 index 00000000..27c58f2f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAgeableData.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableAgeableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the "age" state. + */ + // @ts-ignore + age(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableValue} for whether the {@link #age()} is + * considered to be an "adult". + */ + // @ts-ignore + adult(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAgentData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAgentData.ts new file mode 100644 index 00000000..d77a4157 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAgentData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableAgentData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for whether AI tasks are enabled or not. + */ + // @ts-ignore + aiEnabled(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAggressiveData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAggressiveData.ts new file mode 100644 index 00000000..7955c594 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAggressiveData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableAggressiveData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "aggressive" state. + */ + // @ts-ignore + aggressive(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAngerableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAngerableData.ts new file mode 100644 index 00000000..b2370531 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAngerableData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableAngerableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the "anger" level. + */ + // @ts-ignore + angerLevel(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAreaEffectCloudData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAreaEffectCloudData.ts new file mode 100644 index 00000000..3f21cbfb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAreaEffectCloudData.ts @@ -0,0 +1,85 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableAreaEffectCloudData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link Color} of this cloud, can be changed. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@code radius} value of this cloud. + */ + // @ts-ignore + radius(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ParticleType} of this cloud. + */ + // @ts-ignore + particleType(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the bounded {@code duration} value of this cloud. + */ + // @ts-ignore + duration(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the bounded {@code waitTime} value of this cloud. The wait time + * dictates how long until this cloud will affect {@link Entity} instances + * with {@link PotionEffect}s. + */ + // @ts-ignore + waitTime(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the bounded {@code radiusOnUse} value of this cloud. + * The radius is reduced per {@link Entity} affected. + * Once the radius is {@code 0}, the cloud dissipates. + */ + // @ts-ignore + radiusOnUse(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the bounded {@code radiusPerTick} value of this cloud. + * The radius is reduced per tick (so technically can be set to + * {@code 0} to have it remain permanent until it's effects have + * been used up. + */ + // @ts-ignore + radiusPerTick(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the bounded {@code durationOnUse} value of this cloud. + * The duration on use is reduced for every time that this cloud + * applies it's {@link PotionEffect}s on an {@link Entity}. + */ + // @ts-ignore + durationOnUse(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the bounded {@code applicationDelay} value of this cloud. + * What this means is the application delay between times of application + * on an {@link Entity}. + */ + // @ts-ignore + applicationDelay(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ListValue} of {@link PotionEffect}s of this cloud. + * The potion effects will affect any {@link Entity} according to the + * various delays and ticks remaining of this cloud. + */ + // @ts-ignore + effects(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + /** + * Gets the bounded {@code age} value of this cloud. + */ + // @ts-ignore + age(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableArmorStandData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableArmorStandData.ts new file mode 100644 index 00000000..1d64c88b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableArmorStandData.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableArmorStandData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Returns whether this armor stand is considered a "marker" where if + * it is a "marker", then the armor stand is not rendered itself, but + * the equipment it has would still be rendered. + */ + // @ts-ignore + marker(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Returns whether this armor stand is a small armor stand or not. + */ + // @ts-ignore + small(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Returns whether this armor stand shows arms or not. + *Arms that do not show may also not show an item in hand.
+ */ + // @ts-ignore + arms(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets whether this armor stand has a visible base plate or not. + */ + // @ts-ignore + basePlate(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableArtData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableArtData.ts new file mode 100644 index 00000000..047e99fc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableArtData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableArtData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBodyPartRotationalData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBodyPartRotationalData.ts new file mode 100644 index 00000000..e45d17d0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBodyPartRotationalData.ts @@ -0,0 +1,59 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableBodyPartRotationalData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableMapValue} of {@link BodyPart}s to + * {@link Vector3d} rotations. + */ + // @ts-ignore + partRotation(): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + /** + * Gets the individual {@link ImmutableValue} of the {@link Vector3d} + * rotation for {@link BodyParts#HEAD}. + */ + // @ts-ignore + headDirection(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the individual {@link ImmutableValue} of the {@link Vector3d} + * rotation for {@link BodyParts#CHEST}. + */ + // @ts-ignore + bodyRotation(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the individual {@link ImmutableValue} of the {@link Vector3d} + * rotation for {@link BodyParts#LEFT_ARM}. + */ + // @ts-ignore + leftArmDirection(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the individual {@link ImmutableValue} of the {@link Vector3d} + * rotation for {@link BodyParts#RIGHT_ARM}. + */ + // @ts-ignore + rightArmDirection(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the individual {@link ImmutableValue} of the {@link Vector3d} + * rotation for {@link BodyParts#LEFT_LEG}. + */ + // @ts-ignore + leftLegDirection(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the individual {@link ImmutableValue} of the {@link Vector3d} + * rotation for {@link BodyParts#RIGHT_LEG}. + */ + // @ts-ignore + rightLegDirection(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBreathingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBreathingData.ts new file mode 100644 index 00000000..2d6923af --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBreathingData.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableBreathingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the remaining air. Can be + * changed to {@code (air >= 0 && air <= maxAir)}. + */ + // @ts-ignore + remainingAir(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the maximum air capacity. + * The reasoning for it being bounded is that the air capacity must always + * remain at least 1. + */ + // @ts-ignore + maxAir(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBreedableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBreedableData.ts new file mode 100644 index 00000000..41ef0d10 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBreedableData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableBreedableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "breedable" state. + */ + // @ts-ignore + breedable(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCareerData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCareerData.ts new file mode 100644 index 00000000..8fc478d3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCareerData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableCareerData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + /** + * Gets the {@link ImmutableValue} for the {@link Career}. + */ + // @ts-ignore + career(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableChargedData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableChargedData.ts new file mode 100644 index 00000000..f6035471 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableChargedData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableChargedData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the current "charged" state. + */ + // @ts-ignore + charged(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCriticalHitData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCriticalHitData.ts new file mode 100644 index 00000000..f1efff7c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCriticalHitData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableCriticalHitData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "critical hit" state. + */ + // @ts-ignore + criticalHit(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCustomNameVisibleData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCustomNameVisibleData.ts new file mode 100644 index 00000000..069cf595 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCustomNameVisibleData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableCustomNameVisibleData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Returns whether the display name is visible to players. + */ + // @ts-ignore + customNameVisible(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDamageableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDamageableData.ts new file mode 100644 index 00000000..f55a0fef --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDamageableData.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableDamageableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableOptionalValue} for the last attacker. + *This will usually be an entity snapshot of a {@link Living}.
+ *This data will usually only be present within 100 ticks of the attack + * occurring.
+ */ + // @ts-ignore + lastAttacker(): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue; + /** + * Gets the last amount of damage taken by this entity as an optional value. + *This data will usually only be present within 100 ticks of the attack + * occurring.
+ */ + // @ts-ignore + lastDamage(): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDamagingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDamagingData.ts new file mode 100644 index 00000000..2c91c160 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDamagingData.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableDamagingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the damage this projectile will deal to an {@link Entity} if hit. + */ + // @ts-ignore + damage(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableMapValue} for representing the custom damage + * values to use if the owner strikes an entity of that type. + *Note that in events, the damage defined for the provided + * {@link EntityType} will take priority over the "default" damage as + * defined from {@link #damage()}.
+ */ + // @ts-ignore + damageForEntityTypes(): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDespawnDelayData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDespawnDelayData.ts new file mode 100644 index 00000000..7275273c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDespawnDelayData.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableDespawnDelayData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the "despawn delay". + */ + // @ts-ignore + delay(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableValue} for the "is infinite" state of + * the despawn delay. + */ + // @ts-ignore + infinite(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDisabledSlotsData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDisabledSlotsData.ts new file mode 100644 index 00000000..ed0116a7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDisabledSlotsData.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableDisabledSlotsData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Controls slots that players can't take items from. + */ + // @ts-ignore + takingDisabled(): org.spongepowered.api.data.value.immutable.ImmutableSetValue; + /** + * Controls slots that players can't place items into. + */ + // @ts-ignore + placingDisabled(): org.spongepowered.api.data.value.immutable.ImmutableSetValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDominantHandData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDominantHandData.ts new file mode 100644 index 00000000..94cce06f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDominantHandData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableDominantHandData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + /** + * Gets the {@link ImmutableValue} representing the dominant {@link HandPreference} of an + * {@link Entity}. + */ + // @ts-ignore + dominantHand(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableElytraFlyingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableElytraFlyingData.ts new file mode 100644 index 00000000..f83c75a4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableElytraFlyingData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableElytraFlyingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} elytra flying state. + */ + // @ts-ignore + elytraFlying(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExpOrbData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExpOrbData.ts new file mode 100644 index 00000000..0c0746b3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExpOrbData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableExpOrbData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the amount of "experience" stored. + */ + // @ts-ignore + experience(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExperienceHolderData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExperienceHolderData.ts new file mode 100644 index 00000000..cb1dc06e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExperienceHolderData.ts @@ -0,0 +1,46 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableExperienceHolderData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the amount of experience + * gained since the beginning of the current {@link #level()}. Normally, + * the higher the level, the more "experience" required to gain another + * level. + */ + // @ts-ignore + experienceSinceLevel(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the amount of experience + * required between the current {@link #level()} and the next level. + * This can be presumed to be the supposed "maximum" for the + * {@link #experienceSinceLevel()} amount. + */ + // @ts-ignore + experienceBetweenLevels(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the current "level" of + * experience deserved according to the {@link #totalExperience()} and + * a function from implementation defining how much experience required + * per level. + */ + // @ts-ignore + level(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the total amount of experience stored. + */ + // @ts-ignore + totalExperience(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExpirableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExpirableData.ts new file mode 100644 index 00000000..ba15ad26 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExpirableData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableExpirableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the amount of "ticks" + * remaining before the "expiration" occurs. + */ + // @ts-ignore + expireTicks(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExplosionRadiusData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExplosionRadiusData.ts new file mode 100644 index 00000000..2ae6d9d2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExplosionRadiusData.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableExplosionRadiusData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * The radius in blocks that the explosion will affect. This value may be + * missing if the explosion radius is unknown such as when it is generated + * randomly on detonation. Setting this value on such explosives will + * override that behavior. + */ + // @ts-ignore + explosionRadius(): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFallDistanceData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFallDistanceData.ts new file mode 100644 index 00000000..2247b8eb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFallDistanceData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableFallDistanceData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the current fall distance. + */ + // @ts-ignore + fallDistance(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFallingBlockData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFallingBlockData.ts new file mode 100644 index 00000000..3d5fb48a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFallingBlockData.ts @@ -0,0 +1,57 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableFallingBlockData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the damage to deal per block + * the {@link FallingBlock} has fallen. + */ + // @ts-ignore + fallDamagePerBlock(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the maximum damage the {@link FallingBlock} can deal to another + * entity for falling on the entity. + */ + // @ts-ignore + maxFallDamage(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link BlockState} the falling block is representing. + */ + // @ts-ignore + blockState(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets whether this falling block will try to place itself where + * it lands. + */ + // @ts-ignore + canPlaceAsBlock(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets whether this falling block can drop as an item if it lands in a + * way that it can not be placed. + */ + // @ts-ignore + canDropAsItem(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the time the block has been falling if spawning a entity in air + * this will need to be set to 1 or it will be instantly removed. + */ + // @ts-ignore + fallTime(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets whether this falling block will damage entities where it lands. + */ + // @ts-ignore + canHurtEntities(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlammableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlammableData.ts new file mode 100644 index 00000000..94b721dc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlammableData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableFlammableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "aflame" state. + */ + // @ts-ignore + flammable(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingAbilityData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingAbilityData.ts new file mode 100644 index 00000000..26a49cf1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingAbilityData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableFlyingAbilityData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for whether the owner can "fly". + */ + // @ts-ignore + canFly(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingData.ts new file mode 100644 index 00000000..98668a56 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableFlyingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "flying" state. + */ + // @ts-ignore + flying(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFoodData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFoodData.ts new file mode 100644 index 00000000..dcfcff31 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFoodData.ts @@ -0,0 +1,44 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableFoodData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the current food level as an {@link ImmutableBoundedValue}. + *Food level has health effects, depending on game difficulty and + * hunger levels. If the food level is high enough, the human entity + * may heal. If the food level is at 0, the human entity may starve.
+ */ + // @ts-ignore + foodLevel(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the "exhaustion" level. + *When the exhaustion level reaches 0, saturation is usually diminished + * such that saturation is decreased and then exhaustion is reset to the + * maximum. This type of effect occurs over time and can be modified by + * movements and actions performed by the {@link Humanoid} entity.
+ */ + // @ts-ignore + exhaustion(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the "exhaustion" level. + *When the saturation level reaches 0, the food level is usually + * diminished such that the food level is decreased by 1, then + * saturation is reset to the maximum value. This type of effect occurs + * over time and can be modified by movements and actions performed by the + * {@link Humanoid} entity.
+ */ + // @ts-ignore + saturation(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFuseData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFuseData.ts new file mode 100644 index 00000000..0a987edc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFuseData.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableFuseData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * The amount of ticks before the {@link FusedExplosive} detonates when + * primed. + */ + // @ts-ignore + fuseDuration(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * The amount of ticks before {@link FusedExplosive} detonates. This value + * may be zero if the {@link FusedExplosive} is not currently primed nor + * will setting this value have any effect if the {@link FusedExplosive} is + * not primed. + */ + // @ts-ignore + ticksRemaining(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGameModeData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGameModeData.ts new file mode 100644 index 00000000..cc8511a5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGameModeData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableGameModeData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGlowingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGlowingData.ts new file mode 100644 index 00000000..336ab0f7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGlowingData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableGlowingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link Value} representing whether something is glowing. + */ + // @ts-ignore + glowing(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGravityData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGravityData.ts new file mode 100644 index 00000000..54c625b7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGravityData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableGravityData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} of the gravity of an {@link Entity}. + * Returns true when the {@link Entity} has gravity. + */ + // @ts-ignore + gravity(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGriefingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGriefingData.ts new file mode 100644 index 00000000..45714e3c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGriefingData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableGriefingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "griefing" state. + */ + // @ts-ignore + canGrief(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHealthData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHealthData.ts new file mode 100644 index 00000000..56ac8021 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHealthData.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableHealthData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets an {@link ImmutableBoundedValue} for the current health. + *The range of the health depends on the object on which this + * method is defined. For players in Minecraft, the nominal range is + * between 0 and 20, inclusive, but the range can be adjusted.
+ *Convention dictates that health does not follow below 0 but this + * convention may be broken for any reason.
+ */ + // @ts-ignore + health(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets an {@link ImmutableBoundedValue} for the maximum health. + *The maximum health set here may affect the attribute increasing + * health points. The base health should be minded that it may be lower + * than the total maximum health of this entity.
+ */ + // @ts-ignore + maxHealth(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHealthScalingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHealthScalingData.ts new file mode 100644 index 00000000..4042171e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHealthScalingData.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableHealthScalingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Defines the amount of health to show client-side (in hearts) such that + * the maximum health is the value of this scale, and the current health + * is scaled as a ratio. + *If the current maximum health is 400, and the player has 200, but the + * scale dictates 20, then the client will see 5 hearts (or 10 half hearts) + * out of 10 hearts.
+ */ + // @ts-ignore + healthScale(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHorseData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHorseData.ts new file mode 100644 index 00000000..7700f1d5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHorseData.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableHorseData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets an {@link ImmutableValue} for the {@link HorseColor}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets an {@link ImmutableValue} for the {@link HorseStyle}. + */ + // @ts-ignore + style(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableIgniteableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableIgniteableData.ts new file mode 100644 index 00000000..497d8b56 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableIgniteableData.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableIgniteableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the remaining amount of + * "ticks" the {@link Entity} remains on fire. + */ + // @ts-ignore + fireTicks(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the remaining amount of + * "ticks" before the fire will damage the owning {@link Entity}. + */ + // @ts-ignore + fireDelay(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableInvisibilityData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableInvisibilityData.ts new file mode 100644 index 00000000..3d87a624 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableInvisibilityData.ts @@ -0,0 +1,46 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableInvisibilityData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} of the "invisible" state of an + * {@link Entity}. + *Note that this is different from the {@link #vanish()} state as when an + * {@link Entity} is "invisible", update packets are still sent to all clients + * and the server. Likewise, no
+ */ + // @ts-ignore + invisible(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} of the "vanish" state of an + * {@link Entity}. + */ + // @ts-ignore + vanish(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link Value} of whether an {@link Entity} that is "vanished" will + * be ignored for collision detection. The collision detection can affect + * collisions with other {@link Entity entities}, blocks, etc. + */ + // @ts-ignore + ignoresCollisionDetection(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link Value} of whether an {@link Entity} that is "vanished" will + * be ignored when other {@link Entity entities} are processing possible "targets" + * for their AI. + */ + // @ts-ignore + untargetable(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableInvulnerabilityData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableInvulnerabilityData.ts new file mode 100644 index 00000000..8597f732 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableInvulnerabilityData.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableInvulnerabilityData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the amount of "ticks" of + * "invulnerability". + */ + // @ts-ignore + invulnerableTicks(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the boolean {@link ImmutableValue} which represents if an entity is + * invulnerable from most damage sources besides besides the void, + * players in creative mode, and manual killing like the /kill command. + *This does not cover creative mode, where players can also + * be invulnerable.
+ */ + // @ts-ignore + invulnerable(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableJohnnyData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableJohnnyData.ts new file mode 100644 index 00000000..6d95d013 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableJohnnyData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableJohnnyData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for whether this mob is exhibiting + * "johnny" behavior. + */ + // @ts-ignore + johnny(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableJoinData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableJoinData.ts new file mode 100644 index 00000000..10a138af --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableJoinData.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableJoinData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} of the {@link Instant} that a + * {@link Player} joined the {@link Server} the first time. + */ + // @ts-ignore + firstPlayed(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} of the {@link Instant} that a + * {@link Player} joined the {@link Server} the last time. + */ + // @ts-ignore + lastPlayed(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableKnockbackData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableKnockbackData.ts new file mode 100644 index 00000000..d87a0ea7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableKnockbackData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableKnockbackData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the "knockback strength. + */ + // @ts-ignore + knockbackStrength(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableLeashData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableLeashData.ts new file mode 100644 index 00000000..0e11308f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableLeashData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableLeashData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "leash holder". + */ + // @ts-ignore + leashHolder(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableMinecartBlockData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableMinecartBlockData.ts new file mode 100644 index 00000000..0ba1d419 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableMinecartBlockData.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableMinecartBlockData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link BlockState} represented by the {@link Minecart}. + */ + // @ts-ignore + block(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the offset of the represented block, in "pixels". + *Positive values move the block upwards in relation to the minecart, + * and negative values move the block downwards.
+ */ + // @ts-ignore + offset(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableMovementSpeedData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableMovementSpeedData.ts new file mode 100644 index 00000000..020d1fed --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableMovementSpeedData.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableMovementSpeedData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the "walking" speed. + */ + // @ts-ignore + walkSpeed(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableBoundedValue} for the "flying" speed. + */ + // @ts-ignore + flySpeed(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableOcelotData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableOcelotData.ts new file mode 100644 index 00000000..cfe03e61 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableOcelotData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableOcelotData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableParrotData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableParrotData.ts new file mode 100644 index 00000000..9229086d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableParrotData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableParrotData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePassengerData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePassengerData.ts new file mode 100644 index 00000000..a5d87bb1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePassengerData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutablePassengerData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} for the current {@link Entity} + * acting as a passenger. + */ + // @ts-ignore + passengers(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePersistingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePersistingData.ts new file mode 100644 index 00000000..3fed27c4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePersistingData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutablePersistingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "persist" state of an + * {@link Entity}. + */ + // @ts-ignore + persists(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePickupDelayData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePickupDelayData.ts new file mode 100644 index 00000000..4eb96e06 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePickupDelayData.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutablePickupDelayData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the "pickup delay". + */ + // @ts-ignore + delay(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableValue} for the "is infinite" state of + * the pickup delay. + */ + // @ts-ignore + infinite(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePickupRuleData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePickupRuleData.ts new file mode 100644 index 00000000..a4cdbdf7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePickupRuleData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutablePickupRuleData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePigSaddleData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePigSaddleData.ts new file mode 100644 index 00000000..dc95d93a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePigSaddleData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutablePigSaddleData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "saddled" state. + */ + // @ts-ignore + saddle(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePlayerCreatedData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePlayerCreatedData.ts new file mode 100644 index 00000000..29709160 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePlayerCreatedData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutablePlayerCreatedData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "player created" state of an + * {@link IronGolem}. + */ + // @ts-ignore + playerCreated(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePlayingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePlayingData.ts new file mode 100644 index 00000000..4d6773b2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePlayingData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutablePlayingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "playing" state. + */ + // @ts-ignore + playing(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableRabbitData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableRabbitData.ts new file mode 100644 index 00000000..2206a786 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableRabbitData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableRabbitData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableRespawnLocation.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableRespawnLocation.ts new file mode 100644 index 00000000..90b1491c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableRespawnLocation.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableRespawnLocation extends org.spongepowered.api.data.manipulator.immutable.ImmutableMappedData { + /** + * Gets the {@link ImmutableMapValue} for the "respawn" locations set for + * various {@link World#getUniqueId()} such that a {@link Player} may not + * have a respawn point for a particular {@link World}, but may have + * multiple respawn points for other {@link World}s. + */ + // @ts-ignore + respawnLocation(): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + /** + * Gets the respawn location for the given world, if available. If the + * respawn point for that world has not been set, {@link Optional#empty()} + * is returned. + */ + // @ts-ignore + getForWorld(world: org.spongepowered.api.world.World): any; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableScreamingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableScreamingData.ts new file mode 100644 index 00000000..cf277b64 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableScreamingData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableScreamingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "screaming" state. + */ + // @ts-ignore + screaming(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableShatteringData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableShatteringData.ts new file mode 100644 index 00000000..b7acd1fb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableShatteringData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableShatteringData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "shattering" state of an + * {@link EnderPearl}. + */ + // @ts-ignore + willShatter(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableShearedData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableShearedData.ts new file mode 100644 index 00000000..90108696 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableShearedData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableShearedData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} of the "sheared" state. + */ + // @ts-ignore + sheared(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSilentData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSilentData.ts new file mode 100644 index 00000000..1f808f5b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSilentData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableSilentData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "silent state". + */ + // @ts-ignore + silent(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSittingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSittingData.ts new file mode 100644 index 00000000..937a7bf3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSittingData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableSittingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "sitting" state. + */ + // @ts-ignore + sitting(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSizeData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSizeData.ts new file mode 100644 index 00000000..89ba2ce9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSizeData.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableSizeData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "base" size. + */ + // @ts-ignore + base(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the "height" size. + */ + // @ts-ignore + height(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the "scale" size. + */ + // @ts-ignore + scale(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSkinData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSkinData.ts new file mode 100644 index 00000000..180efed3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSkinData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableSkinData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the {@link UUID} of the skin to + * display on a {@link Humanoid} entity for customization. + */ + // @ts-ignore + skinUniqueId(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSleepingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSleepingData.ts new file mode 100644 index 00000000..9827eb72 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSleepingData.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableSleepingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "sleeping" state. + */ + // @ts-ignore + sleeping(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for whether the owning {@link Player}'s + * "sleeping" state is ignored when vanilla mechanics dictate that all + * {@link Player}s must be sleeping to advance through the night. + */ + // @ts-ignore + ignoreSleeping(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSlimeData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSlimeData.ts new file mode 100644 index 00000000..580f8add --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSlimeData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableSlimeData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "size" of a slime. + */ + // @ts-ignore + size(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSneakingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSneakingData.ts new file mode 100644 index 00000000..46dab6b8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSneakingData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableSneakingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "sneaking" state. + */ + // @ts-ignore + sneaking(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSprintData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSprintData.ts new file mode 100644 index 00000000..faf4be4c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSprintData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableSprintData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "sprinting" state. + */ + // @ts-ignore + sprinting(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableStatisticData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableStatisticData.ts new file mode 100644 index 00000000..8f05bc30 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableStatisticData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableStatisticData extends org.spongepowered.api.data.manipulator.immutable.ImmutableMappedData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableStuckArrowsData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableStuckArrowsData.ts new file mode 100644 index 00000000..40c3df43 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableStuckArrowsData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableStuckArrowsData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the stuck arrows. + */ + // @ts-ignore + stuckArrows(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTameableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTameableData.ts new file mode 100644 index 00000000..7920998c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTameableData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableTameableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableOptionalValue} for the {@link UUID} of the + * {@link Tamer}. + */ + // @ts-ignore + owner(): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTargetedEntityData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTargetedEntityData.ts new file mode 100644 index 00000000..0a0f9575 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTargetedEntityData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableTargetedEntityData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the targeted {@link Entity}. + */ + // @ts-ignore + value(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTradeOfferData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTradeOfferData.ts new file mode 100644 index 00000000..c696580b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTradeOfferData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableTradeOfferData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} of {@link TradeOffer}s that can be + * offered. + */ + // @ts-ignore + tradeOffers(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVehicleData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVehicleData.ts new file mode 100644 index 00000000..67d4fc24 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVehicleData.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableVehicleData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the current "vehicle" being ridden. + */ + // @ts-ignore + vehicle(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the base {@link ImmutableValue} for the "base vehicle" being ridden + * such that the current vehicle may be riding another {@link Entity}, + * causing that entity to be called the "base vehicle". + */ + // @ts-ignore + baseVehicle(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVelocityData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVelocityData.ts new file mode 100644 index 00000000..1a5d3fb8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVelocityData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableVelocityData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the current velocity as a + * {@link Vector3d}. + */ + // @ts-ignore + velocity(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableAuthorData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableAuthorData.ts new file mode 100644 index 00000000..7b1b8a61 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableAuthorData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableAuthorData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "author" of a book. + */ + // @ts-ignore + author(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableBlockItemData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableBlockItemData.ts new file mode 100644 index 00000000..fc93fe21 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableBlockItemData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableBlockItemData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the currently represented + * {@link BlockState}. + */ + // @ts-ignore + state(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableBreakableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableBreakableData.ts new file mode 100644 index 00000000..5eca65e5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableBreakableData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableBreakableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableSetValue} for all known {@link BlockType}s that + * can be broken by the owning {@link ItemStack}. + */ + // @ts-ignore + breakable(): org.spongepowered.api.data.value.immutable.ImmutableSetValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableCoalData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableCoalData.ts new file mode 100644 index 00000000..2f614e1e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableCoalData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableCoalData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableCookedFishData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableCookedFishData.ts new file mode 100644 index 00000000..b7ffc4b4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableCookedFishData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableCookedFishData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableDurabilityData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableDurabilityData.ts new file mode 100644 index 00000000..df36cf8e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableDurabilityData.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableDurabilityData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the "durability" remaining. + * The durability is a number signifying how many "uses' remain on the + * item. When the durability reaches 0, usually, the item breaks. + */ + // @ts-ignore + durability(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableValue} for the "unbreakable" state of the + * {@link ItemStack}. While the {@link ItemStack} is "unbreakable", + * the durability can not change. + */ + // @ts-ignore + unbreakable(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableEnchantmentData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableEnchantmentData.ts new file mode 100644 index 00000000..734ef2e1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableEnchantmentData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableEnchantmentData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} of {@link Enchantment}s on + * item stacks. + */ + // @ts-ignore + enchantments(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableFishData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableFishData.ts new file mode 100644 index 00000000..c725cd7a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableFishData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableFishData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableGenerationData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableGenerationData.ts new file mode 100644 index 00000000..37f348d3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableGenerationData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableGenerationData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} that represents the "generation" + * state of a book. + */ + // @ts-ignore + generation(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableGoldenAppleData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableGoldenAppleData.ts new file mode 100644 index 00000000..937c485a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableGoldenAppleData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableGoldenAppleData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableHideData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableHideData.ts new file mode 100644 index 00000000..bd347c33 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableHideData.ts @@ -0,0 +1,47 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableHideData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "enchantments hidden" state of an itemstack. + */ + // @ts-ignore + hideEnchantments(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the "attributes hidden" state of an itemstack. + */ + // @ts-ignore + hideAttributes(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the "unbreakable hidden" state of an itemstack. + */ + // @ts-ignore + hideUnbreakable(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the "can destroy hidden" state of an itemstack. + */ + // @ts-ignore + hideCanDestroy(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the "can destroy hidden" state of an itemstack. + */ + // @ts-ignore + hideCanPlace(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the "miscellaneous hidden" state of an itemstack. + */ + // @ts-ignore + hideMiscellaneous(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableInventoryItemData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableInventoryItemData.ts new file mode 100644 index 00000000..0d7750bc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableInventoryItemData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableInventoryItemData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator, org.spongepowered.api.item.inventory.Carrier { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableLoreData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableLoreData.ts new file mode 100644 index 00000000..813f6bd0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableLoreData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableLoreData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} of the "lore" {@link Text}. + */ + // @ts-ignore + lore(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableMapItemData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableMapItemData.ts new file mode 100644 index 00000000..12bc62b5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableMapItemData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableMapItemData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePagedData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePagedData.ts new file mode 100644 index 00000000..cb95bbc8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePagedData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutablePagedData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} for the {@link Text} pages. + */ + // @ts-ignore + pages(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePlaceableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePlaceableData.ts new file mode 100644 index 00000000..0b3cd8cc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePlaceableData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutablePlaceableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableSetValue} of {@link BlockType}s the + * {@link ItemType} can be placed on. + */ + // @ts-ignore + placeable(): org.spongepowered.api.data.value.immutable.ImmutableSetValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePlainPagedData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePlainPagedData.ts new file mode 100644 index 00000000..11053c0a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePlainPagedData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutablePlainPagedData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} for the {@link Text} pages. + */ + // @ts-ignore + pages(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableSpawnableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableSpawnableData.ts new file mode 100644 index 00000000..85291cc2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableSpawnableData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableSpawnableData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableStoredEnchantmentData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableStoredEnchantmentData.ts new file mode 100644 index 00000000..20bdfe77 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.item.ImmutableStoredEnchantmentData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableStoredEnchantmentData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} of {@link Enchantment}s stored + * such that it can be applied to an {@link ItemStack}. + */ + // @ts-ignore + enchantments(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBannerData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBannerData.ts new file mode 100644 index 00000000..ce649cd6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBannerData.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableBannerData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the base {@link DyeColor}. + */ + // @ts-ignore + baseColor(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutablePatternListValue} of all patterns for the + * {@link Banner}. + */ + // @ts-ignore + patterns(): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBeaconData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBeaconData.ts new file mode 100644 index 00000000..e9a79ac7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBeaconData.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableBeaconData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableOptionalValue} for the primary + * {@link PotionEffectType}. + */ + // @ts-ignore + primaryEffect(): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue; + /** + * Gets the {@link ImmutableOptionalValue} for the secondary + * {@link PotionEffectType}. + */ + // @ts-ignore + secondaryEffect(): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue; + /** + * Creates a new {@link ImmutableBeaconData} with {@link Optional#empty()} + * values for the primary and secondary {@link PotionEffectType}s. + */ + // @ts-ignore + clearEffects(): org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBeaconData; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBedData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBedData.ts new file mode 100644 index 00000000..0cfb38a6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBedData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableBedData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the {@link DyeColor color}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBrewingStandData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBrewingStandData.ts new file mode 100644 index 00000000..da317e7b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBrewingStandData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableBrewingStandData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the remaining brew time. + *If nothing is brewing the immutable value is 0.
+ */ + // @ts-ignore + remainingBrewTime(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableCooldownData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableCooldownData.ts new file mode 100644 index 00000000..6645dc00 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableCooldownData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableCooldownData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "cooldown" remaining. + */ + // @ts-ignore + cooldown(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableEndGatewayData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableEndGatewayData.ts new file mode 100644 index 00000000..a755ae4a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableEndGatewayData.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableEndGatewayData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the exit portal location of + * the {@link EndGateway}. + */ + // @ts-ignore + exitPortal(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the "should use exact teleport + * location" state of the {@link EndGateway}. + */ + // @ts-ignore + exactTeleport(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the age of the {@link EndGateway}. + */ + // @ts-ignore + age(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the teleport cooldown of the + * {@link EndGateway}. + */ + // @ts-ignore + teleportCooldown(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableFurnaceData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableFurnaceData.ts new file mode 100644 index 00000000..47e7d0dd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableFurnaceData.ts @@ -0,0 +1,46 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableFurnaceData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the already passed burn + * time of the {@link Furnace}. When the {@code #passedBurnTime()} is equal + * to the {@link #maxBurnTime()}, the current used fuel is depleted. + */ + // @ts-ignore + passedBurnTime(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the maximum amount of fuel + * that can be supplied with the used fuel item. + *This is represented by the flame icon in the {@link Furnace}, if the + * flame is 100% filled the value is exactly this one. So its the maximum + * of the {@link #passedBurnTime()}.
+ */ + // @ts-ignore + maxBurnTime(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the already passed cook time + * of the {@link ItemStack} in the {@link Furnace}. When this is equal + * to the {@link #maxCookTime()}, the {@link ItemStack} is cooked. + */ + // @ts-ignore + passedCookTime(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the total time the + * {@link ItemStack} has to cook until it is cooked. + */ + // @ts-ignore + maxCookTime(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableLockableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableLockableData.ts new file mode 100644 index 00000000..1c70913d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableLockableData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableLockableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "lock" token. + */ + // @ts-ignore + lockToken(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableNoteData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableNoteData.ts new file mode 100644 index 00000000..994db9b5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableNoteData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableNoteData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the {@link NotePitch}. + */ + // @ts-ignore + note(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableSignData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableSignData.ts new file mode 100644 index 00000000..eba281ca --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableSignData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableSignData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} of {@link Text} for the {@link Sign} + * to show. + */ + // @ts-ignore + lines(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableStructureData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableStructureData.ts new file mode 100644 index 00000000..731f4b9b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableStructureData.ts @@ -0,0 +1,67 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableStructureData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the author of the {@link Structure}. + */ + // @ts-ignore + author(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the ignore entities state of the {@link Structure}. + */ + // @ts-ignore + ignoreEntities(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the integrity of the {@link Structure}. + */ + // @ts-ignore + integrity(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the mode of the {@link Structure}. + */ + // @ts-ignore + mode(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the position of the {@link Structure}. + */ + // @ts-ignore + position(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the powered state of the {@link Structure}. + */ + // @ts-ignore + powered(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the seed of the {@link Structure}. + */ + // @ts-ignore + seed(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the show air state of the {@link Structure}. + */ + // @ts-ignore + showAir(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the show bounding box state of the {@link Structure}. + */ + // @ts-ignore + showBoundingBox(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the size of the {@link Structure}. + */ + // @ts-ignore + size(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.ColoredData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.ColoredData.ts new file mode 100644 index 00000000..e1cc99ff --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.ColoredData.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface ColoredData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the {@link Color}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.CommandData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.CommandData.ts new file mode 100644 index 00000000..e90ad698 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.CommandData.ts @@ -0,0 +1,44 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface CommandData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the currently stored command. + */ + // @ts-ignore + storedCommand(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the success count of the last executed command. + *The success count is the number of times the most recently used + * command of this command block succeeded. Most commands can only succeed + * once per execution, but certain commands (such as those which accept + * players as arguments) can succeed multiple times, and this value will be + * set accordingly. This success count can also be polled via a redstone + * comparator.
+ */ + // @ts-ignore + successCount(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this command block will keep track of the output from the + * last command it executed. + */ + // @ts-ignore + doesTrackOutput(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the last command output. + *This will only be available if {@link #doesTrackOutput()} is set to + * true, otherwise {@link Optional#empty()} will be returned.
+ */ + // @ts-ignore + lastOutput(): org.spongepowered.api.data.value.mutable.OptionalValue; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.DisplayNameData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.DisplayNameData.ts new file mode 100644 index 00000000..c308ad01 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.DisplayNameData.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface DisplayNameData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the display name as a {@link Text}. The display name may be + * player set, or it may be undefined. + */ + // @ts-ignore + displayName(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.DyeableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.DyeableData.ts new file mode 100644 index 00000000..c1f2ea1c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.DyeableData.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface DyeableData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.FireworkEffectData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.FireworkEffectData.ts new file mode 100644 index 00000000..5b89812a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.FireworkEffectData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface FireworkEffectData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link ListValue} of {@link FireworkEffect}s. + *Note that for {@link ItemTypes#FIREWORK_CHARGE} only the first effect + * will apply to the charge.
+ */ + // @ts-ignore + effects(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.FireworkRocketData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.FireworkRocketData.ts new file mode 100644 index 00000000..c19d9a32 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.FireworkRocketData.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface FireworkRocketData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the flight modifier for this firework. + *Flight modifiers are tiered ranks of flight duration. Generally, + * the modifier is used to calculate the fuse time of a firework when + * launched. This can be approximated by multiplying 10 and the modifier, + * and adding a random number between 0 and 13. Again, this is a general + * approximation of what vanilla Minecraft performs.
+ */ + // @ts-ignore + flightModifier(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.ListData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.ListData.ts new file mode 100644 index 00000000..84dd164c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.ListData.ts @@ -0,0 +1,88 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface ListData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link ListValue} of this {@link ListData}. + */ + // @ts-ignore + getListValue(): org.spongepowered.api.data.value.mutable.ListValue; + /** + * Gets the {@link List} value itself from this manipulator. + */ + // @ts-ignore + asList(): any[] /*java.util.List*/; + /** + * Gets an element of type {@code E} by the provided {@code index}. + */ + // @ts-ignore + get(index: number): any; + /** + * Returns whether the underlying {@link List} contains the provided + * {@code element}. + */ + // @ts-ignore + contains(element: any): boolean; + /** + * Replaces the element at the specified position in this list with the + * specified element (optional operation). + */ + // @ts-ignore + setElement(index: number, element: any): org.spongepowered.api.data.manipulator.mutable.ListData; + /** + * Replaces the underlying list of elements with the provided {@link List} + * of elements. + */ + // @ts-ignore + setElements(elements: any[] /*java.util.List*/): org.spongepowered.api.data.manipulator.mutable.ListData; + /** + * Appends the provided element at the end of the underlying {@link List}. + */ + // @ts-ignore + addElement(element: any): org.spongepowered.api.data.manipulator.mutable.ListData; + /** + * Inserts the specified element at the specified position in this list. + * Shifts the element currently at that position (if any) and any + * subsequent elements to the right (adds one to their indices). + */ + // @ts-ignore + addElement(index: number, element: any): org.spongepowered.api.data.manipulator.mutable.ListData; + /** + * Appends the provided {@code E} elements to the end of the internal list + * of elements. + */ + // @ts-ignore + addElements(elements: any): org.spongepowered.api.data.manipulator.mutable.ListData; + /** + * Removes the desired {@code element} from the desired {@code index}. + */ + // @ts-ignore + remove(index: number): org.spongepowered.api.data.manipulator.mutable.ListData; + /** + * Removes the desired {@code element} from the underlying {@link List}. + */ + // @ts-ignore + remove(element: any): org.spongepowered.api.data.manipulator.mutable.ListData; + /** + * Removes all of the provided {@code elements} from the underlying + * {@link List}. + */ + // @ts-ignore + removeAll(elements: any): org.spongepowered.api.data.manipulator.mutable.ListData; + /** + * Removes any and all {@code elements} that match {@code true} to + * the provided {@link Predicate} from the underlying {@link List}. + */ + // @ts-ignore + removeAll(predicate: any): org.spongepowered.api.data.manipulator.mutable.ListData; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.MappedData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.MappedData.ts new file mode 100644 index 00000000..f3b35096 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.MappedData.ts @@ -0,0 +1,56 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface MappedData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@code value} for the provided {@code key}, if available. + */ + // @ts-ignore + get(key: any): any; + /** + * Gets a {@link Set} of {@code keys} available in this manipulator. + */ + // @ts-ignore + getMapKeys(): any[] /*java.util.Set*/; + /** + * Gets the {@link java.util.Map.Entry} {@link Set} of values. + */ + // @ts-ignore + getMapValues(): any[] /*java.util.Set*/; + /** + * Gets the {@link MapValue} of this manipulator. + */ + // @ts-ignore + getMapValue(): org.spongepowered.api.data.value.mutable.MapValue; + /** + * Gets this manipulator as a {@link Map}. + */ + // @ts-ignore + asMap(): MapNote that this is still usable with Java 8 method references. + * Referencing {@code this::getfoo()} is recommended.
+ */ + // @ts-ignore + protected registerKeyValue(key: org.spongepowered.api.data.key.Key, func: any): void; + /** + * Simple registration method for the keys to field getter methods. + *Note that this is still usable with Java 8 method references. + * Referencing {@code this::getfoo()} is recommended.
+ */ + // @ts-ignore + protected registerFieldGetter(key: org.spongepowered.api.data.key.Key, func: any): void; + /** + * Simple registration method for the keys to field setter methods. + *Note that this is still usable with Java 8 method references. + * Referencing {@code this::setFoo(something)} is recommended.
+ */ + // @ts-ignore + protected registerFieldSetter(key: org.spongepowered.api.data.key.Key, func: any): void; + /** + * A required registration method for registering the various fields and + * value getters. It's suggested that if multiple fields are used, each + * field can be represented as a {@link Value} such that there is an + * associated {@link Key} to "get" that field value. + */ + // @ts-ignore + protected abstract registerGettersAndSetters(): void; + // @ts-ignore + public set(key: org.spongepowered.api.data.key.Key, value: any): org.spongepowered.api.data.manipulator.DataManipulator; + // @ts-ignore + public transform(key: org.spongepowered.api.data.key.Key, func: any): org.spongepowered.api.data.manipulator.DataManipulator; + // @ts-ignore + public get(key: org.spongepowered.api.data.key.Key): any; + // @ts-ignore + public getValue(key: org.spongepowered.api.data.key.Key): any; + // @ts-ignore + public supports(key: org.spongepowered.api.data.key.Key): boolean; + // @ts-ignore + public getKeys(): any[] /*java.util.Set*/; + // @ts-ignore + public getValues(): any[] /*java.util.Set*/; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: any): boolean; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + /** + * Implement this method to add the data to be persisted. + */ + // @ts-ignore + protected fillContainer(dataContainer: org.spongepowered.api.data.DataContainer): org.spongepowered.api.data.DataContainer; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.common.AbstractIntData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.common.AbstractIntData.ts new file mode 100644 index 00000000..b7a0bc0b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.common.AbstractIntData.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace common { + // @ts-ignore + abstract class AbstractIntData extends org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleData { + constructor(value: number, usedKey: org.spongepowered.api.data.key.Key) + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.common.AbstractListData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.common.AbstractListData.ts new file mode 100644 index 00000000..f8659d84 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.common.AbstractListData.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace common { + // @ts-ignore + abstract class AbstractListData extends org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleData implements org.spongepowered.api.data.manipulator.mutable.ListData { + constructor(value: any[] /*java.util.List*/, usedKey: org.spongepowered.api.data.key.Key) + constructor(usedKey: org.spongepowered.api.data.key.Key, value: any[] /*java.util.List*/) + constructor(usedKey: org.spongepowered.api.data.key.Key, value: any[] /*java.util.List*/, defaultValue: any[] /*java.util.List*/) + // @ts-ignore + protected getValueGetter(): org.spongepowered.api.data.value.mutable.ListValue; + // @ts-ignore + public get(key: org.spongepowered.api.data.key.Key): any; + // @ts-ignore + public supports(key: org.spongepowered.api.data.key.Key): boolean; + // @ts-ignore + public abstract asImmutable(): org.spongepowered.api.data.manipulator.immutable.ImmutableListData; + // @ts-ignore + protected getValue(): any[] /*java.util.List*/; + // @ts-ignore + protected setValue(value: any[] /*java.util.List*/): org.spongepowered.api.data.manipulator.mutable.ListData; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: any): boolean; + // @ts-ignore + public getListValue(): org.spongepowered.api.data.value.mutable.ListValue; + // @ts-ignore + public asList(): any[] /*java.util.List*/; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.common.AbstractMappedData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.common.AbstractMappedData.ts new file mode 100644 index 00000000..7a6bf96b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.common.AbstractMappedData.ts @@ -0,0 +1,34 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace common { + // @ts-ignore + abstract class AbstractMappedData extends org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleData implements org.spongepowered.api.data.manipulator.mutable.MappedData { + constructor(value: MapIf there is no item, the snapshot will be empty. You can check this + * with {@link ItemStackSnapshot#isEmpty()}.
+ */ + // @ts-ignore + activeItem(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.AffectsSpawningData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.AffectsSpawningData.ts new file mode 100644 index 00000000..39105fcc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.AffectsSpawningData.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface AffectsSpawningData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "affects spawning" state. + *A {@link Player} who does not affect spawning will be treated as a + * spectator in regards to spawning. A {@link MobSpawner} will not be + * activated by his presence and mobs around him may naturally despawn + * if there is no other Player around who affects spawning.
+ */ + // @ts-ignore + affectsSpawning(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.AgeableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.AgeableData.ts new file mode 100644 index 00000000..e8ff9202 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.AgeableData.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface AgeableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "age" state. + */ + // @ts-ignore + age(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link Value} for whether the {@link #age()} is + * considered to be an "adult". + */ + // @ts-ignore + adult(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.AgentData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.AgentData.ts new file mode 100644 index 00000000..6d8528d1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.AgentData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface AgentData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for whether AI tasks are enabled or not. + */ + // @ts-ignore + aiEnabled(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.AggressiveData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.AggressiveData.ts new file mode 100644 index 00000000..469c06c5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.AggressiveData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface AggressiveData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "aggressive" state. + */ + // @ts-ignore + aggressive(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.AngerableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.AngerableData.ts new file mode 100644 index 00000000..f7535597 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.AngerableData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface AngerableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "anger" level. + */ + // @ts-ignore + angerLevel(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.AreaEffectCloudData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.AreaEffectCloudData.ts new file mode 100644 index 00000000..d430eee7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.AreaEffectCloudData.ts @@ -0,0 +1,91 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface AreaEffectCloudData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Color} of this cloud, can be changed. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@code radius} value of this cloud. + */ + // @ts-ignore + radius(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link ParticleType} of this cloud. + */ + // @ts-ignore + particleType(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the bounded {@code duration} value of this cloud. + */ + // @ts-ignore + duration(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code waitTime} value of this cloud. The wait time + * dictates how long until this cloud will affect {@link Entity} instances + * with {@link PotionEffect}s. + */ + // @ts-ignore + waitTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code radiusOnUse} value of this cloud. + * The radius is modified per {@link Entity} affected. + * Once the radius is {@code 0}, the cloud dissipates. + *A positive radiusOnUse value will make the cloud grow, a negative + * one will make it shrink.
+ */ + // @ts-ignore + radiusOnUse(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code radiusPerTick} value of this cloud. + *The radius is increased every tick. A radiusPerTick of 0 will cause + * the cloud to stay at its original size until its duration runs out, a + * positive number will make it grow, and a negative number will make it + * shrink whenever it applies its effect. + */ + // @ts-ignore + radiusPerTick(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code durationOnUse} value of this cloud. + * The duration on use is added to the duration for every time + * that this cloud applies it's {@link PotionEffect}s on an + * {@link Entity}. + *
If the duration on use is negative, every application of + * an effect to an entity will decrease the cloud's duration
+ */ + // @ts-ignore + durationOnUse(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code applicationDelay} value of this cloud. + * What this means is the application delay between times of application + * on an {@link Entity}. + */ + // @ts-ignore + applicationDelay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link ListValue} of {@link PotionEffect}s of this cloud. + * The potion effects will affect any {@link Entity} according to the + * various delays and ticks remaining of this cloud. + */ + // @ts-ignore + effects(): org.spongepowered.api.data.value.mutable.ListValue; + /** + * Gets the bounded {@code age} value of this cloud. + */ + // @ts-ignore + age(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ArmorStandData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ArmorStandData.ts new file mode 100644 index 00000000..f70bfb83 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ArmorStandData.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ArmorStandData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Returns whether this armor stand is rendered invisible and simply a + * "marker". The inventory contents and nameplate will still show, but + * the body itself of the armor stand will not be visible. + */ + // @ts-ignore + marker(): org.spongepowered.api.data.value.mutable.Value; + /** + * Returns whether this armor stand is a small armor stand or not. + */ + // @ts-ignore + small(): org.spongepowered.api.data.value.mutable.Value; + /** + * Returns whether this armor stand shows arms or not. + *Arms that do not show may also not show an item in hand.
+ */ + // @ts-ignore + arms(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this armor stand has a visible base plate or not. + */ + // @ts-ignore + basePlate(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ArtData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ArtData.ts new file mode 100644 index 00000000..fddb2855 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ArtData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ArtData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.BodyPartRotationalData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.BodyPartRotationalData.ts new file mode 100644 index 00000000..2c67623a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.BodyPartRotationalData.ts @@ -0,0 +1,53 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface BodyPartRotationalData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MapValue} of {@link BodyPart}s to {@link Vector3d} + * rotations. + */ + // @ts-ignore + partRotation(): org.spongepowered.api.data.value.mutable.MapValue; + /** + * Gets the direction the headpiece is aiming at. + */ + // @ts-ignore + headDirection(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the direction the body is aiming at. + */ + // @ts-ignore + bodyRotation(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the direction the left arm is aiming at. + */ + // @ts-ignore + leftArmDirection(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the direction the right arm is aiming at. + */ + // @ts-ignore + rightArmDirection(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the direction the left leg is aiming at. + */ + // @ts-ignore + leftLegDirection(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the direction the right leg is aiming at. + */ + // @ts-ignore + rightLegDirection(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.BreathingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.BreathingData.ts new file mode 100644 index 00000000..512451a6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.BreathingData.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface BreathingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the remaining air. Can be + * changed to {@code (air >= 0 && air <= maxAir)}. + */ + // @ts-ignore + remainingAir(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the maximum air capacity. + * The reasoning for it being bounded is that the air capacity must always + * remain at least 1. + */ + // @ts-ignore + maxAir(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.BreedableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.BreedableData.ts new file mode 100644 index 00000000..0fe74926 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.BreedableData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface BreedableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "breedable" state. + */ + // @ts-ignore + breedable(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.CareerData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.CareerData.ts new file mode 100644 index 00000000..d1a5494f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.CareerData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface CareerData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ChargedData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ChargedData.ts new file mode 100644 index 00000000..b0cb82d9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ChargedData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ChargedData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the current "charged" state. + */ + // @ts-ignore + charged(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.CriticalHitData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.CriticalHitData.ts new file mode 100644 index 00000000..158bfd5f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.CriticalHitData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface CriticalHitData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "critical hit" state. + */ + // @ts-ignore + criticalHit(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.CustomNameVisibleData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.CustomNameVisibleData.ts new file mode 100644 index 00000000..e98b168f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.CustomNameVisibleData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface CustomNameVisibleData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Returns whether the display name is visible to players. + */ + // @ts-ignore + customNameVisible(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.DamageableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.DamageableData.ts new file mode 100644 index 00000000..e431c935 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.DamageableData.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface DamageableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link OptionalValue} for the last attacker. + *This will usually be an entity snapshot of a {@link Living}.
+ *This data will usually only be present within 100 ticks of the attack + * occurring.
+ */ + // @ts-ignore + lastAttacker(): org.spongepowered.api.data.value.mutable.OptionalValue; + /** + * Gets the last amount of damage taken by this entity as an optional value. + *This data will usually only be present within 100 ticks of the attack + * occurring.
+ */ + // @ts-ignore + lastDamage(): org.spongepowered.api.data.value.mutable.OptionalValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.DamagingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.DamagingData.ts new file mode 100644 index 00000000..236e4145 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.DamagingData.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface DamagingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the damage this projectile will deal to a {@link Living} + * if hit. + */ + // @ts-ignore + damage(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MapValue} for representing the custom damage + * values to use if the owner strikes an entity of that type. + *Note that in events, the damage defined for the provided + * {@link EntityType} will take priority over the "default" damage as + * defined from {@link #damage()}.
+ */ + // @ts-ignore + damageForEntity(): org.spongepowered.api.data.value.mutable.MapValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.DespawnDelayData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.DespawnDelayData.ts new file mode 100644 index 00000000..1d349377 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.DespawnDelayData.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface DespawnDelayData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "despawn delay". + */ + // @ts-ignore + delay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link Value} for the "is infinite" state of + * the despawn delay. + */ + // @ts-ignore + infinite(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.DisabledSlotsData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.DisabledSlotsData.ts new file mode 100644 index 00000000..c2236a74 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.DisabledSlotsData.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface DisabledSlotsData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Controls slots that players can't take items from. + */ + // @ts-ignore + takingDisabled(): org.spongepowered.api.data.value.mutable.SetValue; + /** + * Controls slots that players can't place items into. + */ + // @ts-ignore + placingDisabled(): org.spongepowered.api.data.value.mutable.SetValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.DominantHandData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.DominantHandData.ts new file mode 100644 index 00000000..444b6f20 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.DominantHandData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface DominantHandData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + /** + * Gets the {@link Value} representing the dominant {@link HandPreference} of an + * {@link Entity}. + */ + // @ts-ignore + dominantHand(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ElytraFlyingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ElytraFlyingData.ts new file mode 100644 index 00000000..de3314a5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ElytraFlyingData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ElytraFlyingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} elytra flying state. + */ + // @ts-ignore + elytraFlying(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ExpOrbData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ExpOrbData.ts new file mode 100644 index 00000000..52c9e01f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ExpOrbData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ExpOrbData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the amount of "experience" stored. + */ + // @ts-ignore + experience(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ExperienceHolderData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ExperienceHolderData.ts new file mode 100644 index 00000000..46ba1517 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ExperienceHolderData.ts @@ -0,0 +1,46 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ExperienceHolderData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the amount of experience + * gained since the beginning of the current {@link #level()}. Normally, + * the higher the level, the more "experience" required to gain another + * level. + */ + // @ts-ignore + experienceSinceLevel(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the amount of experience + * required between the current {@link #level()} and the next level. + * This can be presumed to be the supposed "maximum" for the + * {@link #experienceSinceLevel()} amount. + */ + // @ts-ignore + getExperienceBetweenLevels(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the current "level" of + * experience deserved according to the {@link #totalExperience()} and + * a function from implementation defining how much experience required + * per level. + */ + // @ts-ignore + level(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the total amount of experience stored. + */ + // @ts-ignore + totalExperience(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ExpirableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ExpirableData.ts new file mode 100644 index 00000000..0a6d2d48 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ExpirableData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ExpirableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the amount of "ticks" + * remaining before the "expiration" occurs. + */ + // @ts-ignore + expireTicks(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ExplosionRadiusData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ExplosionRadiusData.ts new file mode 100644 index 00000000..87d3695e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ExplosionRadiusData.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ExplosionRadiusData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * The radius in blocks that the explosion will affect. This value may be + * missing if the explosion radius is unknown such as when it is generated + * randomly on detonation. Setting this value on such explosives will + * override that behavior. + */ + // @ts-ignore + explosionRadius(): org.spongepowered.api.data.value.mutable.OptionalValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FallDistanceData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FallDistanceData.ts new file mode 100644 index 00000000..6ff1c65a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FallDistanceData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface FallDistanceData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the current fall distance. + */ + // @ts-ignore + fallDistance(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FallingBlockData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FallingBlockData.ts new file mode 100644 index 00000000..aaeabd29 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FallingBlockData.ts @@ -0,0 +1,56 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface FallingBlockData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the damage to deal per block + * the {@link FallingBlock} has fallen. + */ + // @ts-ignore + fallDamagePerBlock(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the maximum damage the {@link FallingBlock} can deal to another + * entity for falling on the entity. + */ + // @ts-ignore + maxFallDamage(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link BlockState} the falling block is representing. + */ + // @ts-ignore + blockState(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this falling block will try to place itself where + * it lands. + */ + // @ts-ignore + canPlaceAsBlock(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this falling block can drop as an item if it lands in a + * way that it can not be placed. + */ + // @ts-ignore + canDropAsItem(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the number of ticks the block has been falling for. + */ + // @ts-ignore + fallTime(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this falling block will damage entities where it lands. + */ + // @ts-ignore + canHurtEntities(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FlammableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FlammableData.ts new file mode 100644 index 00000000..b900eea0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FlammableData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface FlammableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "aflame" state. + */ + // @ts-ignore + flammable(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FlyingAbilityData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FlyingAbilityData.ts new file mode 100644 index 00000000..05fcb9b1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FlyingAbilityData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface FlyingAbilityData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for whether the owner can "fly". + */ + // @ts-ignore + canFly(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FlyingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FlyingData.ts new file mode 100644 index 00000000..fb8d3409 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FlyingData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface FlyingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "flying" state. + */ + // @ts-ignore + flying(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FoodData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FoodData.ts new file mode 100644 index 00000000..6c313cde --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FoodData.ts @@ -0,0 +1,44 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface FoodData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the current food level as an {@link MutableBoundedValue}. + *Food level has health effects, depending on game difficulty and + * hunger levels. If the food level is high enough, the human entity + * may heal. If the food level is at 0, the human entity may starve.
+ */ + // @ts-ignore + foodLevel(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the "exhaustion" level. + *When the exhaustion level reaches 0, saturation is usually diminished + * such that saturation is decreased and then exhaustion is reset to the + * maximum. This type of effect occurs over time and can be modified by + * movements and actions performed by the {@link Humanoid} entity.
+ */ + // @ts-ignore + exhaustion(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the "saturation" level. + *When the saturation level reaches 0, the food level is usually + * diminished such that the food level is decreased by 1, then + * saturation is reset to the maximum value. This type of effect occurs + * over time and can be modified by movements and actions performed by the + * {@link Humanoid} entity.
+ */ + // @ts-ignore + saturation(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FuseData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FuseData.ts new file mode 100644 index 00000000..cd30d8c9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.FuseData.ts @@ -0,0 +1,34 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface FuseData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * The amount of ticks before the {@link FusedExplosive} detonates when + * primed. + */ + // @ts-ignore + fuseDuration(): org.spongepowered.api.data.value.mutable.Value; + /** + * The amount of ticks before {@link FusedExplosive} detonates. Setting + * this value has no effect if the explosive is not currently + * primed and is set to an arbitrary value that differs from explosive to + * explosive when not-primed. Therefore, this value should be ignored when + * the explosive is not primed. Instead, set the fuse duration of the + * explosive which is the value used to initialize this value when the + * explosive is primed. + */ + // @ts-ignore + ticksRemaining(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.GameModeData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.GameModeData.ts new file mode 100644 index 00000000..99657012 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.GameModeData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface GameModeData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.GlowingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.GlowingData.ts new file mode 100644 index 00000000..1aee01ec --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.GlowingData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface GlowingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} representing whether an entity is glowing. + */ + // @ts-ignore + glowing(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.GravityData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.GravityData.ts new file mode 100644 index 00000000..c8edb79c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.GravityData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface GravityData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} of the gravity of an {@link Entity}. Returns true + * when the {@link Entity} has gravity. + */ + // @ts-ignore + gravity(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.GriefingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.GriefingData.ts new file mode 100644 index 00000000..bee37262 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.GriefingData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface GriefingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "griefing" state. + */ + // @ts-ignore + canGrief(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.HealthData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.HealthData.ts new file mode 100644 index 00000000..19e5fe0f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.HealthData.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface HealthData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Returns the health amount. + *The range of the health depends on the object on which this + * method is defined. For players in Minecraft, the nominal range is + * between 0 and 20, inclusive, but the range can be adjusted.
+ *Convention dictates that health does not follow below 0 but this + * convention may be broken.
+ */ + // @ts-ignore + health(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the current maximum health. + *The maximum health set here may affect the attribute increasing + * health points. The base health should be minded that it may be lower + * than the total maximum health of this entity.
+ */ + // @ts-ignore + maxHealth(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.HealthScalingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.HealthScalingData.ts new file mode 100644 index 00000000..c183a829 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.HealthScalingData.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface HealthScalingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Defines the amount of health to show client-side (in hearts) such that + * the maximum health is the value of this scale, and the current health + * is scaled as a ratio. + *If the current maximum health is 400, and the player has 200, but the + * scale dictates 20, then the client will see 5 hearts (or 10 half hearts) + * out of 10 hearts.
+ */ + // @ts-ignore + healthScale(): org.spongepowered.api.data.value.BoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.HorseData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.HorseData.ts new file mode 100644 index 00000000..0228f7ee --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.HorseData.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface HorseData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets a {@link Value} for the {@link HorseColor}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets a {@link Value} for the {@link HorseStyle}. + */ + // @ts-ignore + style(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.IgniteableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.IgniteableData.ts new file mode 100644 index 00000000..14067b70 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.IgniteableData.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface IgniteableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the remaining amount of + * "ticks" the {@link Entity} remains on fire. + */ + // @ts-ignore + fireTicks(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the remaining amount of + * "ticks" before the fire will damage the owning {@link Entity}. + */ + // @ts-ignore + fireDelay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.InvisibilityData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.InvisibilityData.ts new file mode 100644 index 00000000..0a1a046c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.InvisibilityData.ts @@ -0,0 +1,50 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface InvisibilityData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} of the "invisible" state of an {@link Entity}. + *Note that this is different from the {@link #vanish()} state as when an + * {@link Entity} is "invisible", update packets are still sent to all clients + * and the server.
+ */ + // @ts-ignore + invisible(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} of the "vanish" state of an {@link Entity}. + *The presence of a vanished entity will not be made known to a client; + * no packets pertaining to this entity are sent. Client-side, this entity + * will cease to exist. Server-side it may still be targeted by hostile + * entities or collide with other entities.
+ *Vanishing an {@link Entity} ridden by other entities (see + * {@link PassengerData}) will cause problems.
+ */ + // @ts-ignore + vanish(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} of whether an {@link Entity} that is "vanished" will + * be ignored for collision detection. The collision detection can affect + * collisions with other {@link Entity entities}, blocks, etc. + */ + // @ts-ignore + ignoresCollisionDetection(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} of whether an {@link Entity} that is "vanished" will + * be ignored when other {@link Entity entities} are processing possible "targets" + * for their AI. + */ + // @ts-ignore + untargetable(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.InvulnerabilityData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.InvulnerabilityData.ts new file mode 100644 index 00000000..69e446b3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.InvulnerabilityData.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface InvulnerabilityData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the amount of "ticks" of + * "invulnerability" an entity has because of being hurt recently. + */ + // @ts-ignore + invulnerableTicks(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the boolean {@link Value} which represents if an entity is + * invulnerable from most damage sources besides besides the void, + * players in creative mode, and manual killing like the /kill command. + *This does not cover creative mode, where players can also + * be invulnerable.
+ */ + // @ts-ignore + invulnerable(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.JohnnyData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.JohnnyData.ts new file mode 100644 index 00000000..b62f1007 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.JohnnyData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface JohnnyData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for whether this mob is exhibiting + * "johnny" behavior. + */ + // @ts-ignore + johnny(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.JoinData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.JoinData.ts new file mode 100644 index 00000000..86afc9e1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.JoinData.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface JoinData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} of the {@link Instant} that a {@link Player} joined + * the {@link Server} the first time. + */ + // @ts-ignore + firstPlayed(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} of the {@link Instant} that a {@link Player} joined + * the {@link Server} the last time. + */ + // @ts-ignore + lastPlayed(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.KnockbackData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.KnockbackData.ts new file mode 100644 index 00000000..c3cac0c1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.KnockbackData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface KnockbackData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "knockback strength. + */ + // @ts-ignore + knockbackStrength(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.LeashData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.LeashData.ts new file mode 100644 index 00000000..3473d414 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.LeashData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface LeashData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "leash holder". + */ + // @ts-ignore + leashHolder(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.MinecartBlockData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.MinecartBlockData.ts new file mode 100644 index 00000000..cb772827 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.MinecartBlockData.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface MinecartBlockData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link BlockState} represented by the {@link Minecart}. + */ + // @ts-ignore + block(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the offset of the represented block, in "pixels". + *Positive values move the block upwards in relation to the minecart, + * and negative values move the block downwards.
+ */ + // @ts-ignore + offset(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.MovementSpeedData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.MovementSpeedData.ts new file mode 100644 index 00000000..9ad132e1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.MovementSpeedData.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface MovementSpeedData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "walking" speed. + */ + // @ts-ignore + walkSpeed(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link MutableBoundedValue} for the "flying" speed. + */ + // @ts-ignore + flySpeed(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.OcelotData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.OcelotData.ts new file mode 100644 index 00000000..12a7ae50 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.OcelotData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface OcelotData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ParrotData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ParrotData.ts new file mode 100644 index 00000000..20e399fd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ParrotData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ParrotData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PassengerData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PassengerData.ts new file mode 100644 index 00000000..915a8850 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PassengerData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface PassengerData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link Value} for the current {@link Entity} acting + * as a passenger. + */ + // @ts-ignore + passengers(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PersistingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PersistingData.ts new file mode 100644 index 00000000..bfd8fce0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PersistingData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface PersistingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "persist" state of an + * {@link Entity}. + */ + // @ts-ignore + persists(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PickupDelayData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PickupDelayData.ts new file mode 100644 index 00000000..3c9abfa0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PickupDelayData.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface PickupDelayData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "pickup delay". + */ + // @ts-ignore + delay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link Value} for the "is infinite" state of + * the pickup delay. + */ + // @ts-ignore + infinite(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PickupRuleData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PickupRuleData.ts new file mode 100644 index 00000000..e2ec8009 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PickupRuleData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface PickupRuleData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PigSaddleData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PigSaddleData.ts new file mode 100644 index 00000000..adafbfd7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PigSaddleData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface PigSaddleData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the the "saddled" state. + */ + // @ts-ignore + saddle(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PlayerCreatedData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PlayerCreatedData.ts new file mode 100644 index 00000000..bd5c987e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PlayerCreatedData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface PlayerCreatedData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "player created" state of an + * {@link IronGolem}. + */ + // @ts-ignore + playerCreated(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PlayingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PlayingData.ts new file mode 100644 index 00000000..7bca6cba --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.PlayingData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface PlayingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "playing" state. + */ + // @ts-ignore + playing(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.RabbitData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.RabbitData.ts new file mode 100644 index 00000000..05f9c56e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.RabbitData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface RabbitData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.RespawnLocationData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.RespawnLocationData.ts new file mode 100644 index 00000000..4c310f3b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.RespawnLocationData.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface RespawnLocationData extends org.spongepowered.api.data.manipulator.mutable.MappedData { + /** + * Gets the {@link MapValue} for the "respawn" locations set for various + * {@link World#getUniqueId()} such that a {@link Player} may not have a + * respawn point for a particular {@link World}, but may have multiple + * respawn points for other {@link World}s. + */ + // @ts-ignore + respawnLocation(): org.spongepowered.api.data.value.mutable.MapValue; + /** + * Gets the respawn location for the given world, if available. If the + * respawn point for that world has not been set, {@link Optional#empty()} + * is returned. + */ + // @ts-ignore + getForWorld(world: org.spongepowered.api.world.World): any; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ScreamingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ScreamingData.ts new file mode 100644 index 00000000..d058aab4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ScreamingData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ScreamingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "screaming" state. + */ + // @ts-ignore + screaming(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ShatteringData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ShatteringData.ts new file mode 100644 index 00000000..8ee99f73 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ShatteringData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ShatteringData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "shattering" state of an + * {@link EyeOfEnder}. + */ + // @ts-ignore + willShatter(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ShearedData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ShearedData.ts new file mode 100644 index 00000000..aebcf3d8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.ShearedData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ShearedData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} of the "sheared" state. + */ + // @ts-ignore + sheared(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SilentData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SilentData.ts new file mode 100644 index 00000000..e8c64081 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SilentData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface SilentData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "silent state". + */ + // @ts-ignore + silent(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SittingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SittingData.ts new file mode 100644 index 00000000..adee41a6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SittingData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface SittingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "sitting" state. + */ + // @ts-ignore + sitting(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SizeData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SizeData.ts new file mode 100644 index 00000000..e227f14d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SizeData.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface SizeData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the current x/z size of this entity. + */ + // @ts-ignore + base(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the current y height of this entity. + */ + // @ts-ignore + height(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link MutableBoundedValue} for the "scale" size. + */ + // @ts-ignore + scale(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SkinData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SkinData.ts new file mode 100644 index 00000000..35cd9cbf --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SkinData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface SkinData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the {@link UUID} of the skin to display on a + * {@link Humanoid} entity for customization. + */ + // @ts-ignore + skinUniqueId(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SleepingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SleepingData.ts new file mode 100644 index 00000000..c3223cd0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SleepingData.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface SleepingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for whether the owning {@link Player}'s + * "sleeping" state is ignored when vanilla mechanics dictate that all + * {@link Player}s must be sleeping to advance through the night. + */ + // @ts-ignore + sleeping(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SlimeData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SlimeData.ts new file mode 100644 index 00000000..15335ed1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SlimeData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface SlimeData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "size" of a slime. + */ + // @ts-ignore + size(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SneakingData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SneakingData.ts new file mode 100644 index 00000000..d0fb4f34 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SneakingData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface SneakingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "sneaking" state. + */ + // @ts-ignore + sneaking(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SprintData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SprintData.ts new file mode 100644 index 00000000..a4e61987 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.SprintData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface SprintData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "sprinting" state. + */ + // @ts-ignore + sprinting(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.StatisticData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.StatisticData.ts new file mode 100644 index 00000000..1d01fd63 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.StatisticData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface StatisticData extends org.spongepowered.api.data.manipulator.mutable.MappedData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.StuckArrowsData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.StuckArrowsData.ts new file mode 100644 index 00000000..e52d63b8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.StuckArrowsData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface StuckArrowsData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the stuck arrows. + */ + // @ts-ignore + stuckArrows(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.TameableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.TameableData.ts new file mode 100644 index 00000000..1c350f97 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.TameableData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface TameableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link OptionalValue} for the {@link UUID} of the + * {@link Tamer}. + */ + // @ts-ignore + owner(): org.spongepowered.api.data.value.mutable.OptionalValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.TargetedEntityData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.TargetedEntityData.ts new file mode 100644 index 00000000..e765d0b6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.TargetedEntityData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface TargetedEntityData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the targeted {@link Entity}. + */ + // @ts-ignore + value(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.TradeOfferData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.TradeOfferData.ts new file mode 100644 index 00000000..dd68efda --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.TradeOfferData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface TradeOfferData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link ListValue} of {@link TradeOffer}s that can be + * offered. + */ + // @ts-ignore + tradeOffers(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.VehicleData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.VehicleData.ts new file mode 100644 index 00000000..7f2be010 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.VehicleData.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface VehicleData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the current "vehicle" being ridden. + */ + // @ts-ignore + vehicle(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the base {@link Value} for the "base vehicle" being ridden + * such that the current vehicle may be riding another {@link Entity}, + * causing that entity to be called the "base vehicle". + */ + // @ts-ignore + baseVehicle(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.VelocityData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.VelocityData.ts new file mode 100644 index 00000000..b5ca44b9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.entity.VelocityData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface VelocityData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the current velocity as a + * {@link Vector3d}. + */ + // @ts-ignore + velocity(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.AuthorData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.AuthorData.ts new file mode 100644 index 00000000..921b0dcd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.AuthorData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface AuthorData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the author of this item. + */ + // @ts-ignore + author(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.BlockItemData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.BlockItemData.ts new file mode 100644 index 00000000..6bb0de63 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.BlockItemData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface BlockItemData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the currently represented + * {@link BlockState}. + */ + // @ts-ignore + state(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.BreakableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.BreakableData.ts new file mode 100644 index 00000000..be34174f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.BreakableData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface BreakableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link SetValue} for all known {@link BlockType}s that + * can be broken by the owning {@link ItemStack}. + */ + // @ts-ignore + breakable(): org.spongepowered.api.data.value.mutable.SetValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.CoalData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.CoalData.ts new file mode 100644 index 00000000..9f2a5136 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.CoalData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface CoalData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.CookedFishData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.CookedFishData.ts new file mode 100644 index 00000000..6e61fef2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.CookedFishData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface CookedFishData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.DurabilityData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.DurabilityData.ts new file mode 100644 index 00000000..6d6b22ce --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.DurabilityData.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface DurabilityData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "durability" remaining. + * The durability is a number signifying how many "uses' remain on the + * item. When the durability reaches 0, usually, the item breaks. + */ + // @ts-ignore + durability(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link Value} for the "unbreakable" state of the + * {@link ItemStack}. While the {@link ItemStack} is "unbreakable", + * the durability can not change. + */ + // @ts-ignore + unbreakable(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.EnchantmentData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.EnchantmentData.ts new file mode 100644 index 00000000..265a49d3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.EnchantmentData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface EnchantmentData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link ListValue} of {@link Enchantment}s on item stacks. + */ + // @ts-ignore + enchantments(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.FishData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.FishData.ts new file mode 100644 index 00000000..54cdb0c6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.FishData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface FishData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.GenerationData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.GenerationData.ts new file mode 100644 index 00000000..0cd8b98f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.GenerationData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface GenerationData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} that represents the "generation" + * state of a book. + */ + // @ts-ignore + generation(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.GoldenAppleData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.GoldenAppleData.ts new file mode 100644 index 00000000..d7c694e3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.GoldenAppleData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface GoldenAppleData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.HideData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.HideData.ts new file mode 100644 index 00000000..e33cff45 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.HideData.ts @@ -0,0 +1,47 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface HideData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "enchantments hidden" state of an itemstack. + */ + // @ts-ignore + hideEnchantments(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the "attributes hidden" state of an itemstack. + */ + // @ts-ignore + hideAttributes(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the "unbreakable hidden" state of an itemstack. + */ + // @ts-ignore + hideUnbreakable(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the "can destroy hidden" state of an itemstack. + */ + // @ts-ignore + hideCanDestroy(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the "can place hidden" state of an itemstack. + */ + // @ts-ignore + hideCanPlace(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the "miscellaneous hidden" state of an itemstack. + */ + // @ts-ignore + hideMiscellaneous(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.InventoryItemData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.InventoryItemData.ts new file mode 100644 index 00000000..b9de3c91 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.InventoryItemData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface InventoryItemData extends org.spongepowered.api.data.manipulator.DataManipulator, org.spongepowered.api.item.inventory.Carrier { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.LoreData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.LoreData.ts new file mode 100644 index 00000000..b832b8bf --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.LoreData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface LoreData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link ListValue} of the "lore" {@link Text}. + */ + // @ts-ignore + lore(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.MapItemData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.MapItemData.ts new file mode 100644 index 00000000..46d83938 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.MapItemData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface MapItemData extends org.spongepowered.api.data.manipulator.DataManipulator { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.PagedData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.PagedData.ts new file mode 100644 index 00000000..ee5357a2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.PagedData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface PagedData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link ListValue} for the {@link Text} pages. + */ + // @ts-ignore + pages(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.PlaceableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.PlaceableData.ts new file mode 100644 index 00000000..46f95d46 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.PlaceableData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface PlaceableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link SetValue} of {@link BlockType}s the + * {@link ItemType} can be placed on. + */ + // @ts-ignore + placeable(): org.spongepowered.api.data.value.mutable.SetValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.PlainPagedData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.PlainPagedData.ts new file mode 100644 index 00000000..f330b144 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.PlainPagedData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface PlainPagedData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link ListValue} for the {@link Text} pages. + */ + // @ts-ignore + pages(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.SpawnableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.SpawnableData.ts new file mode 100644 index 00000000..9861f0f5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.SpawnableData.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface SpawnableData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.StoredEnchantmentData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.StoredEnchantmentData.ts new file mode 100644 index 00000000..4163d793 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.item.StoredEnchantmentData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface StoredEnchantmentData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link ListValue} of {@link Enchantment}s stored such + * that it can be applied to an {@link ItemStack}. + */ + // @ts-ignore + enchantments(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.BannerData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.BannerData.ts new file mode 100644 index 00000000..0e5358e6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.BannerData.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface BannerData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the base {@link DyeColor}. + */ + // @ts-ignore + baseColor(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link PatternListValue} of all patterns for the + * {@link Banner}. + */ + // @ts-ignore + patternsList(): org.spongepowered.api.data.value.mutable.PatternListValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.BeaconData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.BeaconData.ts new file mode 100644 index 00000000..0685a93b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.BeaconData.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface BeaconData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link OptionalValue} for the primary + * {@link PotionEffectType}. + */ + // @ts-ignore + primaryEffect(): org.spongepowered.api.data.value.mutable.OptionalValue; + /** + * Gets the {@link OptionalValue} for the secondary + * {@link PotionEffectType}. + */ + // @ts-ignore + secondaryEffect(): org.spongepowered.api.data.value.mutable.OptionalValue; + /** + * Fills the primary and secondary {@link PotionEffectType}s + * with {@link Optional#empty()} values as a semi "reset" state. + */ + // @ts-ignore + clearEffects(): org.spongepowered.api.data.manipulator.mutable.tileentity.BeaconData; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.BedData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.BedData.ts new file mode 100644 index 00000000..33718d2f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.BedData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface BedData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the {@link DyeColor color}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.BrewingStandData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.BrewingStandData.ts new file mode 100644 index 00000000..e55f6e71 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.BrewingStandData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface BrewingStandData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the remaining brew time. + *If nothing is brewing the value is 0.
+ */ + // @ts-ignore + remainingBrewTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.CooldownData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.CooldownData.ts new file mode 100644 index 00000000..6053a024 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.CooldownData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface CooldownData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "cooldown" remaining. + */ + // @ts-ignore + cooldown(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.EndGatewayData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.EndGatewayData.ts new file mode 100644 index 00000000..f7279881 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.EndGatewayData.ts @@ -0,0 +1,39 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface EndGatewayData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the exit portal location of + * the {@link EndGateway}. + */ + // @ts-ignore + exitPosition(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the "should use exact teleport location" + * state of the {@link EndGateway}. + */ + // @ts-ignore + exactTeleport(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the age of the {@link EndGateway}. + */ + // @ts-ignore + age(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the teleport cooldown of the {@link EndGateway}. + */ + // @ts-ignore + teleportCooldown(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.FurnaceData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.FurnaceData.ts new file mode 100644 index 00000000..a4bd5198 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.FurnaceData.ts @@ -0,0 +1,49 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface FurnaceData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the already passed burn time of + * the {@link Furnace}. When this is equal to the {@link #maxBurnTime()}, + * the current used fuel is depleted. + */ + // @ts-ignore + passedBurnTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the maximum amount of fuel that + * can be supplied with the used fuel item. + *This is represented by the flame icon in the {@link Furnace}, if the + * flame is 100% filled the value is exactly this one. So its the maximum + * of the {@link #passedBurnTime()}.
+ */ + // @ts-ignore + maxBurnTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the already passed cook time of + * the {@link ItemStack} in the {@link Furnace}. When this is equal to the + * {@link #maxCookTime()}, the {@link ItemStack} is cooked. + */ + // @ts-ignore + passedCookTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the total time the + * {@link ItemStack} has to cook until it is cooked. + *This is represented by the arrow icon in the {@link Furnace}, if the + * arrow is 100% filled the value is exact this one. So its the maximum of + * the {@link #passedCookTime()}.
+ */ + // @ts-ignore + maxCookTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.LockableData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.LockableData.ts new file mode 100644 index 00000000..d7133713 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.LockableData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface LockableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "lock" token. + */ + // @ts-ignore + lockToken(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.NoteData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.NoteData.ts new file mode 100644 index 00000000..52dd712c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.NoteData.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface NoteData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the {@link NotePitch}. + */ + // @ts-ignore + note(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.SignData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.SignData.ts new file mode 100644 index 00000000..6d6fc031 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.SignData.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface SignData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link ListValue} of {@link Text} for the {@link Sign} + * to show. + */ + // @ts-ignore + lines(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.StructureData.ts b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.StructureData.ts new file mode 100644 index 00000000..47396c04 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.manipulator.mutable.tileentity.StructureData.ts @@ -0,0 +1,67 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface StructureData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the author of the {@link Structure}. + */ + // @ts-ignore + author(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the ignore entities state of the {@link Structure}. + */ + // @ts-ignore + ignoreEntities(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the integrity of the {@link Structure}. + */ + // @ts-ignore + integrity(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the mode of the {@link Structure}. + */ + // @ts-ignore + mode(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the position of the {@link Structure}. + */ + // @ts-ignore + position(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the powered state of the {@link Structure}. + */ + // @ts-ignore + powered(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the seed of the {@link Structure}. + */ + // @ts-ignore + seed(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the show air state of the {@link Structure}. + */ + // @ts-ignore + showAir(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the show bounding box state of the {@link Structure}. + */ + // @ts-ignore + showBoundingBox(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the size of the {@link Structure}. + */ + // @ts-ignore + size(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.merge.MergeFunction.ts b/packages/sponge/src/typings/org.spongepowered.api.data.merge.MergeFunction.ts new file mode 100644 index 00000000..f4a925fd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.merge.MergeFunction.ts @@ -0,0 +1,55 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace merge { + // @ts-ignore + interface MergeFunction { + // @ts-ignore + IGNORE_ALL: org.spongepowered.api.data.merge.MergeFunction; + // @ts-ignore + FORCE_NOTHING: org.spongepowered.api.data.merge.MergeFunction; + /** + * Performs a merge of a type of {@link ValueContainer} such that a merge + * of the contained {@link BaseValue}s has been performed and the resulting + * merged {@link ValueContainer} is returned. It is suffice to say that + * only one of the {@link ValueContainer} containers may be {@code null}, + * such that{@code + * if (original == null) { + * return checkNotNull(replacement); + * } else if (replacement == null) { + * return original; + * } else { + * // do something merging the necessary values + * } + * }+ * It can be therefor discerned that both values are passed in as copies + * and therefor either one can be modified and returned. + *
Since + * {@link CompositeValueStore#copyFrom(CompositeValueStore, MergeFunction)} + * accepts only a single {@link MergeFunction}, and a + * {@link CompositeValueStore} may have multiple {@link ValueContainer}s, + * as provided by {@link CompositeValueStore#getContainers()}, the merge + * function may be called for every single number of {@link ValueContainer}. + * This way, a {@link MergeFunction} can be fully customized to merge + * specific {@link ValueContainer}s of matching types.
+ */ + // @ts-ignore + merge(original: org.spongepowered.api.data.value.ValueContainer, replacement: org.spongepowered.api.data.value.ValueContainer): org.spongepowered.api.data.value.ValueContainer; + /** + * Creates a new {@link MergeFunction} chaining this current merge function + * with the provided merge function. The order of the merge is this + * performs {@link #merge(ValueContainer, ValueContainer)} then, the + * provided {@link MergeFunction} merges the returned merged + * {@link ValueContainer} and the {@code replacement}. This can be used to + * apply a custom merge strategy after a pre-defined {@link MergeFunction} + * is applied. + */ + // @ts-ignore + andThen(that: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.merge.MergeFunction; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.meta.PatternLayer.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.data.meta.PatternLayer.Builder.ts new file mode 100644 index 00000000..a52c3ac2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.meta.PatternLayer.Builder.ts @@ -0,0 +1,33 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace meta { + namespace PatternLayer { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.persistence.DataBuilder { + /** + * Sets the {@link BannerPatternShape} to be used. + */ + // @ts-ignore + pattern(shape: org.spongepowered.api.data.type.BannerPatternShape): org.spongepowered.api.data.meta.PatternLayer.Builder; + /** + * Sets the {@link DyeColor} to be used. + */ + // @ts-ignore + color(color: org.spongepowered.api.data.type.DyeColor): org.spongepowered.api.data.meta.PatternLayer.Builder; + /** + * Builds a {@link PatternLayer} provided that the + * color and pattern are set. + */ + // @ts-ignore + build(): org.spongepowered.api.data.meta.PatternLayer; + // @ts-ignore + reset(): org.spongepowered.api.data.meta.PatternLayer.Builder; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.meta.PatternLayer.ts b/packages/sponge/src/typings/org.spongepowered.api.data.meta.PatternLayer.ts new file mode 100644 index 00000000..7a032874 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.meta.PatternLayer.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace meta { + // @ts-ignore + interface PatternLayer extends org.spongepowered.api.data.DataSerializable { + /** + * Creates a {@link PatternLayer} with the desired + * {@link BannerPatternShape} and {@link DyeColor}. + */ + // @ts-ignore + of(shape: org.spongepowered.api.data.type.BannerPatternShape, color: org.spongepowered.api.data.type.DyeColor): org.spongepowered.api.data.meta.PatternLayer; + /** + * Gets the pattern shape for this layer. + */ + // @ts-ignore + getShape(): org.spongepowered.api.data.type.BannerPatternShape; + /** + * Gets the color for this layer. + */ + // @ts-ignore + getColor(): org.spongepowered.api.data.type.DyeColor; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.persistence.AbstractDataBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.AbstractDataBuilder.ts new file mode 100644 index 00000000..cf731794 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.AbstractDataBuilder.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + abstract class AbstractDataBuilder implements org.spongepowered.api.data.persistence.DataBuilder { + constructor(requiredClass: any, supportedVersion: number) + /** + * Builds the currently {@link #supportedVersion} variant of the intended + * {@link DataSerializable}, such that all content upgrades have already + * been handled by {@link #build(DataView)}. This otherwise follows the + * same contract as {@link DataBuilder#build(DataView)}. + */ + // @ts-ignore + protected abstract buildContent(container: org.spongepowered.api.data.DataView): any; + // @ts-ignore + public build(container: org.spongepowered.api.data.DataView): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.persistence.DataBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.DataBuilder.ts new file mode 100644 index 00000000..8e02c633 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.DataBuilder.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + interface DataBuilder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Attempts to build the provided {@link DataSerializable} from the given + * {@link DataView}. If the {@link DataView} is invalid or + * missing necessary information to complete building the + * {@link DataSerializable}, {@link Optional#empty()} may be returned. + */ + // @ts-ignore + build(container: org.spongepowered.api.data.DataView): any; + // @ts-ignore + reset(): org.spongepowered.api.data.persistence.DataBuilder; + // @ts-ignore + from(value: org.spongepowered.api.data.DataSerializable): org.spongepowered.api.data.persistence.DataBuilder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.persistence.DataContentUpdater.ts b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.DataContentUpdater.ts new file mode 100644 index 00000000..a6b48e48 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.DataContentUpdater.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + interface DataContentUpdater extends org.spongepowered.api.util.Updater { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.persistence.DataFormat.ts b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.DataFormat.ts new file mode 100644 index 00000000..057ac4c0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.DataFormat.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + interface DataFormat extends org.spongepowered.api.CatalogType { + /** + * Creates a new {@link DataContainer} from the contents of the given + * {@link InputStream}. + */ + // @ts-ignore + readFrom(input: any): org.spongepowered.api.data.DataContainer; + /** + * Writes the given {@link DataView} to the given {@link OutputStream} using + * the format specified by this {@link DataFormat}. + */ + // @ts-ignore + writeTo(output: any, data: org.spongepowered.api.data.DataView): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.persistence.DataFormats.ts b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.DataFormats.ts new file mode 100644 index 00000000..53a89bf1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.DataFormats.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + class DataFormats { + // @ts-ignore + public static HOCON: org.spongepowered.api.data.persistence.StringDataFormat; + // @ts-ignore + public static JSON: org.spongepowered.api.data.persistence.StringDataFormat; + // @ts-ignore + public static NBT: org.spongepowered.api.data.persistence.DataFormat; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.persistence.DataTranslator.ts b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.DataTranslator.ts new file mode 100644 index 00000000..9537906f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.DataTranslator.ts @@ -0,0 +1,36 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + interface DataTranslator extends org.spongepowered.api.CatalogType { + /** + * Gets the {@link TypeToken} of this translator. + */ + // @ts-ignore + getToken(): any; + /** + * Attempts to translate the {@code T} object from the provided + * {@link DataView}. + */ + // @ts-ignore + translate(view: org.spongepowered.api.data.DataView): any; + /** + * Serializes the provided object to a {@link DataContainer}. + */ + // @ts-ignore + translate(obj: any): org.spongepowered.api.data.DataContainer; + /** + * Serializes the {@code T} object and applies the provided + * data to the provided {@link DataView} instead of creating + * a new {@link DataContainer}, reducing nested information. + */ + // @ts-ignore + addTo(obj: any, dataView: org.spongepowered.api.data.DataView): org.spongepowered.api.data.DataView; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.persistence.DataTranslators.ts b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.DataTranslators.ts new file mode 100644 index 00000000..20492409 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.DataTranslators.ts @@ -0,0 +1,63 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + class DataTranslators { + // @ts-ignore + public static SCHEMATIC: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static LEGACY_SCHEMATIC: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static CONFIGURATION_NODE: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static UUID: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_2_D: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_2_F: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_2_I: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_2_L: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_3_D: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_3_F: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_3_I: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_3_L: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_4_D: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_4_F: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_4_I: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_4_L: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static COMPLEXD: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static COMPLEXF: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static QUATERNIOND: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static QUATERNIONF: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static LOCAL_TIME: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static LOCAL_DATE: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static LOCAL_DATE_TIME: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static INSTANT: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static ZONED_DATE_TIME: org.spongepowered.api.data.persistence.DataTranslator; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.persistence.InvalidDataException.ts b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.InvalidDataException.ts new file mode 100644 index 00000000..1a170fbd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.InvalidDataException.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + class InvalidDataException { + /** + * Constructs a new {@link InvalidDataException}. + */ + constructor() + /** + * Constructs a new {@link InvalidDataException} with a message. + */ + constructor(message: string) + /** + * Constructs a new {@link InvalidDataException} with the specified message and + * cause. + */ + constructor(message: string, cause: any) + /** + * Constructs a new {@link InvalidDataException} with the specified cause and a + * null message. + */ + constructor(cause: any) + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.persistence.InvalidDataFormatException.ts b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.InvalidDataFormatException.ts new file mode 100644 index 00000000..07ec59a8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.InvalidDataFormatException.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + class InvalidDataFormatException { + /** + * Constructs a new {@link InvalidDataFormatException}. + */ + constructor() + /** + * Constructs a new {@link InvalidDataFormatException} with a message. + */ + constructor(message: string) + /** + * Constructs a new {@link InvalidDataFormatException} with the specified + * message and cause. + */ + constructor(message: string, cause: any) + /** + * Constructs a new {@link InvalidDataFormatException} with the specified + * cause and a null message. + */ + constructor(cause: any) + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.persistence.StringDataFormat.ts b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.StringDataFormat.ts new file mode 100644 index 00000000..9d3cde79 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.persistence.StringDataFormat.ts @@ -0,0 +1,37 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + interface StringDataFormat extends org.spongepowered.api.data.persistence.DataFormat { + /** + * Creates a new {@link DataContainer} from the contents of the given + * {@link String}. + */ + // @ts-ignore + read(input: string): org.spongepowered.api.data.DataContainer; + /** + * Creates a new {@link DataContainer} from the contents of the given + * {@link Reader}. + */ + // @ts-ignore + readFrom(input: any): org.spongepowered.api.data.DataContainer; + /** + * Serializes the given {@link DataView} to a {@link String} using + * the format specified by this {@link DataFormat}. + */ + // @ts-ignore + write(data: org.spongepowered.api.data.DataView): string; + /** + * Writes the given {@link DataView} to the given {@link Writer} using + * the format specified by this {@link DataFormat}. + */ + // @ts-ignore + writeTo(output: any, data: org.spongepowered.api.data.DataView): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.property.AbstractProperty.ts b/packages/sponge/src/typings/org.spongepowered.api.data.property.AbstractProperty.ts new file mode 100644 index 00000000..074d6d35 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.property.AbstractProperty.ts @@ -0,0 +1,69 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + abstract class AbstractProperty implements org.spongepowered.api.data.Property { + /** + * Initialise internal values to defaults, use this ctor if you plan to + * override {@link #getKey} and {@link #getValue} yourself. + */ + constructor() + /** + * Initialise key to default, and value to the supplied value. + */ + constructor(value: any) + /** + * Initialise the value to the specified value and use the specified + * operator, use the default key. + */ + constructor(value: any, op: org.spongepowered.api.data.Property.Operator) + /** + * Use the specified key and value and set operator to the default. + */ + constructor(key: any, value: any) + constructor(key: any, value: any, op: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + protected operator: org.spongepowered.api.data.Property.Operator; + // @ts-ignore + protected value: any; + /** + * Gets the default value for {@link #key}, used in case null is passed in + * (since we can't have a null key). In general this should return the class + * name of the property itself but subclasses are free to alter this + * behaviour if they wish. + */ + // @ts-ignore + protected getDefaultKey(value: any): any; + /** + * Return the default operator to use, based on the supplied key and value. + */ + // @ts-ignore + protected getDefaultOperator(key: any, value: any): org.spongepowered.api.data.Property.Operator; + // @ts-ignore + public getKey(): any; + // @ts-ignore + public getValue(): any; + // @ts-ignore + public getOperator(): org.spongepowered.api.data.Property.Operator; + // @ts-ignore + public matches(other: org.spongepowered.api.data.Property): boolean; + // @ts-ignore + public equals(obj: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + /** + * Convenience method to avoid null-checking. Returns 0 if value is + * null. + */ + // @ts-ignore + protected hashCodeOf(value: any): number; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.property.BooleanProperty.ts b/packages/sponge/src/typings/org.spongepowered.api.data.property.BooleanProperty.ts new file mode 100644 index 00000000..74c60120 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.property.BooleanProperty.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + class BooleanProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Create a new integer property with the specified value. + */ + constructor(value: boolean) + /** + * Create a new integer property with the specified value and logical + * operator. + */ + constructor(value: boolean, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a new integer property with the specified value and logical + * operator. + */ + constructor(value: any, operator: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(other: org.spongepowered.api.data.Property): number; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.property.DirectionRelativePropertyHolder.ts b/packages/sponge/src/typings/org.spongepowered.api.data.property.DirectionRelativePropertyHolder.ts new file mode 100644 index 00000000..ded57ba6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.property.DirectionRelativePropertyHolder.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + interface DirectionRelativePropertyHolder { + /** + * Gets the desired property from this property holder when facing towards + * the desired {@link Direction}. + */ + // @ts-ignore + getProperty(direction: org.spongepowered.api.util.Direction, clazz: any): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.property.DisplacementProperty.ts b/packages/sponge/src/typings/org.spongepowered.api.data.property.DisplacementProperty.ts new file mode 100644 index 00000000..e7d15638 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.property.DisplacementProperty.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + class DisplacementProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Creates a {@link DisplacementProperty} with a specific set of + * {@link BlockType}s. + */ + constructor(value: any[] /*java.util.Set*/) + /** + * Creates a {@link DisplacementProperty} with a specific set of + * {@link BlockType}s. + */ + constructor(value: any[] /*java.util.Set*/, op: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(o: org.spongepowered.api.data.Property): number; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.property.DoubleProperty.ts b/packages/sponge/src/typings/org.spongepowered.api.data.property.DoubleProperty.ts new file mode 100644 index 00000000..76e96d4a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.property.DoubleProperty.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + class DoubleProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Create a new integer property with the specified value. + */ + constructor(value: number) + /** + * Create a new integer property with the specified value and logical + * operator. + */ + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a new integer property with the specified value and logical + * operator. + */ + constructor(value: any, operator: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(other: org.spongepowered.api.data.Property): number; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.property.IntProperty.ts b/packages/sponge/src/typings/org.spongepowered.api.data.property.IntProperty.ts new file mode 100644 index 00000000..ed8c8d3d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.property.IntProperty.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + class IntProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Create a new integer property with the specified value. + */ + constructor(value: number) + /** + * Create a new integer property with the specified value and logical + * operator. + */ + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a new integer property with the specified value and logical + * operator. + */ + constructor(value: any, operator: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(other: org.spongepowered.api.data.Property): number; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.property.LocationBasePropertyHolder.ts b/packages/sponge/src/typings/org.spongepowered.api.data.property.LocationBasePropertyHolder.ts new file mode 100644 index 00000000..14ef8e19 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.property.LocationBasePropertyHolder.ts @@ -0,0 +1,83 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + interface LocationBasePropertyHolder { + /** + * Attempts to retrieve a specific {@link Property} type of the block at the + * specific location. If the property is not applicable, + * {@link Optional#empty()} is returned. + *{@link Property}s can define various immutable information about a + * {@link PropertyHolder} that is dependent on the instance of the holder. + * As {@link Property}s cannot be changed, the {@link PropertyHolder} can + * not change the information about it's own properties either.
+ */ + // @ts-ignore + getProperty(coords: any /*Vector3i*/, propertyClass: any): any; + /** + * Attempts to retrieve a specific {@link Property} type of this + * {@link PropertyHolder}. If the property is not applicable, + * {@link Optional#empty()} is returned. + *{@link Property}s can define various immutable information about a + * {@link PropertyHolder} that is dependent on the instance of the holder. + * As {@link Property}s cannot be changed, the {@link PropertyHolder} can + * not change the information about it's own properties either.
+ */ + // @ts-ignore + getProperty(x: number, y: number, z: number, propertyClass: any): any; + /** + * Attempts to retrieve a specific {@link Property} type of the block at the + * specific location on the given block face. If the property is not + * applicable, {@link Optional#empty()} is returned. + *{@link Property}s can define various immutable information about a + * {@link PropertyHolder} that is dependent on the instance of the holder. + * As {@link Property}s cannot be changed, the {@link PropertyHolder} can + * not change the information about it's own properties either.
+ */ + // @ts-ignore + getProperty(coords: any /*Vector3i*/, direction: org.spongepowered.api.util.Direction, propertyClass: any): any; + /** + * Attempts to retrieve a specific {@link Property} type of the block at the + * specific location on the given block face. If the property is not + * applicable, {@link Optional#empty()} is returned. + *{@link Property}s can define various immutable information about a + * {@link PropertyHolder} that is dependent on the instance of the holder. + * As {@link Property}s cannot be changed, the {@link PropertyHolder} can + * not change the information about it's own properties either.
+ */ + // @ts-ignore + getProperty(x: number, y: number, z: number, direction: org.spongepowered.api.util.Direction, propertyClass: any): any; + /** + * Gets an immutable collection of all known {@link Property}s pertaining to + * this {@link PropertyHolder}. + *{@link Property}s can not be changed such that the property is + * attached to the instance of the residing {@link PropertyHolder}.
+ */ + // @ts-ignore + getProperties(coords: any /*Vector3i*/): any[] /*java.util.Collection*/; + /** + * Gets an immutable collection of all known {@link Property}s pertaining to + * this {@link PropertyHolder}. + *{@link Property}s can not be changed such that the property is + * attached to the instance of the residing {@link PropertyHolder}.
+ */ + // @ts-ignore + getProperties(x: number, y: number, z: number): any[] /*java.util.Collection*/; + /** + * Gets all the faces of this block that have the given property. + */ + // @ts-ignore + getFacesWithProperty(coords: any /*Vector3i*/, propertyClass: any): any[] /*java.util.Collection*/; + /** + * Gets all the faces of this block that have the given property. + */ + // @ts-ignore + getFacesWithProperty(x: number, y: number, z: number, propertyClass: any): any[] /*java.util.Collection*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.property.PropertyHolder.ts b/packages/sponge/src/typings/org.spongepowered.api.data.property.PropertyHolder.ts new file mode 100644 index 00000000..7a15e1c3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.property.PropertyHolder.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + interface PropertyHolder { + /** + * Attempts to retrieve a specific {@link Property} type of this + * {@link PropertyHolder}. If the property is not applicable, + * {@link Optional#empty()} is returned. + *{@link Property}s can define various immutable information about a + * {@link PropertyHolder} that is dependent on the instance of the holder. + * As {@link Property}s cannot be changed, the {@link PropertyHolder} can + * not change the information about it's own properties either.
+ */ + // @ts-ignore + getProperty(propertyClass: any): any; + /** + * Gets an immutable collection of all known {@link Property}s pertaining + * to this {@link PropertyHolder}. + *{@link Property}s can not be changed such that the property is + * attached to the instance of the residing {@link PropertyHolder}.
+ */ + // @ts-ignore + getApplicableProperties(): any[] /*java.util.Collection*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.property.PropertyRegistry.ts b/packages/sponge/src/typings/org.spongepowered.api.data.property.PropertyRegistry.ts new file mode 100644 index 00000000..d5a8b6b7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.property.PropertyRegistry.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + interface PropertyRegistry { + /** + * Registers the provided {@link PropertyStore} for the given + * {@link Property} {@link Class}. Note that only a single + * {@link PropertyStore} can be registered per {@link Property}. Multiple + * registrations will result in exceptions being thrown. + */ + // @ts-ignore + register(propertyClass: any, propertyStore: org.spongepowered.api.data.property.PropertyStore): void; + /** + * Retrieves the {@link PropertyStore} associated for the provided + * {@link Property} class. + */ + // @ts-ignore + getStore(propertyClass: any): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.property.PropertyStore.ts b/packages/sponge/src/typings/org.spongepowered.api.data.property.PropertyStore.ts new file mode 100644 index 00000000..b43244ed --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.property.PropertyStore.ts @@ -0,0 +1,46 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + interface PropertyStore { + /** + * Gets the desired property for the provided {@link PropertyHolder} at + * present time. A property may not be the same throughout the course of + * the lifetime of the {@link PropertyHolder}. + */ + // @ts-ignore + getFor(propertyHolder: org.spongepowered.api.data.property.PropertyHolder): any; + /** + * Gets the desired property for the provided {@link Location} at present + * time. A property may not be the same throughout the course of the + * lifetime of the {@link Location}. + */ + // @ts-ignore + getFor(location: org.spongepowered.api.world.Location): any; + /** + * Gets the desired property for the provided {@link Location} at present + * time, in relation to the provided {@link Direction}. + */ + // @ts-ignore + getFor(location: org.spongepowered.api.world.Location, direction: org.spongepowered.api.util.Direction): any; + /** + * Gets the priority of which this {@link PropertyStore} is used for + * handling a particular {@link PropertyHolder}. This is useful for + * multiple possible handlers of a {@link Property} being available + * in customized {@link PropertyHolder}s. + *The priority is a measurement where the higher the priority, the
+ * sooner this {@link PropertyStore} is queried such that if
+ * {@link #getFor(PropertyHolder)} is called and returns a present value,
+ * that present value is returned. Usually, Sponge implemented
+ * {@link PropertyStore}s have a priority of 100
.
{@code if (getComparator().compare(getValue(), getMinValue()) <= 0) + * }. + */ + // @ts-ignore + getMinValue(): any; + /** + * Gets the required "maximum" value such that the value is only valid if + * the following is true: + *
{@code if (getComparator().compare(getValue(), getMaxValue()) >= 0) + * }. + */ + // @ts-ignore + getMaxValue(): any; + /** + * The comparator used to compare a value of the proper type. Can be used + * for validation with the {@link #getMinValue()} and + * {@link #getMaxValue()}. + */ + // @ts-ignore + getComparator(): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.value.ValueContainer.ts b/packages/sponge/src/typings/org.spongepowered.api.data.value.ValueContainer.ts new file mode 100644 index 00000000..2f72ae03 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.value.ValueContainer.ts @@ -0,0 +1,83 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + // @ts-ignore + interface ValueContainer { + /** + * Attempts to get the underlying value backed by a {@link BaseValue} + * linked to the provided {@link Key}. If the {@link Key} is not + * supported, {@link Optional#empty()} is returned. It is important + * to check for support of a {@link Key} by either calling + * {@link #supports(BaseValue)} or {@link #supports(Key)}. + */ + // @ts-ignore + get(key: org.spongepowered.api.data.key.Key): any; + /** + * Attempts to get the underlying value backed by a {@link BaseValue} + * linked to the provided {@link Key}. + *
If the {@link Key} is not supported or + * available, {@link NoSuchElementException} will be thrown.
+ */ + // @ts-ignore + require(key: org.spongepowered.api.data.key.Key): any; + /** + * Attempts to get the underlying value if available and supported. If the + * {@link BaseValue} is not supported whatsoever by this + * {@link ValueContainer}, an exception is thrown. + */ + // @ts-ignore + getOrNull(key: org.spongepowered.api.data.key.Key): any; + /** + * Attempts to get the underlying value if available. If the value is not + * set, the given {@code defaultValue} is returned, if the + * {@link BaseValue} is even supported. + */ + // @ts-ignore + getOrElse(key: org.spongepowered.api.data.key.Key, defaultValue: any): any; + /** + * Gets the {@link BaseValue} for the given {@link Key}. + */ + // @ts-ignore + getValue(key: org.spongepowered.api.data.key.Key): any; + /** + * Checks if the given {@link Key} is supported by this + * {@link ValueContainer}. + */ + // @ts-ignore + supports(key: org.spongepowered.api.data.key.Key): boolean; + /** + * Checks if the provided {@link BaseValue} is supported. + */ + // @ts-ignore + supports(baseValue: org.spongepowered.api.data.value.BaseValue): boolean; + /** + * Creates a clone copy of this {@link ValueContainer} as a new + * {@link ValueContainer} such that all the {@link BaseValue}s are + * safely duplicated to the new instance. + */ + // @ts-ignore + copy(): org.spongepowered.api.data.value.ValueContainer; + /** + * Gets all applicable {@link Key}s for this {@link ValueContainer}. + * Changes can not be made to the set to alter the {@link ValueContainer}, + * nor can the {@link BaseValue}s be changed with the provided + * {@link ImmutableSet}. + */ + // @ts-ignore + getKeys(): any[] /*java.util.Set*/; + /** + * Gets all applicable {@link BaseValue}s associated with this + * {@link ValueContainer}. As the data backed by the values are copied, + * any modifications to the {@link BaseValue}s will not be reflected onto + * this {@link ValueContainer}. + */ + // @ts-ignore + getValues(): any[] /*java.util.Set*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.value.ValueFactory.BoundedValueBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.data.value.ValueFactory.BoundedValueBuilder.ts new file mode 100644 index 00000000..05581101 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.value.ValueFactory.BoundedValueBuilder.ts @@ -0,0 +1,56 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace ValueFactory { + // @ts-ignore + interface BoundedValueBuilder { + /** + * IfE
is not {@link Comparable}, a {@link Comparator}
+ * is required. The builder by default will attempt to check if
+ * the type is a {@link Comparable} and delegate to the default
+ * {@link Comparable#compareTo(Object)} for comparisons. In short, the
+ * {@link Comparator} is only required if the element is not
+ * {@link Comparable}, or custom comparisons are required.
+ */
+ // @ts-ignore
+ comparator(comparator: any): org.spongepowered.api.data.value.ValueFactory.BoundedValueBuilder;
+ /**
+ * Sets the minimum supported value.
+ */
+ // @ts-ignore
+ minimum(min: any): org.spongepowered.api.data.value.ValueFactory.BoundedValueBuilder;
+ /**
+ * Sets the maximum supported value.
+ */
+ // @ts-ignore
+ maximum(max: any): org.spongepowered.api.data.value.ValueFactory.BoundedValueBuilder;
+ /**
+ * Sets the default value. This is required. If no value is set,
+ * the default value transitively sets the value.
+ */
+ // @ts-ignore
+ defaultValue(defaultValue: any): org.spongepowered.api.data.value.ValueFactory.BoundedValueBuilder;
+ /**
+ * Sets the actual value. Though not required, if the value is
+ * different from the {@link #defaultValue(Object)}, it should be
+ * set.
+ */
+ // @ts-ignore
+ actualValue(actual: any): org.spongepowered.api.data.value.ValueFactory.BoundedValueBuilder;
+ /**
+ * Builds a new {@link MutableBoundedValue}. The requirements are
+ * that the {@link #minimum(Object)}, {@link #maximum(Object)},
+ * {@link #defaultValue(Object)} are set, and if the E
is
+ * not {@link Comparable}, {@link #comparator(Comparator)} is set.
+ */
+ // @ts-ignore
+ build(): org.spongepowered.api.data.value.mutable.MutableBoundedValue;
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.value.ValueFactory.ts b/packages/sponge/src/typings/org.spongepowered.api.data.value.ValueFactory.ts
new file mode 100644
index 00000000..ad145e93
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.data.value.ValueFactory.ts
@@ -0,0 +1,82 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace data {
+ namespace value {
+ // @ts-ignore
+ interface ValueFactory {
+ /**
+ * Creates a new {@link Value} with the provided {@link Key} and the
+ * E
element.
+ */
+ // @ts-ignore
+ createValue(key: org.spongepowered.api.data.key.Key, element: any): org.spongepowered.api.data.value.mutable.Value;
+ /**
+ * Creates a new {@link Value} with the provided {@link Key} and the
+ * E
element and the provided E
default value.
+ */
+ // @ts-ignore
+ createValue(key: org.spongepowered.api.data.key.Key, element: any, defaultValue: any): org.spongepowered.api.data.value.mutable.Value;
+ /**
+ * Creates a new {@link ListValue} with the provided {@link Key} and
+ * {@link List} of elements. The default value will be an empty list.
+ */
+ // @ts-ignore
+ createListValue(key: org.spongepowered.api.data.key.Key, elements: any[] /*java.util.List*/): org.spongepowered.api.data.value.mutable.ListValue;
+ /**
+ * Creates a new {@link ListValue} with the provided {@link Key} and
+ * {@link List} of elements.
+ */
+ // @ts-ignore
+ createListValue(key: org.spongepowered.api.data.key.Key, elements: any[] /*java.util.List*/, defaults: any[] /*java.util.List*/): org.spongepowered.api.data.value.mutable.ListValue;
+ /**
+ * Creates a new {@link SetValue} with the provided {@link Key} and
+ * {@link Set} of elements.
+ */
+ // @ts-ignore
+ createSetValue(key: org.spongepowered.api.data.key.Key, elements: any[] /*java.util.Set*/): org.spongepowered.api.data.value.mutable.SetValue;
+ /**
+ * Creates a new {@link SetValue} with the provided {@link Key} and
+ * {@link Set} of elements.
+ */
+ // @ts-ignore
+ createSetValue(key: org.spongepowered.api.data.key.Key, elements: any[] /*java.util.Set*/, defaults: any[] /*java.util.Set*/): org.spongepowered.api.data.value.mutable.SetValue;
+ /**
+ * Creates a new {@link MapValue} of the provided {@link Key} with the
+ * types K
and V
.
+ */
+ // @ts-ignore
+ createMapValue(key: org.spongepowered.api.data.key.Key, map: MapK
and V
along with the provided
+ * {@link Map} defaults.
+ */
+ // @ts-ignore
+ createMapValue(key: org.spongepowered.api.data.key.Key, map: Mapnull
, such that the actual value may be retained as
+ * null
.
+ */
+ // @ts-ignore
+ createOptionalValue(key: org.spongepowered.api.data.key.Key, element: any, defaultElement: any): org.spongepowered.api.data.value.mutable.OptionalValue;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableBoundedValue.ts b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableBoundedValue.ts
new file mode 100644
index 00000000..271a128e
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableBoundedValue.ts
@@ -0,0 +1,19 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace data {
+ namespace value {
+ namespace immutable {
+ // @ts-ignore
+ interface ImmutableBoundedValue extends org.spongepowered.api.data.value.BoundedValue, org.spongepowered.api.data.value.immutable.ImmutableValue {
+ // @ts-ignore
+ transform(func: any): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue;
+ // @ts-ignore
+ asMutable(): org.spongepowered.api.data.value.mutable.MutableBoundedValue;
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableCollectionValue.ts b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableCollectionValue.ts
new file mode 100644
index 00000000..1c6f2bea
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableCollectionValue.ts
@@ -0,0 +1,84 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace data {
+ namespace value {
+ namespace immutable {
+ // @ts-ignore
+ interface ImmutableCollectionValue extends org.spongepowered.api.data.value.immutable.ImmutableValue {
+ /**
+ * Gets the size of the underlying collection of elements.
+ */
+ // @ts-ignore
+ size(): number;
+ /**
+ * Checks if the backed {@link Collection} is empty.
+ */
+ // @ts-ignore
+ isEmpty(): boolean;
+ // @ts-ignore
+ with(collection: any[] /*java.util.Collection*/): org.spongepowered.api.data.value.immutable.ImmutableCollectionValue;
+ /**
+ * Creates a new {@link ImmutableCollectionValue} with the given values
+ * along with any pre-existing values within this value.
+ */
+ // @ts-ignore
+ withElement(elements: any): org.spongepowered.api.data.value.immutable.ImmutableCollectionValue;
+ // @ts-ignore
+ transform(func: any): org.spongepowered.api.data.value.immutable.ImmutableCollectionValue;
+ /**
+ * Creates a new {@link ImmutableCollectionValue} with the given elements
+ * along with any pre-existing values within this value.
+ */
+ // @ts-ignore
+ withAll(elements: any): org.spongepowered.api.data.value.immutable.ImmutableCollectionValue;
+ /**
+ * Creates a new {@link ImmutableCollectionValue} without the given
+ * E
element.
+ */
+ // @ts-ignore
+ without(element: any): org.spongepowered.api.data.value.immutable.ImmutableCollectionValue;
+ /**
+ * Creates a new {@link ImmutableCollectionValue} without the given
+ * elements of the provided {@link Iterable}.
+ */
+ // @ts-ignore
+ withoutAll(elements: any): org.spongepowered.api.data.value.immutable.ImmutableCollectionValue;
+ /**
+ * Creates a new {@link ImmutableCollectionValue} with elements that
+ * when the given {@link Predicate} is {@link Predicate#test(Object)} on
+ * the element and {@code true} is returned, the element will remain in the
+ * new {@link ImmutableCollectionValue}.
+ */
+ // @ts-ignore
+ withoutAll(predicate: any): org.spongepowered.api.data.value.immutable.ImmutableCollectionValue;
+ /**
+ * Checks if the given E
element is contained within the
+ * backed {@link Collection}.
+ */
+ // @ts-ignore
+ contains(element: any): boolean;
+ /**
+ * Checks if all of the given elements in the provided {@link Iterable} are
+ * contained within the backed {@link Collection}.
+ */
+ // @ts-ignore
+ containsAll(iterable: any): boolean;
+ /**
+ * Creates a new {@link Collection} of the proper type C
with
+ * all elements copied to the new collection. Any modifications to the new
+ * collection are not reflected to this {@link ImmutableCollectionValue}.
+ * Likewise, no modifications to this {@link ImmutableCollectionValue} are
+ * reflected to the returned {@link Collection}.
+ */
+ // @ts-ignore
+ getAll(): any[] /*java.util.Collection*/;
+ // @ts-ignore
+ asMutable(): org.spongepowered.api.data.value.mutable.CollectionValue;
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableListValue.ts b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableListValue.ts
new file mode 100644
index 00000000..f1a90195
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableListValue.ts
@@ -0,0 +1,55 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace data {
+ namespace value {
+ namespace immutable {
+ // @ts-ignore
+ interface ImmutableListValue extends org.spongepowered.api.data.value.immutable.ImmutableCollectionValue {
+ /**
+ * Gets the desired element at the desired index.
+ */
+ // @ts-ignore
+ get(index: number): any;
+ /**
+ * Creates a new {@link ImmutableListValue} with the specified element
+ * at the specified position in the list. As well, the element at the
+ * provided index is shifted to the right, increasing its and the elements
+ * thereafter their indices by one.
+ */
+ // @ts-ignore
+ with(index: number, value: any): org.spongepowered.api.data.value.immutable.ImmutableListValue;
+ /**
+ * Creates a new {@link ImmutableListValue} with the specified elements
+ * in the order that they are iterated to the list at the specified index.
+ * The element at the provided index and elements thereafter are shifted to
+ * the right, increasing their indices by one.
+ */
+ // @ts-ignore
+ with(index: number, values: any): org.spongepowered.api.data.value.immutable.ImmutableListValue;
+ /**
+ * Creates a new {@link ImmutableListValue} without the element at the
+ * specified index. Shifts any subsequent elements to the left, subtracts
+ * one from their indices.
+ */
+ // @ts-ignore
+ without(index: number): org.spongepowered.api.data.value.immutable.ImmutableListValue;
+ /**
+ * Creates a new {@link ImmutableListValue} with the desired element at
+ * the desired index.
+ */
+ // @ts-ignore
+ set(index: number, element: any): org.spongepowered.api.data.value.immutable.ImmutableListValue;
+ /**
+ * Queries for the index of the provided element. If the element is
+ * not contained in this list, -1 is returned.
+ */
+ // @ts-ignore
+ indexOf(element: any): number;
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableMapValue.ts b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableMapValue.ts
new file mode 100644
index 00000000..a9000011
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableMapValue.ts
@@ -0,0 +1,87 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace data {
+ namespace value {
+ namespace immutable {
+ // @ts-ignore
+ interface ImmutableMapValue extends org.spongepowered.api.data.value.immutable.ImmutableValue {
+ /**
+ * Gets the size of this map.
+ */
+ // @ts-ignore
+ size(): number;
+ /**
+ * Associates the provided key to the provided value in the new map. If
+ * there already exists a value for the provided key, the value is
+ * replaced.
+ */
+ // @ts-ignore
+ with(key: any, value: any): org.spongepowered.api.data.value.immutable.ImmutableMapValue;
+ // @ts-ignore
+ with(value: Maptrue
from {@link Predicate#test(Object)} are kept, and
+ * those that return false
are excluded.
+ */
+ // @ts-ignore
+ withoutAll(predicate: any): org.spongepowered.api.data.value.immutable.ImmutableMapValue;
+ /**
+ * Checks if the provided key is contained within this map.
+ */
+ // @ts-ignore
+ containsKey(key: any): boolean;
+ /**
+ * Checks if the provided value is contained within this map.
+ */
+ // @ts-ignore
+ containsValue(value: any): boolean;
+ /**
+ * Gets an {@link ImmutableSet} of all keys contained in this map value.
+ */
+ // @ts-ignore
+ keySet(): any;
+ /**
+ * Retrieves an {@link ImmutableSet} of the {@link Entry}s contained
+ * within this map value.
+ */
+ // @ts-ignore
+ entrySet(): any;
+ /**
+ * Retrieves an {@link ImmutableCollection} of all available values within
+ * this map.
+ */
+ // @ts-ignore
+ values(): any;
+ // @ts-ignore
+ transform(func: any): org.spongepowered.api.data.value.immutable.ImmutableMapValue;
+ // @ts-ignore
+ asMutable(): org.spongepowered.api.data.value.mutable.MapValue;
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableOptionalValue.ts b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableOptionalValue.ts
new file mode 100644
index 00000000..4720603e
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableOptionalValue.ts
@@ -0,0 +1,35 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace data {
+ namespace value {
+ namespace immutable {
+ // @ts-ignore
+ interface ImmutableOptionalValue extends org.spongepowered.api.data.value.immutable.ImmutableValue {
+ // @ts-ignore
+ with(value: any): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue;
+ // @ts-ignore
+ transform(func: any): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue;
+ /**
+ * Creates a new {@link ImmutableOptionalValue} with the provided value,
+ * may be null.
+ */
+ // @ts-ignore
+ instead(value: any): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue;
+ /**
+ * Provides the value such that if the underlying value is
+ * {@code null}, the default value is returned as an
+ * {@link ImmutableValue}, if the underlying value is present, the
+ * underlying value is returned as a {@link ImmutableValue}.
+ */
+ // @ts-ignore
+ or(value: any): org.spongepowered.api.data.value.immutable.ImmutableValue;
+ // @ts-ignore
+ asMutable(): org.spongepowered.api.data.value.mutable.OptionalValue;
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutablePatternListValue.ts b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutablePatternListValue.ts
new file mode 100644
index 00000000..bac646b2
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutablePatternListValue.ts
@@ -0,0 +1,59 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace data {
+ namespace value {
+ namespace immutable {
+ // @ts-ignore
+ interface ImmutablePatternListValue extends org.spongepowered.api.data.value.immutable.ImmutableListValue {
+ /**
+ * Creates and adds a {@link PatternLayer} based on the
+ * {@link BannerPatternShape} and {@link DyeColor} at the desired index
+ * such that the element at the provided index is shifted to the left. This
+ * returns a new {@link ImmutablePatternListValue}.
+ */
+ // @ts-ignore
+ with(patternShape: org.spongepowered.api.data.type.BannerPatternShape, color: org.spongepowered.api.data.type.DyeColor): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue;
+ // @ts-ignore
+ with(index: number, value: org.spongepowered.api.data.meta.PatternLayer): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue;
+ // @ts-ignore
+ with(index: number, values: any): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue;
+ /**
+ * Creates and adds a {@link PatternLayer} based on the
+ * {@link BannerPatternShape} and {@link DyeColor} at the desired index
+ * such that the element at the provided index is shifted to the left.
+ */
+ // @ts-ignore
+ with(index: number, patternShape: org.spongepowered.api.data.type.BannerPatternShape, color: org.spongepowered.api.data.type.DyeColor): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue;
+ // @ts-ignore
+ with(collection: any[] /*java.util.List*/): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue;
+ // @ts-ignore
+ withElement(elements: org.spongepowered.api.data.meta.PatternLayer): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue;
+ // @ts-ignore
+ withAll(elements: any): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue;
+ /**
+ * Creates and adds a {@link PatternLayer} based on the
+ * {@link BannerPatternShape} and {@link DyeColor} at the desired index
+ * such that the element at the provided index is shifted to the left.
+ */
+ // @ts-ignore
+ set(index: number, patternShape: org.spongepowered.api.data.type.BannerPatternShape, color: org.spongepowered.api.data.type.DyeColor): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue;
+ // @ts-ignore
+ set(index: number, element: org.spongepowered.api.data.meta.PatternLayer): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue;
+ // @ts-ignore
+ without(element: org.spongepowered.api.data.meta.PatternLayer): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue;
+ // @ts-ignore
+ without(index: number): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue;
+ // @ts-ignore
+ withoutAll(elements: any): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue;
+ // @ts-ignore
+ withoutAll(predicate: any): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue;
+ // @ts-ignore
+ asMutable(): org.spongepowered.api.data.value.mutable.PatternListValue;
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableSetValue.ts b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableSetValue.ts
new file mode 100644
index 00000000..3df8c0b8
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableSetValue.ts
@@ -0,0 +1,15 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace data {
+ namespace value {
+ namespace immutable {
+ // @ts-ignore
+ interface ImmutableSetValue extends org.spongepowered.api.data.value.immutable.ImmutableCollectionValue {
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableValue.ts b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableValue.ts
new file mode 100644
index 00000000..d75ad43b
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableValue.ts
@@ -0,0 +1,39 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace data {
+ namespace value {
+ namespace immutable {
+ // @ts-ignore
+ interface ImmutableValue extends org.spongepowered.api.data.value.BaseValue {
+ /**
+ * Creates a new {@link ImmutableValue} with the given E
typed
+ * value, such that if the owning {@link ValueContainer} is immutable, the
+ * {@link ValueContainer} too is recreated as a new instance with the new
+ * {@link ImmutableValue}.
+ */
+ // @ts-ignore
+ with(value: any): org.spongepowered.api.data.value.immutable.ImmutableValue;
+ /**
+ * Retrieves the underlying value for this {@link ImmutableValue} and
+ * applies the given {@link Function} onto that value, after which, the
+ * product is sent to a new {@link ImmutableValue} replacing this one.
+ * If the {@link ValueContainer} too is immutable, a new instance of + * the {@link ValueContainer} may be created. If the {@link ValueContainer} + * is mutable, the same instance of the {@link ValueContainer} is retained. + *
+ */ + // @ts-ignore + transform(func: any): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Creates a mutable {@link Value} for this {@link ImmutableValue}. + */ + // @ts-ignore + asMutable(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableValueStore.ts b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableValueStore.ts new file mode 100644 index 00000000..a266a6a3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableValueStore.ts @@ -0,0 +1,158 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace immutable { + // @ts-ignore + interface ImmutableValueStore extends org.spongepowered.api.data.value.ValueContainer { + /** + *Gets the desired {@link ValueContainer} of type H
if the
+ * {@link ValueContainer} is compatible. Since the return type is an
+ * {@link Optional}, a short way of checking compatibility and presence
+ * of the requested data is to mimic the following:
// MyCompositeValueStore extends
+ * CompositeValueStore<MyCompositeValueStore,
+ * DataManipulator<?>>
MyCompositeValueStore valueStore;
+ * final Optional<DisplayNameData> displayOptional =
+ * valueStore.get(DisplayNameData.class);
+ * if (displayOptional.isPresent()) {
+ * // We know that we have a present DataManipulator and it's supported
+ *
System.out.println(
+ * displayOptional.get().displayName().get().toString());
+ * }
+ * This is the equivalent to performing the following:
+ *
+ * MyCompositeValueStore valueStore;
+ * if (valueStore.supports(DisplayNameData.class)) {
+ *
+ * System.out.println(valueStore.getOrNull(DisplayNameData.class
+ * ).displayName().get().toString());
}
+ * The advantage of this returning an {@link Optional} is that the + * {@link ValueContainer} may be unsupported, the required data missing + * and ignoring the possibility of {@code null}s, it is a guarantee that if + * the {@link Optional#isPresent()} is {@code true}, the + * {@link ValueContainer} not only is supported, but there is already pre- + * existing data for the {@link ValueContainer}.
+ *If it is necessary to ignore the {@link Optional}, + * {@link Optional#orElse(Object)} can be used to return a potentially + * {@code null} {@link ValueContainer}.
+ */ + // @ts-ignore + get(containerClass: any): any; + /** + *Gets the desired {@link ValueContainer} of type H
if the
+ * {@link ValueContainer} is compatible. If insufficient data is available
+ * to provide a {@link ValueContainer} with all {@link ImmutableValue}s
+ * preset, a new instance of the {@link ValueContainer} is returned with
+ * "default" values. Since the return type is an {@link Optional}, a short
+ * way of checking compatibility and presence of the requested data is to
+ * mimic the following:
// MyCompositeValueStore extends
+ * CompositeValueStore<MyCompositeValueStore,
+ * DataManipulator<?>>
+ * MyCompositeValueStore valueStore;
+ * final Optional<DisplayNameData> displayOptional =
+ * valueStore.getOrCreate(DisplayNameData.class);
+ * if (displayOptional.isPresent()) {
// We know that we
+ * have a present DataManipulator and it's supported
+ * System.out.println(displayOptional.get().displayName().get().toString());
+ *
}
+ * This is the equivalent to performing the following:
+ *MyCompositeValueStore valueStore;
+ * if (valueStore.supports(DisplayNameData.class)) {
+ * System.out.println(valueStore.getOrNull(DisplayNameData.class
+ * ).displayName().get().toString());
}
+ * The advantage of this returning an {@link Optional} is that the + * {@link ValueContainer} may be unsupported, the required data missing + * and ignoring the possibility of {@code null}s, it is a guarantee that if + * the {@link Optional#isPresent()} is {@code true}, the + * {@link ValueContainer} not only is supported, but there is already pre- + * existing data for the {@link ValueContainer}.
+ *If it is necessary to ignore the {@link Optional}, + * {@link Optional#orElse(Object)} can be used to return a potentially + * {@code null} {@link ValueContainer}.
+ */ + // @ts-ignore + getOrCreate(containerClass: any): any; + /** + * Checks if the given {@link Class} of type {@link ValueContainer} is + * supported by this {@link ImmutableValueStore}. + */ + // @ts-ignore + supports(containerClass: any): boolean; + /** + * Applies a transformation on the provided {@link BaseValue} such that + * the return value of {@link Function#apply(Object)} will become the end + * resulting value set into the newly created {@link ImmutableValueStore}. + */ + // @ts-ignore + transform(key: org.spongepowered.api.data.key.Key, func: any): any; + /** + * Creates a new {@link ImmutableValueStore} with the provided + * value by {@link Key}. If the key is supported by this value store, + * the returned value store will be present. + */ + // @ts-ignore + with(key: org.spongepowered.api.data.key.Key, value: any): any; + /** + * Offers the given {@code value} as defined by the provided {@link Key} + * such that if the {@link Key} is supported, a new + * {@link ImmutableValueStore} is created. + */ + // @ts-ignore + with(value: org.spongepowered.api.data.value.BaseValue): any; + /** + * Offers the given {@link ValueContainer} such that all of the available + * {@link BaseValue}s from the given {@link ValueContainer} are offered + * to the newly created {@link ImmutableValueStore}. + */ + // @ts-ignore + with(valueContainer: org.spongepowered.api.data.value.ValueContainer): any; + /** + * Gets an altered copy of this {@link ImmutableValueStore} with the given + * {@link DataManipulator} modified data. If the data is not compatible for + * any reason, {@link Optional#empty()} is returned. + *This does not alter the current {@link ImmutableValueStore}.
+ */ + // @ts-ignore + with(valueContainers: any): any; + /** + * Gets an altered copy of this {@link ImmutableValueStore} without the + * given {@link ValueContainer} class. If the data represented by the + * manipulator can not exist without a "default state" of the + * {@link ValueContainer}, the {@link ValueContainer} is reset to the + * "default" state. + */ + // @ts-ignore + without(containerClass: any): any; + /** + * Attempts to merge the {@link ImmutableValue}s from this + * {@link ImmutableValueStore} and the given {@link ImmutableValueStore} to + * produce a new instance of the merged result. + */ + // @ts-ignore + merge(that: org.spongepowered.api.data.value.immutable.ImmutableValueStore): org.spongepowered.api.data.value.immutable.ImmutableValueStore; + /** + * Attempts to merge the {@link ImmutableValue}s from this + * {@link ImmutableValueStore} and the given {@link ImmutableValueStore} to + * produce a new instance of the merged result. Any overlapping + * {@link ValueContainer}s are merged through the {@link MergeFunction}. + */ + // @ts-ignore + merge(that: org.spongepowered.api.data.value.immutable.ImmutableValueStore, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.value.immutable.ImmutableValueStore; + /** + * Gets an copied collection of all known {@link ValueContainer}s + * belonging to this {@link ImmutableValueStore}. An individual + * {@link ValueContainer} can be used for data processing for various + * purposes. + */ + // @ts-ignore + getContainers(): any[] /*java.util.List*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableWeightedCollectionValue.ts b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableWeightedCollectionValue.ts new file mode 100644 index 00000000..eab24619 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.value.immutable.ImmutableWeightedCollectionValue.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace immutable { + // @ts-ignore + interface ImmutableWeightedCollectionValue extends org.spongepowered.api.data.value.immutable.ImmutableCollectionValue { + /** + * Selects a random value from this list based on their weight. + *If the list is empty then null will be returned.
+ */ + // @ts-ignore + get(random: any): any[] /*java.util.List*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.value.mutable.CollectionValue.ts b/packages/sponge/src/typings/org.spongepowered.api.data.value.mutable.CollectionValue.ts new file mode 100644 index 00000000..a6fb0fde --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.data.value.mutable.CollectionValue.ts @@ -0,0 +1,92 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace mutable { + // @ts-ignore + interface CollectionValue extends org.spongepowered.api.data.value.mutable.Value { + // @ts-ignore + set(value: any[] /*java.util.Collection*/): org.spongepowered.api.data.value.mutable.CollectionValue; + // @ts-ignore + transform(func: any): org.spongepowered.api.data.value.mutable.CollectionValue; + /** + * Gets the size of the underlying collection of elements. + */ + // @ts-ignore + size(): number; + /** + * Checks if the backed {@link Collection} is empty. + */ + // @ts-ignore + isEmpty(): boolean; + /** + * Adds the given {@code element} to this {@link CollectionValue}. + */ + // @ts-ignore + add(element: any): org.spongepowered.api.data.value.mutable.CollectionValue; + /** + * Adds all the given {@link Iterable} {@code elements} to the underlying + * {@link Collection}. + */ + // @ts-ignore + addAll(elements: any): org.spongepowered.api.data.value.mutable.CollectionValue; + /** + * Removes the given {@code element} from the backed {@link Collection}. + */ + // @ts-ignore + remove(element: any): org.spongepowered.api.data.value.mutable.CollectionValue; + /** + * Removes all elements from the {@link Iterable} from the backed + * {@link Collection}. + */ + // @ts-ignore + removeAll(elements: any): org.spongepowered.api.data.value.mutable.CollectionValue; + /** + * Iterates over all existing elements and removes any elements that + * {@link Predicate#test(Object)} returns {@code true}. + */ + // @ts-ignore + removeAll(predicate: any): org.spongepowered.api.data.value.mutable.CollectionValue; + /** + * Checks if the givenE
element is contained within the backed
+ * {@link Collection}.
+ */
+ // @ts-ignore
+ contains(element: any): boolean;
+ /**
+ * Checks if all of the given {@link Iterable} elements are contained
+ * within the backed {@link Collection}.
+ */
+ // @ts-ignore
+ containsAll(iterable: any[] /*java.util.Collection*/): boolean;
+ /**
+ * Applies a {@link Predicate} to filter the underlying elements in the
+ * backed {@link Collection} to create a new {@link CollectionValue}
+ * separate from this {@link CollectionValue}. This value is not modified,
+ * nor is the underlying {@link Collection}. Elements that return
+ * true
from {@link Predicate#test(Object)} are kept, and
+ * those that return false
are excluded.
+ */
+ // @ts-ignore
+ filter(predicate: any): org.spongepowered.api.data.value.mutable.CollectionValue;
+ /**
+ * Creates a new {@link Collection} of the proper type C
with
+ * all elements copied to the new collection. Any modifications to the new
+ * collection are not reflected to this {@link CollectionValue}. Likewise,
+ * no modifications to this {@link CollectionValue} are reflected to the
+ * returned {@link Collection}.
+ */
+ // @ts-ignore
+ getAll(): any[] /*java.util.Collection*/;
+ // @ts-ignore
+ asImmutable(): org.spongepowered.api.data.value.immutable.ImmutableCollectionValue;
+ // @ts-ignore
+ copy(): org.spongepowered.api.data.value.mutable.CollectionValue;
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.data.value.mutable.CompositeValueStore.ts b/packages/sponge/src/typings/org.spongepowered.api.data.value.mutable.CompositeValueStore.ts
new file mode 100644
index 00000000..82a35a78
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.data.value.mutable.CompositeValueStore.ts
@@ -0,0 +1,261 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace data {
+ namespace value {
+ namespace mutable {
+ // @ts-ignore
+ interface CompositeValueStore extends org.spongepowered.api.data.value.ValueContainer {
+ /**
+ * Gets the desired {@link ValueContainer} of type H
if the
+ * {@link ValueContainer} is compatible. Since the return type is an
+ * {@link Optional}, a short way of checking compatibility and presence
+ * of the requested data is to mimic the following:
// MyCompositeValueStore extends
+ * CompositeValueStore<MyCompositeValueStore,
+ * DataManipulator<?>>
+ * MyCompositeValueStore valueStore;
+ * final Optional<DisplayNameData> displayOptional =
+ * valueStore.get(DisplayNameData.class);
+ * if (displayOptional.isPresent()) {
+ * // We know that we have a present DataManipulator and it's
+ * supported
+ * System.out.println(displayOptional.get().displayName().get().toString());
+ *
}
+ * This is the equivalent to performing the following:
+ *MyCompositeValueStore valueStore;
+ * if (valueStore.supports(DisplayNameData.class)) {
+ * System.out.println(valueStore.getOrNull(DisplayNameData.class
+ * ).displayName().get().toString());
}
+ * The advantage of this returning an {@link Optional} is that the + * {@link ValueContainer} may be unsupported, the required data missing + * and ignoring the possibility of {@code null}s, it is a guarantee that if + * the {@link Optional#isPresent()} is {@code true}, the + * {@link ValueContainer} not only is supported, but there is already pre- + * existing data for the {@link ValueContainer}.
+ *If it is necessary to ignore the {@link Optional},
+ * {@link Optional#orElse(Object)} can be used to return a potentially
+ * null
{@link ValueContainer}.
H
if the
+ * {@link ValueContainer} is compatible.
+ * If the container class is not supported or + * available, {@link NoSuchElementException} will be thrown.
+ */ + // @ts-ignore + require(containerClass: any): org.spongepowered.api.data.value.ValueContainer; + /** + *Gets the desired {@link ValueContainer} of type H
if the
+ * {@link ValueContainer} is compatible. If insufficient data is available
+ * to provide a {@link ValueContainer} with all {@link Value}s preset, a
+ * new instance of the {@link ValueContainer} is returned with "default"
+ * values. Since the return type is an {@link Optional}, a short way of
+ * checking compatibility and presence of the requested data is to mimic
+ * the following:
// MyCompositeValueStore extends
+ * CompositeValueStore<MyCompositeValueStore,
+ * DataManipulator<?>>
+ * MyCompositeValueStore valueStore;
+ * final Optional<DisplayNameData> displayOptional =
+ * valueStore.getOrCreate(DisplayNameData.class);
+ * if (displayOptional.isPresent()) {
+ * // We know that we have a present DataManipulator and it's
+ * supported
+ * System.out.println(displayOptional.get().displayName().get().toString()
+ * );
}
+ * This is the equivalent to performing the following:
+ *MyCompositeValueStore valueStore;
+ * if (valueStore.supports(DisplayNameData.class)) {
+ * System.out.println(valueStore.get(DisplayNameData.class
+ * ).get().displayName().get().toString());
}
+ * The advantage of this returning an {@link Optional} is that the + * {@link ValueContainer} may be unsupported, the required data missing + * and ignoring the possibility of {@code null}s, it is a guarantee that if + * the {@link Optional#isPresent()} is {@code true}, the + * {@link ValueContainer} not only is supported, but some default values + * can be generated to create the desired {@link ValueContainer}.
+ *If it is necessary to ignore the {@link Optional},
+ * {@link Optional#orElse(Object)} can be used to return a potentially
+ * null
{@link ValueContainer}.
If the list is empty then null will be returned.
+ */ + // @ts-ignore + get(random: any): any[] /*java.util.List*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.effect.Viewer.ts b/packages/sponge/src/typings/org.spongepowered.api.effect.Viewer.ts new file mode 100644 index 00000000..0ce04581 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.effect.Viewer.ts @@ -0,0 +1,149 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + // @ts-ignore + interface Viewer { + /** + * Spawn a {@link ParticleEffect} at a given position. + * All players within a default radius around the position will see the + * particles. + */ + // @ts-ignore + spawnParticles(particleEffect: org.spongepowered.api.effect.particle.ParticleEffect, position: any /*Vector3d*/): void; + /** + * Spawn a {@link ParticleEffect} at a given position. + * All players within a given radius around the position will see the + * particles. + */ + // @ts-ignore + spawnParticles(particleEffect: org.spongepowered.api.effect.particle.ParticleEffect, position: any /*Vector3d*/, radius: number): void; + /** + * Plays the given {@link SoundType} at the given position, with the + * category {@link SoundCategories#MASTER}. All players within range + * will hear the sound with the given volume. + */ + // @ts-ignore + playSound(sound: org.spongepowered.api.effect.sound.SoundType, position: any /*Vector3d*/, volume: number): void; + /** + * Plays the given {@link SoundType} at the given position. All + * players within range will hear the sound with the given volume. + */ + // @ts-ignore + playSound(sound: org.spongepowered.api.effect.sound.SoundType, category: org.spongepowered.api.effect.sound.SoundCategory, position: any /*Vector3d*/, volume: number): void; + /** + * Plays the given {@link SoundType} at the given position, with the + * category {@link SoundCategories#MASTER}. All players within range + * will hear the sound with the given volume. + */ + // @ts-ignore + playSound(sound: org.spongepowered.api.effect.sound.SoundType, position: any /*Vector3d*/, volume: number, pitch: number): void; + /** + * Plays the given {@link SoundType} at the given position, with the + * category {@link SoundCategories#MASTER}. All players within range + * will hear the sound with the given volume. + */ + // @ts-ignore + playSound(sound: org.spongepowered.api.effect.sound.SoundType, category: org.spongepowered.api.effect.sound.SoundCategory, position: any /*Vector3d*/, volume: number, pitch: number): void; + /** + * Plays the given {@link SoundType} at the given position, with the + * category {@link SoundCategories#MASTER}. All players within range + * will hear the sound with the given volume. + */ + // @ts-ignore + playSound(sound: org.spongepowered.api.effect.sound.SoundType, position: any /*Vector3d*/, volume: number, pitch: number, minVolume: number): void; + /** + * Plays the given {@link SoundType} at the given position. All + * players within range will hear the sound with the given volume. + */ + // @ts-ignore + playSound(sound: org.spongepowered.api.effect.sound.SoundType, category: org.spongepowered.api.effect.sound.SoundCategory, position: any /*Vector3d*/, volume: number, pitch: number, minVolume: number): void; + /** + * Stops all the sounds. + */ + // @ts-ignore + stopSounds(): void; + /** + * Stops all the sounds of the given {@link SoundType}. + */ + // @ts-ignore + stopSounds(sound: org.spongepowered.api.effect.sound.SoundType): void; + /** + * Stops all the sounds that are played in the + * given {@link SoundCategory}. + */ + // @ts-ignore + stopSounds(category: org.spongepowered.api.effect.sound.SoundCategory): void; + /** + * Stops all the sounds of the given {@link SoundType} that + * are played in the given {@link SoundCategory}. + */ + // @ts-ignore + stopSounds(sound: org.spongepowered.api.effect.sound.SoundType, category: org.spongepowered.api.effect.sound.SoundCategory): void; + /** + * Plays the given {@link RecordType} at the given position. The benefit of playing + * {@link RecordType} instead of a {@link SoundType} allows you to stop them through + * the {@link #stopRecord(Vector3i)}. Playing a new {@link RecordType} at the same + * position will cancel the currently playing one. + */ + // @ts-ignore + playRecord(position: any /*Vector3i*/, recordType: org.spongepowered.api.effect.sound.record.RecordType): void; + /** + * Stops the record that is playing at the given position. + */ + // @ts-ignore + stopRecord(position: any /*Vector3i*/): void; + /** + * Sends a {@link Title} to this player. + */ + // @ts-ignore + sendTitle(title: org.spongepowered.api.text.title.Title): void; + /** + * Removes the currently displayed {@link Title} from the player and resets + * all settings back to default values. + */ + // @ts-ignore + resetTitle(): void; + /** + * Removes the currently displayed {@link Title} from the player's screen. + */ + // @ts-ignore + clearTitle(): void; + /** + * Sends a {@link BookView} to this viewer. + */ + // @ts-ignore + sendBookView(bookView: org.spongepowered.api.text.BookView): void; + /** + * Sends a client-only block change. + *This will not change the {@link World} in any way.
+ */ + // @ts-ignore + sendBlockChange(vec: any /*Vector3i*/, state: org.spongepowered.api.block.BlockState): void; + /** + * Sends a client-only block change. + *This will not change the {@link World} in any way.
+ */ + // @ts-ignore + sendBlockChange(x: number, y: number, z: number, state: org.spongepowered.api.block.BlockState): void; + /** + * Resets the client's view of the provided position to what + * actually exists in the {@link World}. + *This is useful for resetting what the client sees + * after sending a {@link #sendBlockChange block change}.
+ */ + // @ts-ignore + resetBlockChange(vec: any /*Vector3i*/): void; + /** + * Resets the client's view of the provided position to what + * actually exists in the {@link World}. + *This is useful for resetting what the client sees + * after sending a {@link #sendBlockChange block change}.
+ */ + // @ts-ignore + resetBlockChange(x: number, y: number, z: number): void; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.effect.particle.ParticleEffect.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.effect.particle.ParticleEffect.Builder.ts new file mode 100644 index 00000000..150b09ea --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.effect.particle.ParticleEffect.Builder.ts @@ -0,0 +1,52 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace particle { + namespace ParticleEffect { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.persistence.DataBuilder { + // @ts-ignore + from(particleEffect: org.spongepowered.api.effect.particle.ParticleEffect): org.spongepowered.api.effect.particle.ParticleEffect.Builder; + // @ts-ignore + reset(): org.spongepowered.api.effect.particle.ParticleEffect.Builder; + /** + * Sets the particle type for the particle effect. + */ + // @ts-ignore + type(particleType: org.spongepowered.api.effect.particle.ParticleType): org.spongepowered.api.effect.particle.ParticleEffect.Builder; + /** + * Sets the value of the specified {@link ParticleOption}. + */ + // @ts-ignore + option(option: org.spongepowered.api.effect.particle.ParticleOption, value: any): org.spongepowered.api.effect.particle.ParticleEffect.Builder; + /** + * Sets the velocity of the particle effect. + *The default velocity is {@link Vector3d#ZERO}.
+ */ + // @ts-ignore + velocity(velocity: any /*Vector3d*/): org.spongepowered.api.effect.particle.ParticleEffect.Builder; + /** + * Sets the offset of the particle effect. + *The default offset is {@link Vector3d#ZERO}.
+ */ + // @ts-ignore + offset(offset: any /*Vector3d*/): org.spongepowered.api.effect.particle.ParticleEffect.Builder; + /** + * Sets the amount of particles of the particle effect. + *The default quantity is 1.
+ */ + // @ts-ignore + quantity(quantity: number): org.spongepowered.api.effect.particle.ParticleEffect.Builder; + /** + * Builds an instance of a ParticleEffect. + */ + // @ts-ignore + build(): org.spongepowered.api.effect.particle.ParticleEffect; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.effect.particle.ParticleEffect.ts b/packages/sponge/src/typings/org.spongepowered.api.effect.particle.ParticleEffect.ts new file mode 100644 index 00000000..41ae7348 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.effect.particle.ParticleEffect.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace particle { + // @ts-ignore + interface ParticleEffect extends org.spongepowered.api.data.DataSerializable { + /** + * Creates a new {@link Builder} to build a {@link ParticleEffect}. + */ + // @ts-ignore + builder(): org.spongepowered.api.effect.particle.ParticleEffect.Builder; + /** + * Gets the type of the particle effect. + */ + // @ts-ignore + getType(): org.spongepowered.api.effect.particle.ParticleType; + /** + * Gets the value for the specified {@link ParticleOption}. + */ + // @ts-ignore + getOption(option: org.spongepowered.api.effect.particle.ParticleOption): any; + /** + * Gets the value for the specified {@link ParticleOption} or + * the default value if not present. + */ + // @ts-ignore + getOptionOrDefault(option: org.spongepowered.api.effect.particle.ParticleOption): any; + /** + * Gets a immutable {@link Map} with all the available + * {@link ParticleOption}s and their values. + */ + // @ts-ignore + getOptions(): MapAmplifiers must be above zero.
+ */ + // @ts-ignore + amplifier(amplifier: number): org.spongepowered.api.effect.potion.PotionEffect.Builder; + /** + * Sets the potion effect to be ambient or not. + */ + // @ts-ignore + ambience(ambience: boolean): org.spongepowered.api.effect.potion.PotionEffect.Builder; + /** + * Sets the potion effect to show particles when applied or not. + */ + // @ts-ignore + particles(showsParticles: boolean): org.spongepowered.api.effect.potion.PotionEffect.Builder; + /** + * Builds an instance of a PotionEffect. + */ + // @ts-ignore + build(): org.spongepowered.api.effect.potion.PotionEffect; + // @ts-ignore + reset(): org.spongepowered.api.effect.potion.PotionEffect.Builder; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.effect.potion.PotionEffect.ts b/packages/sponge/src/typings/org.spongepowered.api.effect.potion.PotionEffect.ts new file mode 100644 index 00000000..c923e3ff --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.effect.potion.PotionEffect.ts @@ -0,0 +1,53 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace potion { + // @ts-ignore + interface PotionEffect extends org.spongepowered.api.data.DataSerializable, org.spongepowered.api.data.property.PropertyHolder { + /** + * Creates a new {@link Builder} to build a {@link PotionEffect}. + */ + // @ts-ignore + builder(): org.spongepowered.api.effect.potion.PotionEffect.Builder; + /** + * Creates a new {@link PotionEffect} with the provided + * {@link PotionEffectType}, the provided amplifier, and the provided + * duration in ticks. + */ + // @ts-ignore + of(type: org.spongepowered.api.effect.potion.PotionEffectType, amplifier: number, duration: number): org.spongepowered.api.effect.potion.PotionEffect; + /** + * Gets the {@link PotionEffectType} of this potion. + */ + // @ts-ignore + getType(): org.spongepowered.api.effect.potion.PotionEffectType; + /** + * Gets the duration in ticks for which this potion effect + * will apply for. + */ + // @ts-ignore + getDuration(): number; + /** + * Gets the amplifier at which this potion effect + * will apply effects. + */ + // @ts-ignore + getAmplifier(): number; + /** + * Gets if the potion effect is an ambient effect. + */ + // @ts-ignore + isAmbient(): boolean; + /** + * Gets whether or not this potion effect should + * show particles. + */ + // @ts-ignore + getShowParticles(): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.effect.potion.PotionEffectType.ts b/packages/sponge/src/typings/org.spongepowered.api.effect.potion.PotionEffectType.ts new file mode 100644 index 00000000..c4eb9585 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.effect.potion.PotionEffectType.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace potion { + // @ts-ignore + interface PotionEffectType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + /** + * Gets whether this potion effect is applied instantly or over time. + */ + // @ts-ignore + isInstant(): boolean; + /** + * Gets the {@link Translation} for this potion effect type as a potion + * name. + */ + // @ts-ignore + getPotionTranslation(): org.spongepowered.api.text.translation.Translation; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.effect.potion.PotionEffectTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.effect.potion.PotionEffectTypes.ts new file mode 100644 index 00000000..16bcfe33 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.effect.potion.PotionEffectTypes.ts @@ -0,0 +1,67 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace potion { + // @ts-ignore + class PotionEffectTypes { + // @ts-ignore + public static ABSORPTION: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static BLINDNESS: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static FIRE_RESISTANCE: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static GLOWING: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static HASTE: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static HEALTH_BOOST: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static HUNGER: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static INSTANT_DAMAGE: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static INSTANT_HEALTH: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static INVISIBILITY: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static JUMP_BOOST: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static LEVITATION: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static LUCK: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static MINING_FATIGUE: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static NAUSEA: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static NIGHT_VISION: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static POISON: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static REGENERATION: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static RESISTANCE: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static SATURATION: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static SLOWNESS: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static SPEED: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static STRENGTH: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static UNLUCK: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static WATER_BREATHING: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static WEAKNESS: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static WITHER: org.spongepowered.api.effect.potion.PotionEffectType; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.effect.sound.PitchModulation.ts b/packages/sponge/src/typings/org.spongepowered.api.effect.sound.PitchModulation.ts new file mode 100644 index 00000000..c4e6c992 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.effect.sound.PitchModulation.ts @@ -0,0 +1,93 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace sound { + // @ts-ignore + class PitchModulation { + // @ts-ignore + public static FSHARP0: number; + // @ts-ignore + public static G0: number; + // @ts-ignore + public static GSHARP0: number; + // @ts-ignore + public static A0: number; + // @ts-ignore + public static ASHARP0: number; + // @ts-ignore + public static B0: number; + // @ts-ignore + public static C1: number; + // @ts-ignore + public static CSHARP1: number; + // @ts-ignore + public static D1: number; + // @ts-ignore + public static DSHARP1: number; + // @ts-ignore + public static E1: number; + // @ts-ignore + public static F1: number; + // @ts-ignore + public static FSHARP1: number; + // @ts-ignore + public static G1: number; + // @ts-ignore + public static GSHARP1: number; + // @ts-ignore + public static A1: number; + // @ts-ignore + public static ASHARP1: number; + // @ts-ignore + public static B1: number; + // @ts-ignore + public static C2: number; + // @ts-ignore + public static CSHARP2: number; + // @ts-ignore + public static D2: number; + // @ts-ignore + public static DSHARP2: number; + // @ts-ignore + public static E2: number; + // @ts-ignore + public static F2: number; + // @ts-ignore + public static FSHARP2: number; + // @ts-ignore + public static GFLAT0: number; + // @ts-ignore + public static AFLAT0: number; + // @ts-ignore + public static BFLAT0: number; + // @ts-ignore + public static CFLAT0: number; + // @ts-ignore + public static DFLAT1: number; + // @ts-ignore + public static EFLAT1: number; + // @ts-ignore + public static FFLAT1: number; + // @ts-ignore + public static GFLAT1: number; + // @ts-ignore + public static AFLAT1: number; + // @ts-ignore + public static BFLAT1: number; + // @ts-ignore + public static CFLAT1: number; + // @ts-ignore + public static DFLAT2: number; + // @ts-ignore + public static EFLAT2: number; + // @ts-ignore + public static FFLAT2: number; + // @ts-ignore + public static GFLAT2: number; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.effect.sound.SoundCategories.ts b/packages/sponge/src/typings/org.spongepowered.api.effect.sound.SoundCategories.ts new file mode 100644 index 00000000..1cecddef --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.effect.sound.SoundCategories.ts @@ -0,0 +1,33 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace sound { + // @ts-ignore + class SoundCategories { + // @ts-ignore + public static AMBIENT: org.spongepowered.api.effect.sound.SoundCategory; + // @ts-ignore + public static BLOCK: org.spongepowered.api.effect.sound.SoundCategory; + // @ts-ignore + public static HOSTILE: org.spongepowered.api.effect.sound.SoundCategory; + // @ts-ignore + public static MASTER: org.spongepowered.api.effect.sound.SoundCategory; + // @ts-ignore + public static MUSIC: org.spongepowered.api.effect.sound.SoundCategory; + // @ts-ignore + public static NEUTRAL: org.spongepowered.api.effect.sound.SoundCategory; + // @ts-ignore + public static PLAYER: org.spongepowered.api.effect.sound.SoundCategory; + // @ts-ignore + public static RECORD: org.spongepowered.api.effect.sound.SoundCategory; + // @ts-ignore + public static VOICE: org.spongepowered.api.effect.sound.SoundCategory; + // @ts-ignore + public static WEATHER: org.spongepowered.api.effect.sound.SoundCategory; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.effect.sound.SoundCategory.ts b/packages/sponge/src/typings/org.spongepowered.api.effect.sound.SoundCategory.ts new file mode 100644 index 00000000..ea62a459 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.effect.sound.SoundCategory.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace sound { + // @ts-ignore + interface SoundCategory extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.effect.sound.SoundType.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.effect.sound.SoundType.Builder.ts new file mode 100644 index 00000000..1c11bbdc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.effect.sound.SoundType.Builder.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace sound { + namespace SoundType { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Builds a new instance of a {@link SoundType}. + *Note: If no domain (indicated by the string before ':') is present + * in the id, the default "minecraft" domain will be used.
+ */ + // @ts-ignore + build(id: string): org.spongepowered.api.effect.sound.SoundType; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.effect.sound.SoundType.ts b/packages/sponge/src/typings/org.spongepowered.api.effect.sound.SoundType.ts new file mode 100644 index 00000000..93e4964f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.effect.sound.SoundType.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace sound { + // @ts-ignore + interface SoundType extends org.spongepowered.api.CatalogType { + /** + * Creates a new {@link Builder} for building SoundTypes. + */ + // @ts-ignore + builder(): org.spongepowered.api.effect.sound.SoundType.Builder; + /** + * Creates a newSoundType from the given ID. To fetch existing types, + * use {@link GameRegistry#getType(Class, String)}. + */ + // @ts-ignore + of(id: string): org.spongepowered.api.effect.sound.SoundType; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.effect.sound.SoundTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.effect.sound.SoundTypes.ts new file mode 100644 index 00000000..a7ac0445 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.effect.sound.SoundTypes.ts @@ -0,0 +1,1111 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace sound { + // @ts-ignore + class SoundTypes { + // @ts-ignore + public static AMBIENT_CAVE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ANVIL_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ANVIL_DESTROY: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ANVIL_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ANVIL_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ANVIL_LAND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ANVIL_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ANVIL_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ANVIL_USE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_BREWING_STAND_BREW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CHEST_CLOSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CHEST_LOCKED: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CHEST_OPEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CHORUS_FLOWER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CHORUS_FLOWER_GROW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CLOTH_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CLOTH_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CLOTH_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CLOTH_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CLOTH_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_COMPARATOR_CLICK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_DISPENSER_DISPENSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_DISPENSER_FAIL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_DISPENSER_LAUNCH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ENCHANTMENT_TABLE_USE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ENDERCHEST_CLOSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ENDERCHEST_OPEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_END_GATEWAY_SPAWN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_END_PORTAL_FRAME_FILL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_END_PORTAL_SPAWN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_FENCE_GATE_CLOSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_FENCE_GATE_OPEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_FIRE_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_FIRE_EXTINGUISH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_FURNACE_FIRE_CRACKLE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GLASS_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GLASS_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GLASS_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GLASS_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GLASS_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRASS_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRASS_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRASS_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRASS_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRASS_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRAVEL_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRAVEL_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRAVEL_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRAVEL_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRAVEL_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_IRON_DOOR_CLOSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_IRON_DOOR_OPEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_IRON_TRAPDOOR_CLOSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_IRON_TRAPDOOR_OPEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_LADDER_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_LADDER_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_LADDER_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_LADDER_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_LADDER_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_LAVA_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_LAVA_EXTINGUISH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_LAVA_POP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_LEVER_CLICK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_METAL_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_METAL_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_METAL_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_METAL_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_METAL_PRESSUREPLATE_CLICK_OFF: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_METAL_PRESSUREPLATE_CLICK_ON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_METAL_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_BASEDRUM: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_BASS: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_BELL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_CHIME: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_FLUTE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_GUITAR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_HARP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_HAT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_PLING: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_SNARE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_XYLOPHONE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_PISTON_CONTRACT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_PISTON_EXTEND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_PORTAL_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_PORTAL_TRAVEL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_PORTAL_TRIGGER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_REDSTONE_TORCH_BURNOUT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SAND_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SAND_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SAND_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SAND_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SAND_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SHULKER_BOX_CLOSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SHULKER_BOX_OPEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SLIME_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SLIME_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SLIME_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SLIME_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SLIME_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SNOW_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SNOW_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SNOW_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SNOW_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SNOW_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_STONE_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_STONE_BUTTON_CLICK_OFF: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_STONE_BUTTON_CLICK_ON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_STONE_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_STONE_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_STONE_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_STONE_PRESSUREPLATE_CLICK_OFF: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_STONE_PRESSUREPLATE_CLICK_ON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_STONE_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_TRIPWIRE_ATTACH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_TRIPWIRE_CLICK_OFF: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_TRIPWIRE_CLICK_ON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_TRIPWIRE_DETACH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WATERLILY_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WATER_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOODEN_DOOR_CLOSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOODEN_DOOR_OPEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOODEN_TRAPDOOR_CLOSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOODEN_TRAPDOOR_OPEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOOD_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOOD_BUTTON_CLICK_OFF: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOOD_BUTTON_CLICK_ON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOOD_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOOD_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOOD_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOOD_PRESSUREPLATE_CLICK_OFF: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOOD_PRESSUREPLATE_CLICK_ON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOOD_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENCHANT_THORNS_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ARMORSTAND_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ARMORSTAND_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ARMORSTAND_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ARMORSTAND_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ARROW_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ARROW_HIT_PLAYER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ARROW_SHOOT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BAT_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BAT_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BAT_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BAT_LOOP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BAT_TAKEOFF: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BLAZE_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BLAZE_BURN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BLAZE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BLAZE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BLAZE_SHOOT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BOAT_PADDLE_LAND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BOAT_PADDLE_WATER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BOBBER_RETRIEVE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BOBBER_SPLASH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BOBBER_THROW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CAT_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CAT_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CAT_HISS: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CAT_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CAT_PURR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CAT_PURREOW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CHICKEN_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CHICKEN_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CHICKEN_EGG: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CHICKEN_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CHICKEN_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_COW_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_COW_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_COW_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_COW_MILK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_COW_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CREEPER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CREEPER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CREEPER_PRIMED: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_DONKEY_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_DONKEY_ANGRY: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_DONKEY_CHEST: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_DONKEY_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_DONKEY_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EGG_THROW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_AMBIENT_LAND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_CURSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_DEATH_LAND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_FLOP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_HURT_LAND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERDRAGON_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERDRAGON_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERDRAGON_FIREBALL_EXPLODE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERDRAGON_FLAP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERDRAGON_GROWL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERDRAGON_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERDRAGON_SHOOT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDEREYE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDEREYE_LAUNCH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMEN_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMEN_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMEN_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMEN_SCREAM: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMEN_STARE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMEN_TELEPORT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMITE_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMITE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMITE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMITE_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERPEARL_THROW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EVOCATION_FANGS_ATTACK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EVOCATION_ILLAGER_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EVOCATION_ILLAGER_CAST_SPELL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EVOCATION_ILLAGER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EVOCATION_ILLAGER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EVOCATION_ILLAGER_PREPARE_ATTACK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EVOCATION_ILLAGER_PREPARE_SUMMON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EVOCATION_ILLAGER_PREPARE_WOLOLO: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EXPERIENCE_BOTTLE_THROW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EXPERIENCE_ORB_PICKUP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_FIREWORK_BLAST: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_FIREWORK_BLAST_FAR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_FIREWORK_LARGE_BLAST: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_FIREWORK_LARGE_BLAST_FAR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_FIREWORK_LAUNCH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_FIREWORK_SHOOT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_FIREWORK_TWINKLE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_FIREWORK_TWINKLE_FAR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_BIG_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_BURN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_DRINK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_EAT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_EXPLODE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_EXTINGUISH_FIRE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_SMALL_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_SPLASH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_SWIM: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GHAST_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GHAST_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GHAST_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GHAST_SCREAM: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GHAST_SHOOT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GHAST_WARN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GUARDIAN_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GUARDIAN_AMBIENT_LAND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GUARDIAN_ATTACK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GUARDIAN_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GUARDIAN_DEATH_LAND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GUARDIAN_FLOP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GUARDIAN_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GUARDIAN_HURT_LAND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_ANGRY: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_ARMOR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_BREATHE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_EAT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_GALLOP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_JUMP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_LAND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_SADDLE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_STEP_WOOD: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HOSTILE_BIG_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HOSTILE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HOSTILE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HOSTILE_SMALL_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HOSTILE_SPLASH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HOSTILE_SWIM: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HUSK_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HUSK_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HUSK_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HUSK_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ILLUSION_ILLAGER_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ILLUSION_ILLAGER_CAST_SPELL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ILLUSION_ILLAGER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ILLUSION_ILLAGER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ILLUSION_ILLAGER_MIRROR_MOVE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ILLUSION_ILLAGER_PREPARE_BLINDNESS: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ILLUSION_ILLAGER_PREPARE_MIRROR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_IRONGOLEM_ATTACK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_IRONGOLEM_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_IRONGOLEM_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_IRONGOLEM_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ITEMFRAME_ADD_ITEM: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ITEMFRAME_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ITEMFRAME_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ITEMFRAME_REMOVE_ITEM: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ITEMFRAME_ROTATE_ITEM: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ITEM_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ITEM_PICKUP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LEASHKNOT_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LEASHKNOT_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LIGHTNING_IMPACT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LIGHTNING_THUNDER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LINGERINGPOTION_THROW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LLAMA_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LLAMA_ANGRY: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LLAMA_CHEST: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LLAMA_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LLAMA_EAT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LLAMA_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LLAMA_SPIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LLAMA_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LLAMA_SWAG: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MAGMACUBE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MAGMACUBE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MAGMACUBE_JUMP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MAGMACUBE_SQUISH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MINECART_INSIDE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MINECART_RIDING: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MOOSHROOM_SHEAR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MULE_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MULE_CHEST: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MULE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MULE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PAINTING_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PAINTING_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_EAT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_FLY: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_BLAZE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_CREEPER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ELDER_GUARDIAN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ENDERDRAGON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ENDERMAN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ENDERMITE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_EVOCATION_ILLAGER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_GHAST: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_HUSK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ILLUSION_ILLAGER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_MAGMACUBE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_POLAR_BEAR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_SHULKER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_SILVERFISH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_SKELETON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_SLIME: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_SPIDER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_STRAY: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_VEX: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_VINDICATION_ILLAGER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_WITCH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_WITHER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_WITHER_SKELETON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_WOLF: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ZOMBIE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ZOMBIE_PIGMAN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ZOMBIE_VILLAGER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PIG_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PIG_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PIG_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PIG_SADDLE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PIG_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_ATTACK_CRIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_ATTACK_KNOCKBACK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_ATTACK_NODAMAGE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_ATTACK_STRONG: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_ATTACK_SWEEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_ATTACK_WEAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_BIG_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_BREATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_BURP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_HURT_DROWN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_HURT_ON_FIRE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_LEVELUP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_SMALL_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_SPLASH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_SWIM: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_POLAR_BEAR_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_POLAR_BEAR_BABY_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_POLAR_BEAR_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_POLAR_BEAR_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_POLAR_BEAR_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_POLAR_BEAR_WARNING: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_RABBIT_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_RABBIT_ATTACK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_RABBIT_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_RABBIT_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_RABBIT_JUMP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHEEP_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHEEP_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHEEP_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHEEP_SHEAR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHEEP_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_BULLET_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_BULLET_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_CLOSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_HURT_CLOSED: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_OPEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_SHOOT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_TELEPORT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SILVERFISH_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SILVERFISH_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SILVERFISH_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SILVERFISH_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SKELETON_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SKELETON_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SKELETON_HORSE_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SKELETON_HORSE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SKELETON_HORSE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SKELETON_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SKELETON_SHOOT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SKELETON_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SLIME_ATTACK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SLIME_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SLIME_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SLIME_JUMP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SLIME_SQUISH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SMALL_MAGMACUBE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SMALL_MAGMACUBE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SMALL_MAGMACUBE_SQUISH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SMALL_SLIME_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SMALL_SLIME_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SMALL_SLIME_JUMP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SMALL_SLIME_SQUISH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SNOWBALL_THROW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SNOWMAN_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SNOWMAN_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SNOWMAN_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SNOWMAN_SHOOT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SPIDER_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SPIDER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SPIDER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SPIDER_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SPLASH_POTION_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SPLASH_POTION_THROW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SQUID_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SQUID_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SQUID_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_STRAY_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_STRAY_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_STRAY_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_STRAY_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_TNT_PRIMED: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VEX_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VEX_CHARGE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VEX_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VEX_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VILLAGER_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VILLAGER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VILLAGER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VILLAGER_NO: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VILLAGER_TRADING: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VILLAGER_YES: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VINDICATION_ILLAGER_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VINDICATION_ILLAGER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VINDICATION_ILLAGER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITCH_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITCH_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITCH_DRINK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITCH_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITCH_THROW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_BREAK_BLOCK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_SHOOT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_SKELETON_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_SKELETON_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_SKELETON_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_SKELETON_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_SPAWN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WOLF_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WOLF_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WOLF_GROWL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WOLF_HOWL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WOLF_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WOLF_PANT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WOLF_SHAKE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WOLF_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WOLF_WHINE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_ATTACK_DOOR_WOOD: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_ATTACK_IRON_DOOR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_BREAK_DOOR_WOOD: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_HORSE_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_HORSE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_HORSE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_INFECT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_PIG_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_PIG_ANGRY: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_PIG_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_PIG_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_VILLAGER_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_VILLAGER_CONVERTED: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_VILLAGER_CURE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_VILLAGER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_VILLAGER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_VILLAGER_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_CHAIN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_DIAMOND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_ELYTRA: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_GENERIC: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_GOLD: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_IRON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_LEATHER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_BOTTLE_EMPTY: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_BOTTLE_FILL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_BOTTLE_FILL_DRAGONBREATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_BUCKET_EMPTY: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_BUCKET_EMPTY_LAVA: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_BUCKET_FILL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_BUCKET_FILL_LAVA: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_CHORUS_FRUIT_TELEPORT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_ELYTRA_FLYING: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_FIRECHARGE_USE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_FLINTANDSTEEL_USE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_HOE_TILL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_SHIELD_BLOCK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_SHIELD_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_SHOVEL_FLATTEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_TOTEM_USE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static MUSIC_CREATIVE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static MUSIC_CREDITS: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static MUSIC_DRAGON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static MUSIC_END: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static MUSIC_GAME: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static MUSIC_MENU: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static MUSIC_NETHER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_11: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_13: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_BLOCKS: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_CAT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_CHIRP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_FAR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_MALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_MELLOHI: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_STAL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_STRAD: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_WAIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_WARD: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static UI_BUTTON_CLICK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static UI_TOAST_CHALLENGE_COMPLETE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static UI_TOAST_IN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static UI_TOAST_OUT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static WEATHER_RAIN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static WEATHER_RAIN_ABOVE: org.spongepowered.api.effect.sound.SoundType; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.effect.sound.record.RecordType.ts b/packages/sponge/src/typings/org.spongepowered.api.effect.sound.record.RecordType.ts new file mode 100644 index 00000000..aaa25657 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.effect.sound.record.RecordType.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace sound { + namespace record { + // @ts-ignore + interface RecordType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + /** + * Gets the {@link SoundType} that is used + * by this {@link RecordType}. + */ + // @ts-ignore + getSound(): org.spongepowered.api.effect.sound.SoundType; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.effect.sound.record.RecordTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.effect.sound.record.RecordTypes.ts new file mode 100644 index 00000000..0c9de805 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.effect.sound.record.RecordTypes.ts @@ -0,0 +1,39 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace sound { + namespace record { + // @ts-ignore + class RecordTypes { + // @ts-ignore + public static BLOCKS: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static CAT: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static CHIRP: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static ELEVEN: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static FAR: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static MALL: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static MELLOHI: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static STAL: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static STRAD: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static THIRTEEN: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static WAIT: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static WARD: org.spongepowered.api.effect.sound.record.RecordType; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.AreaEffectCloud.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.AreaEffectCloud.ts new file mode 100644 index 00000000..4513c518 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.AreaEffectCloud.ts @@ -0,0 +1,83 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface AreaEffectCloud extends org.spongepowered.api.entity.Entity { + /** + * Gets the {@link AreaEffectCloudData} for this cloud. + */ + // @ts-ignore + getAreaEffectCloudData(): org.spongepowered.api.data.manipulator.mutable.entity.AreaEffectCloudData; + /** + * Gets the {@link Color} of this cloud, can be changed. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@code radius} value of this cloud. + */ + // @ts-ignore + radius(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link ParticleType} of this cloud. + */ + // @ts-ignore + particleType(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the bounded {@code duration} value of this cloud. + */ + // @ts-ignore + duration(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code waitTime} value of this cloud. The wait time + * dictates how long until this cloud will affect {@link Entity} instances + * with {@link PotionEffect}s. + */ + // @ts-ignore + waitTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code radiusOnUse} value of this cloud. The radius is + * reduced per {@link Entity} affected. Once the radius is {@code 0}, the + * cloud dissipates. + */ + // @ts-ignore + radiusOnUse(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code radiusPerTick} value of this cloud. The radius is + * reduced per tick (so technically can be set to {@code 0} to have it + * remain permanent until it's effects have been used up. + */ + // @ts-ignore + radiusPerTick(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code durationOnUse} value of this cloud. The duration + * on use is reduced for every time that this cloud applies its + * {@link PotionEffect}s on an {@link Entity}. + */ + // @ts-ignore + durationOnUse(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code applicationDelay} value of this cloud. What this + * means is the application delay between times of application on an + * {@link Entity}. + */ + // @ts-ignore + applicationDelay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link ListValue} of {@link PotionEffect}s of this cloud. The + * potion effects will affect any {@link Entity} according to the various + * delays and ticks remaining of this cloud. + */ + // @ts-ignore + effects(): org.spongepowered.api.data.value.mutable.ListValue; + /** + * Gets the bounded {@code age} value of this cloud. + */ + // @ts-ignore + age(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ArmorEquipable.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ArmorEquipable.ts new file mode 100644 index 00000000..9559b3b6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ArmorEquipable.ts @@ -0,0 +1,81 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface ArmorEquipable extends org.spongepowered.api.entity.Equipable { + /** + * Gets the helmet currently being worn by this entity. + *Having the helmet as null will result in having nothing equipped in + * the helmet slot.
+ */ + // @ts-ignore + getHelmet(): any; + /** + * Sets the helmet currently being worn by this entity. + *Having the helmet as null will result in having nothing equipped in + * the helmet slot.
+ */ + // @ts-ignore + setHelmet(helmet: org.spongepowered.api.item.inventory.ItemStack): void; + /** + * Gets the chestplate currently being worn by this entity. + *Having the chestplate as null will result in having nothing equipped + * in the chestplate slot.
+ */ + // @ts-ignore + getChestplate(): any; + /** + * Sets the chestplate currently being worn by this entity. + *Having the chestplate as null will result in having nothing equipped + * in the chestplate slot.
+ */ + // @ts-ignore + setChestplate(chestplate: org.spongepowered.api.item.inventory.ItemStack): void; + /** + * Gets the leggings currently being worn by this entity. + *Having the leggings as null will result in having nothing equipped in + * the leggings slot.
+ */ + // @ts-ignore + getLeggings(): any; + /** + * Sets the leggings currently being worn by this entity. + *Having the leggings as null will result in having nothing equipped in + * the leggings slot.
+ */ + // @ts-ignore + setLeggings(leggings: org.spongepowered.api.item.inventory.ItemStack): void; + /** + * Gets the boots currently being worn by this entity. + *Having the boots as null will result in having nothing equipped in the + * boots slot.
+ */ + // @ts-ignore + getBoots(): any; + /** + * Sets the boots currently being worn by this entity. + *Having the boots as null will result in having nothing equipped in the + * boots slot.
+ */ + // @ts-ignore + setBoots(boots: org.spongepowered.api.item.inventory.ItemStack): void; + /** + * Gets the current equipped item in hand if available. + *Having the item in hand as null will result in having nothing equipped + * in the item in hand slot.
+ */ + // @ts-ignore + getItemInHand(handType: org.spongepowered.api.data.type.HandType): any; + /** + * Sets the item in hand for this entity. + *Having the item in hand as null will result in having nothing equipped + * in the item in hand slot.
+ */ + // @ts-ignore + setItemInHand(hand: org.spongepowered.api.data.type.HandType, itemInHand: org.spongepowered.api.item.inventory.ItemStack): void; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.EnderCrystal.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.EnderCrystal.ts new file mode 100644 index 00000000..fd4ffcfb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.EnderCrystal.ts @@ -0,0 +1,11 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface EnderCrystal extends org.spongepowered.api.entity.explosive.Explosive { + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.Entity.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.Entity.ts new file mode 100644 index 00000000..3cf420a8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.Entity.ts @@ -0,0 +1,293 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface Entity extends org.spongepowered.api.util.Identifiable, org.spongepowered.api.world.Locatable, org.spongepowered.api.data.DataHolder, org.spongepowered.api.text.translation.Translatable { + /** + * Gets the type of entity. + */ + // @ts-ignore + getType(): org.spongepowered.api.entity.EntityType; + /** + * Creates a {@link EntitySnapshot} containing the {@link EntityType} and + * data of this entity. + */ + // @ts-ignore + createSnapshot(): org.spongepowered.api.entity.EntitySnapshot; + /** + * Gets the Random Number Generator (RNG) for this entity. + */ + // @ts-ignore + getRandom(): any; + /** + * Sets the location of this entity. This is equivalent to a teleport, and + * also moves this entity's passengers. + */ + // @ts-ignore + setLocation(location: org.spongepowered.api.world.Location): boolean; + /** + * Sets the location of this entity using a safe one from + * {@link TeleportHelper#getSafeLocation(Location)}. This is equivalent to a + * teleport and also moves this entity's passengers. + */ + // @ts-ignore + setLocationSafely(location: org.spongepowered.api.world.Location): boolean; + /** + * Gets the rotation. + *The format of the rotation is represented by:
+ *{@code x -> pitch}, {@code y -> yaw}, {@code z -> roll}
+ */ + // @ts-ignore + getRotation(): any /*Vector3d*/; + /** + * Sets the rotation of this entity. + *The format of the rotation is represented by:
+ *{@code x -> pitch}, {@code y -> yaw}, {@code z -> roll}
+ */ + // @ts-ignore + setRotation(rotation: any /*Vector3d*/): void; + /** + * Moves the entity to the specified location, and sets the rotation. + *The format of the rotation is represented by:
+ *{@code x -> pitch}, {@code y -> yaw}, {@code z -> roll}
+ */ + // @ts-ignore + setLocationAndRotation(location: org.spongepowered.api.world.Location, rotation: any /*Vector3d*/): boolean; + /** + * Moves the entity to the specified location, and sets the rotation. + * {@link RelativePositions} listed inside the EnumSet are considered + * relative. + *The format of the rotation is represented by:
+ *{@code x -> pitch}, {@code y -> yaw}, {@code z -> roll}
+ */ + // @ts-ignore + setLocationAndRotation(location: org.spongepowered.api.world.Location, rotation: any /*Vector3d*/, relativePositions: any): boolean; + /** + * Sets the location using a safe one from + * {@link TeleportHelper#getSafeLocation(Location)} and the rotation of this + * entity. + *The format of the rotation is represented by:
+ *{@code x -> pitch}, {@code y -> yaw}, {@code z -> roll}
+ */ + // @ts-ignore + setLocationAndRotationSafely(location: org.spongepowered.api.world.Location, rotation: any /*Vector3d*/): boolean; + /** + * Sets the location using a safe one from + * {@link TeleportHelper#getSafeLocation(Location)} and the rotation of this + * entity. {@link RelativePositions} listed inside the EnumSet are + * considered relative. + *The format of the rotation is represented by:
+ *{@code x -> pitch}, {@code y -> yaw}, {@code z -> roll}
+ */ + // @ts-ignore + setLocationAndRotationSafely(location: org.spongepowered.api.world.Location, rotation: any /*Vector3d*/, relativePositions: any): boolean; + /** + * Gets the entity scale. Not currently used. Returns {@link Vector3d#ONE}. + */ + // @ts-ignore + getScale(): any /*Vector3d*/; + /** + * Sets the entity scale. Not currently used. Does nothing. + */ + // @ts-ignore + setScale(scale: any /*Vector3d*/): void; + /** + * Returns the entity transform as a new copy. Combines the position, + * rotation and scale. + */ + // @ts-ignore + getTransform(): org.spongepowered.api.entity.Transform; + /** + * Sets the entity transform. Sets the position, rotation and scale at once. + */ + // @ts-ignore + setTransform(transform: org.spongepowered.api.entity.Transform): boolean; + /** + * Sets the transformation of this entity using a safe location from + * {@link TeleportHelper#getSafeLocation(Location)}. + */ + // @ts-ignore + setTransformSafely(transform: org.spongepowered.api.entity.Transform): boolean; + /** + * Sets the {@link Location} of this entity to the {@link World}'s spawn + * point. + *This is equivalent to setting the location via + * {@link TargetedLocationData}.
+ */ + // @ts-ignore + transferToWorld(world: org.spongepowered.api.world.World): boolean; + /** + * Sets the {@link Location} of this entity to a new position in a world. + *This is equivalent to setting the location via + * {@link TargetedLocationData}.
+ */ + // @ts-ignore + transferToWorld(world: org.spongepowered.api.world.World, position: any /*Vector3d*/): boolean; + /** + * Sets the location of this entity to a new position in a world which does + * not have to be loaded (but must at least be enabled). + *If the target world is loaded then this is equivalent to + * setting the location via {@link TargetedLocationData}.
+ *If the target world is unloaded but is enabled according to its + * {@link WorldArchetype#isEnabled()} then this will first load the world + * before transferring the entity to that world.
+ *If the target world is unloaded and not enabled then the transfer + * will fail.
+ */ + // @ts-ignore + transferToWorld(worldName: string, position: any /*Vector3d*/): boolean; + /** + * Sets the location of this entity to a new position in a world which does + * not have to be loaded (but must at least be enabled). + *If the target world is loaded then this is equivalent to setting the + * location via {@link TargetedLocationData}.
+ *If the target world is unloaded but is enabled according to its + * {@link WorldArchetype#isEnabled()} then this will first load the world + * before transferring the entity to that world.
+ *If the target world is unloaded and not enabled then the transfer + * will fail.
+ */ + // @ts-ignore + transferToWorld(uuid: any, position: any /*Vector3d*/): boolean; + /** + * Gets the entity's bounding box, usually for collisions and interaction. + * The box has an offset matching the entity's positions. That is to say, it + * is absolutely positioned and not relative to the entity. + */ + // @ts-ignore + getBoundingBox(): any; + /** + * Gets the entity passenger that rides this entity, if available. + */ + // @ts-ignore + getPassengers(): any[] /*java.util.List*/; + /** + * Checks if the given entity is a passenger. + */ + // @ts-ignore + hasPassenger(entity: org.spongepowered.api.entity.Entity): boolean; + /** + * Sets the passenger entity(the entity that rides this one). + */ + // @ts-ignore + addPassenger(entity: org.spongepowered.api.entity.Entity): boolean; + /** + * Removes the given entity as a passenger. + */ + // @ts-ignore + removePassenger(entity: org.spongepowered.api.entity.Entity): void; + /** + * Removes all currently riding passengers from this entity. + */ + // @ts-ignore + clearPassengers(): void; + /** + * Gets the entity vehicle that this entity is riding, if available. + */ + // @ts-ignore + getVehicle(): any; + /** + * Sets the vehicle entity(the entity that is ridden by this one). + */ + // @ts-ignore + setVehicle(entity: org.spongepowered.api.entity.Entity): boolean; + /** + * Gets the entity vehicle that is the base of what ever stack the current + * entity is a part of. This can be the current entity, if it is not riding + * any vehicle. + *The returned entity can never ride another entity, that would make the + * ridden entity the base of the stack.
+ */ + // @ts-ignore + getBaseVehicle(): org.spongepowered.api.entity.Entity; + /** + * Gets the {@link Vector3d} representation of this entity's current + * velocity. + */ + // @ts-ignore + getVelocity(): any /*Vector3d*/; + /** + * Sets the velocity for this entity. + */ + // @ts-ignore + setVelocity(vector3d: any /*Vector3d*/): org.spongepowered.api.data.DataTransactionResult; + /** + * Returns whether this entity is on the ground (not in the air) or not. + */ + // @ts-ignore + isOnGround(): boolean; + /** + * Returns whether this entity has been removed. + */ + // @ts-ignore + isRemoved(): boolean; + /** + * Returns whether this entity is still loaded in a world/chunk. + */ + // @ts-ignore + isLoaded(): boolean; + /** + * Mark this entity for removal in the very near future, preferably + * within one game tick. + */ + // @ts-ignore + remove(): void; + /** + * Damages this {@link Entity} with the given {@link DamageSource}. + */ + // @ts-ignore + damage(damage: number, damageSource: org.spongepowered.api.event.cause.entity.damage.source.DamageSource): boolean; + /** + * Gets the nearby entities within the desired distance. + */ + // @ts-ignore + getNearbyEntities(distance: number): any[] /*java.util.Collection*/; + /** + * Gets the nearby entities that satisfy the desired predicate. + */ + // @ts-ignore + getNearbyEntities(predicate: any): any[] /*java.util.Collection*/; + /** + * Gets the {@link UUID}, if available, of the user who created this + * {@link Entity}. + */ + // @ts-ignore + getCreator(): any; + /** + * Gets the {@link UUID}, if available, of the user who last notified this + * {@link Entity}. + */ + // @ts-ignore + getNotifier(): any; + /** + * Sets the {@link UUID} of the user who created this {@link Entity}. + */ + // @ts-ignore + setCreator(uuid: any): void; + /** + * Sets the {@link UUID} of the user who last notified this {@link Entity}. + */ + // @ts-ignore + setNotifier(uuid: any): void; + /** + * Returns whether this entity can see the provided {@link Entity}. + */ + // @ts-ignore + canSee(entity: org.spongepowered.api.entity.Entity): boolean; + /** + * Creates a new {@link EntityArchetype} for use with {@link Schematic}s and + * placing the archetype in multiple locations. + */ + // @ts-ignore + createArchetype(): org.spongepowered.api.entity.EntityArchetype; + /** + * Returns whether this entity has gravity. + */ + // @ts-ignore + gravity(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.EntityArchetype.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.EntityArchetype.Builder.ts new file mode 100644 index 00000000..c8586686 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.EntityArchetype.Builder.ts @@ -0,0 +1,52 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace EntityArchetype { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.persistence.DataBuilder { + // @ts-ignore + reset(): org.spongepowered.api.entity.EntityArchetype.Builder; + // @ts-ignore + from(value: org.spongepowered.api.entity.EntityArchetype): org.spongepowered.api.entity.EntityArchetype.Builder; + /** + * Sets all possible bits of information from the provided {@link Entity}. + */ + // @ts-ignore + from(entity: org.spongepowered.api.entity.Entity): org.spongepowered.api.entity.EntityArchetype.Builder; + /** + * Sets the desired {@link EntityType} of the produced {@link EntityArchetype}. + */ + // @ts-ignore + type(type: org.spongepowered.api.entity.EntityType): org.spongepowered.api.entity.EntityArchetype.Builder; + /** + * Sets the desired {@link EntityType} of the produced {@link EntityArchetype}. + */ + // @ts-ignore + entityData(view: org.spongepowered.api.data.DataView): org.spongepowered.api.entity.EntityArchetype.Builder; + /** + * Sets the desired {@link EntityType} of the produced {@link EntityArchetype}. + */ + // @ts-ignore + setData(manipulator: org.spongepowered.api.data.manipulator.DataManipulator): org.spongepowered.api.entity.EntityArchetype.Builder; + /** + * Sets the desired {@link EntityType} of the produced {@link EntityArchetype}. + */ + // @ts-ignore + set(value: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.entity.EntityArchetype.Builder; + /** + * Sets the desired {@link EntityType} of the produced {@link EntityArchetype}. + */ + // @ts-ignore + set(key: org.spongepowered.api.data.key.Key, value: any): org.spongepowered.api.entity.EntityArchetype.Builder; + /** + * Constructs a new {@link EntityArchetype}. + */ + // @ts-ignore + build(): org.spongepowered.api.entity.EntityArchetype; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.EntityArchetype.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.EntityArchetype.ts new file mode 100644 index 00000000..2bf9c6ec --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.EntityArchetype.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface EntityArchetype extends org.spongepowered.api.data.Archetype { + /** + * Creates a {@link Builder} to get {@link EntityArchetype}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.EntityArchetype.Builder; + /** + * Creates a new {@link EntityArchetype} with the specified {@link EntityType}. + */ + // @ts-ignore + of(type: org.spongepowered.api.entity.EntityType): org.spongepowered.api.entity.EntityArchetype; + /** + * Gets the {@link EntityType} of the entity contained in this archetype. + */ + // @ts-ignore + getType(): org.spongepowered.api.entity.EntityType; + /** + * Gets the raw {@link Entity} data that would be applied to the generated + * entity. Note that this is a copied container. + *Note: While normally, an archetype does not contain position information, + * it is possible that {@link Queries#POSITION} are included as required by + * {@link Schematic}s. + *
+ */ + // @ts-ignore + getEntityData(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + setRawData(container: org.spongepowered.api.data.DataView): void; + // @ts-ignore + copy(): org.spongepowered.api.entity.EntityArchetype; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.EntitySnapshot.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.EntitySnapshot.Builder.ts new file mode 100644 index 00000000..2b3c6192 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.EntitySnapshot.Builder.ts @@ -0,0 +1,36 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace EntitySnapshot { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.ImmutableDataBuilder { + /** + * Sets the {@link WorldProperties} for this {@link EntitySnapshot}. + *This is used to grab the {@link UUID} of the World for this + * snapshot.
+ */ + // @ts-ignore + world(worldProperties: org.spongepowered.api.world.storage.WorldProperties): org.spongepowered.api.entity.EntitySnapshot.Builder; + /** + * Sets the {@link EntityType} for this {@link EntitySnapshot}. + */ + // @ts-ignore + type(entityType: org.spongepowered.api.entity.EntityType): org.spongepowered.api.entity.EntitySnapshot.Builder; + /** + * Sets the coordinates of this {@link EntitySnapshot} from a + * {@link Vector3i}. + */ + // @ts-ignore + position(position: any /*Vector3d*/): org.spongepowered.api.entity.EntitySnapshot.Builder; + /** + * Copies over data from an {@link Entity}. + */ + // @ts-ignore + from(entity: org.spongepowered.api.entity.Entity): org.spongepowered.api.entity.EntitySnapshot.Builder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.EntitySnapshot.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.EntitySnapshot.ts new file mode 100644 index 00000000..68d76db0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.EntitySnapshot.ts @@ -0,0 +1,51 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface EntitySnapshot extends org.spongepowered.api.data.LocatableSnapshot { + /** + * Creates a new {@link Builder} to build an {@link EntitySnapshot}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.EntitySnapshot.Builder; + /** + * Gets an {@link Optional} containing the {@link UUID} of the + * {@link Entity} that this {@link EntitySnapshot} is representing. If the + * {@link Optional} is {@link Optional#empty()}, then this snapshot must + * have been created by an {@link Builder} without an {@link Entity} as a + * source. + */ + // @ts-ignore + getUniqueId(): any; + /** + * Gets the {@link Transform} as an {@link Optional} as the {@link Location} + * may be undefined if this {@link EntitySnapshot} was built without a + * location. This method is linked to {@link #getLocation()} such that if + * there is a {@link Location}, there is usually a {@link Transform}. + */ + // @ts-ignore + getTransform(): any; + /** + * Gets the {@link EntityType}. + */ + // @ts-ignore + getType(): org.spongepowered.api.entity.EntityType; + /** + * Restores the {@link EntitySnapshot} to the {@link Location} stored within + * the snapshot. If the {@link Location} is not available, the snapshot will + * not be restored. + */ + // @ts-ignore + restore(): any; + /** + * Creates a new {@link EntityArchetype} for use with {@link Schematic}s and + * placing the archetype in multiple locations. + */ + // @ts-ignore + createArchetype(): org.spongepowered.api.entity.EntityArchetype; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.EntityType.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.EntityType.ts new file mode 100644 index 00000000..059a3b2c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.EntityType.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface EntityType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + /** + * Returns the entity class for this type. + */ + // @ts-ignore + getEntityClass(): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.EntityTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.EntityTypes.ts new file mode 100644 index 00000000..6e5d3446 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.EntityTypes.ts @@ -0,0 +1,191 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + class EntityTypes { + // @ts-ignore + public static AREA_EFFECT_CLOUD: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ARMOR_STAND: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static BAT: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static BLAZE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static BOAT: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static CAVE_SPIDER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static CHESTED_MINECART: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static CHICKEN: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static COMMANDBLOCK_MINECART: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static COMPLEX_PART: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static COW: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static CREEPER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static DONKEY: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static DRAGON_FIREBALL: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static EGG: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ELDER_GUARDIAN: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ENDERMAN: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ENDERMITE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ENDER_CRYSTAL: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ENDER_DRAGON: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ENDER_PEARL: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static EVOCATION_FANGS: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static EVOCATION_ILLAGER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static EXPERIENCE_ORB: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static EYE_OF_ENDER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static FALLING_BLOCK: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static FIREBALL: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static FIREWORK: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static FISHING_HOOK: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static FURNACE_MINECART: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static GHAST: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static GIANT: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static GUARDIAN: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static HOPPER_MINECART: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static HORSE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static HUMAN: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static HUSK: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ILLUSION_ILLAGER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static IRON_GOLEM: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ITEM: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ITEM_FRAME: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static LEASH_HITCH: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static LIGHTNING: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static LLAMA: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static LLAMA_SPIT: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static MAGMA_CUBE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static MOB_SPAWNER_MINECART: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static MULE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static MUSHROOM_COW: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static OCELOT: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static PAINTING: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static PARROT: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static PIG: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static PIG_ZOMBIE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static PLAYER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static POLAR_BEAR: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static PRIMED_TNT: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static RABBIT: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static RIDEABLE_MINECART: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SHEEP: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SHULKER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SHULKER_BULLET: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SILVERFISH: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SKELETON: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SKELETON_HORSE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SLIME: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SMALL_FIREBALL: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SNOWBALL: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SNOWMAN: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SPECTRAL_ARROW: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SPIDER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SPLASH_POTION: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SQUID: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static STRAY: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static THROWN_EXP_BOTTLE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static TIPPED_ARROW: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static TNT_MINECART: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static UNKNOWN: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static VEX: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static VILLAGER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static VINDICATION_ILLAGER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static WEATHER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static WITCH: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static WITHER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static WITHER_SKELETON: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static WITHER_SKULL: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static WOLF: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ZOMBIE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ZOMBIE_HORSE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ZOMBIE_VILLAGER: org.spongepowered.api.entity.EntityType; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.Equipable.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.Equipable.ts new file mode 100644 index 00000000..341f14d4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.Equipable.ts @@ -0,0 +1,37 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface Equipable extends org.spongepowered.api.util.Identifiable, org.spongepowered.api.item.inventory.Carrier { + /** + * Gets whether this entity can equip equipment of the specified type (eg. + * whether calling {@link #equip} will fail because the entity doesn't + * have this type of slot. + */ + // @ts-ignore + canEquip(type: org.spongepowered.api.item.inventory.equipment.EquipmentType): boolean; + /** + * Gets whether this entity can equip the supplied equipment in its slot of + * the specified type (eg. whether calling {@link #equip} with the specified + * slot type and item will succeed) + */ + // @ts-ignore + canEquip(type: org.spongepowered.api.item.inventory.equipment.EquipmentType, equipment: org.spongepowered.api.item.inventory.ItemStack): boolean; + /** + * Gets the item currently equipped by this entity in the specified slot. + */ + // @ts-ignore + getEquipped(type: org.spongepowered.api.item.inventory.equipment.EquipmentType): any; + /** + * Sets the item currently equipped by the entity in the specified slot, if + * the entity has such a slot. + *Supplying null will unequip any currently equipped item.
+ */ + // @ts-ignore + equip(type: org.spongepowered.api.item.inventory.equipment.EquipmentType, equipment: org.spongepowered.api.item.inventory.ItemStack): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ExperienceOrb.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ExperienceOrb.ts new file mode 100644 index 00000000..8cdf14e4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ExperienceOrb.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface ExperienceOrb extends org.spongepowered.api.entity.Entity { + /** + * Gets a copy of the {@link ExpOrbData} associated with this + * {@link ExperienceOrb}. + */ + // @ts-ignore + experienceHeld(): org.spongepowered.api.data.manipulator.mutable.entity.ExpOrbData; + /** + * Gets the {@link Value} for the amount of "experience" stored. + */ + // @ts-ignore + experience(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.FallingBlock.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.FallingBlock.ts new file mode 100644 index 00000000..b7999a9e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.FallingBlock.ts @@ -0,0 +1,54 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface FallingBlock extends org.spongepowered.api.entity.Entity { + /** + * Gets a copy of the currently used {@link FallingBlockData}. + */ + // @ts-ignore + getFallingBlockData(): org.spongepowered.api.data.manipulator.mutable.entity.FallingBlockData; + /** + * Gets the {@link Value} for the damage to deal per block the + * {@link FallingBlock} has fallen. + */ + // @ts-ignore + fallDamagePerBlock(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the maximum damage the {@link FallingBlock} can deal to another + * entity for falling on the entity. + */ + // @ts-ignore + maxFallDamage(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link BlockState} the falling block is representing. + */ + // @ts-ignore + blockState(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this falling block will try to place itself where it lands. + */ + // @ts-ignore + canPlaceAsBlock(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this falling block can drop as an item if it lands in a way + * that it can not be placed. + */ + // @ts-ignore + canDropAsItem(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the time the block has been falling. Defaults to a value of 1. + */ + // @ts-ignore + fallTime(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this falling block will damage entities where it lands. + */ + // @ts-ignore + canHurtEntities(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.Item.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.Item.ts new file mode 100644 index 00000000..94af7353 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.Item.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface Item extends org.spongepowered.api.entity.Entity { + /** + * Gets a copy of the current {@link RepresentedItemData} this item is + * representing. + */ + // @ts-ignore + getItemData(): org.spongepowered.api.data.manipulator.mutable.RepresentedItemData; + /** + * Gets the {@link Value} for the represented {@link ItemStack} as + * an {@link ItemStackSnapshot}. + */ + // @ts-ignore + item(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link ItemType} represented by this {@link Item} entity. + */ + // @ts-ignore + getItemType(): org.spongepowered.api.item.ItemType; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ShulkerBullet.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ShulkerBullet.ts new file mode 100644 index 00000000..29d5cf00 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ShulkerBullet.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface ShulkerBullet extends org.spongepowered.api.entity.projectile.EntityTargetingProjectile, org.spongepowered.api.entity.projectile.DamagingProjectile { + /** + * Gets a copy of the {@link DirectionalData} being used for this + * {@link ShulkerBullet} entity. + */ + // @ts-ignore + getDirectionalData(): org.spongepowered.api.data.manipulator.mutable.block.DirectionalData; + /** + * Gets the {@link Value} for the current direction this + * {@link ShulkerBullet} is going to. + */ + // @ts-ignore + direction(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.Tamer.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.Tamer.ts new file mode 100644 index 00000000..df3fc31d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.Tamer.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface Tamer extends org.spongepowered.api.util.Identifiable { + /** + * Gets the name of this tamer to reference on tamed entities. + */ + // @ts-ignore + getName(): string; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.Transform.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.Transform.ts new file mode 100644 index 00000000..6d8aa370 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.Transform.ts @@ -0,0 +1,205 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + class Transform { + /** + * Creates a new {@link Transform} based on the provided {@link Location}. + */ + constructor(location: org.spongepowered.api.world.Location) + /** + * Creates a new {@link Transform} with the provided {@link Extent extent}. + * The default position is {@link Vector3d#ZERO}. + */ + constructor(extent: org.spongepowered.api.world.extent.Extent) + /** + * Creates a new {@link Transform} with the provided {@link Extent extent} + * and {@link Vector3d position}. + */ + constructor(extent: org.spongepowered.api.world.extent.Extent, position: any /*Vector3d*/) + /** + * Creates a new {@link Transform} with the provided {@link Extent extent}, + * {@link Vector3d position}, and {@link Vector3d rotation}. + */ + constructor(extent: org.spongepowered.api.world.extent.Extent, position: any /*Vector3d*/, rotation: any /*Vector3d*/) + /** + * Creates a new {@link Transform} with the provided {@link Location}, + * {@link Vector3d rotation}, and {@link Vector3d scale}. + */ + constructor(location: org.spongepowered.api.world.Location, rotation: any /*Vector3d*/, scale: any /*Vector3d*/) + /** + * Creates a new {@link Transform}. + */ + constructor(extent: org.spongepowered.api.world.extent.Extent, position: any /*Vector3d*/, rotation: any /*Vector3d*/, scale: any /*Vector3d*/) + /** + * Gets the {@link Location} this transform contains. This is the position + * and the extent. + */ + // @ts-ignore + public getLocation(): org.spongepowered.api.world.Location; + /** + * Creates a copy of this transform and sets the {@link Location}. This sets + * both the position and the extent. + */ + // @ts-ignore + public setLocation(location: org.spongepowered.api.world.Location): org.spongepowered.api.entity.Transform; + /** + * Gets the {@link Extent} this transform contains. + *Note: This can be null if the {@link Extent} is unloaded and garbage + * collected.
+ */ + // @ts-ignore + public getExtent(): org.spongepowered.api.world.extent.Extent; + /** + * Creates a copy of this transform and sets the {@link Extent}. + */ + // @ts-ignore + public setExtent(extent: org.spongepowered.api.world.extent.Extent): org.spongepowered.api.entity.Transform; + /** + * Gets the coordinates of this transform. + */ + // @ts-ignore + public getPosition(): any /*Vector3d*/; + /** + * Creates a copy of this transform while setting the position of the new + * one. + */ + // @ts-ignore + public setPosition(position: any /*Vector3d*/): org.spongepowered.api.entity.Transform; + /** + * Gets the rotation of this transform, as a {@link Vector3d}. + *The format of the rotation is represented by:
+ *x -> pitch
y -> yaw
z -> roll
The format of the rotation is represented by:
+ *x -> pitch
y -> yaw
z -> roll
Quaternions are objectively better than the Euler angles preferred by + * Minecraft. This is for compatibility with the flow-math library.
+ */ + // @ts-ignore + public setRotation(rotation: any /*Vector3d*/): org.spongepowered.api.entity.Transform; + /** + * Returns the rotation as a quaternion. + *Quaternions are objectively better than the Euler angles preferred by + * Minecraft. This is for compatibility with the flow-math library.
+ */ + // @ts-ignore + public getRotationAsQuaternion(): any /*Quaterniond*/; + /** + * Gets the pitch component of this transform rotation. + */ + // @ts-ignore + public getPitch(): number; + /** + * Gets the yaw component of this transform rotation. + */ + // @ts-ignore + public getYaw(): number; + /** + * Gets the roll component of this transform rotation. + */ + // @ts-ignore + public getRoll(): number; + /** + * Gets the scale of the transform for each axis. + */ + // @ts-ignore + public getScale(): any /*Vector3d*/; + /** + * Creates a copy of this transform and sets the scale for each axis. + */ + // @ts-ignore + public setScale(scale: any /*Vector3d*/): org.spongepowered.api.entity.Transform; + /** + * "Adds" another transform to this one. This is equivalent to adding the + * translation, rotation and scale individually. + *Returns the results as a new copy.
+ */ + // @ts-ignore + public add(other: org.spongepowered.api.entity.Transform): org.spongepowered.api.entity.Transform; + /** + * Adds a translation to this transform. + *Returns the results as a new copy.
+ */ + // @ts-ignore + public addTranslation(translation: any /*Vector3d*/): org.spongepowered.api.entity.Transform; + /** + * Adds a rotation to this transform. Returns the results as a new copy. + */ + // @ts-ignore + public addRotation(rotation: any /*Vector3d*/): org.spongepowered.api.entity.Transform; + /** + * Adds a rotation to this transform. + *Quaternions are objectively better than the Euler angles preferred by + * Minecraft. This is the preferred method when dealing with rotation + * additions. This is for compatibility with the flow-math library.
+ *Returns the results as a new copy.
+ */ + // @ts-ignore + public addRotation(rotation: any /*Quaterniond*/): org.spongepowered.api.entity.Transform; + /** + * "Adds" a scale to this transform. Scales are multiplicative, so this + * actually multiplies the current scale. + *Returns the results as a new copy.
+ */ + // @ts-ignore + public addScale(scale: any /*Vector3d*/): org.spongepowered.api.entity.Transform; + /** + * Returns a matrix representation of this transform. + *This includes the position, rotation and scale. To apply the transform + * to a vector, use the following:
+ *Vector3d original = ...;
+ * Transform transform = ...;
+ * Vector3d transformed =
+ * transform.toMatrix().transform(original.toVector4(1)).toVector3();
+ * }
+ * This converts the original 3D vector to 4D by appending 1 as the w + * coordinate, applies the transformation, then converts it back to 3D by + * dropping the w coordinate.
+ *Using a 4D matrix and a w coordinate with value 1 is what allows for + * the position to be included in the transformation applied by the matrix. + *
+ */ + // @ts-ignore + public toMatrix(): any /*Matrix4d*/; + /** + * Returns if this {@link Transform} is still valid. + *Examples of invalid Transforms are:
+ *This plays a role in determining if tasks should be updated or not. + * If this method + * is being called on this task, that means:
+ *Thought should be made before blindly returning true or false here. + * In Minecraft, all tasks can be interrupted by higher priority tasks + * (tasks added with lower numerical values in + * {@link Goal#addTask(int, AITask)}) but a task being created by a plugin + * might be deemed critical and as such should return false.
+ *Due note that the meaning of "true" changes based on the state of the + * {@link Goal}. To put it simply, this value can mean "Should I be added + * as an updating task or "Should I continue updating?". Regardless of the + * question, the next step that happens is transferring from this method to + * {@link AITask#canRunConcurrentWith(AITask)} in the next AI tick loop.
+ */ + // @ts-ignore + canBeInterrupted(): boolean; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.AITaskBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.AITaskBuilder.ts new file mode 100644 index 00000000..2539a2bc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.AITaskBuilder.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + // @ts-ignore + interface AITaskBuilder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Builds the {@link AITask}. + */ + // @ts-ignore + build(owner: org.spongepowered.api.entity.living.Agent): org.spongepowered.api.entity.ai.task.AITask; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.AITaskType.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.AITaskType.ts new file mode 100644 index 00000000..136f808c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.AITaskType.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + // @ts-ignore + interface AITaskType extends org.spongepowered.api.CatalogType { + /** + * Gets the {@link AITask} class that this type represents. + */ + // @ts-ignore + getAIClass(): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.AITaskTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.AITaskTypes.ts new file mode 100644 index 00000000..75461ebf --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.AITaskTypes.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + // @ts-ignore + class AITaskTypes { + // @ts-ignore + public static AVOID_ENTITY: org.spongepowered.api.entity.ai.task.AITaskType; + // @ts-ignore + public static RUN_AROUND_LIKE_CRAZY: org.spongepowered.api.entity.ai.task.AITaskType; + // @ts-ignore + public static SWIMMING: org.spongepowered.api.entity.ai.task.AITaskType; + // @ts-ignore + public static WANDER: org.spongepowered.api.entity.ai.task.AITaskType; + // @ts-ignore + public static WATCH_CLOSEST: org.spongepowered.api.entity.ai.task.AITaskType; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.AbstractAITask.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.AbstractAITask.ts new file mode 100644 index 00000000..689f36ea --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.AbstractAITask.ts @@ -0,0 +1,64 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + // @ts-ignore + abstract class AbstractAITask implements org.spongepowered.api.entity.ai.task.AITask { + /** + * Creates a new {@link AbstractAITask} with the provided + * {@link AITask}. + */ + constructor(type: org.spongepowered.api.entity.ai.task.AITaskType) + // @ts-ignore + public getType(): org.spongepowered.api.entity.ai.task.AITaskType; + // @ts-ignore + public getGoal(): any; + /** + * Invoked when the task is "started". A "start" of a task occurs at the + * "start" of the "AI" is "ticking". Depending on the case where + * {@link #shouldUpdate()} returns {@code false}, an {@link AITask} is + * NOT going to be called, so this method would not be + * called at the "start" of the tick to "prepare" for {@link #update()}. + */ + // @ts-ignore + public abstract start(): void; + /** + * Determines whether this {@link AITask} should be considered for "ticking" + * or {@link #start()}, {@link #update()}, and {@link #reset()} are called + * for that "AI" tick. + */ + // @ts-ignore + public abstract shouldUpdate(): boolean; + /** + * Performs any customary logic for this "task" to modify the parent + * {@link Agent} in any way, including navigation, health, potion effects, + * etc. Only called when {@link #shouldUpdate()} returns {@code true}, + * and after {@link #start()} has completed. Likewise, if + * {@link #continueUpdating()} + */ + // @ts-ignore + public abstract update(): void; + /** + * Called to verify that this {@link AITask} needs to {@link #update()} + * in this tick. If this returns {@code false}, this {@link AITask} + * is removed from use and {@link #reset()} is called. + */ + // @ts-ignore + public abstract continueUpdating(): boolean; + /** + * Performs any reset necessary for this task during the current tick. + *Note that this may be called during any state during {@link #start()} + * or {@link #update()} such that the task is removed from use for the + * current "AI" tick.
+ */ + // @ts-ignore + public abstract reset(): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.LookIdleAITask.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.LookIdleAITask.Builder.ts new file mode 100644 index 00000000..47c6d01a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.LookIdleAITask.Builder.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace LookIdleAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.AITaskBuilder { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.LookIdleAITask.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.LookIdleAITask.ts new file mode 100644 index 00000000..43ede57d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.LookIdleAITask.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + // @ts-ignore + interface LookIdleAITask extends org.spongepowered.api.entity.ai.task.AITask { + /** + * Creates a new {@link Builder} to build a new {@link LookIdleAITask}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.ai.task.builtin.LookIdleAITask.Builder; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.SwimmingAITask.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.SwimmingAITask.Builder.ts new file mode 100644 index 00000000..75f8a8a7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.SwimmingAITask.Builder.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace SwimmingAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.AITaskBuilder { + // @ts-ignore + swimChance(chance: number): org.spongepowered.api.entity.ai.task.builtin.SwimmingAITask.Builder; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.SwimmingAITask.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.SwimmingAITask.ts new file mode 100644 index 00000000..448ba5e3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.SwimmingAITask.ts @@ -0,0 +1,39 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + // @ts-ignore + interface SwimmingAITask extends org.spongepowered.api.entity.ai.task.AITask { + /** + * Creates a new {@link Builder} to build a new + * {@link SwimmingAITask}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.ai.task.builtin.SwimmingAITask.Builder; + /** + * Gets the chance that the owning {@link Agent} will perform + * a "jump". The chance is limited between {@code 0} and {@code 1}, + * to where the higher the chance, the more likely the entity will + * "jump" to appear "swimming". + */ + // @ts-ignore + getSwimChance(): number; + /** + * Sets the chance that the owning {@link Agent} will perform + * a "jump". The chance is limited between {@code 0} and {@code 1}, + * to where the higher the chance, the more likely the entity will + * "jump" to appear "swimming". + */ + // @ts-ignore + setSwimChance(chance: number): void; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.Builder.ts new file mode 100644 index 00000000..ffbc852a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.Builder.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace WatchClosestAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.AITaskBuilder { + // @ts-ignore + watch(watchClass: any): org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.Builder; + // @ts-ignore + maxDistance(maxDistance: number): org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.Builder; + // @ts-ignore + chance(chance: number): org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.Builder; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.ts new file mode 100644 index 00000000..e7f4c328 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.ts @@ -0,0 +1,56 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + // @ts-ignore + interface WatchClosestAITask extends org.spongepowered.api.entity.ai.task.AITask { + /** + * Creates a new {@link Builder} to build a new + * {@link WatchClosestAITask}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.Builder; + /** + * Gets the {@link Class} of the {@link Entity} type to "stare" or + * "watch" when that type of entity is nearby. + */ + // @ts-ignore + getWatchedClass(): any; + /** + * Sets the {@link Class} of the {@link Entity} type to "stare" or + * "watch" when that type of entity is nearby. + */ + // @ts-ignore + setWatchedClass(watchedClass: any): org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask; + /** + * Gets the maximum distance to "watch" a targeted {@link Entity}. + */ + // @ts-ignore + getMaxDistance(): number; + /** + * Sets the maximum distance to "watch" a targeted {@link Entity}. + */ + // @ts-ignore + setMaxDistance(maxDistance: number): org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask; + /** + * Gets the chance that an {@link Entity} will "watch" a targeted + * {@link Entity}. + */ + // @ts-ignore + getChance(): number; + /** + * SEts the chance to "watch" a targeted {@link Entity}. + */ + // @ts-ignore + setChance(chance: number): org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.Builder.ts new file mode 100644 index 00000000..1c18b4cd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.Builder.ts @@ -0,0 +1,34 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace AttackLivingAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.AITaskBuilder { + /** + * Sets the speed modifier at which the owning {@link Agent} will be + * moving towards a targeted {@link Entity}. + */ + // @ts-ignore + speed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.Builder; + /** + * Sets whether the task will force the owning {@link Agent} to + * persist targeting an {@link Entity} after a direct path is + * no longer available. + */ + // @ts-ignore + longMemory(): org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.Builder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.ts new file mode 100644 index 00000000..9113e430 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.ts @@ -0,0 +1,54 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + // @ts-ignore + interface AttackLivingAITask extends org.spongepowered.api.entity.ai.task.AITask { + /** + * Creates a new {@link Builder} to build a new + * {@link AttackLivingAITask}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.Builder; + /** + * Gets the "movement" speed modifier when targeting towards a + * targeted {@link Entity}. + */ + // @ts-ignore + getSpeed(): number; + /** + * Sets the movement speed modifier when the parent {@link Creature} + * is targeting an {@link Entity}. + */ + // @ts-ignore + setSpeed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask; + /** + * Gets whether the navigator will attempt to continue to "target" + * an {@link Entity} after certain circumstances have been met, + * sometimes whether a targeted {@link Entity} has moved too far away, + * moved to where there is an obstacle between the parent and the + * targeted entity, etc. + */ + // @ts-ignore + hasLongMemory(): boolean; + /** + * Sets whether the task will continue to navigate the parent + * {@link Agent} to continue targeting an {@link Entity} after the + * entity has moved to where a direct navigation path is no longer + * available. + */ + // @ts-ignore + setLongMemory(longMemory: boolean): org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.Builder.ts new file mode 100644 index 00000000..c8ed5056 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.Builder.ts @@ -0,0 +1,47 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace AvoidEntityAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.AITaskBuilder { + /** + * Sets the {@link Predicate} for filtering which {@link Entity} instances + * are considered to be "avoided" by the owning {@link Agent}. + */ + // @ts-ignore + targetSelector(predicate: any): org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.Builder; + /** + * Sets the search distance at which any {@link Entity} instances in a + * radius of the parent {@link Agent} are considered for avoiding. + */ + // @ts-ignore + searchDistance(distance: number): org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.Builder; + /** + * Sets the peed "modifier" for which the parent {@link Agent} will + * move away from a found {@link Entity} to "avoid" when in close + * range. Close range is currently defined as {@code 7} blocks. + */ + // @ts-ignore + closeRangeSpeed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.Builder; + /** + * Sets the close range speed "modifier" for which the parent {@link Agent} + * will move away from a found {@link Entity} to "avoid" when in + * a farther range than 7 blocks. + */ + // @ts-ignore + farRangeSpeed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.Builder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.ts new file mode 100644 index 00000000..7a30c27f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.ts @@ -0,0 +1,78 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + // @ts-ignore + interface AvoidEntityAITask extends org.spongepowered.api.entity.ai.task.AITask { + /** + * Creates a new {@link Builder} for creating a new {@link AvoidEntityAITask}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.Builder; + /** + * Gets the {@link Predicate} for filtering which {@link Entity} instances + * are qualified to have the owning {@link Agent} move away from the + * {@link Entity} of which the {@link Predicate#test(Object)} returns + * {@code true}. + */ + // @ts-ignore + getTargetSelector(): any; + /** + * Sets the {@link Predicate} for filtering which {@link Entity} instances + * are considered to be "avoided" by the owning {@link Agent}. + */ + // @ts-ignore + setTargetSelector(predicate: any): org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask; + /** + * Gets the search distance at which any {@link Entity} instances in a + * radius of the parent {@link Agent} are considered for avoiding. + */ + // @ts-ignore + getSearchDistance(): number; + /** + * Sets the search distance at which any {@link Entity} instances in a + * radius of the parent {@link Agent} are considered for avoiding. + */ + // @ts-ignore + setSearchDistance(distance: number): org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask; + /** + * Gets the speed "modifier" for which the parent {@link Agent} will + * move away from a found {@link Entity} to "avoid" when in close + * range. Close range is currently defined as {@code 7} blocks. + */ + // @ts-ignore + getCloseRangeSpeed(): number; + /** + * Sets the peed "modifier" for which the parent {@link Agent} will + * move away from a found {@link Entity} to "avoid" when in close + * range. Close range is currently defined as {@code 7} blocks. + */ + // @ts-ignore + setCloseRangeSpeed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask; + /** + * Gets the close range speed "modifier" for which the parent {@link Agent} + * will move away from a found {@link Entity} to "avoid" when in + * a farther range than 7 blocks. + */ + // @ts-ignore + getFarRangeSpeed(): number; + /** + * Sets the close range speed "modifier" for which the parent {@link Agent} + * will move away from a found {@link Entity} to "avoid" when in + * a farther range than 7 blocks. + */ + // @ts-ignore + setFarRangeSpeed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.Builder.ts new file mode 100644 index 00000000..8787377a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.Builder.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace RangeAgentAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.AITaskBuilder { + // @ts-ignore + moveSpeed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.Builder; + // @ts-ignore + delayBetweenAttacks(delay: number): org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.Builder; + // @ts-ignore + attackRadius(radius: number): org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.Builder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.ts new file mode 100644 index 00000000..bbef376c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.ts @@ -0,0 +1,60 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + // @ts-ignore + interface RangeAgentAITask extends org.spongepowered.api.entity.ai.task.AITask { + /** + * Creates a new {@link Builder} to build a new {@link RangeAgentAITask}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.Builder; + /** + * Gets the movement speed modifier for moving towards a targeted + * {@link Entity}. + */ + // @ts-ignore + getMoveSpeed(): number; + /** + * Sets the movement speed modifier for moving towards a targeted + * {@link Entity}. + */ + // @ts-ignore + setMoveSpeed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask; + /** + * Gets the delay in ticks between attempts to attack the targeted + * {@link Entity}. + */ + // @ts-ignore + getDelayBetweenAttacks(): number; + /** + * The time, in ticks, this {@link Ranger} will wait before attacking + * again. + */ + // @ts-ignore + setDelayBetweenAttacks(delay: number): org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask; + /** + * Gets the radius of which the owning {@link Ranger} will attempt to + * attack a targeted {@link Entity}. + */ + // @ts-ignore + getAttackRadius(): number; + /** + * Sets the radius of which the owning {@link Ranger} will attempt to + * attack a targeted {@link Entity}. + */ + // @ts-ignore + setAttackRadius(radius: number): org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.Builder.ts new file mode 100644 index 00000000..166105c5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.Builder.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace WanderAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.AITaskBuilder { + // @ts-ignore + speed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.Builder; + // @ts-ignore + executionChance(executionChance: number): org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.Builder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.ts new file mode 100644 index 00000000..eadcacdd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.ts @@ -0,0 +1,48 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + // @ts-ignore + interface WanderAITask extends org.spongepowered.api.entity.ai.task.AITask { + /** + * Creates a new {@link Builder} to build a new + * {@link WanderAITask}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.Builder; + /** + * Gets the speed modifier at which the owning {@link Entity} + * will move around to appear to "wander". + */ + // @ts-ignore + getSpeed(): number; + /** + * Sets the speed modifier at which the owning {@link Entity} + * will move around to appear to "wander". + */ + // @ts-ignore + setSpeed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask; + /** + * Gets the chance that the owning {@link Entity} will "wander". + */ + // @ts-ignore + getExecutionChance(): number; + /** + * Sets the chance that the owning {@link Entity} will perform + * a "wander". + */ + // @ts-ignore + setExecutionChance(executionChance: number): org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask.Builder.ts new file mode 100644 index 00000000..52d40d1f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask.Builder.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace horse { + namespace RunAroundLikeCrazyAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.AITaskBuilder { + // @ts-ignore + speed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask.Builder; + } + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask.ts new file mode 100644 index 00000000..508b7b10 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask.ts @@ -0,0 +1,39 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace horse { + // @ts-ignore + interface RunAroundLikeCrazyAITask extends org.spongepowered.api.entity.ai.task.AITask { + /** + * Creates a new {@link Builder} to build a new + * {@link RunAroundLikeCrazyAITask}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask.Builder; + /** + * Gets the speed modifier at which when an {@link Entity} is running + * around, the movement speed is amplified by this modifier. + */ + // @ts-ignore + getSpeed(): number; + /** + * Sets the speed modifier at which when an {@link Entity} is running + * around, the movement speed is amplified by this modifier. + */ + // @ts-ignore + setSpeed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.Builder.ts new file mode 100644 index 00000000..26a439d8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.Builder.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace target { + namespace FindNearestAttackableTargetAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.Builder { + // @ts-ignore + target(targetClass: any): org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.Builder; + // @ts-ignore + chance(chance: number): org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.Builder; + // @ts-ignore + filter(predicate: any): org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.Builder; + } + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.ts new file mode 100644 index 00000000..02898b68 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.ts @@ -0,0 +1,60 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace target { + // @ts-ignore + interface FindNearestAttackableTargetAITask extends org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask { + /** + * Creates a new {@link Builder} for building a new {@link FindNearestAttackableTargetAITask}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.Builder; + /** + * Gets the {@link Class entity class} that can be targeted. + */ + // @ts-ignore + getTargetClass(): any; + /** + * Sets the {@link Class entity class} that can be targeted. + */ + // @ts-ignore + setTargetClass(targetClass: any): org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask; + /** + * Gets the chance that this task will go through and attempt to find a + * new target. + */ + // @ts-ignore + getChance(): number; + /** + * Sets the chance that this task will go through and attempt to find a + * new target. + */ + // @ts-ignore + setChance(chance: number): org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask; + /** + * Sets the {@link Predicate} filter to determine whether a {@link Living} + * entity can be targeted. + */ + // @ts-ignore + filter(predicate: any): org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask; + /** + * Gets the {@link Predicate} filter to determine whether a {@link Living living entity} + * can be targeted. + */ + // @ts-ignore + getFilter(): any; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.Builder.ts new file mode 100644 index 00000000..e07391c8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.Builder.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace target { + namespace TargetAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.AITaskBuilder { + // @ts-ignore + checkSight(): org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.Builder; + // @ts-ignore + onlyNearby(): org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.Builder; + // @ts-ignore + reset(): org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.Builder; + } + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.ts new file mode 100644 index 00000000..f3701f8f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.ts @@ -0,0 +1,49 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace target { + // @ts-ignore + interface TargetAITask extends org.spongepowered.api.entity.ai.task.AITask { + /** + * Gets whether the owning {@link Agent} can visibly "see" the + * {@link Entity} being targeted such that any {@link BlockType}s that + * are visibly opaque will prevent the owning {@link Agent} from + * targeting that {@link Entity}. + */ + // @ts-ignore + shouldCheckSight(): boolean; + /** + * Sets whether the owning {@link Agent} can visibly "see" the + * {@link Entity} being targeted such that any {@link BlockType}s that + * are visibly opaque will prevent the owning {@link Agent} from + * targeting that {@link Entity}. + */ + // @ts-ignore + setCheckSight(checkSight: boolean): org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask; + /** + * Gets whether an {@link Entity} can only be targeted within a "short" + * radius from the owning {@link Agent}. + */ + // @ts-ignore + onlyNearby(): boolean; + /** + * Sets whether an {@link Entity} can only be targeted within a "short" + * radius from the owning {@link Agent}. + */ + // @ts-ignore + setOnlyNearby(nearby: boolean): org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.explosive.Explosive.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.explosive.Explosive.ts new file mode 100644 index 00000000..2e191f0b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.explosive.Explosive.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace explosive { + // @ts-ignore + interface Explosive extends org.spongepowered.api.entity.Entity { + /** + * Returns the {@link ExplosionRadiusData} for this explosive. + */ + // @ts-ignore + getExplosionRadiusData(): org.spongepowered.api.data.manipulator.mutable.entity.ExplosionRadiusData; + /** + * The radius in blocks that the explosion will affect. This value may be + * missing if the explosion radius is unknown such as when it is generated + * randomly on detonation. Setting this value on such explosives will + * override that behavior. + */ + // @ts-ignore + explosionRadius(): org.spongepowered.api.data.value.mutable.OptionalValue; + /** + * Detonates this explosive as soon as possible. + */ + // @ts-ignore + detonate(): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.explosive.FusedExplosive.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.explosive.FusedExplosive.ts new file mode 100644 index 00000000..dbb715cd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.explosive.FusedExplosive.ts @@ -0,0 +1,34 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace explosive { + // @ts-ignore + interface FusedExplosive extends org.spongepowered.api.entity.explosive.Explosive { + /** + * Returns the {@link FuseData} for this explosive. + */ + // @ts-ignore + getFuseData(): org.spongepowered.api.data.manipulator.mutable.entity.FuseData; + /** + * Returns true if this explosive is currently primed. + */ + // @ts-ignore + isPrimed(): boolean; + /** + * Primes this explosive to detonate after the amount of ticks that + * this entity explodes in defined by {@link Keys#FUSE_DURATION}. + */ + // @ts-ignore + prime(): void; + /** + * Cancels an actively primed explosive. + */ + // @ts-ignore + defuse(): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.explosive.PrimedTNT.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.explosive.PrimedTNT.ts new file mode 100644 index 00000000..1695d08c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.explosive.PrimedTNT.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace explosive { + // @ts-ignore + interface PrimedTNT extends org.spongepowered.api.entity.explosive.FusedExplosive { + /** + * Gets the living entity that set off this primed TNT. + */ + // @ts-ignore + getDetonator(): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.hanging.Hanging.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.hanging.Hanging.ts new file mode 100644 index 00000000..1827a028 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.hanging.Hanging.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace hanging { + // @ts-ignore + interface Hanging extends org.spongepowered.api.entity.Entity { + /** + * Gets a copy of the {@link DirectionalData} being used for this + * {@link Hanging} entity. + */ + // @ts-ignore + getDirectionalData(): org.spongepowered.api.data.manipulator.mutable.block.DirectionalData; + /** + * Gets the {@link Value} for the current "facing" {@link Direction}. + */ + // @ts-ignore + direction(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.hanging.ItemFrame.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.hanging.ItemFrame.ts new file mode 100644 index 00000000..90566a72 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.hanging.ItemFrame.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace hanging { + // @ts-ignore + interface ItemFrame extends org.spongepowered.api.entity.hanging.Hanging { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.hanging.LeashHitch.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.hanging.LeashHitch.ts new file mode 100644 index 00000000..f5dc88a6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.hanging.LeashHitch.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace hanging { + // @ts-ignore + interface LeashHitch extends org.spongepowered.api.entity.hanging.Hanging { + /** + * Gets the currently leashed {@link Entity}. + *Usually, a {@link LeashHitch} will always exist so long as there is + * a leashed {@link Entity} attached. If the leash is broken, the leash + * hitch is removed.
+ */ + // @ts-ignore + getLeashedEntity(): org.spongepowered.api.entity.Entity; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.hanging.Painting.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.hanging.Painting.ts new file mode 100644 index 00000000..d301f25a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.hanging.Painting.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace hanging { + // @ts-ignore + interface Painting extends org.spongepowered.api.entity.hanging.Hanging { + /** + * Gets a copy of the {@link ArtData} represented by this {@link Painting}. + */ + // @ts-ignore + getArtData(): org.spongepowered.api.data.manipulator.mutable.entity.ArtData; + /** + * Gets the current {@link Art} value represented by this {@link Painting}. + */ + // @ts-ignore + art(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.Aerial.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Aerial.ts new file mode 100644 index 00000000..b411178e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Aerial.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Aerial extends org.spongepowered.api.entity.living.Agent { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.Ageable.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Ageable.ts new file mode 100644 index 00000000..1c5d9935 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Ageable.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Ageable extends org.spongepowered.api.entity.living.Creature { + /** + * Sets the scaling to be 1 if this entity is an adult and 0.5 if it is + * a baby. + */ + // @ts-ignore + setScaleForAge(): void; + /** + * Gets the {@link AgeableData} that represents age determining whether an + * {@link Entity} is a child or an adult. + */ + // @ts-ignore + getAgeData(): org.spongepowered.api.data.manipulator.mutable.entity.AgeableData; + /** + * Gets the {@link MutableBoundedValue} for the "age" state. + */ + // @ts-ignore + age(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link Value} for the "adult" state. + */ + // @ts-ignore + adult(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.Agent.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Agent.ts new file mode 100644 index 00000000..d8e026f0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Agent.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Agent extends org.spongepowered.api.entity.living.Living { + /** + * Gets the current target, usually according to the various + * {@link AITask}s that are acting on this agent. + */ + // @ts-ignore + getTarget(): any; + /** + * Sets the current target, usually to bypass what the {@link AITask}s are + * deciding to be the target. + */ + // @ts-ignore + setTarget(target: org.spongepowered.api.entity.Entity): void; + /** + * Gets a copy of the {@link AgentData} associated with this {@link Agent}. + */ + // @ts-ignore + getAgentData(): org.spongepowered.api.data.manipulator.mutable.entity.AgentData; + /** + * Gets the {@link Value} for whether AI tasks are enabled or not. + */ + // @ts-ignore + aiEnabled(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets a {@link Goal} based on the {@link GoalType}. + */ + // @ts-ignore + getGoal(type: org.spongepowered.api.entity.ai.GoalType): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.Ambient.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Ambient.ts new file mode 100644 index 00000000..e679e748 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Ambient.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Ambient extends org.spongepowered.api.entity.living.Agent { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.Aquatic.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Aquatic.ts new file mode 100644 index 00000000..b470530b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Aquatic.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Aquatic extends org.spongepowered.api.entity.living.Creature { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.ArmorStand.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.ArmorStand.ts new file mode 100644 index 00000000..20df3851 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.ArmorStand.ts @@ -0,0 +1,58 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface ArmorStand extends org.spongepowered.api.entity.living.Living, org.spongepowered.api.entity.ArmorEquipable { + /** + * Gets a copy of the current {@link BodyPartRotationalData} used by this + * {@link ArmorStand}. + */ + // @ts-ignore + getBodyPartRotationalData(): org.spongepowered.api.data.manipulator.mutable.entity.BodyPartRotationalData; + /** + * Gets the {@link Boolean} {@link Value} of whether this + * {@link ArmorStand} is considered a "marker" stand. If + * {@code true}, the armor stand's bounding box is near + * impossible to see, and the armor stand can no longer be + * interacted with. + */ + // @ts-ignore + marker(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Boolean} {@link Value} of whether this + * {@link ArmorStand} is considered a "small" armor stand. + */ + // @ts-ignore + small(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Boolean} {@link Value} of whether this + * {@link ArmorStand} will show that it has a base plate + * visible to players. + */ + // @ts-ignore + basePlate(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Boolean} {@link Value} of whether this + * {@link ArmorStand} will show that it has "arms". + */ + // @ts-ignore + arms(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link ArmorStandData} for this armor stand. + */ + // @ts-ignore + getArmorStandData(): org.spongepowered.api.data.manipulator.mutable.entity.ArmorStandData; + // @ts-ignore + placingDisabled(): org.spongepowered.api.data.value.mutable.SetValue; + // @ts-ignore + takingDisabled(): org.spongepowered.api.data.value.mutable.SetValue; + // @ts-ignore + getDisabledSlotsData(): org.spongepowered.api.data.manipulator.mutable.entity.DisabledSlotsData; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.Bat.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Bat.ts new file mode 100644 index 00000000..b969961a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Bat.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Bat extends org.spongepowered.api.entity.living.Ambient, org.spongepowered.api.entity.living.Aerial { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.Creature.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Creature.ts new file mode 100644 index 00000000..b22de380 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Creature.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Creature extends org.spongepowered.api.entity.living.Agent { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.Hostile.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Hostile.ts new file mode 100644 index 00000000..2f6be36b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Hostile.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Hostile extends org.spongepowered.api.entity.living.Living { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.Human.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Human.ts new file mode 100644 index 00000000..60faa3c7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Human.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Human extends org.spongepowered.api.entity.living.Creature, org.spongepowered.api.entity.living.Humanoid { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.Humanoid.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Humanoid.ts new file mode 100644 index 00000000..39c1b1e5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Humanoid.ts @@ -0,0 +1,45 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Humanoid extends org.spongepowered.api.entity.living.Living, org.spongepowered.api.entity.projectile.ProjectileLauncher, org.spongepowered.api.entity.ArmorEquipable, org.spongepowered.api.entity.Tamer { + /** + * Gets a copy of the current {@link FoodData} for this {@link Humanoid}. + */ + // @ts-ignore + getFoodData(): org.spongepowered.api.data.manipulator.mutable.entity.FoodData; + /** + * Gets the current food level as an {@link MutableBoundedValue}. + *Food level has health effects, depending on game difficulty and + * hunger levels. If the food level is high enough, the human entity + * may heal. If the food level is at 0, the human entity may starve.
+ */ + // @ts-ignore + foodLevel(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the "exhaustion" level. + *When the exhaustion level reaches 0, saturation is usually diminished + * such that saturation is decreased and then exhaustion is reset to the + * maximum. This type of effect occurs over time and can be modified by + * movements and actions performed by the {@link Humanoid} entity.
+ */ + // @ts-ignore + exhaustion(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the "saturation" level. + *When the saturation level reaches 0, the food level is usually + * diminished such that the food level is decreased by 1, then + * saturation is reset to the maximum value. This type of effect occurs + * over time and can be modified by movements and actions performed by the + * {@link Humanoid} entity.
+ */ + // @ts-ignore + saturation(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.Living.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Living.ts new file mode 100644 index 00000000..db163cda --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Living.ts @@ -0,0 +1,78 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Living extends org.spongepowered.api.entity.Entity, org.spongepowered.api.entity.projectile.source.ProjectileSource, org.spongepowered.api.scoreboard.TeamMember { + /** + * Gets a copy of the current {@link HealthData}. + */ + // @ts-ignore + getHealthData(): org.spongepowered.api.data.manipulator.mutable.entity.HealthData; + /** + * Returns the health amount. + *The range of the health depends on the object on which this + * method is defined. For players in Minecraft, the nominal range is + * between 0 and 20, inclusive, but the range can be adjusted.
+ *Convention dictates that health does not follow below 0 but this + * convention may be broken.
+ */ + // @ts-ignore + health(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the current maximum health. + *The maximum health set here may affect the attribute increasing + * health points. The base health should be minded that it may be lower + * than the total maximum health of this entity.
+ */ + // @ts-ignore + maxHealth(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets a copy of the current {@link DamageableData}. + */ + // @ts-ignore + getDamageableData(): org.spongepowered.api.data.manipulator.mutable.entity.DamageableData; + /** + * Gets the {@link OptionalValue} for the last attacker. + *This is generally an entity snapshot of a {@link Living}.
+ */ + // @ts-ignore + lastAttacker(): org.spongepowered.api.data.value.mutable.OptionalValue; + /** + * Gets the last amount of damage dealt as an optional value. + */ + // @ts-ignore + lastDamage(): org.spongepowered.api.data.value.mutable.OptionalValue; + /** + * Returns this entity's head rotation. + *The format of the rotation is represented by:
+ *x -> pitch
, y -> yaw
, z -> roll
+ *
Note that the pitch will be the same x value returned by + * {@link Entity#getRotation()} and Minecraft does not currently support + * head roll so the z value will always be zero.
+ */ + // @ts-ignore + getHeadRotation(): any /*Vector3d*/; + /** + * Sets the entity's head rotation. + *The format of the rotation is represented by:
+ *x -> pitch
, y -> yaw
, z -> roll
+ *
Note that the pitch (x value) supplied will update the entity's pitch + * via {@link Entity#setRotation(Vector3d)}.
+ */ + // @ts-ignore + setHeadRotation(rotation: any /*Vector3d*/): void; + /** + * Makes the entity look at the specified target position. + */ + // @ts-ignore + lookAt(targetPos: any /*Vector3d*/): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.Ranger.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Ranger.ts new file mode 100644 index 00000000..82794c0a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Ranger.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Ranger extends org.spongepowered.api.entity.living.Agent, org.spongepowered.api.entity.projectile.ProjectileLauncher { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.Squid.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Squid.ts new file mode 100644 index 00000000..3fab25ac --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Squid.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Squid extends org.spongepowered.api.entity.living.Aquatic { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.Villager.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Villager.ts new file mode 100644 index 00000000..52de5655 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.Villager.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Villager extends org.spongepowered.api.entity.living.Ageable, org.spongepowered.api.item.merchant.Merchant { + /** + * Returns true if this villager is currently trading with another + * {@link Humanoid}. A villager is normally + * unable to trade with multiple HumanEntities at the same time. + */ + // @ts-ignore + isTrading(): boolean; + /** + * Gets a copy of the current {@link CareerData} for this {@link Villager} + * entity. + */ + // @ts-ignore + getCareerData(): org.spongepowered.api.data.manipulator.mutable.entity.CareerData; + /** + * Gets the current {@link Career} of this villager. + */ + // @ts-ignore + career(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Animal.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Animal.ts new file mode 100644 index 00000000..dd512d78 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Animal.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Animal extends org.spongepowered.api.entity.living.Ageable { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Chicken.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Chicken.ts new file mode 100644 index 00000000..c5398a41 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Chicken.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Chicken extends org.spongepowered.api.entity.living.animal.Animal { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Cow.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Cow.ts new file mode 100644 index 00000000..952ba760 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Cow.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Cow extends org.spongepowered.api.entity.living.animal.Animal { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Donkey.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Donkey.ts new file mode 100644 index 00000000..78137872 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Donkey.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Donkey extends org.spongepowered.api.entity.living.animal.Horse { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Horse.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Horse.ts new file mode 100644 index 00000000..177832bf --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Horse.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Horse extends org.spongepowered.api.entity.living.animal.Animal, org.spongepowered.api.item.inventory.Carrier { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Llama.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Llama.ts new file mode 100644 index 00000000..c10fb81d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Llama.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Llama extends org.spongepowered.api.entity.living.animal.Horse, org.spongepowered.api.entity.projectile.ProjectileLauncher { + /** + * Gets the {@link Value} for the {@link Keys#LLAMA_STRENGTH llama strength} + * when attacking. + */ + // @ts-ignore + strength(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link Value} for the {@link Keys#LLAMA_VARIANT llama variant}. + */ + // @ts-ignore + llamaVariant(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Mooshroom.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Mooshroom.ts new file mode 100644 index 00000000..d55471d6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Mooshroom.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Mooshroom extends org.spongepowered.api.entity.living.animal.Cow { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Mule.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Mule.ts new file mode 100644 index 00000000..c07f398c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Mule.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Mule extends org.spongepowered.api.entity.living.animal.Horse { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Ocelot.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Ocelot.ts new file mode 100644 index 00000000..43e41e20 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Ocelot.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Ocelot extends org.spongepowered.api.entity.living.animal.Animal { + /** + * Gets a copy of the current {@link OcelotData} being represented by + * this {@link Ocelot}. + */ + // @ts-ignore + getOcelotData(): org.spongepowered.api.data.manipulator.mutable.entity.OcelotData; + /** + * Gets the {@link Value} for the {@link OcelotType} of this + * {@link Ocelot}. + */ + // @ts-ignore + variant(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Parrot.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Parrot.ts new file mode 100644 index 00000000..b91c7553 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Parrot.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Parrot extends org.spongepowered.api.entity.living.animal.Animal { + /** + * Gets a copy of the current {@link ParrotData} being represented by + * this {@link Parrot}. + */ + // @ts-ignore + getParrotData(): org.spongepowered.api.data.manipulator.mutable.entity.ParrotData; + /** + * Gets the {@link Value} for the {@link ParrotVariant} of this + * {@link Parrot}. + */ + // @ts-ignore + variant(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Pig.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Pig.ts new file mode 100644 index 00000000..7550c138 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Pig.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Pig extends org.spongepowered.api.entity.living.animal.Animal { + /** + * Gets the {@link PigSaddleData} for this {@link Pig}. + */ + // @ts-ignore + getPigSaddleData(): org.spongepowered.api.data.manipulator.mutable.entity.PigSaddleData; + /** + * Gets the {@link Value} for whether this {@link Pig} is saddled. + */ + // @ts-ignore + saddled(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.PolarBear.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.PolarBear.ts new file mode 100644 index 00000000..94535ded --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.PolarBear.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface PolarBear extends org.spongepowered.api.entity.living.animal.Animal { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Rabbit.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Rabbit.ts new file mode 100644 index 00000000..d7fac9b8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Rabbit.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Rabbit extends org.spongepowered.api.entity.living.animal.Animal { + /** + * Gets a copy of the {@link RabbitData} representing the specific data for + * this {@link Rabbit}. + */ + // @ts-ignore + getRabbitData(): org.spongepowered.api.data.manipulator.mutable.entity.RabbitData; + /** + * Gets the {@link Value} for the {@link RabbitType} of this {@link Rabbit}. + */ + // @ts-ignore + variant(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.RideableHorse.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.RideableHorse.ts new file mode 100644 index 00000000..1e741081 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.RideableHorse.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface RideableHorse extends org.spongepowered.api.entity.living.animal.Horse { + /** + * Gets a copy of the {@link HorseData} representing this {@link RideableHorse}. + */ + // @ts-ignore + getHorseData(): org.spongepowered.api.data.manipulator.mutable.entity.HorseData; + /** + * Gets the style of the horse. + */ + // @ts-ignore + style(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the color of the horse. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Sheep.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Sheep.ts new file mode 100644 index 00000000..ab35980a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Sheep.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Sheep extends org.spongepowered.api.entity.living.animal.Animal { + /** + * Gets a copy of the {@link DyeableData} representing the color of this + * {@link Sheep} entity. + */ + // @ts-ignore + getDyeData(): org.spongepowered.api.data.manipulator.mutable.DyeableData; + /** + * Gets the current {@link Value} of {@link DyeColor} for this + * {@link Sheep}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.SkeletonHorse.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.SkeletonHorse.ts new file mode 100644 index 00000000..9f96764e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.SkeletonHorse.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface SkeletonHorse extends org.spongepowered.api.entity.living.animal.Horse { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Wolf.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Wolf.ts new file mode 100644 index 00000000..b1f94b58 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.Wolf.ts @@ -0,0 +1,37 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Wolf extends org.spongepowered.api.entity.living.animal.Animal { + /** + * Gets a copy of the current {@link AggressiveData} for this + * {@link Wolf}. + */ + // @ts-ignore + getAggressiveData(): org.spongepowered.api.data.manipulator.mutable.entity.AggressiveData; + /** + * Gets if this {@link Wolf} is currently aggressive, as a {@link Value}. + */ + // @ts-ignore + aggressive(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets a copy of the current {@link DyeableData} for this + * {@link Wolf}'s collar. + */ + // @ts-ignore + getCollarColorData(): org.spongepowered.api.data.manipulator.mutable.DyeableData; + /** + * Gets the {@link Wolf}'s {@link DyeColor} of it's collar. + */ + // @ts-ignore + collarColor(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.ZombieHorse.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.ZombieHorse.ts new file mode 100644 index 00000000..750680db --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.animal.ZombieHorse.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface ZombieHorse extends org.spongepowered.api.entity.living.animal.Horse { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.ComplexLiving.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.ComplexLiving.ts new file mode 100644 index 00000000..8af5657c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.ComplexLiving.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace complex { + // @ts-ignore + interface ComplexLiving extends org.spongepowered.api.entity.living.Living { + /** + * Gets the set of parts belonging to this complex entity. + */ + // @ts-ignore + getParts(): any[] /*java.util.Set*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.ComplexLivingPart.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.ComplexLivingPart.ts new file mode 100644 index 00000000..f0186786 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.ComplexLivingPart.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace complex { + // @ts-ignore + interface ComplexLivingPart extends org.spongepowered.api.entity.Entity { + /** + * Gets the associated parent of this part. + */ + // @ts-ignore + getParent(): org.spongepowered.api.entity.living.complex.ComplexLiving; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.EnderDragon.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.EnderDragon.ts new file mode 100644 index 00000000..46826493 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.EnderDragon.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace complex { + // @ts-ignore + interface EnderDragon extends org.spongepowered.api.entity.living.complex.ComplexLiving, org.spongepowered.api.entity.living.monster.Boss, org.spongepowered.api.entity.living.Aerial, org.spongepowered.api.entity.projectile.ProjectileLauncher { + // @ts-ignore + getParts(): any[] /*java.util.Set*/; + /** + * Returns the current {@code EnderCrystal} that is healing this + * ender dragon. + */ + // @ts-ignore + getHealingCrystal(): any; + /** + * Gets the boss bar this dragon uses. + */ + // @ts-ignore + getBossBar(): org.spongepowered.api.boss.ServerBossBar; + /** + * Gets the phase manager. + *The phase manager controls the active {@link EnderDragonPhase} of + * the dragon in The End.
+ */ + // @ts-ignore + getPhaseManager(): org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseManager; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.EnderDragonPart.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.EnderDragonPart.ts new file mode 100644 index 00000000..bfb60e25 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.EnderDragonPart.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace complex { + // @ts-ignore + interface EnderDragonPart extends org.spongepowered.api.entity.living.complex.ComplexLivingPart { + // @ts-ignore + getParent(): org.spongepowered.api.entity.living.complex.EnderDragon; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhase.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhase.ts new file mode 100644 index 00000000..4b141eaf --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhase.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace complex { + namespace dragon { + namespace phase { + // @ts-ignore + interface EnderDragonPhase { + /** + * Gets the type of this phase. + */ + // @ts-ignore + getType(): org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + /** + * Gets the position the dragon is flying towards. + */ + // @ts-ignore + getTargetPosition(): any; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseManager.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseManager.ts new file mode 100644 index 00000000..7ae2a3a6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseManager.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace complex { + namespace dragon { + namespace phase { + // @ts-ignore + interface EnderDragonPhaseManager { + /** + * Gets the current dragon phase. + */ + // @ts-ignore + getPhase(): org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhase; + /** + * Sets the dragon phase. + */ + // @ts-ignore + setPhase(phase: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType): org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhase; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType.ts new file mode 100644 index 00000000..edad10ce --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace complex { + namespace dragon { + namespace phase { + // @ts-ignore + interface EnderDragonPhaseType extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseTypes.ts new file mode 100644 index 00000000..f4f37c14 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseTypes.ts @@ -0,0 +1,41 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace complex { + namespace dragon { + namespace phase { + // @ts-ignore + class EnderDragonPhaseTypes { + // @ts-ignore + public static DYING: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static HOLDING_PATTERN: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static HOVER: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static CHARGING_PLAYER: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static LANDING: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static LANDING_APPROACH: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static SITTING_ATTACKING: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static SITTING_FLAMING: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static SITTING_SCANNING: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static STRAFE_PLAYER: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static TAKEOFF: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.golem.Golem.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.golem.Golem.ts new file mode 100644 index 00000000..5e80b9c8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.golem.Golem.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace golem { + // @ts-ignore + interface Golem extends org.spongepowered.api.entity.living.Creature { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.golem.IronGolem.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.golem.IronGolem.ts new file mode 100644 index 00000000..26413be6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.golem.IronGolem.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace golem { + // @ts-ignore + interface IronGolem extends org.spongepowered.api.entity.living.golem.Golem { + /** + * Gets the {@link Value} for whether this {@link IronGolem} was created + * by a {@link Player}. + */ + // @ts-ignore + playerCreated(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.golem.Shulker.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.golem.Shulker.ts new file mode 100644 index 00000000..d52203c9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.golem.Shulker.ts @@ -0,0 +1,43 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace golem { + // @ts-ignore + interface Shulker extends org.spongepowered.api.entity.living.golem.Golem, org.spongepowered.api.entity.projectile.source.ProjectileSource { + /** + * Gets a copy of the {@link DyeableData} representing the color of this + * {@link Shulker} entity. + */ + // @ts-ignore + getDyeData(): org.spongepowered.api.data.manipulator.mutable.DyeableData; + /** + * Gets the current {@link Value} of {@link DyeColor} for this + * {@link Shulker}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets a copy of the {@link DirectionalData} representing the direction this + * {@link Shulker} is oriented towards. + */ + // @ts-ignore + getDirectionalData(): org.spongepowered.api.data.manipulator.mutable.block.DirectionalData; + /** + * Gets the current {@link Value} of {@link Direction} for this {@link Shulker}. + */ + // @ts-ignore + direction(): org.spongepowered.api.data.value.mutable.Value; + /** + * Launches a new {@link EntityTargetingProjectile} from this {@link Shulker}. + */ + // @ts-ignore + launchWithTarget(projectileClass: any, target: org.spongepowered.api.entity.Entity): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.golem.SnowGolem.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.golem.SnowGolem.ts new file mode 100644 index 00000000..22ae7d6d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.golem.SnowGolem.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace golem { + // @ts-ignore + interface SnowGolem extends org.spongepowered.api.entity.living.golem.Golem, org.spongepowered.api.entity.living.Ranger { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Blaze.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Blaze.ts new file mode 100644 index 00000000..7625d221 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Blaze.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Blaze extends org.spongepowered.api.entity.living.monster.Monster, org.spongepowered.api.entity.living.Aerial, org.spongepowered.api.entity.projectile.ProjectileLauncher { + /** + * Gets the current {@link Value value} for whether this {@link Blaze} + * is considered "aflame". + */ + // @ts-ignore + aflame(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Boss.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Boss.ts new file mode 100644 index 00000000..39885a1a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Boss.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Boss extends org.spongepowered.api.entity.living.Hostile { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.CaveSpider.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.CaveSpider.ts new file mode 100644 index 00000000..6c41e09f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.CaveSpider.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface CaveSpider extends org.spongepowered.api.entity.living.monster.Spider { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Creeper.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Creeper.ts new file mode 100644 index 00000000..1529bd03 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Creeper.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Creeper extends org.spongepowered.api.entity.living.monster.Monster, org.spongepowered.api.entity.explosive.FusedExplosive { + /** + * Gets the current {@link Value value} of whether this {@link Creeper} + * is considered "charged". Note that "charged" creepers will likely + * cause larger than normal explosions. + */ + // @ts-ignore + charged(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Enderman.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Enderman.ts new file mode 100644 index 00000000..73071d41 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Enderman.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Enderman extends org.spongepowered.api.entity.living.monster.Monster, org.spongepowered.api.item.inventory.Carrier { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Endermite.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Endermite.ts new file mode 100644 index 00000000..89baeaca --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Endermite.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Endermite extends org.spongepowered.api.entity.living.monster.Monster { + /** + * Gets a copy of the {@link ExpirableData} for this endermite. + */ + // @ts-ignore + getExpirableData(): org.spongepowered.api.data.manipulator.mutable.entity.ExpirableData; + /** + * Gets the {@link MutableBoundedValue} for the amount of "ticks" + * remaining before the "expiration" occurs. + */ + // @ts-ignore + expireTicks(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Evoker.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Evoker.ts new file mode 100644 index 00000000..7f8e5895 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Evoker.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Evoker extends org.spongepowered.api.entity.living.monster.Monster { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Ghast.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Ghast.ts new file mode 100644 index 00000000..09246c39 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Ghast.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Ghast extends org.spongepowered.api.entity.living.Aerial, org.spongepowered.api.entity.living.Hostile, org.spongepowered.api.entity.projectile.ProjectileLauncher { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Giant.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Giant.ts new file mode 100644 index 00000000..74e7d2ed --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Giant.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Giant extends org.spongepowered.api.entity.living.monster.Monster, org.spongepowered.api.entity.ArmorEquipable { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Guardian.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Guardian.ts new file mode 100644 index 00000000..68101ae0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Guardian.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Guardian extends org.spongepowered.api.entity.living.Aquatic, org.spongepowered.api.entity.living.monster.Monster { + /** + * Gets the target of the guardian's beam or {@link Optional#empty()} otherwise. + */ + // @ts-ignore + getBeamTarget(): any; + /** + * Sets the target of the guardian's beam. Setting a null value removes the + * target. + */ + // @ts-ignore + setBeamTarget(entity: org.spongepowered.api.entity.living.Living): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Husk.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Husk.ts new file mode 100644 index 00000000..7cf176fb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Husk.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Husk extends org.spongepowered.api.entity.living.monster.Zombie { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Illusioner.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Illusioner.ts new file mode 100644 index 00000000..7299a596 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Illusioner.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Illusioner extends org.spongepowered.api.entity.living.monster.Monster { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.MagmaCube.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.MagmaCube.ts new file mode 100644 index 00000000..b03728e3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.MagmaCube.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface MagmaCube extends org.spongepowered.api.entity.living.monster.Slime { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Monster.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Monster.ts new file mode 100644 index 00000000..0a033b7a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Monster.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Monster extends org.spongepowered.api.entity.living.Hostile, org.spongepowered.api.entity.living.Creature { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Silverfish.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Silverfish.ts new file mode 100644 index 00000000..4eb02f4b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Silverfish.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Silverfish extends org.spongepowered.api.entity.living.monster.Monster { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Skeleton.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Skeleton.ts new file mode 100644 index 00000000..ce9611f8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Skeleton.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Skeleton extends org.spongepowered.api.entity.living.monster.Monster, org.spongepowered.api.entity.ArmorEquipable, org.spongepowered.api.entity.living.Ranger { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Slime.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Slime.ts new file mode 100644 index 00000000..46dd8ab6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Slime.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Slime extends org.spongepowered.api.entity.living.monster.Monster { + /** + * Gets a copy of the current {@link SlimeData} for this {@link Slime}. + */ + // @ts-ignore + getSlimeData(): org.spongepowered.api.data.manipulator.mutable.entity.SlimeData; + /** + * Gets the {@link MutableBoundedValue value} of this + * {@link Slime slime's} current size. + */ + // @ts-ignore + slimeSize(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Spider.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Spider.ts new file mode 100644 index 00000000..624f0738 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Spider.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Spider extends org.spongepowered.api.entity.living.monster.Monster { + /** + * Gets whether or not the spider is currently climbing a wall. + */ + // @ts-ignore + isClimbing(): boolean; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Stray.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Stray.ts new file mode 100644 index 00000000..5d7c9cef --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Stray.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Stray extends org.spongepowered.api.entity.living.monster.Skeleton { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Vex.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Vex.ts new file mode 100644 index 00000000..dc88e0cf --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Vex.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Vex extends org.spongepowered.api.entity.living.monster.Monster { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Vindicator.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Vindicator.ts new file mode 100644 index 00000000..10033b9b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Vindicator.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Vindicator extends org.spongepowered.api.entity.living.monster.Monster { + /** + * Gets the {@link Value} for whether this vindicator is considered a + * "johnny" vindicator. "Johnny" vindicators will deal more damage and + * often times carry an {@link ItemTypes#IRON_AXE} of sorts. + */ + // @ts-ignore + johnny(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.WhiteSkeleton.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.WhiteSkeleton.ts new file mode 100644 index 00000000..e546fbb9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.WhiteSkeleton.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface WhiteSkeleton extends org.spongepowered.api.entity.living.monster.Skeleton { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Witch.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Witch.ts new file mode 100644 index 00000000..ea41a9ec --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Witch.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Witch extends org.spongepowered.api.entity.living.monster.Monster, org.spongepowered.api.entity.living.Ranger { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Wither.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Wither.ts new file mode 100644 index 00000000..e71bcfa7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Wither.ts @@ -0,0 +1,33 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Wither extends org.spongepowered.api.entity.living.monster.Monster, org.spongepowered.api.entity.living.Ranger, org.spongepowered.api.entity.living.monster.Boss, org.spongepowered.api.entity.living.Aerial, org.spongepowered.api.entity.explosive.FusedExplosive { + /** + * Gets the list of {@link Living} targets that this wither is targeting. + * Usually, as an {@link Agent}, {@link #getTarget()} would be sufficient, + * however, due to a Wither having the possibility of 3 targets, this + * is preferred use. + */ + // @ts-ignore + getTargets(): any[] /*java.util.List*/; + /** + * Sets the list of living targets. + */ + // @ts-ignore + setTargets(targets: any[] /*java.util.List*/): void; + /** + * Gets the boss bar this wither uses. + */ + // @ts-ignore + getBossBar(): org.spongepowered.api.boss.ServerBossBar; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.WitherSkeleton.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.WitherSkeleton.ts new file mode 100644 index 00000000..ae6a489c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.WitherSkeleton.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface WitherSkeleton extends org.spongepowered.api.entity.living.monster.Skeleton { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Zombie.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Zombie.ts new file mode 100644 index 00000000..4d835afd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.Zombie.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Zombie extends org.spongepowered.api.entity.living.monster.Monster, org.spongepowered.api.entity.ArmorEquipable, org.spongepowered.api.entity.living.Ageable { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.ZombiePigman.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.ZombiePigman.ts new file mode 100644 index 00000000..7636a802 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.ZombiePigman.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface ZombiePigman extends org.spongepowered.api.entity.living.monster.Zombie { + /** + * Gets a copy of the {@link AngerableData} for this {@link ZombiePigman}. + */ + // @ts-ignore + getAngerData(): org.spongepowered.api.data.manipulator.mutable.entity.AngerableData; + /** + * Gets the {@link MutableBoundedValue value} of the current "anger" level + * of this {@link ZombiePigman pigzombie}. + */ + // @ts-ignore + angerLevel(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.ZombieVillager.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.ZombieVillager.ts new file mode 100644 index 00000000..d57a3aa4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.monster.ZombieVillager.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface ZombieVillager extends org.spongepowered.api.entity.living.monster.Zombie { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.CooldownTracker.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.CooldownTracker.ts new file mode 100644 index 00000000..530624b2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.CooldownTracker.ts @@ -0,0 +1,47 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace player { + // @ts-ignore + interface CooldownTracker { + /** + * Checks if the specified {@link ItemType} is currently on cooldown + * for the player. + */ + // @ts-ignore + hasCooldown(type: org.spongepowered.api.item.ItemType): boolean; + /** + * Gets the cooldown of the specified {@link ItemType} in ticks for the + * player, or empty if the the item type is currently not on cooldown. + */ + // @ts-ignore + getCooldown(type: org.spongepowered.api.item.ItemType): any; + /** + * Sets the cooldown for the specified {@link ItemType} for the + * specified amount of ticks. + */ + // @ts-ignore + setCooldown(type: org.spongepowered.api.item.ItemType, ticks: number): boolean; + /** + * Resets the cooldown of the specified {@link ItemType} for the + * player. + */ + // @ts-ignore + resetCooldown(type: org.spongepowered.api.item.ItemType): boolean; + /** + * Gets the fraction of the specified {@link ItemType}'s cooldown that + * is remaining for the player, or empty if the the item type + * is currently not on cooldown. + *If present, this value will be between 0.0 and 1.0.
+ */ + // @ts-ignore + getFractionRemaining(type: org.spongepowered.api.item.ItemType): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.Player.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.Player.ts new file mode 100644 index 00000000..87efee5a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.Player.ts @@ -0,0 +1,228 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace player { + // @ts-ignore + interface Player extends org.spongepowered.api.entity.living.Humanoid, org.spongepowered.api.entity.living.player.User, org.spongepowered.api.command.source.RemoteSource, org.spongepowered.api.effect.Viewer, org.spongepowered.api.text.channel.ChatTypeMessageReceiver { + /** + * Returns whether this player has an open inventory at the moment + * or not. + */ + // @ts-ignore + isViewingInventory(): boolean; + /** + * Gets the currently viewed inventory of this player, if it is + * currently viewing one. + */ + // @ts-ignore + getOpenInventory(): any; + /** + * Opens the given Inventory for the player to view. + */ + // @ts-ignore + openInventory(inventory: org.spongepowered.api.item.inventory.Inventory): any; + /** + * Opens a given Inventory for the player to view with a custom displayName. + *Note that not all inventories support a custom display name.
+ */ + // @ts-ignore + openInventory(inventory: org.spongepowered.api.item.inventory.Inventory, displayName: org.spongepowered.api.text.Text): any; + /** + * Closes the currently viewed entity of this player, if it is currently + * viewing one. + */ + // @ts-ignore + closeInventory(): boolean; + /** + * Gets the view distance setting of the player. This value represents the + * radius (around the player) in unit chunks. + */ + // @ts-ignore + getViewDistance(): number; + /** + * Gets the current player chat visibility setting. + */ + // @ts-ignore + getChatVisibility(): org.spongepowered.api.text.chat.ChatVisibility; + /** + * Gets whether the player has colors enabled in chat. + */ + // @ts-ignore + isChatColorsEnabled(): boolean; + /** + * Simulates a chat message from a player. + *This method sends a message as if it came from this player. + * To send a message to this player instead, see + * {@link MessageReceiver#sendMessage(Text)} or + * {@link ChatTypeMessageReceiver#sendMessage(ChatType, Text)}.
+ *Commands cannot be sent using this method. To send commands, use + * {@link CommandManager#process(CommandSource, String)}.
+ *If text formatting is not supported in the implementation + * it will be displayed as plain text.
+ */ + // @ts-ignore + simulateChat(message: org.spongepowered.api.text.Text, cause: org.spongepowered.api.event.cause.Cause): org.spongepowered.api.event.message.MessageChannelEvent.Chat; + /** + * Gets the skin parts that this player has allowed to render. + */ + // @ts-ignore + getDisplayedSkinParts(): any[] /*java.util.Set*/; + /** + * Gets the appropriate {@link PlayerConnection} linking this Player + * to a client. + */ + // @ts-ignore + getConnection(): org.spongepowered.api.network.PlayerConnection; + /** + * Sends a given {@link ResourcePack} to this player. + */ + // @ts-ignore + sendResourcePack(pack: org.spongepowered.api.resourcepack.ResourcePack): void; + /** + * Gets this player's {@link TabList}. + */ + // @ts-ignore + getTabList(): org.spongepowered.api.entity.living.player.tab.TabList; + /** + * Kicks the player, showing the default kick reason (the translation key + * {@code disconnect.disconnected}). + */ + // @ts-ignore + kick(): void; + /** + * Kicks the player given a reason. + */ + // @ts-ignore + kick(reason: org.spongepowered.api.text.Text): void; + /** + * Gets the {@link Scoreboard} displayed to the player. + */ + // @ts-ignore + getScoreboard(): org.spongepowered.api.scoreboard.Scoreboard; + /** + * Sets the {@link Scoreboard} displayed to the player. + */ + // @ts-ignore + setScoreboard(scoreboard: org.spongepowered.api.scoreboard.Scoreboard): void; + /** + * Gets a copy of the current {@link JoinData}. + *Since a {@link Player} is already online, it means that the player + * has joined the server at least once, meaning there is a guaranteed + * initial join {@link Instant}. Users may not have ever joined a server + * before.
+ */ + // @ts-ignore + getJoinData(): org.spongepowered.api.data.manipulator.mutable.entity.JoinData; + /** + * Gets the {@link Value} of the {@link Instant} that a {@link Player} + * joined the {@link Server} the first time. + */ + // @ts-ignore + firstPlayed(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} of the {@link Instant} that a {@link Player} + * joined the {@link Server} the last time. + */ + // @ts-ignore + lastPlayed(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets if the {@link Player} has played on the {@link Server} before. Added + * as a utility. + */ + // @ts-ignore + hasPlayedBefore(): boolean; + /** + * Gets a copy of the current {@link DisplayNameData} for this + * {@link Player}. + */ + // @ts-ignore + getDisplayNameData(): org.spongepowered.api.data.manipulator.mutable.DisplayNameData; + /** + * Gets a copy of the current {@link GameModeData} for this {@link Player}. + */ + // @ts-ignore + getGameModeData(): org.spongepowered.api.data.manipulator.mutable.entity.GameModeData; + /** + * Gets the current {@link GameMode} for this {@link Player}. + */ + // @ts-ignore + gameMode(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this {@link Player} will be ignored when checking whether to + * skip the night due to players sleeping. The time in a world will be + * advanced to day if all players in it either are sleeping or have this + * tag. + */ + // @ts-ignore + isSleepingIgnored(): boolean; + /** + * Sets whether this {@link Player} will be ignored when checking whether + * to skip the night due to players sleeping. The time in a world will be + * advanced to day if all players in it either are sleeping or have this + * tag. + */ + // @ts-ignore + setSleepingIgnored(sleepingIgnored: boolean): void; + /** + * Gets the {@link Inventory} available for this Player's shared {@link EnderChest} + * contents. + */ + // @ts-ignore + getEnderChestInventory(): org.spongepowered.api.item.inventory.Inventory; + /** + * Manually respawns the player. + *If the player is not dead, this method will return false
+ */ + // @ts-ignore + respawnPlayer(): boolean; + /** + * Gets the {@link Entity} followed by the camera when in the + * {@link GameModes#SPECTATOR spectator gamemode}. + */ + // @ts-ignore + getSpectatorTarget(): any; + /** + * Sets the {@link Entity} followed by the camera when in the + * {@link GameModes#SPECTATOR spectator gamemode}. + */ + // @ts-ignore + setSpectatorTarget(entity: org.spongepowered.api.entity.Entity): void; + /** + * Gets the {@link WorldBorder} for this player, if present. If no border is + * set, an empty {@code Optional} is returned. + */ + // @ts-ignore + getWorldBorder(): any; + /** + * Sets the {@link WorldBorder} instance for this player to the given world + * border. If {@code null} is passed, the world border is unset. + */ + // @ts-ignore + setWorldBorder(border: org.spongepowered.api.world.WorldBorder, cause: org.spongepowered.api.event.cause.Cause): void; + /** + * Gets the {@link CooldownTracker} for this player, allowing control + * over the player's item cooldowns. + */ + // @ts-ignore + getCooldownTracker(): org.spongepowered.api.entity.living.player.CooldownTracker; + /** + * Gets the {@link AdvancementProgress} for the + * specified {@link Advancement}. + */ + // @ts-ignore + getProgress(advancement: org.spongepowered.api.advancement.Advancement): org.spongepowered.api.advancement.AdvancementProgress; + /** + * Gets all the {@link AdvancementTree}s that this + * {@link Player} already unlocked. + */ + // @ts-ignore + getUnlockedAdvancementTrees(): any[] /*java.util.Collection*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.User.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.User.ts new file mode 100644 index 00000000..34e298b4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.User.ts @@ -0,0 +1,79 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace player { + // @ts-ignore + interface User extends org.spongepowered.api.data.DataHolder, org.spongepowered.api.entity.ArmorEquipable, org.spongepowered.api.entity.Tamer, org.spongepowered.api.service.permission.Subject { + /** + * Gets the associated {@link GameProfile} of this player. + */ + // @ts-ignore + getProfile(): org.spongepowered.api.profile.GameProfile; + /** + * Gets the player's last known username. + */ + // @ts-ignore + getName(): string; + /** + * Checks if this user is online or not. + */ + // @ts-ignore + isOnline(): boolean; + /** + * Gets the related online {@link Player} if the player is + * in fact online. + */ + // @ts-ignore + getPlayer(): any; + /** + * Gets the position of this User + */ + // @ts-ignore + getPosition(): any /*Vector3d*/; + /** + * Gets the World UUID of this User. + *May return empty when the world the player is in does not exist anymore
+ */ + // @ts-ignore + getWorldUniqueId(): any; + /** + * Sets the position and world of this User. + *The UUID must belong to an existing world.
+ *When the User {@link #isOnline()} this redirects to {@link Entity#setLocation(Location)}
+ */ + // @ts-ignore + setLocation(position: any /*Vector3d*/, world: any): boolean; + /** + * Sets the rotation of this entity. + *The format of the rotation is represented by:
+ *{@code x -> pitch}, {@code y -> yaw}, {@code z -> roll}
+ */ + // @ts-ignore + setRotation(rotation: any /*Vector3d*/): void; + /** + * Gets the rotation. + *The format of the rotation is represented by:
+ *{@code x -> pitch}, {@code y -> yaw}, {@code z -> roll}
+ */ + // @ts-ignore + getRotation(): any /*Vector3d*/; + /** + * Gets a copy of the {@link StatisticData} for this user. + */ + // @ts-ignore + getStatisticData(): org.spongepowered.api.data.manipulator.mutable.entity.StatisticData; + /** + * Gets the {@link Inventory} available for this Player's shared {@link EnderChest} + * contents. + */ + // @ts-ignore + getEnderChestInventory(): org.spongepowered.api.item.inventory.Inventory; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.gamemode.GameMode.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.gamemode.GameMode.ts new file mode 100644 index 00000000..1c1b57db --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.gamemode.GameMode.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace player { + namespace gamemode { + // @ts-ignore + interface GameMode extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.gamemode.GameModes.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.gamemode.GameModes.ts new file mode 100644 index 00000000..4f7f9613 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.gamemode.GameModes.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace player { + namespace gamemode { + // @ts-ignore + class GameModes { + // @ts-ignore + public static ADVENTURE: org.spongepowered.api.entity.living.player.gamemode.GameMode; + // @ts-ignore + public static CREATIVE: org.spongepowered.api.entity.living.player.gamemode.GameMode; + // @ts-ignore + public static NOT_SET: org.spongepowered.api.entity.living.player.gamemode.GameMode; + // @ts-ignore + public static SPECTATOR: org.spongepowered.api.entity.living.player.gamemode.GameMode; + // @ts-ignore + public static SURVIVAL: org.spongepowered.api.entity.living.player.gamemode.GameMode; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.tab.TabList.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.tab.TabList.ts new file mode 100644 index 00000000..e473c3f2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.tab.TabList.ts @@ -0,0 +1,76 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace player { + namespace tab { + // @ts-ignore + interface TabList { + /** + * Gets the associated {@link Player} with this {@link TabList}. + */ + // @ts-ignore + getPlayer(): org.spongepowered.api.entity.living.player.Player; + /** + * Gets this list's header. + */ + // @ts-ignore + getHeader(): any; + /** + * Sets this list's header. + *When {@code null} is passed, an empty {@link Text} will + * be sent.
+ */ + // @ts-ignore + setHeader(header: org.spongepowered.api.text.Text): org.spongepowered.api.entity.living.player.tab.TabList; + /** + * Gets this list's footer. + */ + // @ts-ignore + getFooter(): any; + /** + * Sets this list's footer. + *When {@code null} is passed, an empty {@link Text} will + * be sent.
+ */ + // @ts-ignore + setFooter(footer: org.spongepowered.api.text.Text): org.spongepowered.api.entity.living.player.tab.TabList; + /** + * Sets this list's header and footer. + *When {@code null} is passed, an empty {@link Text} will + * be sent.
+ */ + // @ts-ignore + setHeaderAndFooter(header: org.spongepowered.api.text.Text, footer: org.spongepowered.api.text.Text): org.spongepowered.api.entity.living.player.tab.TabList; + /** + * Gets the entries on the list. + *The returned collection should be immutable.
+ */ + // @ts-ignore + getEntries(): any[] /*java.util.Collection*/; + /** + * Gets a {@link TabListEntry} matching the specified unique id. + */ + // @ts-ignore + getEntry(uniqueId: any): any; + /** + * Adds an entry to the list. + */ + // @ts-ignore + addEntry(entry: org.spongepowered.api.entity.living.player.tab.TabListEntry): org.spongepowered.api.entity.living.player.tab.TabList; + /** + * Removes an entry from the list. + *Note that if this is used on a player, but they remain visible + * in-game, their skin will not work.
+ */ + // @ts-ignore + removeEntry(uniqueId: any): any; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder.ts new file mode 100644 index 00000000..79ad0f81 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder.ts @@ -0,0 +1,49 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace player { + namespace tab { + namespace TabListEntry { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link TabList} this entry is owned by. + */ + // @ts-ignore + list(list: org.spongepowered.api.entity.living.player.tab.TabList): org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder; + /** + * Sets the profile for entries created by this builder. + */ + // @ts-ignore + profile(profile: org.spongepowered.api.profile.GameProfile): org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder; + /** + * Sets the display name for entries created by this builder. + */ + // @ts-ignore + displayName(displayName: org.spongepowered.api.text.Text): org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder; + /** + * Sets the latency for entries created by this builder. + */ + // @ts-ignore + latency(latency: number): org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder; + /** + * Sets the gamemode for entries created by this builder. + */ + // @ts-ignore + gameMode(gameMode: org.spongepowered.api.entity.living.player.gamemode.GameMode): org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder; + /** + * Builds an entry based off the values of this builder. + */ + // @ts-ignore + build(): org.spongepowered.api.entity.living.player.tab.TabListEntry; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.tab.TabListEntry.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.tab.TabListEntry.ts new file mode 100644 index 00000000..588d8720 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.living.player.tab.TabListEntry.ts @@ -0,0 +1,100 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace player { + namespace tab { + // @ts-ignore + interface TabListEntry { + /** + * Creates a new {@link Builder} to create {@link TabListEntry}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder; + /** + * Gets the {@link TabList} that owns this entry. + */ + // @ts-ignore + getList(): org.spongepowered.api.entity.living.player.tab.TabList; + /** + * Gets the {@link GameProfile} associated with this entry. + */ + // @ts-ignore + getProfile(): org.spongepowered.api.profile.GameProfile; + /** + * Gets this entry's display name. + */ + // @ts-ignore + getDisplayName(): any; + /** + * Sets this entry's display name. + */ + // @ts-ignore + setDisplayName(displayName: org.spongepowered.api.text.Text): org.spongepowered.api.entity.living.player.tab.TabListEntry; + /** + * Gets the latency for this entry. + */ + // @ts-ignore + getLatency(): number; + /** + * Sets the latency for this entry. + *The client displays connection bars based on this number.
+ *Bars | + *Time | + *
---|---|
0 | + *Less than 0 | + *
1 | + *1000+ | + *
2 | + *600 - 999 | + *
3 | + *300 - 599 | + *
4 | + *150 - 299 | + *
5 | + *0 - 149 | + *
When using {@link GameModes#SPECTATOR} and this entry is of an + * online {@link Player}, the player will have "spectator effects". Such + * effects can include invisibility and noclip.
+ */ + // @ts-ignore + setGameMode(gameMode: org.spongepowered.api.entity.living.player.gamemode.GameMode): org.spongepowered.api.entity.living.player.tab.TabListEntry; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.DamagingProjectile.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.DamagingProjectile.ts new file mode 100644 index 00000000..1b0e432a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.DamagingProjectile.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface DamagingProjectile extends org.spongepowered.api.entity.projectile.Projectile { + /** + * Gets the damaging data for this {@link DamagingProjectile}. + *The damaging data defines how much damage the projectile will deal + * upon hitting an {@link Entity}, before the explosion.
+ */ + // @ts-ignore + getDamagingData(): org.spongepowered.api.data.manipulator.mutable.entity.DamagingData; + /** + * Gets the damage this projectile will deal to a {@link Living} + * if hit. + */ + // @ts-ignore + damage(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MapValue} for representing the custom damage values to + * use if the owner strikes an entity of that type. + *Note that in events, the damage defined for the provided + * {@link EntityType} will take priority over the "default" damage as + * defined from {@link #damage()}.
+ */ + // @ts-ignore + damageForEntity(): org.spongepowered.api.data.value.mutable.MapValue; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.Egg.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.Egg.ts new file mode 100644 index 00000000..d484d657 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.Egg.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface Egg extends org.spongepowered.api.entity.projectile.DamagingProjectile { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.EnderPearl.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.EnderPearl.ts new file mode 100644 index 00000000..4a1c13bb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.EnderPearl.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface EnderPearl extends org.spongepowered.api.entity.projectile.DamagingProjectile { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.EntityTargetingProjectile.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.EntityTargetingProjectile.ts new file mode 100644 index 00000000..ee394854 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.EntityTargetingProjectile.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface EntityTargetingProjectile extends org.spongepowered.api.entity.projectile.Projectile { + /** + * Gets the targeted entity data for this {@link EntityTargetingProjectile}. + *The targeted entity data defines which entity this projectile will target.
+ */ + // @ts-ignore + getTargetData(): org.spongepowered.api.data.manipulator.mutable.entity.TargetedEntityData; + /** + * Gets the entity this projectile will target. + */ + // @ts-ignore + target(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.EyeOfEnder.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.EyeOfEnder.ts new file mode 100644 index 00000000..763e460e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.EyeOfEnder.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface EyeOfEnder extends org.spongepowered.api.entity.projectile.Projectile { + /** + * Gets a copy of the {@link TargetedLocationData} this {@link EyeOfEnder} + * is "flying" towards. + */ + // @ts-ignore + getTargetLocationData(): org.spongepowered.api.data.manipulator.mutable.TargetedLocationData; + /** + * Gets the {@link Value} for the targeted {@link Location}. + */ + // @ts-ignore + target(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.Firework.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.Firework.ts new file mode 100644 index 00000000..b5e97c58 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.Firework.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface Firework extends org.spongepowered.api.entity.projectile.Projectile, org.spongepowered.api.entity.explosive.FusedExplosive { + /** + * Gets a copy of the {@link FireworkEffectData} for this firework. + */ + // @ts-ignore + getFireworkData(): org.spongepowered.api.data.manipulator.mutable.FireworkEffectData; + /** + * Gets the {@link ListValue} of {@link FireworkEffect}s. + *Note that for {@link ItemTypes#FIREWORK_CHARGE} only the first effect + * will apply to the charge.
+ */ + // @ts-ignore + effects(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.FishHook.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.FishHook.ts new file mode 100644 index 00000000..f8617f78 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.FishHook.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface FishHook extends org.spongepowered.api.entity.projectile.Projectile { + /** + * Gets the hooked entity for this fish hook. + *Fishooks can attach to {@link Entity} objects in the world, as though + * they are temporarily leashed. The hooked entity may also be null.
+ */ + // @ts-ignore + getHookedEntity(): any; + /** + * Sets the hooked entity for this fish hook. + *Fishhooks can attach to {@link Entity} objects in the world, as though + * they are temporarily leashed. The hooked entity may also be null.
+ */ + // @ts-ignore + setHookedEntity(entity: org.spongepowered.api.entity.Entity): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.LlamaSpit.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.LlamaSpit.ts new file mode 100644 index 00000000..4a20324e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.LlamaSpit.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface LlamaSpit extends org.spongepowered.api.entity.projectile.Projectile { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.Projectile.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.Projectile.ts new file mode 100644 index 00000000..de29b4df --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.Projectile.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface Projectile extends org.spongepowered.api.entity.Entity { + /** + * Gets the shooter of this projectile. + *All projectiles have a {@link ProjectileSource} regardless of whether + * the projectile was launched via plugin or mod.
+ */ + // @ts-ignore + getShooter(): org.spongepowered.api.entity.projectile.source.ProjectileSource; + /** + * Sets the shooter of this projectile. + *All projectiles have a {@link ProjectileSource} regardless of whether + * the projectile was launched via plugin or mod.
+ */ + // @ts-ignore + setShooter(shooter: org.spongepowered.api.entity.projectile.source.ProjectileSource): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.ProjectileLauncher.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.ProjectileLauncher.ts new file mode 100644 index 00000000..5ad64fa7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.ProjectileLauncher.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface ProjectileLauncher { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.Snowball.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.Snowball.ts new file mode 100644 index 00000000..337effa8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.Snowball.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface Snowball extends org.spongepowered.api.entity.projectile.DamagingProjectile { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.ThrownExpBottle.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.ThrownExpBottle.ts new file mode 100644 index 00000000..010c4c24 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.ThrownExpBottle.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface ThrownExpBottle extends org.spongepowered.api.entity.projectile.Projectile { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.ThrownPotion.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.ThrownPotion.ts new file mode 100644 index 00000000..8f6dd335 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.ThrownPotion.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface ThrownPotion extends org.spongepowered.api.entity.projectile.Projectile { + /** + * Gets a copy of the {@link RepresentedItemData} used by this potion. + */ + // @ts-ignore + getPotionItemData(): org.spongepowered.api.data.manipulator.mutable.RepresentedItemData; + /** + * Gets the {@link Value} for the represented {@link ItemStack} as an + * {@link ItemStackSnapshot}. + */ + // @ts-ignore + item(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.arrow.Arrow.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.arrow.Arrow.ts new file mode 100644 index 00000000..ee1b1c3f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.arrow.Arrow.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace arrow { + // @ts-ignore + interface Arrow extends org.spongepowered.api.entity.projectile.DamagingProjectile { + /** + * Gets a copy of the current {@link KnockbackData} that this arrow + * has. + */ + // @ts-ignore + getKnockbackData(): org.spongepowered.api.data.manipulator.mutable.entity.KnockbackData; + /** + * Gets the {@link MutableBoundedValue} for the "knockback strength" + * that this arrow has. + */ + // @ts-ignore + knockbackStrength(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.arrow.SpectralArrow.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.arrow.SpectralArrow.ts new file mode 100644 index 00000000..4708fbb6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.arrow.SpectralArrow.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace arrow { + // @ts-ignore + interface SpectralArrow extends org.spongepowered.api.entity.projectile.arrow.Arrow { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.arrow.TippedArrow.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.arrow.TippedArrow.ts new file mode 100644 index 00000000..6b44ce23 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.arrow.TippedArrow.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace arrow { + // @ts-ignore + interface TippedArrow extends org.spongepowered.api.entity.projectile.arrow.Arrow { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.explosive.DragonFireball.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.explosive.DragonFireball.ts new file mode 100644 index 00000000..dc586b96 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.explosive.DragonFireball.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace explosive { + // @ts-ignore + interface DragonFireball extends org.spongepowered.api.entity.projectile.explosive.fireball.Fireball { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.explosive.WitherSkull.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.explosive.WitherSkull.ts new file mode 100644 index 00000000..d0bd8944 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.explosive.WitherSkull.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace explosive { + // @ts-ignore + interface WitherSkull extends org.spongepowered.api.entity.projectile.explosive.fireball.Fireball, org.spongepowered.api.entity.explosive.Explosive { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.explosive.fireball.Fireball.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.explosive.fireball.Fireball.ts new file mode 100644 index 00000000..92c6fabc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.explosive.fireball.Fireball.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace explosive { + namespace fireball { + // @ts-ignore + interface Fireball extends org.spongepowered.api.entity.projectile.DamagingProjectile { + // @ts-ignore + acceleration(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.explosive.fireball.LargeFireball.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.explosive.fireball.LargeFireball.ts new file mode 100644 index 00000000..e89b3181 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.explosive.fireball.LargeFireball.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace explosive { + namespace fireball { + // @ts-ignore + interface LargeFireball extends org.spongepowered.api.entity.projectile.explosive.fireball.Fireball, org.spongepowered.api.entity.explosive.Explosive { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.explosive.fireball.SmallFireball.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.explosive.fireball.SmallFireball.ts new file mode 100644 index 00000000..03c5a52a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.explosive.fireball.SmallFireball.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace explosive { + namespace fireball { + // @ts-ignore + interface SmallFireball extends org.spongepowered.api.entity.projectile.explosive.fireball.Fireball { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.source.BlockProjectileSource.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.source.BlockProjectileSource.ts new file mode 100644 index 00000000..d99d2963 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.source.BlockProjectileSource.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace source { + // @ts-ignore + interface BlockProjectileSource extends org.spongepowered.api.entity.projectile.source.ProjectileSource { + /** + * Gets the {@link Location} where the projectile source is at. + */ + // @ts-ignore + getLocation(): org.spongepowered.api.world.Location; + /** + * Gets the {@link BlockState} of the projectile source. + */ + // @ts-ignore + getBlock(): org.spongepowered.api.block.BlockState; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.source.ProjectileSource.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.source.ProjectileSource.ts new file mode 100644 index 00000000..edb1f7ec --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.source.ProjectileSource.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace source { + // @ts-ignore + interface ProjectileSource { + // @ts-ignore + UNKNOWN: org.spongepowered.api.entity.projectile.source.UnknownProjectileSource; + /** + * Launches a {@link Projectile} from this projectile source. + */ + // @ts-ignore + launchProjectile(projectileClass: any): any; + /** + * Launches a {@link Projectile} from this projectile source. + */ + // @ts-ignore + launchProjectile(projectileClass: any, velocity: any /*Vector3d*/): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.source.UnknownProjectileSource.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.source.UnknownProjectileSource.ts new file mode 100644 index 00000000..dec36dce --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.projectile.source.UnknownProjectileSource.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace source { + // @ts-ignore + class UnknownProjectileSource implements org.spongepowered.api.entity.projectile.source.ProjectileSource { + // @ts-ignore + public launchProjectile(projectileClass: any): any; + // @ts-ignore + public launchProjectile(projectileClass: any, velocity: any /*Vector3d*/): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.Boat.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.Boat.ts new file mode 100644 index 00000000..cb3fa567 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.Boat.ts @@ -0,0 +1,60 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + // @ts-ignore + interface Boat extends org.spongepowered.api.entity.Entity { + /** + * Gets whether this boat is currently in water. + */ + // @ts-ignore + isInWater(): boolean; + /** + * Gets the maximum speed that this boat is allowed to travel at. + *The Default value is 0.4.
+ */ + // @ts-ignore + getMaxSpeed(): number; + /** + * Sets the maximum speed that this boat is allowed to travel at. + *The Default value is 0.4.
+ */ + // @ts-ignore + setMaxSpeed(maxSpeed: number): void; + /** + * Gets whether or not the boat is able to move freely on land. + */ + // @ts-ignore + canMoveOnLand(): boolean; + /** + * Gets whether or not the boat is able to move freely on land. + */ + // @ts-ignore + setMoveOnLand(moveOnLand: boolean): void; + /** + * Gets the rate at which occupied boats decelerate. + */ + // @ts-ignore + getOccupiedDeceleration(): number; + /** + * Sets the rate at which occupied boats decelerate. + */ + // @ts-ignore + setOccupiedDeceleration(occupiedDeceleration: number): void; + /** + * Gets the rate at which unoccupied boats decelerate. + */ + // @ts-ignore + getUnoccupiedDeceleration(): number; + /** + * Sets the rate at which unoccupied boats decelerate. + */ + // @ts-ignore + setUnoccupiedDeceleration(unoccupiedDeceleration: number): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.ChestMinecart.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.ChestMinecart.ts new file mode 100644 index 00000000..4cde41d6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.ChestMinecart.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + namespace minecart { + // @ts-ignore + interface ChestMinecart extends org.spongepowered.api.entity.vehicle.minecart.ContainerMinecart { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.CommandBlockMinecart.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.CommandBlockMinecart.ts new file mode 100644 index 00000000..b92cbb8d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.CommandBlockMinecart.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + namespace minecart { + // @ts-ignore + interface CommandBlockMinecart extends org.spongepowered.api.entity.vehicle.minecart.Minecart, org.spongepowered.api.command.source.CommandBlockSource { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.ContainerMinecart.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.ContainerMinecart.ts new file mode 100644 index 00000000..0d28ddeb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.ContainerMinecart.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + namespace minecart { + // @ts-ignore + interface ContainerMinecart extends org.spongepowered.api.entity.vehicle.minecart.Minecart, org.spongepowered.api.item.inventory.Carrier, org.spongepowered.api.item.inventory.type.CarriedInventory { + // @ts-ignore + getInventory(): org.spongepowered.api.item.inventory.type.CarriedInventory; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.FurnaceMinecart.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.FurnaceMinecart.ts new file mode 100644 index 00000000..011c0110 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.FurnaceMinecart.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + namespace minecart { + // @ts-ignore + interface FurnaceMinecart extends org.spongepowered.api.entity.vehicle.minecart.Minecart { + /** + * Gets the current fuel time in ticks. + *Usually, the fuel time will decay until reaching 0. At zero, the fuel + * minecart will decelerate to a stop.
+ */ + // @ts-ignore + getFuel(): number; + /** + * Sets the fuel time in ticks. + *Usually, the fuel time will decay until reaching 0. At zero, the fuel + * minecart will decelerate to a stop.
+ */ + // @ts-ignore + setFuel(fuel: number): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.HopperMinecart.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.HopperMinecart.ts new file mode 100644 index 00000000..b5250f5f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.HopperMinecart.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + namespace minecart { + // @ts-ignore + interface HopperMinecart extends org.spongepowered.api.entity.vehicle.minecart.ContainerMinecart { + /** + * Gets a copy of the {@link CooldownData}. The cooldown data represents the + * delay before this {@link HopperMinecart} will attempt to transfer an + * {@link ItemStack}. + */ + // @ts-ignore + getCooldownData(): org.spongepowered.api.data.manipulator.mutable.tileentity.CooldownData; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.Minecart.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.Minecart.ts new file mode 100644 index 00000000..450453dc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.Minecart.ts @@ -0,0 +1,71 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + namespace minecart { + // @ts-ignore + interface Minecart extends org.spongepowered.api.entity.Entity { + /** + * Gets whether or not the minecart is currently on a valid rail block. + */ + // @ts-ignore + isOnRail(): boolean; + /** + * Gets the absolute maximum speed that this cart is allowed to travel at. + *The default value is 0.4.
+ */ + // @ts-ignore + getSwiftness(): number; + /** + * Sets the absolute maximum speed that this cart is allowed to travel at. + *The default value is 0.4.
+ */ + // @ts-ignore + setSwiftness(swiftness: number): void; + /** + * Gets the maximum speed that this cart is allowed to travel at the instant + * this method is called. + *This differs from {@link Minecart#getSwiftness()} in that its value is + * affected by the block/rail beneath the cart. However, it is still + * impacted and limited by the cart's swiftness.
+ */ + // @ts-ignore + getPotentialMaxSpeed(): number; + /** + * Gets whether or not the minecart slows down faster without a passenger. + */ + // @ts-ignore + doesSlowWhenEmpty(): boolean; + /** + * Sets whether or not the minecart slows down faster without a passenger. + */ + // @ts-ignore + setSlowWhenEmpty(slowWhenEmpty: boolean): void; + /** + * Gets the velocity modifier applied when the minecart is airborne. + */ + // @ts-ignore + getAirborneVelocityMod(): any /*Vector3d*/; + /** + * Sets the velocity modifier applied when the minecart is airborne. + */ + // @ts-ignore + setAirborneVelocityMod(airborneVelocityMod: any /*Vector3d*/): void; + /** + * Gets the velocity modifier applied when the minecart is not on rails. + */ + // @ts-ignore + getDerailedVelocityMod(): any /*Vector3d*/; + /** + * Sets the velocity modifier applied when the minecart is not on rails. + */ + // @ts-ignore + setDerailedVelocityMod(derailedVelocityMod: any /*Vector3d*/): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.MobSpawnerMinecart.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.MobSpawnerMinecart.ts new file mode 100644 index 00000000..68adbdf1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.MobSpawnerMinecart.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + namespace minecart { + // @ts-ignore + interface MobSpawnerMinecart extends org.spongepowered.api.entity.vehicle.minecart.Minecart { + /** + * Gets a copy of the {@link MobSpawnerData}. + */ + // @ts-ignore + getSpawnerData(): org.spongepowered.api.data.manipulator.mutable.MobSpawnerData; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.RideableMinecart.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.RideableMinecart.ts new file mode 100644 index 00000000..43e31479 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.RideableMinecart.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + namespace minecart { + // @ts-ignore + interface RideableMinecart extends org.spongepowered.api.entity.vehicle.minecart.Minecart { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.TNTMinecart.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.TNTMinecart.ts new file mode 100644 index 00000000..32660830 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.vehicle.minecart.TNTMinecart.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + namespace minecart { + // @ts-ignore + interface TNTMinecart extends org.spongepowered.api.entity.vehicle.minecart.Minecart, org.spongepowered.api.entity.explosive.FusedExplosive { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.weather.Lightning.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.weather.Lightning.ts new file mode 100644 index 00000000..60e97815 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.weather.Lightning.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace weather { + // @ts-ignore + interface Lightning extends org.spongepowered.api.entity.weather.WeatherEffect { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.entity.weather.WeatherEffect.ts b/packages/sponge/src/typings/org.spongepowered.api.entity.weather.WeatherEffect.ts new file mode 100644 index 00000000..faabff28 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.entity.weather.WeatherEffect.ts @@ -0,0 +1,34 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace weather { + // @ts-ignore + interface WeatherEffect extends org.spongepowered.api.entity.Entity { + /** + * Returns whether this weather effect is an effect and doesn't deal damage. + */ + // @ts-ignore + isEffect(): boolean; + /** + * Sets whether this weather effect is an effect and doesn't deal damage. + */ + // @ts-ignore + setEffect(effect: boolean): void; + /** + * Gets a copy of the {@link ExpirableData} for this weather entity. + */ + // @ts-ignore + getExpiringData(): org.spongepowered.api.data.manipulator.mutable.entity.ExpirableData; + /** + * Gets the {@link MutableBoundedValue} for the amount of "ticks" remaining + * before the "expiration" occurs. + */ + // @ts-ignore + expireTicks(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.Cancellable.ts b/packages/sponge/src/typings/org.spongepowered.api.event.Cancellable.ts new file mode 100644 index 00000000..a3df6a63 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.Cancellable.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + // @ts-ignore + interface Cancellable { + /** + * Gets if the {@link Event} has been cancelled. + */ + // @ts-ignore + isCancelled(): boolean; + /** + * Sets the cancelled state of the {@link Event}. + */ + // @ts-ignore + setCancelled(cancel: boolean): void; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.CauseStackManager.StackFrame.ts b/packages/sponge/src/typings/org.spongepowered.api.event.CauseStackManager.StackFrame.ts new file mode 100644 index 00000000..050cdaa8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.CauseStackManager.StackFrame.ts @@ -0,0 +1,49 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace CauseStackManager { + // @ts-ignore + interface StackFrame { + /** + * Gets the current {@link Cause} object from the current cause stack. + */ + // @ts-ignore + getCurrentCause(): org.spongepowered.api.event.cause.Cause; + /** + * Gets an {@link EventContext} object on the current contextual + * information. + */ + // @ts-ignore + getCurrentContext(): org.spongepowered.api.event.cause.EventContext; + /** + * Pushes an object to the current cause stack which will associate + * it with all events through from api actions until it is + * popped off again. + */ + // @ts-ignore + pushCause(obj: any): org.spongepowered.api.event.CauseStackManager.StackFrame; + /** + * Pops the most recently pushed cause object off of the stack and + * returns it. + */ + // @ts-ignore + popCause(): any; + /** + * Adds the given object to the current context under the given key. + */ + // @ts-ignore + addContext(key: org.spongepowered.api.event.cause.EventContextKey, value: any): org.spongepowered.api.event.CauseStackManager.StackFrame; + /** + * Removes the given context key from the current context. + */ + // @ts-ignore + removeContext(key: org.spongepowered.api.event.cause.EventContextKey): any; + // @ts-ignore + close(): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.CauseStackManager.ts b/packages/sponge/src/typings/org.spongepowered.api.event.CauseStackManager.ts new file mode 100644 index 00000000..da02fefd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.CauseStackManager.ts @@ -0,0 +1,81 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + // @ts-ignore + interface CauseStackManager { + /** + * Gets the current {@link Cause} object from the current cause stack. + */ + // @ts-ignore + getCurrentCause(): org.spongepowered.api.event.cause.Cause; + /** + * Gets an {@link EventContext} object on the current contextual + * information. + */ + // @ts-ignore + getCurrentContext(): org.spongepowered.api.event.cause.EventContext; + /** + * Pushes an object to the current cause stack which will associate it with + * all events through from api actions until it is popped off again. + */ + // @ts-ignore + pushCause(obj: any): org.spongepowered.api.event.CauseStackManager; + /** + * Pops the most recently pushed cause object off of the stack and returns + * it. + */ + // @ts-ignore + popCause(): any; + /** + * Pops the most recently n pushed cause objects off of the stack. + */ + // @ts-ignore + popCauses(n: number): void; + /** + * Retrieves but does not remove the most recently pushed cause object. + */ + // @ts-ignore + peekCause(): any; + /** + * Pushes a frame of the current cause stack and context state. + */ + // @ts-ignore + pushCauseFrame(): org.spongepowered.api.event.CauseStackManager.StackFrame; + /** + * Replaces the current cause stack and context with the cause frame at the + * top of the frame stack. + *The frame handle is required to ensure that frames are popped of in + * order and are not left in the stack. If an attempt is made to pop a frame + * which is not the head of the frame stack then an error will be thrown as + * this indicates that a frame was not popped properly.
+ */ + // @ts-ignore + popCauseFrame(handle: org.spongepowered.api.event.CauseStackManager.StackFrame): void; + /** + * Adds the given object to the current context under the given key. + */ + // @ts-ignore + addContext(key: org.spongepowered.api.event.cause.EventContextKey, value: any): org.spongepowered.api.event.CauseStackManager; + /** + * Gets the context value with the given key. + */ + // @ts-ignore + getContext(key: org.spongepowered.api.event.cause.EventContextKey): any; + /** + * Gets the context value with the given key. + *If the key is not available, {@link NoSuchElementException} will be + * thrown.
+ */ + // @ts-ignore + requireContext(key: org.spongepowered.api.event.cause.EventContextKey): any; + /** + * Removes the given context key from the current context. + */ + // @ts-ignore + removeContext(key: org.spongepowered.api.event.cause.EventContextKey): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.Event.ts b/packages/sponge/src/typings/org.spongepowered.api.event.Event.ts new file mode 100644 index 00000000..6552a61c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.Event.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + // @ts-ignore + interface Event { + /** + * Gets the cause for the event. The Cause of the event + * is an object which implements the Iterable interface. + * So, when investigating the Cause of the event a common + * idiom is to use operations (functions) on the result + * of getCause as follows: + * Use-case: Getting the Player (if any) responsible: + * {@code OptionalOnly methods that are public will be registered and the class must be + * public as well.
+ */ + // @ts-ignore + registerListeners(plugin: any, obj: any): void; + /** + * Registers an event listener for a specific event class. + *Normally, the annotation-based way in + * {@link #registerListeners(Object, Object)} should be preferred over this way. This + * method exists primarily to support dynamic event registration like needed + * in scripting plugins.
+ */ + // @ts-ignore + registerListener(plugin: any, eventClass: any, listener: org.spongepowered.api.event.EventListener): void; + /** + * Registers an event listener for a specific event {@link TypeToken}. + *Normally, the annotation-based way in + * {@link #registerListeners(Object, Object)} should be preferred over this way. This + * method exists primarily to support dynamic event registration like needed + * in scripting plugins.
+ */ + // @ts-ignore + registerListener(plugin: any, eventType: any, listener: org.spongepowered.api.event.EventListener): void; + /** + * Registers an event listener with the specified order for a specific event + * class. + *Normally, the annotation-based way in + * {@link #registerListeners(Object, Object)} should be preferred over this way. This + * method exists primarily to support dynamic event registration like needed + * in scripting plugins.
+ */ + // @ts-ignore + registerListener(plugin: any, eventClass: any, order: org.spongepowered.api.event.Order, listener: org.spongepowered.api.event.EventListener): void; + /** + * Registers an event listener with the specified order for a specific event + * {@link TypeToken}. + *Normally, the annotation-based way in + * {@link #registerListeners(Object, Object)} should be preferred over this way. This + * method exists primarily to support dynamic event registration like needed + * in scripting plugins.
+ */ + // @ts-ignore + registerListener(plugin: any, eventType: any, order: org.spongepowered.api.event.Order, listener: org.spongepowered.api.event.EventListener): void; + /** + * Registers an event listener with the specified order for a specific event + * class. + *Normally, the annotation-based way in + * {@link #registerListeners(Object, Object)} should be preferred over this way. This + * method exists primarily to support dynamic event registration like needed + * in scripting plugins.
+ */ + // @ts-ignore + registerListener(plugin: any, eventClass: any, order: org.spongepowered.api.event.Order, beforeModifications: boolean, listener: org.spongepowered.api.event.EventListener): void; + /** + * Registers an event listener with the specified order for a specific event + * class. + *Normally, the annotation-based way in + * {@link #registerListeners(Object, Object)} should be preferred over this way. This + * method exists primarily to support dynamic event registration like needed + * in scripting plugins.
+ */ + // @ts-ignore + registerListener(plugin: any, eventType: any, order: org.spongepowered.api.event.Order, beforeModifications: boolean, listener: org.spongepowered.api.event.EventListener): void; + /** + * Un-registers an object from receiving {@link Event}s. + */ + // @ts-ignore + unregisterListeners(obj: any): void; + /** + * Un-registers all event listeners of a plugin. + */ + // @ts-ignore + unregisterPluginListeners(plugin: any): void; + /** + * Calls a {@link Event} to all listeners that listen to it. + */ + // @ts-ignore + post(event: org.spongepowered.api.event.Event): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.GenericEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.GenericEvent.ts new file mode 100644 index 00000000..a2e477f6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.GenericEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + // @ts-ignore + interface GenericEvent extends org.spongepowered.api.event.Event { + /** + * Gets the generic {@link TypeToken} used + * by this {@link Event}. + */ + // @ts-ignore + getGenericType(): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.Listener.ts b/packages/sponge/src/typings/org.spongepowered.api.event.Listener.ts new file mode 100644 index 00000000..0faf9f98 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.Listener.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + // @ts-ignore + interface Listener { + /** + * The order this listener should be called in relation to other listeners + * in the {@link EventManager}. + */ + // @ts-ignore + order(): org.spongepowered.api.event.Order; + /** + * Whether this listener should be called before any other server mods, such + * as Forge mods. All Sponge event listeners are called after mods, unless + * they specify the {@code #beforeModifications()} flag to be true. + */ + // @ts-ignore + beforeModifications(): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.Order.ts b/packages/sponge/src/typings/org.spongepowered.api.event.Order.ts new file mode 100644 index 00000000..2d642fbc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.Order.ts @@ -0,0 +1,33 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + // @ts-ignore + class Order { + // @ts-ignore + public static PRE: org.spongepowered.api.event.Order; + // @ts-ignore + public static AFTER_PRE: org.spongepowered.api.event.Order; + // @ts-ignore + public static FIRST: org.spongepowered.api.event.Order; + // @ts-ignore + public static EARLY: org.spongepowered.api.event.Order; + // @ts-ignore + public static DEFAULT: org.spongepowered.api.event.Order; + // @ts-ignore + public static LATE: org.spongepowered.api.event.Order; + // @ts-ignore + public static LAST: org.spongepowered.api.event.Order; + // @ts-ignore + public static BEFORE_POST: org.spongepowered.api.event.Order; + // @ts-ignore + public static POST: org.spongepowered.api.event.Order; + // @ts-ignore + public static values(): org.spongepowered.api.event.Order[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.event.Order; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.TristateResult.Result.ts b/packages/sponge/src/typings/org.spongepowered.api.event.TristateResult.Result.ts new file mode 100644 index 00000000..5ba235d9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.TristateResult.Result.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace TristateResult { + // @ts-ignore + class Result { + // @ts-ignore + public static DENY: org.spongepowered.api.event.TristateResult.Result; + // @ts-ignore + public static DEFAULT: org.spongepowered.api.event.TristateResult.Result; + // @ts-ignore + public static ALLOW: org.spongepowered.api.event.TristateResult.Result; + // @ts-ignore + public static values(): org.spongepowered.api.event.TristateResult.Result[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.event.TristateResult.Result; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.TristateResult.ts b/packages/sponge/src/typings/org.spongepowered.api.event.TristateResult.ts new file mode 100644 index 00000000..99bfc7d2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.TristateResult.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + // @ts-ignore + interface TristateResult { + /** + * Returns whether the + * {@link TristateResult.Result#ALLOW} can be + * used. + */ + // @ts-ignore + hasAllowResult(): boolean; + /** + * Returns the original {@link Result} of this event. + */ + // @ts-ignore + getOriginalResult(): org.spongepowered.api.event.TristateResult.Result; + /** + * Returns the {@link Result} of this event. + */ + // @ts-ignore + getResult(): org.spongepowered.api.event.TristateResult.Result; + /** + * Sets the result value for this event. + *Note: The functionality of setting the {@link Result} is defined on a + * per-event basis.
+ */ + // @ts-ignore + setResult(value: org.spongepowered.api.event.TristateResult.Result): void; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.action.CollideEvent.Impact.ts b/packages/sponge/src/typings/org.spongepowered.api.event.action.CollideEvent.Impact.ts new file mode 100644 index 00000000..9452d9f0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.action.CollideEvent.Impact.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace CollideEvent { + // @ts-ignore + interface Impact extends org.spongepowered.api.event.action.CollideEvent { + /** + * Gets the {@link Location} where the impact took place. + */ + // @ts-ignore + getImpactPoint(): org.spongepowered.api.world.Location; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.action.CollideEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.action.CollideEvent.ts new file mode 100644 index 00000000..da927743 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.action.CollideEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + // @ts-ignore + interface CollideEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.action.FishingEvent.HookEntity.ts b/packages/sponge/src/typings/org.spongepowered.api.event.action.FishingEvent.HookEntity.ts new file mode 100644 index 00000000..65e39e94 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.action.FishingEvent.HookEntity.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace FishingEvent { + // @ts-ignore + interface HookEntity extends org.spongepowered.api.event.action.FishingEvent, org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.action.FishingEvent.Start.ts b/packages/sponge/src/typings/org.spongepowered.api.event.action.FishingEvent.Start.ts new file mode 100644 index 00000000..e42761ce --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.action.FishingEvent.Start.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace FishingEvent { + // @ts-ignore + interface Start extends org.spongepowered.api.event.action.FishingEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.action.FishingEvent.Stop.ts b/packages/sponge/src/typings/org.spongepowered.api.event.action.FishingEvent.Stop.ts new file mode 100644 index 00000000..486fac97 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.action.FishingEvent.Stop.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace FishingEvent { + // @ts-ignore + interface Stop extends org.spongepowered.api.event.action.FishingEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets a list of {@link Transaction}s for each {@link ItemStackSnapshot} + * that will be spawned if this event is not cancelled. + */ + // @ts-ignore + getTransactions(): any[] /*java.util.List*/; + /** + * Gets a list of {@link Transaction}s for each {@link ItemStackSnapshot} + * that will be spawned if this event is not cancelled. + */ + // @ts-ignore + getItemStackTransaction(): any[] /*java.util.List*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.action.FishingEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.action.FishingEvent.ts new file mode 100644 index 00000000..dad0ed96 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.action.FishingEvent.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + // @ts-ignore + interface FishingEvent extends org.spongepowered.api.event.Event { + /** + * Gets the {@link FishHook} related with this event. + */ + // @ts-ignore + getFishHook(): org.spongepowered.api.entity.projectile.FishHook; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.action.InteractEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.action.InteractEvent.ts new file mode 100644 index 00000000..822da09e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.action.InteractEvent.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + // @ts-ignore + interface InteractEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the point of interaction where the interaction occurred as + * a {@link Vector3d}. + */ + // @ts-ignore + getInteractionPoint(): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.action.LightningEvent.Post.ts b/packages/sponge/src/typings/org.spongepowered.api.event.action.LightningEvent.Post.ts new file mode 100644 index 00000000..7d10fea4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.action.LightningEvent.Post.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace LightningEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.action.LightningEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.action.LightningEvent.Pre.ts b/packages/sponge/src/typings/org.spongepowered.api.event.action.LightningEvent.Pre.ts new file mode 100644 index 00000000..a4d257b0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.action.LightningEvent.Pre.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace LightningEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.action.LightningEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.action.LightningEvent.Strike.ts b/packages/sponge/src/typings/org.spongepowered.api.event.action.LightningEvent.Strike.ts new file mode 100644 index 00000000..81db4bc8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.action.LightningEvent.Strike.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace LightningEvent { + // @ts-ignore + interface Strike extends org.spongepowered.api.event.action.LightningEvent, org.spongepowered.api.event.entity.AffectEntityEvent, org.spongepowered.api.event.block.ChangeBlockEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.action.LightningEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.action.LightningEvent.ts new file mode 100644 index 00000000..46b45801 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.action.LightningEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + // @ts-ignore + interface LightningEvent extends org.spongepowered.api.event.Event { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.action.SleepingEvent.Finish.ts b/packages/sponge/src/typings/org.spongepowered.api.event.action.SleepingEvent.Finish.ts new file mode 100644 index 00000000..14772142 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.action.SleepingEvent.Finish.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace SleepingEvent { + // @ts-ignore + interface Finish extends org.spongepowered.api.event.action.SleepingEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.action.SleepingEvent.Post.ts b/packages/sponge/src/typings/org.spongepowered.api.event.action.SleepingEvent.Post.ts new file mode 100644 index 00000000..e947a34a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.action.SleepingEvent.Post.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace SleepingEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.action.SleepingEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets whether the spawn transform for the human was set. + *The case that spawn may have not been set includes:
+ *This may have not been set by the event, so checking + * {@link #isSpawnSet()} is advisable. If spawn has not been set, + * it will return {@link Optional#empty()}.
+ */ + // @ts-ignore + getSpawnTransform(): any; + /** + * Sets the new spawn transform of the human leaving the bed. + *If spawn {@link #isSpawnSet()} was not in fact set by this event, + * this does not override the return value. The given spawn should be + * a valid location.
+ */ + // @ts-ignore + setSpawnTransform(transform: org.spongepowered.api.entity.Transform): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.action.SleepingEvent.Pre.ts b/packages/sponge/src/typings/org.spongepowered.api.event.action.SleepingEvent.Pre.ts new file mode 100644 index 00000000..0bb4a8ea --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.action.SleepingEvent.Pre.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace SleepingEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.action.SleepingEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.action.SleepingEvent.Tick.ts b/packages/sponge/src/typings/org.spongepowered.api.event.action.SleepingEvent.Tick.ts new file mode 100644 index 00000000..27d1035d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.action.SleepingEvent.Tick.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace SleepingEvent { + // @ts-ignore + interface Tick extends org.spongepowered.api.event.action.SleepingEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.action.SleepingEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.action.SleepingEvent.ts new file mode 100644 index 00000000..f58e2e1a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.action.SleepingEvent.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + // @ts-ignore + interface SleepingEvent extends org.spongepowered.api.event.entity.TargetEntityEvent { + /** + * Gets the {@link BlockSnapshot} of the bed being used to sleep. + */ + // @ts-ignore + getBed(): org.spongepowered.api.block.BlockSnapshot; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.advancement.AdvancementEvent.Grant.ts b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.AdvancementEvent.Grant.ts new file mode 100644 index 00000000..c953fa59 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.AdvancementEvent.Grant.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace AdvancementEvent { + // @ts-ignore + interface Grant extends org.spongepowered.api.event.advancement.AdvancementEvent, org.spongepowered.api.event.message.MessageChannelEvent { + /** + * Gets the {@link Instant} at which the {@link Advancement} + * was unlocked. + */ + // @ts-ignore + getTime(): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.advancement.AdvancementEvent.Revoke.ts b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.AdvancementEvent.Revoke.ts new file mode 100644 index 00000000..8d4e4331 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.AdvancementEvent.Revoke.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace AdvancementEvent { + // @ts-ignore + interface Revoke extends org.spongepowered.api.event.advancement.AdvancementEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.advancement.AdvancementEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.AdvancementEvent.ts new file mode 100644 index 00000000..05e88bbe --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.AdvancementEvent.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + // @ts-ignore + interface AdvancementEvent extends org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + /** + * Gets the {@link Advancement} that is being targeted. + */ + // @ts-ignore + getAdvancement(): org.spongepowered.api.advancement.Advancement; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.advancement.AdvancementTreeEvent.GenerateLayout.ts b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.AdvancementTreeEvent.GenerateLayout.ts new file mode 100644 index 00000000..767d7426 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.AdvancementTreeEvent.GenerateLayout.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace AdvancementTreeEvent { + // @ts-ignore + interface GenerateLayout extends org.spongepowered.api.event.advancement.AdvancementTreeEvent { + /** + * Gets the {@link TreeLayout} that got generated. + */ + // @ts-ignore + getLayout(): org.spongepowered.api.advancement.TreeLayout; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.advancement.AdvancementTreeEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.AdvancementTreeEvent.ts new file mode 100644 index 00000000..d739b2ef --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.AdvancementTreeEvent.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + // @ts-ignore + interface AdvancementTreeEvent extends org.spongepowered.api.event.Event { + /** + * Gets the {@link AdvancementTree}. + */ + // @ts-ignore + getTree(): org.spongepowered.api.advancement.AdvancementTree; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Grant.ts b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Grant.ts new file mode 100644 index 00000000..e520292c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Grant.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace CriterionEvent { + // @ts-ignore + interface Grant extends org.spongepowered.api.event.advancement.CriterionEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link Instant} at which the {@link AdvancementCriterion} + * was unlocked. + */ + // @ts-ignore + getTime(): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Revoke.ts b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Revoke.ts new file mode 100644 index 00000000..1d183470 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Revoke.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace CriterionEvent { + // @ts-ignore + interface Revoke extends org.spongepowered.api.event.advancement.CriterionEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Score.Change.ts b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Score.Change.ts new file mode 100644 index 00000000..310ff69d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Score.Change.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace CriterionEvent { + namespace Score { + // @ts-ignore + interface Change extends org.spongepowered.api.event.advancement.CriterionEvent.Score, org.spongepowered.api.event.Cancellable { + /** + * Gets the previous score. + */ + // @ts-ignore + getPreviousScore(): number; + /** + * Gets the new score. + */ + // @ts-ignore + getNewScore(): number; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Score.Grant.ts b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Score.Grant.ts new file mode 100644 index 00000000..4f5612d0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Score.Grant.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace CriterionEvent { + namespace Score { + // @ts-ignore + interface Grant extends org.spongepowered.api.event.advancement.CriterionEvent.Score.Change, org.spongepowered.api.event.advancement.CriterionEvent.Grant { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Score.Revoke.ts b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Score.Revoke.ts new file mode 100644 index 00000000..e4f9899e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Score.Revoke.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace CriterionEvent { + namespace Score { + // @ts-ignore + interface Revoke extends org.spongepowered.api.event.advancement.CriterionEvent.Score.Change, org.spongepowered.api.event.advancement.CriterionEvent.Revoke { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Score.ts b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Score.ts new file mode 100644 index 00000000..6ba0697f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Score.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace CriterionEvent { + // @ts-ignore + interface Score extends org.spongepowered.api.event.advancement.CriterionEvent { + // @ts-ignore + getCriterion(): org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Trigger.ts b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Trigger.ts new file mode 100644 index 00000000..ea4789bf --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.Trigger.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace CriterionEvent { + // @ts-ignore + interface Trigger extends org.spongepowered.api.event.advancement.CriterionEvent, org.spongepowered.api.event.GenericEvent { + /** + * Gets the {@link FilteredTrigger} + * that is being processed. + */ + // @ts-ignore + getTrigger(): org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger; + /** + * Gets the result of the trigger event. + */ + // @ts-ignore + getResult(): boolean; + /** + * Sets the result of the trigger event. + */ + // @ts-ignore + setResult(result: boolean): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.ts new file mode 100644 index 00000000..5d872ceb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.advancement.CriterionEvent.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + // @ts-ignore + interface CriterionEvent extends org.spongepowered.api.event.advancement.AdvancementEvent { + /** + * Gets the {@link AdvancementCriterion} that was met. + */ + // @ts-ignore + getCriterion(): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Break.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Break.ts new file mode 100644 index 00000000..8b3c6ab3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Break.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace ChangeBlockEvent { + // @ts-ignore + interface Break extends org.spongepowered.api.event.block.ChangeBlockEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Decay.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Decay.ts new file mode 100644 index 00000000..c7f48835 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Decay.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace ChangeBlockEvent { + // @ts-ignore + interface Decay extends org.spongepowered.api.event.block.ChangeBlockEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Grow.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Grow.ts new file mode 100644 index 00000000..4e1c50f8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Grow.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace ChangeBlockEvent { + // @ts-ignore + interface Grow extends org.spongepowered.api.event.block.ChangeBlockEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Modify.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Modify.ts new file mode 100644 index 00000000..76d94928 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Modify.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace ChangeBlockEvent { + // @ts-ignore + interface Modify extends org.spongepowered.api.event.block.ChangeBlockEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Place.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Place.ts new file mode 100644 index 00000000..bc576f6a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Place.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace ChangeBlockEvent { + // @ts-ignore + interface Place extends org.spongepowered.api.event.block.ChangeBlockEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Post.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Post.ts new file mode 100644 index 00000000..4d61975e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Post.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace ChangeBlockEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.block.ChangeBlockEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Pre.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Pre.ts new file mode 100644 index 00000000..0a641685 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.Pre.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace ChangeBlockEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Represents a list of one or more {@link Location}'s where + * {@link BlockState} changes can occur. + *Canceling this event will prevent block logic from running + * and also stop {@link BlockSnapshot}'s from being generated.
+ *Note: This event is not intended to always be fired before + * changing a {@link BlockState} but rather it is primarily used to + * prevent one or more {@link BlockState}'s from being changed.
+ */ + // @ts-ignore + getLocations(): any[] /*java.util.List*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.ts new file mode 100644 index 00000000..d04449da --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.ChangeBlockEvent.ts @@ -0,0 +1,36 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + // @ts-ignore + interface ChangeBlockEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets a list of the {@link Transaction}s for this event. If a + * transaction is requested to be marked as "invalid", + * {@link Transaction#setValid(boolean)} can be used. + */ + // @ts-ignore + getTransactions(): any[] /*java.util.List*/; + /** + * Applies the provided {@link Predicate} to the {@link List} of + * {@link Transaction}s from {@link #getTransactions()} such that + * any time that {@link Predicate#test(Object)} returnsfalse
+ * on the location of the {@link Transaction}, the {@link Transaction} is
+ * marked as "invalid" and will not apply post event.
+ * {@link Transaction#getOriginal()} is used to get the {@link Location}
+ */ + // @ts-ignore + filter(predicate: any): any[] /*java.util.List*/; + /** + * Invalidates the list as such that all {@link Transaction}s are + * marked as "invalid" and will not apply post event. + */ + // @ts-ignore + filterAll(): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.CollideBlockEvent.Impact.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.CollideBlockEvent.Impact.ts new file mode 100644 index 00000000..0e243424 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.CollideBlockEvent.Impact.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace CollideBlockEvent { + // @ts-ignore + interface Impact extends org.spongepowered.api.event.block.CollideBlockEvent, org.spongepowered.api.event.action.CollideEvent.Impact { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.CollideBlockEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.CollideBlockEvent.ts new file mode 100644 index 00000000..2d40209b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.CollideBlockEvent.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + // @ts-ignore + interface CollideBlockEvent extends org.spongepowered.api.event.action.CollideEvent { + /** + * Gets the target {@link Location} being interacted with. + */ + // @ts-ignore + getTargetLocation(): org.spongepowered.api.world.Location; + /** + * Gets the target {@link BlockState} being interacted with. + */ + // @ts-ignore + getTargetBlock(): org.spongepowered.api.block.BlockState; + /** + * Gets the target "side" of the {@link BlockState} being interacted with + * or {@link Direction#NONE} if not known. + */ + // @ts-ignore + getTargetSide(): org.spongepowered.api.util.Direction; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.Primary.MainHand.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.Primary.MainHand.ts new file mode 100644 index 00000000..466cc4df --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.Primary.MainHand.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace InteractBlockEvent { + namespace Primary { + // @ts-ignore + interface MainHand extends org.spongepowered.api.event.block.InteractBlockEvent.Primary { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.Primary.OffHand.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.Primary.OffHand.ts new file mode 100644 index 00000000..b243186d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.Primary.OffHand.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace InteractBlockEvent { + namespace Primary { + // @ts-ignore + interface OffHand extends org.spongepowered.api.event.block.InteractBlockEvent.Primary { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.Primary.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.Primary.ts new file mode 100644 index 00000000..1ddbee15 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.Primary.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace InteractBlockEvent { + // @ts-ignore + interface Primary extends org.spongepowered.api.event.block.InteractBlockEvent, org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.MainHand.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.MainHand.ts new file mode 100644 index 00000000..f6e09473 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.MainHand.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace InteractBlockEvent { + namespace Secondary { + // @ts-ignore + interface MainHand extends org.spongepowered.api.event.block.InteractBlockEvent.Secondary { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.OffHand.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.OffHand.ts new file mode 100644 index 00000000..d3b2e8ba --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.OffHand.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace InteractBlockEvent { + namespace Secondary { + // @ts-ignore + interface OffHand extends org.spongepowered.api.event.block.InteractBlockEvent.Secondary { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.ts new file mode 100644 index 00000000..9cb914cf --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.ts @@ -0,0 +1,68 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace InteractBlockEvent { + // @ts-ignore + interface Secondary extends org.spongepowered.api.event.block.InteractBlockEvent, org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent { + // @ts-ignore + getOriginalUseItemResult(): org.spongepowered.api.util.Tristate; + /** + * Gets the original {@link #getUseBlockResult}. + */ + // @ts-ignore + getOriginalUseBlockResult(): org.spongepowered.api.util.Tristate; + /** + * Gets whether the {@link Player#getItemInHand} should be used. + *Note: These results may differ depending on implementation.
+ */ + // @ts-ignore + getUseItemResult(): org.spongepowered.api.util.Tristate; + /** + * Gets whether the interacted {@link BlockSnapshot} should be used. + *Note: These results may differ depending on implementation.
+ */ + // @ts-ignore + getUseBlockResult(): org.spongepowered.api.util.Tristate; + /** + * Sets whether the {@link Player#getItemInHand} should be used. + *Note: These results may differ depending on implementation.
+ */ + // @ts-ignore + setUseItemResult(result: org.spongepowered.api.util.Tristate): void; + /** + * Sets whether the interacted {@link BlockSnapshot} should be used. + *Note: These results may differ depending on implementation.
+ */ + // @ts-ignore + setUseBlockResult(result: org.spongepowered.api.util.Tristate): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.ts new file mode 100644 index 00000000..77ca36df --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.InteractBlockEvent.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + // @ts-ignore + interface InteractBlockEvent extends org.spongepowered.api.event.action.InteractEvent, org.spongepowered.api.event.block.TargetBlockEvent { + /** + * Gets the target "side" of the {@link BlockState} being interacted with + * or {@link Direction#NONE} if not known. + */ + // @ts-ignore + getTargetSide(): org.spongepowered.api.util.Direction; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.NotifyNeighborBlockEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.NotifyNeighborBlockEvent.ts new file mode 100644 index 00000000..b7140790 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.NotifyNeighborBlockEvent.ts @@ -0,0 +1,37 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + // @ts-ignore + interface NotifyNeighborBlockEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the immutable {@link Map} of {@link Direction} to {@link + * BlockState} of the {@link BlockType} that would normally be + * notified of changes. + */ + // @ts-ignore + getOriginalNeighbors(): Mapfalse
, the
+ * {@link BlockState} is removed from {@link #getNeighbors()} map.
+ */
+ // @ts-ignore
+ filterDirections(predicate: any): void;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.TargetBlockEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.TargetBlockEvent.ts
new file mode 100644
index 00000000..06376c08
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.TargetBlockEvent.ts
@@ -0,0 +1,18 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace block {
+ // @ts-ignore
+ interface TargetBlockEvent extends org.spongepowered.api.event.Event {
+ /**
+ * Gets the target {@link BlockSnapshot} of this {@link Event}.
+ */
+ // @ts-ignore
+ getTargetBlock(): org.spongepowered.api.block.BlockSnapshot;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.TickBlockEvent.Random.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.TickBlockEvent.Random.ts
new file mode 100644
index 00000000..1b2b86d9
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.TickBlockEvent.Random.ts
@@ -0,0 +1,15 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace block {
+ namespace TickBlockEvent {
+ // @ts-ignore
+ interface Random extends org.spongepowered.api.event.block.TickBlockEvent {
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.TickBlockEvent.Scheduled.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.TickBlockEvent.Scheduled.ts
new file mode 100644
index 00000000..62146a0d
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.TickBlockEvent.Scheduled.ts
@@ -0,0 +1,15 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace block {
+ namespace TickBlockEvent {
+ // @ts-ignore
+ interface Scheduled extends org.spongepowered.api.event.block.TickBlockEvent {
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.TickBlockEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.TickBlockEvent.ts
new file mode 100644
index 00000000..94f9f7b3
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.TickBlockEvent.ts
@@ -0,0 +1,13 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace block {
+ // @ts-ignore
+ interface TickBlockEvent extends org.spongepowered.api.event.block.TargetBlockEvent, org.spongepowered.api.event.Cancellable {
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.BrewingEvent.Finish.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.BrewingEvent.Finish.ts
new file mode 100644
index 00000000..9b31eefe
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.BrewingEvent.Finish.ts
@@ -0,0 +1,23 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace block {
+ namespace tileentity {
+ namespace BrewingEvent {
+ // @ts-ignore
+ interface Finish extends org.spongepowered.api.event.block.tileentity.BrewingEvent {
+ /**
+ * Gets an immutable {@link List} of {@link ItemStackSnapshot}s that are the result
+ * of the brew.
+ */
+ // @ts-ignore
+ getBrewedItemStacks(): any[] /*java.util.List*/;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.BrewingEvent.Interrupt.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.BrewingEvent.Interrupt.ts
new file mode 100644
index 00000000..a6d6002a
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.BrewingEvent.Interrupt.ts
@@ -0,0 +1,23 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace block {
+ namespace tileentity {
+ namespace BrewingEvent {
+ // @ts-ignore
+ interface Interrupt extends org.spongepowered.api.event.block.tileentity.BrewingEvent {
+ /**
+ * Gets an immutable {@link List} of {@link ItemStackSnapshot}s that are the result
+ * of the brew.
+ */
+ // @ts-ignore
+ getBrewedItemStacks(): any[] /*java.util.List*/;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.BrewingEvent.Start.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.BrewingEvent.Start.ts
new file mode 100644
index 00000000..d6010d25
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.BrewingEvent.Start.ts
@@ -0,0 +1,17 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace block {
+ namespace tileentity {
+ namespace BrewingEvent {
+ // @ts-ignore
+ interface Start extends org.spongepowered.api.event.block.tileentity.BrewingEvent, org.spongepowered.api.event.item.inventory.AffectItemStackEvent {
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.BrewingEvent.Tick.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.BrewingEvent.Tick.ts
new file mode 100644
index 00000000..e2f8fa44
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.BrewingEvent.Tick.ts
@@ -0,0 +1,17 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace block {
+ namespace tileentity {
+ namespace BrewingEvent {
+ // @ts-ignore
+ interface Tick extends org.spongepowered.api.event.block.tileentity.BrewingEvent, org.spongepowered.api.event.item.inventory.AffectItemStackEvent {
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.BrewingEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.BrewingEvent.ts
new file mode 100644
index 00000000..7410e96e
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.BrewingEvent.ts
@@ -0,0 +1,22 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace block {
+ namespace tileentity {
+ // @ts-ignore
+ interface BrewingEvent extends org.spongepowered.api.event.block.tileentity.TargetTileEntityEvent {
+ // @ts-ignore
+ getTargetTile(): org.spongepowered.api.block.tileentity.carrier.BrewingStand;
+ /**
+ * Gets the {@link ItemStackSnapshot} as the ingredient used.
+ */
+ // @ts-ignore
+ getIngredient(): org.spongepowered.api.item.inventory.ItemStackSnapshot;
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.ChangeSignEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.ChangeSignEvent.ts
new file mode 100644
index 00000000..9360b52b
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.ChangeSignEvent.ts
@@ -0,0 +1,30 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace block {
+ namespace tileentity {
+ // @ts-ignore
+ interface ChangeSignEvent extends org.spongepowered.api.event.block.tileentity.TargetTileEntityEvent, org.spongepowered.api.event.Cancellable {
+ /**
+ * Gets the target {@link Sign} being changed.
+ */
+ // @ts-ignore
+ getTargetTile(): org.spongepowered.api.block.tileentity.Sign;
+ /**
+ * Gets the original {@link ImmutableSignData} before event changes.
+ */
+ // @ts-ignore
+ getOriginalText(): org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableSignData;
+ /**
+ * Gets the {@link SignData} to be applied to the {@link Sign} after event resolution.
+ */
+ // @ts-ignore
+ getText(): org.spongepowered.api.data.manipulator.mutable.tileentity.SignData;
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.SmeltEvent.ConsumeFuel.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.SmeltEvent.ConsumeFuel.ts
new file mode 100644
index 00000000..f8fea882
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.SmeltEvent.ConsumeFuel.ts
@@ -0,0 +1,17 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace block {
+ namespace tileentity {
+ namespace SmeltEvent {
+ // @ts-ignore
+ interface ConsumeFuel extends org.spongepowered.api.event.block.tileentity.SmeltEvent, org.spongepowered.api.event.item.inventory.AffectItemStackEvent {
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.SmeltEvent.Finish.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.SmeltEvent.Finish.ts
new file mode 100644
index 00000000..bd26d1fe
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.SmeltEvent.Finish.ts
@@ -0,0 +1,23 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace block {
+ namespace tileentity {
+ namespace SmeltEvent {
+ // @ts-ignore
+ interface Finish extends org.spongepowered.api.event.block.tileentity.SmeltEvent {
+ /**
+ * Gets an immutable {@link List} of {@link ItemStackSnapshot}s that are the result of the smelt.
+ * Always exactly one item.
+ */
+ // @ts-ignore
+ getSmeltedItems(): any[] /*java.util.List*/;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.SmeltEvent.Interrupt.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.SmeltEvent.Interrupt.ts
new file mode 100644
index 00000000..7ff3dde2
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.SmeltEvent.Interrupt.ts
@@ -0,0 +1,23 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace block {
+ namespace tileentity {
+ namespace SmeltEvent {
+ // @ts-ignore
+ interface Interrupt extends org.spongepowered.api.event.block.tileentity.SmeltEvent {
+ /**
+ * Gets an immutable {@link List} of {@link ItemStackSnapshot}s that are the result
+ * of the smelt.
+ */
+ // @ts-ignore
+ getSmeltedItems(): any[] /*java.util.List*/;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.SmeltEvent.Start.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.SmeltEvent.Start.ts
new file mode 100644
index 00000000..c01f7fd2
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.SmeltEvent.Start.ts
@@ -0,0 +1,17 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace block {
+ namespace tileentity {
+ namespace SmeltEvent {
+ // @ts-ignore
+ interface Start extends org.spongepowered.api.event.block.tileentity.SmeltEvent, org.spongepowered.api.event.item.inventory.AffectItemStackEvent {
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.SmeltEvent.Tick.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.SmeltEvent.Tick.ts
new file mode 100644
index 00000000..e531e118
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.SmeltEvent.Tick.ts
@@ -0,0 +1,17 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace block {
+ namespace tileentity {
+ namespace SmeltEvent {
+ // @ts-ignore
+ interface Tick extends org.spongepowered.api.event.block.tileentity.SmeltEvent, org.spongepowered.api.event.item.inventory.AffectItemStackEvent {
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.SmeltEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.SmeltEvent.ts
new file mode 100644
index 00000000..d6321d9d
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.SmeltEvent.ts
@@ -0,0 +1,22 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace block {
+ namespace tileentity {
+ // @ts-ignore
+ interface SmeltEvent extends org.spongepowered.api.event.block.tileentity.TargetTileEntityEvent {
+ // @ts-ignore
+ getTargetTile(): org.spongepowered.api.block.tileentity.carrier.Furnace;
+ /**
+ * Gets the fuel represented as an {@link ItemStackSnapshot}.
+ */
+ // @ts-ignore
+ getFuel(): org.spongepowered.api.item.inventory.ItemStackSnapshot;
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.TargetTileEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.TargetTileEntityEvent.ts
new file mode 100644
index 00000000..f7bdb6bf
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.block.tileentity.TargetTileEntityEvent.ts
@@ -0,0 +1,20 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace block {
+ namespace tileentity {
+ // @ts-ignore
+ interface TargetTileEntityEvent extends org.spongepowered.api.event.Event {
+ /**
+ * Gets the target tile entity.
+ */
+ // @ts-ignore
+ getTargetTile(): org.spongepowered.api.block.tileentity.TileEntity;
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.Cause.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.Cause.Builder.ts
new file mode 100644
index 00000000..0cfb8888
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.Cause.Builder.ts
@@ -0,0 +1,39 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace cause {
+ namespace Cause {
+ // @ts-ignore
+ class Builder implements org.spongepowered.api.util.ResettableBuilder {
+ /**
+ * Appends the specified object to the cause.
+ */
+ // @ts-ignore
+ public append(cause: any): org.spongepowered.api.event.cause.Cause.Builder;
+ /**
+ * Inserts the specified object into the cause.
+ */
+ // @ts-ignore
+ public insert(position: number, cause: any): org.spongepowered.api.event.cause.Cause.Builder;
+ /**
+ * Appends all specified objects onto the cause.
+ */
+ // @ts-ignore
+ public appendAll(causes: any[] /*java.util.Collection*/): org.spongepowered.api.event.cause.Cause.Builder;
+ /**
+ * Constructs a new {@link Cause} with information added to the builder.
+ */
+ // @ts-ignore
+ public build(ctx: org.spongepowered.api.event.cause.EventContext): org.spongepowered.api.event.cause.Cause;
+ // @ts-ignore
+ public from(value: org.spongepowered.api.event.cause.Cause): org.spongepowered.api.event.cause.Cause.Builder;
+ // @ts-ignore
+ public reset(): org.spongepowered.api.event.cause.Cause.Builder;
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.Cause.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.Cause.ts
new file mode 100644
index 00000000..3df2ae3a
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.Cause.ts
@@ -0,0 +1,127 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace cause {
+ // @ts-ignore
+ class Cause {
+ /**
+ * Creates a new {@link Builder} to make a new {@link Cause}.
+ */
+ // @ts-ignore
+ public static builder(): org.spongepowered.api.event.cause.Cause.Builder;
+ /**
+ * Constructs a new cause with the specified event context and cause.
+ */
+ // @ts-ignore
+ public static of(ctx: org.spongepowered.api.event.cause.EventContext, cause: any): org.spongepowered.api.event.cause.Cause;
+ /**
+ * Constructs a new cause with the specified event context and causes.
+ */
+ // @ts-ignore
+ public static of(ctx: org.spongepowered.api.event.cause.EventContext, cause: any, causes: any): org.spongepowered.api.event.cause.Cause;
+ /**
+ * Constructs a new cause with the specified event context and causes.
+ */
+ // @ts-ignore
+ public static of(ctx: org.spongepowered.api.event.cause.EventContext, iterable: any): org.spongepowered.api.event.cause.Cause;
+ /**
+ * Gets the event context relating to this cause.
+ */
+ // @ts-ignore
+ public getContext(): org.spongepowered.api.event.cause.EventContext;
+ /**
+ * Gets the root {@link Object} of this cause.
+ */
+ // @ts-ignore
+ public root(): any;
+ /**
+ * Gets the first T
object of this {@link Cause}, if available.
+ */
+ // @ts-ignore
+ public first(target: any): any;
+ /**
+ * Gets the last object instance of the {@link Class} of type
+ * T
.
+ */
+ // @ts-ignore
+ public last(target: any): any;
+ /**
+ * Gets the object immediately before the object that is an instance of the
+ * {@link Class} passed in.
+ */
+ // @ts-ignore
+ public before(clazz: any): any;
+ /**
+ * Gets the object immediately after the object that is an instance of the
+ * {@link Class} passed in.
+ */
+ // @ts-ignore
+ public after(clazz: any): any;
+ /**
+ * Returns whether the target class matches any object of this {@link Cause}
+ * .
+ */
+ // @ts-ignore
+ public containsType(target: any): boolean;
+ /**
+ * Checks if this cause contains of any of the provided {@link Object}. This
+ * is the equivalent to checking based on {@link #equals(Object)} for each
+ * object in this cause.
+ */
+ // @ts-ignore
+ public contains(object: any): boolean;
+ /**
+ * Gets an {@link ImmutableList} of all objects that are instances of the
+ * given {@link Class} type T
.
+ */
+ // @ts-ignore
+ public allOf(target: any): any[] /*java.util.List*/;
+ /**
+ * Gets an immutable {@link List} with all object causes that are not
+ * instances of the provided {@link Class}.
+ */
+ // @ts-ignore
+ public noneOf(ignoredClass: any): any[] /*java.util.List*/;
+ /**
+ * Gets an {@link List} of all causes within this {@link Cause}.
+ */
+ // @ts-ignore
+ public all(): any[] /*java.util.List*/;
+ /**
+ * Creates a new {@link Cause} where the objects are added at the end of the
+ * cause array of objects.
+ */
+ // @ts-ignore
+ public with(additional: any): org.spongepowered.api.event.cause.Cause;
+ /**
+ * Creates a new {@link Cause} where the objects are added at the end of the
+ * cause array of objects.
+ */
+ // @ts-ignore
+ public with(additional: any, additionals: any): org.spongepowered.api.event.cause.Cause;
+ /**
+ * Creates a new {@link Cause} where the objects are added at the end of the
+ * cause array of objects.
+ */
+ // @ts-ignore
+ public with(iterable: any): org.spongepowered.api.event.cause.Cause;
+ /**
+ * Merges this cause with the other cause.
+ */
+ // @ts-ignore
+ public with(cause: org.spongepowered.api.event.cause.Cause): org.spongepowered.api.event.cause.Cause;
+ // @ts-ignore
+ public iterator(): any;
+ // @ts-ignore
+ public equals(object: any): boolean;
+ // @ts-ignore
+ public hashCode(): number;
+ // @ts-ignore
+ public toString(): string;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.EventContext.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.EventContext.Builder.ts
new file mode 100644
index 00000000..c1cbcfad
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.EventContext.Builder.ts
@@ -0,0 +1,29 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace cause {
+ namespace EventContext {
+ // @ts-ignore
+ class Builder implements org.spongepowered.api.util.ResettableBuilder {
+ /**
+ * Adds the given context key value pair to the context.
+ */
+ // @ts-ignore
+ public add(key: org.spongepowered.api.event.cause.EventContextKey, value: any): org.spongepowered.api.event.cause.EventContext.Builder;
+ // @ts-ignore
+ public from(value: org.spongepowered.api.event.cause.EventContext): org.spongepowered.api.event.cause.EventContext.Builder;
+ // @ts-ignore
+ public reset(): org.spongepowered.api.event.cause.EventContext.Builder;
+ /**
+ * Creates a new {@link EventContext}.
+ */
+ // @ts-ignore
+ public build(): org.spongepowered.api.event.cause.EventContext;
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.EventContext.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.EventContext.ts
new file mode 100644
index 00000000..a545078c
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.EventContext.ts
@@ -0,0 +1,62 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace event {
+ namespace cause {
+ // @ts-ignore
+ class EventContext {
+ /**
+ * Gets an empty context.
+ */
+ // @ts-ignore
+ public static empty(): org.spongepowered.api.event.cause.EventContext;
+ /**
+ * Creates a new {@link EventContext} from the given map of entries.
+ */
+ // @ts-ignore
+ public static of(entries: MapIf the key is not available, {@link NoSuchElementException} will be + * thrown.
+ */ + // @ts-ignore + public require(key: org.spongepowered.api.event.cause.EventContextKey): any; + /** + * Gets whether the provided {@link EventContextKey} is included in this + * context. + */ + // @ts-ignore + public containsKey(key: org.spongepowered.api.event.cause.EventContextKey): boolean; + /** + * Gets all {@link EventContextKey}s present in this context. + */ + // @ts-ignore + public keySet(): any[] /*java.util.Set*/; + /** + * Gets this event context as a {@link Map} of EventContextKeys to Objects. + */ + // @ts-ignore + public asMap(): MapThis sets the exhaustion increase caused + * by this source to 0. You can override this + * with {@link #exhaustion(double)}.
+ */ + // @ts-ignore + bypassesArmor(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + /** + * Sets this {@link DamageSource} as an explosion. + */ + // @ts-ignore + explosion(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + /** + * Sets whether this {@link DamageSource}'s damage is absolute and + * will ignore potion effects and enchantments. + *This sets the exhaustion increase caused + * by this source to 0. You can override this + * with {@link #exhaustion(double)}.
+ */ + // @ts-ignore + absolute(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + /** + * Sets this {@link DamageSource} as considered to be magical + * damage. An example is potions. + */ + // @ts-ignore + magical(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + /** + * Sets this {@link DamageSource} as considered to damage creative, or + * otherwise "normally unharmable" players. + */ + // @ts-ignore + creative(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + /** + * Sets the amount of exhaustion this {@link DamageSource} will + * add to the entity, generally only to players. + *In vanilla gameplay, the default is 0.1, unless if the damage + * is absolute or bypasses armor, where the exhaustion gets set to 0. + * This builder follows this mechanic, but if you set the exhaustion + * through this method that will be overridden.
+ *If you don't set this exhaustion manually, calling + * {@link #absolute()} or {@link #bypassesArmor()} will + * set this 0 and if you don't this will default to 0.1.
+ */ + // @ts-ignore + exhaustion(exhaustion: number): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + /** + * Sets the {@link DamageType} of this source. + *This is required to be set.
+ */ + // @ts-ignore + type(damageType: org.spongepowered.api.event.cause.entity.damage.DamageType): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + /** + * Builds an instance of this damage source, based on + * the values you inputted into the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.DamageSource.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.DamageSource.ts new file mode 100644 index 00000000..bd3a9049 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.DamageSource.ts @@ -0,0 +1,74 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + // @ts-ignore + interface DamageSource { + /** + * Creates a new {@link Builder builder} to build a {@link DamageSource}. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.Builder; + /** + * Gets the {@link DamageType} of this source. + */ + // @ts-ignore + getType(): org.spongepowered.api.event.cause.entity.damage.DamageType; + /** + * Gets whether this {@link DamageSource}'s damage is absolute and + * will ignore potion effects and enchantments. + */ + // @ts-ignore + isAbsolute(): boolean; + /** + * Gets whether this {@link DamageSource} will deal damage that + * bypasses any armor. + */ + // @ts-ignore + isBypassingArmor(): boolean; + /** + * Gets whether this {@link DamageSource}'s damage is scaled by + * {@link Difficulty}. + */ + // @ts-ignore + isScaledByDifficulty(): boolean; + /** + * Gets whether this {@link DamageSource} is an explosion. + */ + // @ts-ignore + isExplosive(): boolean; + /** + * Gets whether this {@link DamageSource} is considered to be magical + * damage, such as potions, or other sources. + */ + // @ts-ignore + isMagic(): boolean; + /** + * Gets whether this {@link DamageSource} is considered to damage creative, or + * otherwise "normally unharmable" players. Usually associated with + * {@link DamageTypes#VOID}. + */ + // @ts-ignore + doesAffectCreative(): boolean; + /** + * Gets the amount of exhaustion this {@link DamageSource} will + * add to the entity, generally only to players. + *In vanilla gameplay this is set to 0.1 by default and + * overridden to 0 if the source is set to be absolute or + * as overriding armor.
+ */ + // @ts-ignore + getExhaustion(): number; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.DamageSources.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.DamageSources.ts new file mode 100644 index 00000000..e4ee7862 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.DamageSources.ts @@ -0,0 +1,41 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + // @ts-ignore + class DamageSources { + // @ts-ignore + public static DRAGON_BREATH: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static DROWNING: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static FALLING: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static FIRE_TICK: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static GENERIC: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static MAGIC: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static MELTING: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static POISON: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static STARVATION: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static VOID: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static WITHER: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.Builder.ts new file mode 100644 index 00000000..33f4fa37 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.Builder.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace EntityDamageSource { + // @ts-ignore + interface Builder extends org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder.ts new file mode 100644 index 00000000..f1023998 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace EntityDamageSource { + // @ts-ignore + interface EntityDamageSourceBuilder extends org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder { + /** + * Sets the {@link Entity} as the damage "source". + */ + // @ts-ignore + entity(entity: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.ts new file mode 100644 index 00000000..7deff3f6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + // @ts-ignore + interface EntityDamageSource extends org.spongepowered.api.event.cause.entity.damage.source.DamageSource { + /** + * Creates a new {@link Builder} for building an {@link EntityDamageSource}. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.Builder; + /** + * Gets the {@link Entity} that is the source. + */ + // @ts-ignore + getSource(): org.spongepowered.api.entity.Entity; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.FallingBlockDamageSource.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.FallingBlockDamageSource.Builder.ts new file mode 100644 index 00000000..a8103d0f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.FallingBlockDamageSource.Builder.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace FallingBlockDamageSource { + // @ts-ignore + interface Builder extends org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder { + /** + * Sets the {@link ImmutableFallingBlockData} for the damage source. + */ + // @ts-ignore + fallingBlock(fallingBlock: org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFallingBlockData): org.spongepowered.api.event.cause.entity.damage.source.FallingBlockDamageSource.Builder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.FallingBlockDamageSource.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.FallingBlockDamageSource.ts new file mode 100644 index 00000000..75724155 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.FallingBlockDamageSource.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + // @ts-ignore + interface FallingBlockDamageSource extends org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource { + /** + * Creates a new {@link Builder} for constructing a new {@link FallingBlockDamageSource}. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.damage.source.FallingBlockDamageSource.Builder; + // @ts-ignore + getSource(): org.spongepowered.api.entity.FallingBlock; + /** + * Gets the {@link ImmutableFallingBlockData} backing the + * {@link FallingBlock}. + */ + // @ts-ignore + getFallingBlockData(): org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFallingBlockData; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder.ts new file mode 100644 index 00000000..18a31e20 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace IndirectEntityDamageSource { + // @ts-ignore + interface AbstractBuilder extends org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder { + /** + * Sets the {@link Entity} that is indirectly damaging. + */ + // @ts-ignore + proxySource(proxy: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.Builder.ts new file mode 100644 index 00000000..dd1fe1b8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.Builder.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace IndirectEntityDamageSource { + // @ts-ignore + interface Builder extends org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.ts new file mode 100644 index 00000000..7c8c1262 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + // @ts-ignore + interface IndirectEntityDamageSource extends org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource { + /** + * Creates a new {@link Builder} for constructing + * {@link IndirectEntityDamageSource}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.Builder; + /** + * Gets the {@link Entity} that is indirectly using the {@link #getSource()} + * to cause damage. + */ + // @ts-ignore + getIndirectSource(): org.spongepowered.api.entity.Entity; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSource.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSource.ts new file mode 100644 index 00000000..24f786ee --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSource.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace common { + // @ts-ignore + abstract class AbstractDamageSource implements org.spongepowered.api.event.cause.entity.damage.source.DamageSource { + constructor(builder: org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSourceBuilder) + // @ts-ignore + public getType(): org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public isAbsolute(): boolean; + // @ts-ignore + public isBypassingArmor(): boolean; + // @ts-ignore + public isScaledByDifficulty(): boolean; + // @ts-ignore + public isExplosive(): boolean; + // @ts-ignore + public isMagic(): boolean; + // @ts-ignore + public doesAffectCreative(): boolean; + // @ts-ignore + public getExhaustion(): number; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSourceBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSourceBuilder.ts new file mode 100644 index 00000000..c3c33e15 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSourceBuilder.ts @@ -0,0 +1,48 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace common { + // @ts-ignore + abstract class AbstractDamageSourceBuilder implements org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder { + constructor() + // @ts-ignore + protected scales: boolean; + // @ts-ignore + protected bypasses: boolean; + // @ts-ignore + protected damageType: org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public scalesWithDifficulty(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + // @ts-ignore + public bypassesArmor(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + // @ts-ignore + public explosion(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + // @ts-ignore + public absolute(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + // @ts-ignore + public magical(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + // @ts-ignore + public creative(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + // @ts-ignore + public exhaustion(exhaustion: number): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + // @ts-ignore + public type(damageType: org.spongepowered.api.event.cause.entity.damage.DamageType): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + // @ts-ignore + public from(value: org.spongepowered.api.event.cause.entity.damage.source.DamageSource): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + // @ts-ignore + public reset(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder.ts new file mode 100644 index 00000000..83ee37bc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace common { + namespace AbstractEntityDamageSource { + // @ts-ignore + abstract class AbstractEntityDamageSourceBuilder extends org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSourceBuilder implements org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder { + constructor() + // @ts-ignore + protected source: org.spongepowered.api.entity.Entity; + // @ts-ignore + public entity(entity: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder; + // @ts-ignore + public reset(): org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder; + } + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.ts new file mode 100644 index 00000000..52df3e95 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace common { + // @ts-ignore + abstract class AbstractEntityDamageSource implements org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource { + constructor(builder: org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder) + // @ts-ignore + public getSource(): org.spongepowered.api.entity.Entity; + // @ts-ignore + public getType(): org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public isAbsolute(): boolean; + // @ts-ignore + public isBypassingArmor(): boolean; + // @ts-ignore + public isScaledByDifficulty(): boolean; + // @ts-ignore + public isExplosive(): boolean; + // @ts-ignore + public isMagic(): boolean; + // @ts-ignore + public doesAffectCreative(): boolean; + // @ts-ignore + public getExhaustion(): number; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractIndirectEntityDamageSource.AbstractIndirectEntityDamageSourceBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractIndirectEntityDamageSource.AbstractIndirectEntityDamageSourceBuilder.ts new file mode 100644 index 00000000..24076ffb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractIndirectEntityDamageSource.AbstractIndirectEntityDamageSourceBuilder.ts @@ -0,0 +1,34 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace common { + namespace AbstractIndirectEntityDamageSource { + // @ts-ignore + abstract class AbstractIndirectEntityDamageSourceBuilder extends org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder implements org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder { + constructor() + // @ts-ignore + protected sourceEntity: org.spongepowered.api.entity.Entity; + // @ts-ignore + protected indirect: org.spongepowered.api.entity.Entity; + // @ts-ignore + public entity(entity: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder; + // @ts-ignore + public proxySource(projectile: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder; + // @ts-ignore + public reset(): org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder; + } + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractIndirectEntityDamageSource.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractIndirectEntityDamageSource.ts new file mode 100644 index 00000000..38ab8965 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractIndirectEntityDamageSource.ts @@ -0,0 +1,42 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace common { + // @ts-ignore + abstract class AbstractIndirectEntityDamageSource implements org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource { + constructor(builder: org.spongepowered.api.event.cause.entity.damage.source.common.AbstractIndirectEntityDamageSource.AbstractIndirectEntityDamageSourceBuilder) + // @ts-ignore + public getSource(): org.spongepowered.api.entity.Entity; + // @ts-ignore + public getType(): org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public isAbsolute(): boolean; + // @ts-ignore + public isBypassingArmor(): boolean; + // @ts-ignore + public isScaledByDifficulty(): boolean; + // @ts-ignore + public isExplosive(): boolean; + // @ts-ignore + public isMagic(): boolean; + // @ts-ignore + public doesAffectCreative(): boolean; + // @ts-ignore + public getIndirectSource(): org.spongepowered.api.entity.Entity; + // @ts-ignore + public getExhaustion(): number; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.dismount.DismountType.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.dismount.DismountType.ts new file mode 100644 index 00000000..80c62179 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.dismount.DismountType.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace dismount { + // @ts-ignore + interface DismountType extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.dismount.DismountTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.dismount.DismountTypes.ts new file mode 100644 index 00000000..28b0a004 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.dismount.DismountTypes.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace dismount { + // @ts-ignore + class DismountTypes { + // @ts-ignore + public static DEATH: org.spongepowered.api.event.cause.entity.dismount.DismountType; + // @ts-ignore + public static DERAIL: org.spongepowered.api.event.cause.entity.dismount.DismountType; + // @ts-ignore + public static PLAYER: org.spongepowered.api.event.cause.entity.dismount.DismountType; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealingType.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealingType.ts new file mode 100644 index 00000000..509d3600 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealingType.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + // @ts-ignore + interface HealingType extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealingTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealingTypes.ts new file mode 100644 index 00000000..743dc6b3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealingTypes.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + // @ts-ignore + class HealingTypes { + // @ts-ignore + public static BOSS: org.spongepowered.api.event.cause.entity.health.HealingType; + // @ts-ignore + public static FOOD: org.spongepowered.api.event.cause.entity.health.HealingType; + // @ts-ignore + public static PLUGIN: org.spongepowered.api.event.cause.entity.health.HealingType; + // @ts-ignore + public static POTION: org.spongepowered.api.event.cause.entity.health.HealingType; + // @ts-ignore + public static UNDEAD: org.spongepowered.api.event.cause.entity.health.HealingType; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealthFunction.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealthFunction.ts new file mode 100644 index 00000000..97e0633b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealthFunction.ts @@ -0,0 +1,52 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + // @ts-ignore + class HealthFunction implements org.spongepowered.api.event.cause.entity.ModifierFunction { + /** + * Creates a new {@link HealthFunction} with the provided + * {@link HealthModifier}. The caveat is that the provided + * {@link DoubleUnaryOperator} is by default going to provide {@code 0} + * healing modifications. + */ + constructor(modifier: org.spongepowered.api.event.cause.entity.health.HealthModifier) + /** + * Creates a new {@link HealthFunction} with the provided + * {@link HealthModifier} and function. + */ + constructor(modifier: org.spongepowered.api.event.cause.entity.health.HealthModifier, func: any) + // @ts-ignore + public static NO_HEALTH: any; + /** + * Constructs a new health function. + */ + // @ts-ignore + public static of(first: org.spongepowered.api.event.cause.entity.health.HealthModifier, second: any): org.spongepowered.api.event.cause.entity.health.HealthFunction; + /** + * Gets the {@link HealthModifier} for this function. + */ + // @ts-ignore + public getModifier(): org.spongepowered.api.event.cause.entity.health.HealthModifier; + /** + * Gets the {@link DoubleUnaryOperator} for this function. + */ + // @ts-ignore + public getFunction(): any; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder.ts new file mode 100644 index 00000000..40058e2f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder.ts @@ -0,0 +1,45 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace HealthModifier { + // @ts-ignore + class Builder implements org.spongepowered.api.util.ResettableBuilder { + /** + * Creates a new {@link Builder}. + */ + // @ts-ignore + public static builder(): org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder; + /** + * Sets the {@link HealthModifierType} for the {@link HealthModifier} to + * build. + */ + // @ts-ignore + public type(healthModifierType: org.spongepowered.api.event.cause.entity.health.HealthModifierType): org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder; + /** + * Sets the {@link Cause} for the {@link HealthModifier} to build. + */ + // @ts-ignore + public cause(cause: org.spongepowered.api.event.cause.Cause): org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder; + /** + * Creates a new {@link HealthModifier} with this builder's provided + * {@link Cause} and {@link HealthModifierType}. + */ + // @ts-ignore + public build(): org.spongepowered.api.event.cause.entity.health.HealthModifier; + // @ts-ignore + public from(value: org.spongepowered.api.event.cause.entity.health.HealthModifier): org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder; + // @ts-ignore + public reset(): org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealthModifier.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealthModifier.ts new file mode 100644 index 00000000..264705ec --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealthModifier.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + // @ts-ignore + interface HealthModifier { + /** + * Creates a new {@link Builder} for constructing new {@link HealthModifier}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder; + /** + * Gets the {@link HealthModifierType} for this {@link HealthModifier}. + */ + // @ts-ignore + getType(): org.spongepowered.api.event.cause.entity.health.HealthModifierType; + /** + * Gets the cause of this {@link HealthModifier}. + */ + // @ts-ignore + getCause(): org.spongepowered.api.event.cause.Cause; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealthModifierType.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealthModifierType.ts new file mode 100644 index 00000000..6b17d379 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealthModifierType.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + // @ts-ignore + interface HealthModifierType extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealthModifierTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealthModifierTypes.ts new file mode 100644 index 00000000..0ab448fe --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.HealthModifierTypes.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + // @ts-ignore + class HealthModifierTypes { + // @ts-ignore + public static ABSORPTION: org.spongepowered.api.event.cause.entity.health.HealthModifierType; + // @ts-ignore + public static ARMOR: org.spongepowered.api.event.cause.entity.health.HealthModifierType; + // @ts-ignore + public static DEFENSIVE_POTION_EFFECT: org.spongepowered.api.event.cause.entity.health.HealthModifierType; + // @ts-ignore + public static DIFFICULTY: org.spongepowered.api.event.cause.entity.health.HealthModifierType; + // @ts-ignore + public static MAGIC: org.spongepowered.api.event.cause.entity.health.HealthModifierType; + // @ts-ignore + public static OFFENSIVE_POTION_EFFECT: org.spongepowered.api.event.cause.entity.health.HealthModifierType; + // @ts-ignore + public static WEAPON_ENCHANTMENT: org.spongepowered.api.event.cause.entity.health.HealthModifierType; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.Builder.ts new file mode 100644 index 00000000..7cebc1f3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.Builder.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace BlockHealingSource { + // @ts-ignore + interface Builder extends org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder { + // @ts-ignore + block(location: org.spongepowered.api.world.Location): org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.Builder; + // @ts-ignore + block(blockState: org.spongepowered.api.block.BlockSnapshot): org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.Builder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.ts new file mode 100644 index 00000000..d34c0e66 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.ts @@ -0,0 +1,34 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + // @ts-ignore + interface BlockHealingSource extends org.spongepowered.api.event.cause.entity.health.source.HealingSource { + /** + * Creates a builder for building a {@link BlockHealingSource}. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.Builder; + /** + * Gets the location of the block that acted as the healing source. + */ + // @ts-ignore + getLocation(): org.spongepowered.api.world.Location; + /** + * Gets the block snapshot that is acting as the healing source. + */ + // @ts-ignore + getBlock(): org.spongepowered.api.block.BlockSnapshot; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.Builder.ts new file mode 100644 index 00000000..2d9cefde --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.Builder.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace EntityHealingSource { + // @ts-ignore + interface Builder extends org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder.ts new file mode 100644 index 00000000..e577552c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace EntityHealingSource { + // @ts-ignore + interface EntityHealingSourceBuilder extends org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder { + // @ts-ignore + entity(entity: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.ts new file mode 100644 index 00000000..bc9b6b35 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + // @ts-ignore + interface EntityHealingSource extends org.spongepowered.api.event.cause.entity.health.source.HealingSource { + /** + * Gets a new builder to build a new {@link EntityHealingSource}. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.Builder; + /** + * Gets the source entity acting as the healing source. + */ + // @ts-ignore + getSource(): org.spongepowered.api.entity.Entity; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.HealingSource.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.HealingSource.Builder.ts new file mode 100644 index 00000000..55249d87 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.HealingSource.Builder.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace HealingSource { + // @ts-ignore + interface Builder extends org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder.ts new file mode 100644 index 00000000..4a0df715 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace HealingSource { + // @ts-ignore + interface HealingSourceBuilder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets for the built {@link HealingSource} to have scaled with + * difficulty, usually meaning that the amount is scaled. + */ + // @ts-ignore + scalesWithDifficulty(): org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder; + /** + * Sets that the built {@link HealingSource} to have been a "magical" + * source. + */ + // @ts-ignore + magical(): org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder; + /** + * Sets the {@link HealingType}. + */ + // @ts-ignore + type(healingType: org.spongepowered.api.event.cause.entity.health.HealingType): org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder; + // @ts-ignore + build(): org.spongepowered.api.event.cause.entity.health.source.HealingSource; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.HealingSource.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.HealingSource.ts new file mode 100644 index 00000000..6df064ac --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.HealingSource.ts @@ -0,0 +1,41 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + // @ts-ignore + interface HealingSource { + /** + * Creates a new {@link Builder} to construct a new {@link HealingSource}. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.health.source.HealingSource.Builder; + /** + * Gets the {@link HealingType} for this source. + */ + // @ts-ignore + getHealingType(): org.spongepowered.api.event.cause.entity.health.HealingType; + /** + * Gets whether this {@link HealingSource}'s healing amount is scaled by + * {@link Difficulty}. + */ + // @ts-ignore + isDifficultyScaled(): boolean; + /** + * Gets whether this {@link HealingSource} is considered to be magical + * healing, such as potions, or other sources. + */ + // @ts-ignore + isMagic(): boolean; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.HealingSources.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.HealingSources.ts new file mode 100644 index 00000000..8192db2c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.HealingSources.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + // @ts-ignore + class HealingSources { + // @ts-ignore + public static FOOD: org.spongepowered.api.event.cause.entity.health.source.HealingSource; + // @ts-ignore + public static GENERIC: org.spongepowered.api.event.cause.entity.health.source.HealingSource; + // @ts-ignore + public static MAGIC: org.spongepowered.api.event.cause.entity.health.source.HealingSource; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.Builder.ts new file mode 100644 index 00000000..f7dbb9ec --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.Builder.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace IndirectEntityHealingSource { + // @ts-ignore + interface Builder extends org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.IndirectEntityHealingSourceBuilder { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.IndirectEntityHealingSourceBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.IndirectEntityHealingSourceBuilder.ts new file mode 100644 index 00000000..ec805763 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.IndirectEntityHealingSourceBuilder.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace IndirectEntityHealingSource { + // @ts-ignore + interface IndirectEntityHealingSourceBuilder extends org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder { + /** + * Sets the indirect {@link Entity} that is providing healing. + */ + // @ts-ignore + indirectEntity(entity: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.IndirectEntityHealingSourceBuilder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.ts new file mode 100644 index 00000000..8af69a53 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + // @ts-ignore + interface IndirectEntityHealingSource extends org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource { + /** + * Creates a new {@link Builder} for constructing an {@link IndirectEntityHealingSource}. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.Builder; + /** + * Gets the {@link Entity} indirect source of healing. + */ + // @ts-ignore + getIndirectSource(): org.spongepowered.api.entity.Entity; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.common.AbstractEntityHealingSource.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.common.AbstractEntityHealingSource.ts new file mode 100644 index 00000000..1180ff04 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.common.AbstractEntityHealingSource.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace common { + // @ts-ignore + class AbstractEntityHealingSource extends org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSource implements org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource { + /** + * Create an {@link EntityHealingSource} based on this abstract one. + */ + constructor(builder: org.spongepowered.api.event.cause.entity.health.source.common.AbstractEntityHealingSourceBuilder) + // @ts-ignore + public getSource(): org.spongepowered.api.entity.Entity; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.common.AbstractEntityHealingSourceBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.common.AbstractEntityHealingSourceBuilder.ts new file mode 100644 index 00000000..816178d1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.common.AbstractEntityHealingSourceBuilder.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace common { + // @ts-ignore + abstract class AbstractEntityHealingSourceBuilder extends org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSourceBuilder implements org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder { + constructor() + // @ts-ignore + public from(value: org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource): org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder; + // @ts-ignore + public reset(): org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder; + // @ts-ignore + public entity(entity: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSource.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSource.ts new file mode 100644 index 00000000..55d51679 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSource.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace common { + // @ts-ignore + abstract class AbstractHealingSource implements org.spongepowered.api.event.cause.entity.health.source.HealingSource { + constructor(builder: org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSourceBuilder) + // @ts-ignore + public getHealingType(): org.spongepowered.api.event.cause.entity.health.HealingType; + // @ts-ignore + public isDifficultyScaled(): boolean; + // @ts-ignore + public isMagic(): boolean; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSourceBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSourceBuilder.ts new file mode 100644 index 00000000..dd6057e2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSourceBuilder.ts @@ -0,0 +1,36 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace common { + // @ts-ignore + abstract class AbstractHealingSourceBuilder implements org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder { + constructor() + // @ts-ignore + protected scales: boolean; + // @ts-ignore + protected healingType: org.spongepowered.api.event.cause.entity.health.HealingType; + // @ts-ignore + public scalesWithDifficulty(): org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder; + // @ts-ignore + public magical(): org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder; + // @ts-ignore + public type(healingType: org.spongepowered.api.event.cause.entity.health.HealingType): org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder; + // @ts-ignore + public from(value: org.spongepowered.api.event.cause.entity.health.source.HealingSource): org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder; + // @ts-ignore + public reset(): org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.common.AbstractIndirectEntityHealingSource.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.common.AbstractIndirectEntityHealingSource.ts new file mode 100644 index 00000000..5e51afde --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.health.source.common.AbstractIndirectEntityHealingSource.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace common { + // @ts-ignore + class AbstractIndirectEntityHealingSource { + constructor() + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.spawn.SpawnType.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.spawn.SpawnType.ts new file mode 100644 index 00000000..b746a711 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.spawn.SpawnType.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace spawn { + // @ts-ignore + interface SpawnType extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.spawn.SpawnTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.spawn.SpawnTypes.ts new file mode 100644 index 00000000..0b71defa --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.spawn.SpawnTypes.ts @@ -0,0 +1,53 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace spawn { + // @ts-ignore + class SpawnTypes { + // @ts-ignore + public static BLOCK_SPAWNING: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static BREEDING: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static CHUNK_LOAD: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static CUSTOM: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static DISPENSE: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static DROPPED_ITEM: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static EXPERIENCE: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static FALLING_BLOCK: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static MOB_SPAWNER: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static PASSIVE: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static PLACEMENT: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static PLUGIN: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static PROJECTILE: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static SPAWN_EGG: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static STRUCTURE: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static TNT_IGNITE: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static WEATHER: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static WORLD_SPAWNER: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.teleport.TeleportType.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.teleport.TeleportType.ts new file mode 100644 index 00000000..74b38756 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.teleport.TeleportType.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace teleport { + // @ts-ignore + interface TeleportType extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.teleport.TeleportTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.teleport.TeleportTypes.ts new file mode 100644 index 00000000..0abc80fe --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.cause.entity.teleport.TeleportTypes.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace teleport { + // @ts-ignore + class TeleportTypes { + // @ts-ignore + public static COMMAND: org.spongepowered.api.event.cause.entity.teleport.TeleportType; + // @ts-ignore + public static ENTITY_TELEPORT: org.spongepowered.api.event.cause.entity.teleport.TeleportType; + // @ts-ignore + public static PLUGIN: org.spongepowered.api.event.cause.entity.teleport.TeleportType; + // @ts-ignore + public static PORTAL: org.spongepowered.api.event.cause.entity.teleport.TeleportType; + // @ts-ignore + public static UNKNOWN: org.spongepowered.api.event.cause.entity.teleport.TeleportType; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.command.SendCommandEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.command.SendCommandEvent.ts new file mode 100644 index 00000000..75fde707 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.command.SendCommandEvent.ts @@ -0,0 +1,51 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace command { + // @ts-ignore + interface SendCommandEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the command as a string, without any sort of command prefix. + *For example, if the message was {@code /example bob 3 -f}, then + * the command would be {@code example}.
+ */ + // @ts-ignore + getCommand(): string; + /** + * Sets the command as a string, without any sort of command prefix. + *For example, if the message was {@code /example bob 3 -f}, then + * the command would be {@code example}.
+ */ + // @ts-ignore + setCommand(command: string): void; + /** + * Gets the arguments as a string. + *For example, if the message was {@code /example bob 3 -f}, then + * the arguments would be {@code bob 3 -f}.
+ */ + // @ts-ignore + getArguments(): string; + /** + * Sets the arguments as a string. + *For example, if the message was {@code /example bob 3 -f}, then + * the arguments would be {@code bob 3 -f}.
+ */ + // @ts-ignore + setArguments(arguments: string): void; + /** + * The result of the command. + */ + // @ts-ignore + getResult(): org.spongepowered.api.command.CommandResult; + /** + * Sets the result of the command. + */ + // @ts-ignore + setResult(result: org.spongepowered.api.command.CommandResult): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.command.TabCompleteEvent.Chat.ts b/packages/sponge/src/typings/org.spongepowered.api.event.command.TabCompleteEvent.Chat.ts new file mode 100644 index 00000000..783933cc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.command.TabCompleteEvent.Chat.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace command { + namespace TabCompleteEvent { + // @ts-ignore + interface Chat extends org.spongepowered.api.event.command.TabCompleteEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.command.TabCompleteEvent.Command.ts b/packages/sponge/src/typings/org.spongepowered.api.event.command.TabCompleteEvent.Command.ts new file mode 100644 index 00000000..6a024ff5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.command.TabCompleteEvent.Command.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace command { + namespace TabCompleteEvent { + // @ts-ignore + interface Command extends org.spongepowered.api.event.command.TabCompleteEvent { + /** + * Gets the command as a string, without any sort of command prefix. + *For example, if the message was {@code /example bob 3 -f}, + * then the command would be {@code example}.
+ */ + // @ts-ignore + getCommand(): string; + /** + * Gets the arguments as a string. + *For example, if the message was {@code /example bob 3 -f}, + * then the arguments would be {@code bob 3 -f}.
+ */ + // @ts-ignore + getArguments(): string; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.command.TabCompleteEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.command.TabCompleteEvent.ts new file mode 100644 index 00000000..f54a703d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.command.TabCompleteEvent.ts @@ -0,0 +1,56 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace command { + // @ts-ignore + interface TabCompleteEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the message sent to the server for tab completion. + *The Vanilla client does not send the entire contents of the chat box. + * Instead, it sends the contents of the chat box up to the cursor position + * (excluding the character after the cursor). + */ + // @ts-ignore + getRawMessage(): string; + /** + * Gets the immutable list of the suggestions originally generated. + *
In Vanilla, these suggestions are usually player names, in the case + * of {@link Chat}.
+ *Note: Entries *should not* contain spaces, as they produce strange + * behavior on the Vanilla client (tabbing between entries causes them + * to be appended to the text box, instead of replacing the existing + * entry.
+ */ + // @ts-ignore + getOriginalTabCompletions(): any[] /*java.util.List*/; + /** + * Gets the list of available suggestions. This list is mutable, so + * any modifications should happen to this list. All suggestions will + * replace the last word in the arguments on the client. + */ + // @ts-ignore + getTabCompletions(): any[] /*java.util.List*/; + /** + * Gets the location of the block that the player is looking at, if + * available. + *In Vanilla, this will be available if the player is looking at + * a block within mineable range (the wireframe is displayed on + * the client).
+ */ + // @ts-ignore + getTargetPos(): any; + /** + * Gets whether the player is tab completing from a block's GUI. + *In Vanilla, this will be true
if the player is tab
+ * completing in a commandblock or commandblock minecart's GUI, and
+ * false
otherwise.
If the proposed {@link DataTransactionResult} provides additional + * values that were not changed in the {@link #getOriginalChanges()}, + * the provided changes suggested to be successfully offered will be + * re-offered
+ */ + // @ts-ignore + proposeChanges(result: org.spongepowered.api.data.DataTransactionResult): org.spongepowered.api.event.data.ChangeDataHolderEvent.ValueChange; + /** + * Gets the ending resulting {@link DataTransactionResult} that will be + * offered to the {@link DataHolder}. + */ + // @ts-ignore + getEndResult(): org.spongepowered.api.data.DataTransactionResult; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.data.ChangeDataHolderEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.data.ChangeDataHolderEvent.ts new file mode 100644 index 00000000..f86dfa82 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.data.ChangeDataHolderEvent.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace data { + // @ts-ignore + interface ChangeDataHolderEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link DataHolder} targeted in this event. + */ + // @ts-ignore + getTargetHolder(): org.spongepowered.api.data.DataHolder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.economy.EconomyTransactionEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.economy.EconomyTransactionEvent.ts new file mode 100644 index 00000000..3fc2d134 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.economy.EconomyTransactionEvent.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace economy { + // @ts-ignore + interface EconomyTransactionEvent extends org.spongepowered.api.event.Event { + /** + * Gets the {@link TransactionResult} for the transaction that occurred. + */ + // @ts-ignore + getTransactionResult(): org.spongepowered.api.service.economy.transaction.TransactionResult; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.AffectEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.AffectEntityEvent.ts new file mode 100644 index 00000000..b71a4c40 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.AffectEntityEvent.ts @@ -0,0 +1,45 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface AffectEntityEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets an {@link List} of the entity data + * un-affected by event changes. + *This method MUST be called at {@link Order#PRE} in order + * to be properly initialized, after which it can be called at any time. + * If it is not first called at {@link Order#PRE}, it will throw an {@link IllegalStateException} + * when invoked.
+ */ + // @ts-ignore + getEntitySnapshots(): any[] /*java.util.List*/; + /** + * Gets the {@link List} who will be affected after event + * resolution. + */ + // @ts-ignore + getEntities(): any[] /*java.util.List*/; + /** + * Filters out {@link Location}'s from + * {@link AffectEntityEvent#getEntities()} to be affected by this event. + *Locations for which the predicate returns false
will
+ * be removed from {@link #getEntities()}.
Entities for which the predicate returns false
will
+ * be removed from {@link #getEntities()}.
true
,
+ * the cached "damage" for the {@link DamageModifier} is returned.
+ */
+ // @ts-ignore
+ getOutputDamage(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier): number;
+ /**
+ * Sets the provided {@link Function} to be used for the given
+ * {@link DamageModifier}. If the {@link DamageModifier} is already
+ * included in {@link #getModifiers()}, the {@link Function} replaces
+ * the existing function. If there is no {@link Tuple} for the
+ * {@link DamageModifier}, a new one is created and added to the end
+ * of the list of {@link Function}s to be applied to the
+ * {@link #getBaseOutputDamage()}.
+ * If needing to create a custom {@link DamageModifier} is required, + * usage of the + * {@link org.spongepowered.api.event.cause.entity.damage.DamageModifier.Builder} + * is recommended.
+ */ + // @ts-ignore + setOutputDamage(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: any): void; + /** + * Adds the provided {@link DamageModifier} and {@link Function} to the + * list of modifiers, such that the {@link Set} containing + * {@link DamageModifierType}s provided in {@code before} will appear + * after the provided damage modifier. + */ + // @ts-ignore + addDamageModifierBefore(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: any, before: any[] /*java.util.Set*/): void; + /** + * Adds the provided {@link DamageModifier} and {@link Function} to the list + * of modifiers, such that the modifier will appear in order after any + * current modifiers whose type are included in the provided {@link Set} + * of {@link DamageModifierType}s. + */ + // @ts-ignore + addDamageModifierAfter(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: any, after: any[] /*java.util.Set*/): void; + /** + * Gets a list of simple {@link Tuple}s of {@link DamageModifier} keyed to + * their representative {@link Function}s. All {@link DamageModifier}s are + * applicable to the entity based on the {@link DamageSource} and any + * possible invulnerabilities due to the {@link DamageSource}. + */ + // @ts-ignore + getModifiers(): any[] /*java.util.List*/; + /** + * Gets the knock back modifier. The modifier itself will apply to the + * momentum of the attacked entity. + */ + // @ts-ignore + getKnockbackModifier(): number; + /** + * Sets the knock back modifier. The modifier itself will apply to the + * momentum of the attacked entity. + */ + // @ts-ignore + setKnockbackModifier(modifier: number): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.BreedEntityEvent.Breed.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.BreedEntityEvent.Breed.ts new file mode 100644 index 00000000..22abaa43 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.BreedEntityEvent.Breed.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace BreedEntityEvent { + // @ts-ignore + interface Breed extends org.spongepowered.api.event.entity.BreedEntityEvent { + /** + * Gets the offspring {@link Entity}. + */ + // @ts-ignore + getOffspringEntity(): org.spongepowered.api.entity.living.Ageable; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.BreedEntityEvent.FindMate.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.BreedEntityEvent.FindMate.ts new file mode 100644 index 00000000..3356d277 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.BreedEntityEvent.FindMate.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace BreedEntityEvent { + // @ts-ignore + interface FindMate extends org.spongepowered.api.event.entity.BreedEntityEvent, org.spongepowered.api.event.TristateResult { + /** + * Returns the {@link Animal} this entity will mate with. + */ + // @ts-ignore + getMatingEntity(): org.spongepowered.api.entity.living.animal.Animal; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.BreedEntityEvent.ReadyToMate.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.BreedEntityEvent.ReadyToMate.ts new file mode 100644 index 00000000..0da97316 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.BreedEntityEvent.ReadyToMate.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace BreedEntityEvent { + // @ts-ignore + interface ReadyToMate extends org.spongepowered.api.event.entity.BreedEntityEvent { + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.living.animal.Animal; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.BreedEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.BreedEntityEvent.ts new file mode 100644 index 00000000..c3164ead --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.BreedEntityEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface BreedEntityEvent extends org.spongepowered.api.event.entity.InteractEntityEvent { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.Break.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.Break.ts new file mode 100644 index 00000000..c1e55e77 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.Break.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ChangeEntityEquipmentEvent { + // @ts-ignore + interface Break extends org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent, org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetPlayer { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetHumanoid.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetHumanoid.ts new file mode 100644 index 00000000..bfe8a0cc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetHumanoid.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ChangeEntityEquipmentEvent { + // @ts-ignore + interface TargetHumanoid extends org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetLiving, org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetLiving.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetLiving.ts new file mode 100644 index 00000000..9d2c2779 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetLiving.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ChangeEntityEquipmentEvent { + // @ts-ignore + interface TargetLiving extends org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent, org.spongepowered.api.event.entity.living.TargetLivingEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetPlayer.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetPlayer.ts new file mode 100644 index 00000000..ab5b305a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetPlayer.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ChangeEntityEquipmentEvent { + // @ts-ignore + interface TargetPlayer extends org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetHumanoid, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.ts new file mode 100644 index 00000000..629dabcd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.ts @@ -0,0 +1,34 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface ChangeEntityEquipmentEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.item.inventory.TargetInventoryEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the previously equipped {@link ItemStack} as an + * {@link ItemStackSnapshot}. + *The previously equipped item may have been empty.
+ */ + // @ts-ignore + getOriginalItemStack(): any; + /** + * Gets the new {@link ItemStack} that is being equipped in the relative + * armor slot. + *The itemstack may not exist or the slot is being emptied.
+ */ + // @ts-ignore + getItemStack(): any; + /** + * Gets the {@link Transaction} of {@link ItemStackSnapshot}s for this event. + */ + // @ts-ignore + getTransaction(): org.spongepowered.api.data.Transaction; + // @ts-ignore + getTargetInventory(): org.spongepowered.api.item.inventory.Slot; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityExperienceEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityExperienceEvent.ts new file mode 100644 index 00000000..2efcc06f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityExperienceEvent.ts @@ -0,0 +1,46 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface ChangeEntityExperienceEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the original total experience unmodified by event changes. + */ + // @ts-ignore + getOriginalExperience(): number; + /** + * Gets the original values for the experience unmodified by event changes. + */ + // @ts-ignore + getOriginalData(): org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExperienceHolderData; + /** + * Gets the total experience after event changes. + */ + // @ts-ignore + getExperience(): number; + /** + * Sets the final total experience after event changes. + */ + // @ts-ignore + setExperience(experience: number): void; + /** + * Gets the experience after an event has been processed. Modify this + * data manipulator to change the final experience. + */ + // @ts-ignore + getFinalData(): org.spongepowered.api.data.manipulator.mutable.entity.ExperienceHolderData; + /** + * This method exists solely to provide backwards-compatibility with existing plugins + * using the old ChangeExperienceEvent. It should not be called directly - instead, + * plugins should use {@link SpongeEventFactory#createChangeEntityExperienceEvent(Cause, ImmutableExperienceHolderData, ExperienceHolderData, Entity)} + */ + // @ts-ignore + createChangeEntityExperienceEvent(cause: org.spongepowered.api.event.cause.Cause, originalExperience: number, experience: number, targetEntity: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.entity.ChangeEntityExperienceEvent; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Expire.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Expire.ts new file mode 100644 index 00000000..42931de9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Expire.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ChangeEntityPotionEffectEvent { + // @ts-ignore + interface Expire extends org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Gain.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Gain.ts new file mode 100644 index 00000000..fb563b5b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Gain.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ChangeEntityPotionEffectEvent { + // @ts-ignore + interface Gain extends org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent { + /** + * Gets the original potion effect involved in this event. + */ + // @ts-ignore + getOriginalPotionEffect(): org.spongepowered.api.effect.potion.PotionEffect; + /** + * Sets the potion effect to be used in this event. + */ + // @ts-ignore + setPotionEffect(effect: org.spongepowered.api.effect.potion.PotionEffect): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Remove.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Remove.ts new file mode 100644 index 00000000..638081a9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Remove.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ChangeEntityPotionEffectEvent { + // @ts-ignore + interface Remove extends org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.ts new file mode 100644 index 00000000..732204e5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface ChangeEntityPotionEffectEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets a copy of all current effects applied on the entity. + */ + // @ts-ignore + getCurrentEffects(): any[] /*java.util.List*/; + /** + * Gets the potion effect involved in this event. + */ + // @ts-ignore + getPotionEffect(): org.spongepowered.api.effect.potion.PotionEffect; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.CollideEntityEvent.Impact.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.CollideEntityEvent.Impact.ts new file mode 100644 index 00000000..4a5b8dbd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.CollideEntityEvent.Impact.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace CollideEntityEvent { + // @ts-ignore + interface Impact extends org.spongepowered.api.event.entity.CollideEntityEvent, org.spongepowered.api.event.action.CollideEvent.Impact { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.CollideEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.CollideEntityEvent.ts new file mode 100644 index 00000000..2a354084 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.CollideEntityEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface CollideEntityEvent extends org.spongepowered.api.event.action.CollideEvent, org.spongepowered.api.event.entity.AffectEntityEvent { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ConstructEntityEvent.Post.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ConstructEntityEvent.Post.ts new file mode 100644 index 00000000..93906b6f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ConstructEntityEvent.Post.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ConstructEntityEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.entity.ConstructEntityEvent, org.spongepowered.api.event.entity.TargetEntityEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ConstructEntityEvent.Pre.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ConstructEntityEvent.Pre.ts new file mode 100644 index 00000000..6803d1cc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ConstructEntityEvent.Pre.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ConstructEntityEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.entity.ConstructEntityEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ConstructEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ConstructEntityEvent.ts new file mode 100644 index 00000000..29e5c878 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ConstructEntityEvent.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface ConstructEntityEvent extends org.spongepowered.api.event.Event { + /** + * Gets the {@link Transform} that the {@link Entity} will be constructed with. + */ + // @ts-ignore + getTransform(): org.spongepowered.api.entity.Transform; + /** + * Gets the {@link EntityType} of the target {@link Entity} that is going to be + * constructed. + */ + // @ts-ignore + getTargetType(): org.spongepowered.api.entity.EntityType; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.DamageEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.DamageEntityEvent.ts new file mode 100644 index 00000000..81f07f23 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.DamageEntityEvent.ts @@ -0,0 +1,128 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface DamageEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the original "raw" amount of damage to deal to the targeted + * {@link Entity}. + */ + // @ts-ignore + getOriginalDamage(): number; + /** + * Gets the original "final" amount of damage after all original + * {@link DamageModifier}s are applied to {@link #getOriginalDamage()}. + * The "final" damage is considered the amount of health being lost by + * the {@link Entity}, if health is tracked. + */ + // @ts-ignore + getOriginalFinalDamage(): number; + /** + * Gets an {@link ImmutableMap} of all original {@link DamageModifier}s + * and their associated "modified" damage. Note that ordering is not + * retained. + */ + // @ts-ignore + getOriginalDamages(): Maptrue
,
+ * the cached "damage" for the {@link DamageModifier} is returned.
+ */
+ // @ts-ignore
+ getDamage(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier): number;
+ /**
+ * Sets the provided {@link DamageFunction} to be used for the given
+ * {@link DamageModifier}. If the {@link DamageModifier} is already
+ * included in {@link #getModifiers()}, the {@link DoubleUnaryOperator} replaces
+ * the existing function. If there is no {@link Tuple} for the
+ * {@link DamageModifier}, a new one is created and added to the end
+ * of the list of {@link DoubleUnaryOperator}s to be applied to the
+ * {@link #getBaseDamage()}.
+ * If needing to create a custom {@link DamageModifier} is required, + * usage of the {@link Builder} is recommended.
+ */ + // @ts-ignore + setDamage(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: any): void; + /** + * Adds the provided {@link DamageModifier} and {@link DoubleUnaryOperator} to the + * list of modifiers, such that the {@link Set} containing + * {@link DamageModifierType}s provided in {@code before} will appear + * after the provided damage modifier. + */ + // @ts-ignore + addDamageModifierBefore(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: any, before: any[] /*java.util.Set*/): void; + /** + * Adds the provided {@link DamageModifier} and {@link DoubleUnaryOperator} to the list + * of modifiers, such that the modifier will appear in order after any + * current modifiers whose type are included in the provided {@link Set} of + * {@link DamageModifierType}s. + */ + // @ts-ignore + addModifierAfter(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: any, after: any[] /*java.util.Set*/): void; + /** + * Gets a list of simple {@link Tuple}s of {@link DamageModifier} keyed to + * their representative {@link DamageFunction}s. All {@link DamageModifier}s are + * applicable to the entity based on the {@link DamageSource} and any + * possible invulnerabilities due to the {@link DamageSource}. + */ + // @ts-ignore + getModifiers(): any[] /*java.util.List*/; + /** + * Returns whether or not this event will cause the entity to die if the + * event is not cancelled. Only supported for living entities, returns false + * if {@link #getTargetEntity()} is not a living entity. + */ + // @ts-ignore + willCauseDeath(): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.DestructEntityEvent.Death.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.DestructEntityEvent.Death.ts new file mode 100644 index 00000000..d4e3e831 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.DestructEntityEvent.Death.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace DestructEntityEvent { + // @ts-ignore + interface Death extends org.spongepowered.api.event.entity.DestructEntityEvent, org.spongepowered.api.event.entity.living.TargetLivingEvent, org.spongepowered.api.event.Cancellable { + /** + * Applies the {@link DefaultGameRules#KEEP_INVENTORY} gamerule to this + * entity alone. + *This only works for players
+ */ + // @ts-ignore + setKeepInventory(keepInventory: boolean): void; + /** + * Returns whether the inventory is kept after death. + *By default this is the same as the + * {@link DefaultGameRules#KEEP_INVENTORY} gamerule.
+ */ + // @ts-ignore + getKeepInventory(): boolean; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.DestructEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.DestructEntityEvent.ts new file mode 100644 index 00000000..a7f7e87f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.DestructEntityEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface DestructEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.message.MessageChannelEvent { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ExpireEntityEvent.TargetItem.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ExpireEntityEvent.TargetItem.ts new file mode 100644 index 00000000..dd086dc3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ExpireEntityEvent.TargetItem.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ExpireEntityEvent { + // @ts-ignore + interface TargetItem extends org.spongepowered.api.event.entity.ExpireEntityEvent, org.spongepowered.api.event.entity.item.TargetItemEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ExpireEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ExpireEntityEvent.ts new file mode 100644 index 00000000..41c68739 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ExpireEntityEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface ExpireEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetHumanoid.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetHumanoid.ts new file mode 100644 index 00000000..f0e1c4b0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetHumanoid.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace HarvestEntityEvent { + // @ts-ignore + interface TargetHumanoid extends org.spongepowered.api.event.entity.HarvestEntityEvent.TargetLiving, org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetLiving.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetLiving.ts new file mode 100644 index 00000000..0f28674d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetLiving.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace HarvestEntityEvent { + // @ts-ignore + interface TargetLiving extends org.spongepowered.api.event.entity.HarvestEntityEvent, org.spongepowered.api.event.entity.living.TargetLivingEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetPlayer.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetPlayer.ts new file mode 100644 index 00000000..a7bb3228 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetPlayer.ts @@ -0,0 +1,45 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace HarvestEntityEvent { + // @ts-ignore + interface TargetPlayer extends org.spongepowered.api.event.entity.HarvestEntityEvent.TargetHumanoid, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + /** + * Gets whether the player keeps their inventory on death. + */ + // @ts-ignore + keepsInventory(): boolean; + /** + * Sets if the player keeps their inventory on death. + */ + // @ts-ignore + setKeepsInventory(keepInventory: boolean): void; + /** + * Gets whether the player keeps all of their EXP on death. + */ + // @ts-ignore + keepsLevel(): boolean; + /** + * Sets if the player keeps all of their EXP on death. + */ + // @ts-ignore + setKeepsLevel(keepLevel: boolean): void; + /** + * Gets the new level the player will have after death. + */ + // @ts-ignore + getLevel(): number; + /** + * Sets the new level the player will have after death. + */ + // @ts-ignore + setLevel(level: number): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.HarvestEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.HarvestEntityEvent.ts new file mode 100644 index 00000000..7e98be10 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.HarvestEntityEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface HarvestEntityEvent extends org.spongepowered.api.event.entity.ChangeEntityExperienceEvent { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.HealEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.HealEntityEvent.ts new file mode 100644 index 00000000..9d5ca9b2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.HealEntityEvent.ts @@ -0,0 +1,106 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface HealEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the original amount to "heal" the targeted {@link Entity}. + */ + // @ts-ignore + getOriginalHealAmount(): number; + /** + * Gets the original "final" amount of healing after all original + * {@link HealthModifier}s are applied to {@link #getOriginalHealAmount()}. + * The "final" heal amount is considered the amount gained by the + * {@link Entity}, if health is tracked. + */ + // @ts-ignore + getOriginalFinalHealAmount(): number; + /** + * Gets an {@link Map} of all original {@link HealthModifier}s and their + * associated "modified" heal amount. Note that ordering is not retained. + */ + // @ts-ignore + getOriginalHealingAmounts(): Maptrue
, the cached "heal amount" for the
+ * {@link HealthModifier} is returned.
+ */
+ // @ts-ignore
+ getHealAmount(healthModifier: org.spongepowered.api.event.cause.entity.health.HealthModifier): number;
+ /**
+ * Sets the provided {@link DoubleUnaryOperator} to be used for the given
+ * {@link HealthModifier}. If the {@link HealthModifier} is already included
+ * in {@link #getModifiers()}, the {@link DoubleUnaryOperator} replaces the
+ * existing function. If there is no {@link HealthFunction} for the
+ * {@link HealthModifier}, a new one is created and added to the end of the
+ * list of {@link DoubleUnaryOperator}s to be applied to the
+ * {@link #getBaseHealAmount()}.
+ * If needing to create a custom {@link HealthModifier} is required, + * usage of the + * {@link org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder} + * is recommended.
+ */ + // @ts-ignore + setHealAmount(healthModifier: org.spongepowered.api.event.cause.entity.health.HealthModifier, func: any): void; + /** + * Gets a list of simple {@link HealthFunction}s. All {@link HealthModifier} + * s are applicable to the entity based on the {@link HealingSource} and any + * possible invulnerabilities due to the {@link HealingSource}. + */ + // @ts-ignore + getModifiers(): any[] /*java.util.List*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.IgniteEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.IgniteEntityEvent.ts new file mode 100644 index 00000000..07b0882f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.IgniteEntityEvent.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface IgniteEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the original amount of fire ticks the entity will remain on fire. + */ + // @ts-ignore + getOriginalFireTicks(): number; + /** + * Gets the amount of ticks the entity will remain on fire. + */ + // @ts-ignore + getFireTicks(): number; + /** + * Sets the amount of ticks the entity will remain on fire. + */ + // @ts-ignore + setFireTicks(fireTicks: number): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.MainHand.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.MainHand.ts new file mode 100644 index 00000000..a6c830ab --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.MainHand.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace InteractEntityEvent { + namespace Primary { + // @ts-ignore + interface MainHand extends org.spongepowered.api.event.entity.InteractEntityEvent.Primary { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.OffHand.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.OffHand.ts new file mode 100644 index 00000000..02bd71c6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.OffHand.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace InteractEntityEvent { + namespace Primary { + // @ts-ignore + interface OffHand extends org.spongepowered.api.event.entity.InteractEntityEvent.Primary { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.ts new file mode 100644 index 00000000..60d4eede --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace InteractEntityEvent { + // @ts-ignore + interface Primary extends org.spongepowered.api.event.entity.InteractEntityEvent, org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.MainHand.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.MainHand.ts new file mode 100644 index 00000000..f471b733 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.MainHand.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace InteractEntityEvent { + namespace Secondary { + // @ts-ignore + interface MainHand extends org.spongepowered.api.event.entity.InteractEntityEvent.Secondary { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.OffHand.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.OffHand.ts new file mode 100644 index 00000000..b5b4a6ae --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.OffHand.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace InteractEntityEvent { + namespace Secondary { + // @ts-ignore + interface OffHand extends org.spongepowered.api.event.entity.InteractEntityEvent.Secondary { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.ts new file mode 100644 index 00000000..544c816f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace InteractEntityEvent { + // @ts-ignore + interface Secondary extends org.spongepowered.api.event.entity.InteractEntityEvent, org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.ts new file mode 100644 index 00000000..9a57d0b5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.InteractEntityEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface InteractEntityEvent extends org.spongepowered.api.event.action.InteractEvent, org.spongepowered.api.event.entity.TargetEntityEvent { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.LeashEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.LeashEntityEvent.ts new file mode 100644 index 00000000..d86f99f6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.LeashEntityEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface LeashEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.MoveEntityEvent.Position.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.MoveEntityEvent.Position.ts new file mode 100644 index 00000000..da3ea6e3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.MoveEntityEvent.Position.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace MoveEntityEvent { + // @ts-ignore + interface Position extends org.spongepowered.api.event.entity.MoveEntityEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.MoveEntityEvent.Teleport.Portal.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.MoveEntityEvent.Teleport.Portal.ts new file mode 100644 index 00000000..5867999e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.MoveEntityEvent.Teleport.Portal.ts @@ -0,0 +1,64 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace MoveEntityEvent { + namespace Teleport { + // @ts-ignore + interface Portal extends org.spongepowered.api.event.entity.MoveEntityEvent.Teleport { + /** + * Sets whether the {@link PortalAgent} will be used. + *+ * If this is set to true, the {@link PortalAgent} will search for a + * portal at the {@link #getToTransform()} location and will attempt to + * create one if not found. + *
+ *+ * If this is set to false, the {@link #getTargetEntity()} will only be + * teleported to the {@link #getToTransform()} location. + *
+ */ + // @ts-ignore + setUsePortalAgent(usePortalAgent: boolean): void; + /** + * Gets whether the {@link PortalAgent} will be used. + *+ * If this is set to true, the {@link PortalAgent} will search for a + * Portal at the {@link #getToTransform()} location, and will attempt to + * create one if not found. + *
+ *+ * If this is set to false, the {@link #getTargetEntity()} will only be + * teleported to the {@link #getToTransform()} location. + *
+ */ + // @ts-ignore + getUsePortalAgent(): boolean; + /** + * Gets the {@link PortalAgent} that will be responsible for teleporting + * the {@link #getTargetEntity()} through a Portal. + */ + // @ts-ignore + getPortalAgent(): org.spongepowered.api.world.PortalAgent; + /** + * Sets the {@link PortalAgent} that will be responsible for teleporting + * the {@link #getTargetEntity()} through a Portal. + */ + // @ts-ignore + setPortalAgent(portalAgent: org.spongepowered.api.world.PortalAgent): void; + /** + * This method exists solely to provide backwards-compatibility with existing plugins + * using the old Teleport event. It should not be called directly - instead, + * plugins should use {@link SpongeEventFactory#createMoveEntityEventTeleportPortal(Cause, Transform, Transform, PortalAgent, Entity, boolean, boolean)} + */ + // @ts-ignore + createMoveEntityEventTeleportPortal(cause: org.spongepowered.api.event.cause.Cause, fromTransform: org.spongepowered.api.entity.Transform, toTransform: org.spongepowered.api.entity.Transform, portalAgent: org.spongepowered.api.world.PortalAgent, targetEntity: org.spongepowered.api.entity.Entity, usePortalAgent: boolean): org.spongepowered.api.event.entity.MoveEntityEvent.Teleport.Portal; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.MoveEntityEvent.Teleport.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.MoveEntityEvent.Teleport.ts new file mode 100644 index 00000000..1f7a1946 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.MoveEntityEvent.Teleport.ts @@ -0,0 +1,34 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace MoveEntityEvent { + // @ts-ignore + interface Teleport extends org.spongepowered.api.event.entity.MoveEntityEvent { + /** + * Gets whether the entity teleporting will maintain its velocity + * after teleport. + */ + // @ts-ignore + getKeepsVelocity(): boolean; + /** + * Sets whether the entity teleporting will maintain its velocity + * after teleport. + */ + // @ts-ignore + setKeepsVelocity(keepsVelocity: boolean): void; + /** + * This method exists solely to provide backwards-compatibility with existing plugins + * using the old Teleport Event. It should not be called directly - instead, + * plugins should use {@link SpongeEventFactory#createMoveEntityEventTeleport(Cause, Transform, Transform, Entity, boolean)} + */ + // @ts-ignore + createMoveEntityEventTeleport(cause: org.spongepowered.api.event.cause.Cause, fromTransform: org.spongepowered.api.entity.Transform, toTransform: org.spongepowered.api.entity.Transform, targetEntity: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.entity.MoveEntityEvent.Teleport; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.MoveEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.MoveEntityEvent.ts new file mode 100644 index 00000000..bb861dd3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.MoveEntityEvent.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface MoveEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the transform that the {@link Entity} came from. + */ + // @ts-ignore + getFromTransform(): org.spongepowered.api.entity.Transform; + /** + * Gets the new transform that the {@link Entity} will change to. + */ + // @ts-ignore + getToTransform(): org.spongepowered.api.entity.Transform; + /** + * Sets the new transform that the {@link Entity} will change to. + */ + // @ts-ignore + setToTransform(transform: org.spongepowered.api.entity.Transform): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.RideEntityEvent.Dismount.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.RideEntityEvent.Dismount.ts new file mode 100644 index 00000000..2030b13f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.RideEntityEvent.Dismount.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace RideEntityEvent { + // @ts-ignore + interface Dismount extends org.spongepowered.api.event.entity.RideEntityEvent { + /** + * Gets the {@link DismountType} when entity is dismounted. + */ + // @ts-ignore + getDismountType(): org.spongepowered.api.event.cause.entity.dismount.DismountType; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.RideEntityEvent.Mount.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.RideEntityEvent.Mount.ts new file mode 100644 index 00000000..ca65909e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.RideEntityEvent.Mount.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace RideEntityEvent { + // @ts-ignore + interface Mount extends org.spongepowered.api.event.entity.RideEntityEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.RideEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.RideEntityEvent.ts new file mode 100644 index 00000000..fa3a7342 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.RideEntityEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface RideEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.RotateEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.RotateEntityEvent.ts new file mode 100644 index 00000000..dfb21040 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.RotateEntityEvent.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface RotateEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the transform that the {@link Entity} rotated from. + */ + // @ts-ignore + getFromTransform(): org.spongepowered.api.entity.Transform; + /** + * Gets the new transform that the {@link Entity} will change to. + */ + // @ts-ignore + getToTransform(): org.spongepowered.api.entity.Transform; + /** + * Sets the new transform that the {@link Entity} will change to. + */ + // @ts-ignore + setToTransform(transform: org.spongepowered.api.entity.Transform): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.SpawnEntityEvent.ChunkLoad.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.SpawnEntityEvent.ChunkLoad.ts new file mode 100644 index 00000000..64346c9b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.SpawnEntityEvent.ChunkLoad.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace SpawnEntityEvent { + // @ts-ignore + interface ChunkLoad extends org.spongepowered.api.event.entity.SpawnEntityEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.SpawnEntityEvent.Custom.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.SpawnEntityEvent.Custom.ts new file mode 100644 index 00000000..2d204a27 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.SpawnEntityEvent.Custom.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace SpawnEntityEvent { + // @ts-ignore + interface Custom extends org.spongepowered.api.event.entity.SpawnEntityEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.SpawnEntityEvent.Spawner.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.SpawnEntityEvent.Spawner.ts new file mode 100644 index 00000000..fc58fe16 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.SpawnEntityEvent.Spawner.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace SpawnEntityEvent { + // @ts-ignore + interface Spawner extends org.spongepowered.api.event.entity.SpawnEntityEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.SpawnEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.SpawnEntityEvent.ts new file mode 100644 index 00000000..323b56e0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.SpawnEntityEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface SpawnEntityEvent extends org.spongepowered.api.event.entity.AffectEntityEvent { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.TameEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.TameEntityEvent.ts new file mode 100644 index 00000000..8de0df5b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.TameEntityEvent.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface TameEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + // @ts-ignore + USED_ITEM: string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.TargetEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.TargetEntityEvent.ts new file mode 100644 index 00000000..5a7e0f2c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.TargetEntityEvent.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface TargetEntityEvent extends org.spongepowered.api.event.Event { + /** + * Gets the target {@link Entity}. + */ + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.Entity; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.UnleashEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.UnleashEntityEvent.ts new file mode 100644 index 00000000..c03a4030 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.UnleashEntityEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface UnleashEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ai.AITaskEvent.Add.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ai.AITaskEvent.Add.ts new file mode 100644 index 00000000..1687bc4d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ai.AITaskEvent.Add.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ai { + namespace AITaskEvent { + // @ts-ignore + interface Add extends org.spongepowered.api.event.entity.ai.AITaskEvent { + /** + * Gets the original priority that {@link AITaskEvent#getTask()} will + * be assigned to. See {@link AITaskEvent#getPriority()}. + */ + // @ts-ignore + getOriginalPriority(): number; + /** + * Sets the priority the task will be assigned to. See + * {@link AITaskEvent#getPriority()}. + */ + // @ts-ignore + setPriority(priority: number): void; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ai.AITaskEvent.Remove.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ai.AITaskEvent.Remove.ts new file mode 100644 index 00000000..427b6a91 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ai.AITaskEvent.Remove.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ai { + namespace AITaskEvent { + // @ts-ignore + interface Remove extends org.spongepowered.api.event.entity.ai.AITaskEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ai.AITaskEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ai.AITaskEvent.ts new file mode 100644 index 00000000..49d0773d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ai.AITaskEvent.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ai { + // @ts-ignore + interface AITaskEvent extends org.spongepowered.api.event.entity.living.TargetAgentEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link Goal} the task will be assigned to. + */ + // @ts-ignore + getGoal(): org.spongepowered.api.entity.ai.Goal; + /** + * Gets the {@link AITask} to be assigned. + */ + // @ts-ignore + getTask(): org.spongepowered.api.entity.ai.task.AITask; + /** + * Gets the priority the task will be assigned to. Lower numbers mean + * higher priority. + */ + // @ts-ignore + getPriority(): number; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.ai.SetAITargetEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ai.SetAITargetEvent.ts new file mode 100644 index 00000000..d5d350e7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.ai.SetAITargetEvent.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ai { + // @ts-ignore + interface SetAITargetEvent extends org.spongepowered.api.event.entity.living.TargetAgentEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link Agent}s new target {@link Entity}. + */ + // @ts-ignore + getTarget(): any; + /** + * Sets the {@link Agent}s new target {@link Entity}. + *This target is set after the event when it is not cancelled.
+ *Setting a {@code null} target removes the target.
+ */ + // @ts-ignore + setTarget(target: org.spongepowered.api.entity.Entity): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.Post.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.Post.ts new file mode 100644 index 00000000..9a1dbdfe --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.Post.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace explosive { + namespace DefuseExplosiveEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.Pre.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.Pre.ts new file mode 100644 index 00000000..6c87bbbe --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.Pre.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace explosive { + namespace DefuseExplosiveEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.ts new file mode 100644 index 00000000..87e6edf6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace explosive { + // @ts-ignore + interface DefuseExplosiveEvent extends org.spongepowered.api.event.entity.explosive.TargetFusedExplosiveEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.DetonateExplosiveEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.DetonateExplosiveEvent.ts new file mode 100644 index 00000000..16455c43 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.DetonateExplosiveEvent.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace explosive { + // @ts-ignore + interface DetonateExplosiveEvent extends org.spongepowered.api.event.entity.explosive.TargetExplosiveEvent, org.spongepowered.api.event.Cancellable { + /** + * Returns the explosion of the vanilla behavior that this event was + * initialized with. + */ + // @ts-ignore + getOriginalExplosion(): org.spongepowered.api.world.explosion.Explosion; + /** + * Returns the {@link Builder} that will be used to build the + * explosion for the impending detonation. + */ + // @ts-ignore + getExplosionBuilder(): org.spongepowered.api.world.explosion.Explosion.Builder; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.Post.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.Post.ts new file mode 100644 index 00000000..3ff32078 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.Post.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace explosive { + namespace PrimeExplosiveEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.Pre.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.Pre.ts new file mode 100644 index 00000000..b684a09e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.Pre.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace explosive { + namespace PrimeExplosiveEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.ts new file mode 100644 index 00000000..d9f459d0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace explosive { + // @ts-ignore + interface PrimeExplosiveEvent extends org.spongepowered.api.event.entity.explosive.TargetFusedExplosiveEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.TargetExplosiveEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.TargetExplosiveEvent.ts new file mode 100644 index 00000000..9f3f4d76 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.TargetExplosiveEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace explosive { + // @ts-ignore + interface TargetExplosiveEvent extends org.spongepowered.api.event.entity.TargetEntityEvent { + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.explosive.Explosive; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.TargetFusedExplosiveEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.TargetFusedExplosiveEvent.ts new file mode 100644 index 00000000..a0977d49 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.explosive.TargetFusedExplosiveEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace explosive { + // @ts-ignore + interface TargetFusedExplosiveEvent extends org.spongepowered.api.event.entity.explosive.TargetExplosiveEvent { + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.explosive.FusedExplosive; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.item.ItemMergeItemEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.item.ItemMergeItemEvent.ts new file mode 100644 index 00000000..3c6c3bb5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.item.ItemMergeItemEvent.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace item { + // @ts-ignore + interface ItemMergeItemEvent extends org.spongepowered.api.event.entity.item.TargetItemEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets a copy of the second item to be merged. + */ + // @ts-ignore + getItemToMerge(): org.spongepowered.api.entity.Item; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.item.TargetItemEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.item.TargetItemEvent.ts new file mode 100644 index 00000000..ca06ad47 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.item.TargetItemEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace item { + // @ts-ignore + interface TargetItemEvent extends org.spongepowered.api.event.entity.TargetEntityEvent { + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.Item; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.TargetAgentEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.TargetAgentEvent.ts new file mode 100644 index 00000000..0054c385 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.TargetAgentEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + // @ts-ignore + interface TargetAgentEvent extends org.spongepowered.api.event.entity.living.TargetLivingEvent { + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.living.Agent; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.TargetLivingEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.TargetLivingEvent.ts new file mode 100644 index 00000000..2742f05c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.TargetLivingEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + // @ts-ignore + interface TargetLivingEvent extends org.spongepowered.api.event.entity.TargetEntityEvent { + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.living.Living; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.AnimateHandEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.AnimateHandEvent.ts new file mode 100644 index 00000000..866fcfb3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.AnimateHandEvent.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + // @ts-ignore + interface AnimateHandEvent extends org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link HandType} used for animation. + */ + // @ts-ignore + getHandType(): org.spongepowered.api.data.type.HandType; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.ChangeGameModeEvent.TargetPlayer.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.ChangeGameModeEvent.TargetPlayer.ts new file mode 100644 index 00000000..69d1b298 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.ChangeGameModeEvent.TargetPlayer.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace ChangeGameModeEvent { + // @ts-ignore + interface TargetPlayer extends org.spongepowered.api.event.entity.living.humanoid.ChangeGameModeEvent, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.ChangeGameModeEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.ChangeGameModeEvent.ts new file mode 100644 index 00000000..836f9d01 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.ChangeGameModeEvent.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + // @ts-ignore + interface ChangeGameModeEvent extends org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the original {@link GameMode}. + */ + // @ts-ignore + getOriginalGameMode(): org.spongepowered.api.entity.living.player.gamemode.GameMode; + /** + * Gets the new {@link GameMode}. + */ + // @ts-ignore + getGameMode(): org.spongepowered.api.entity.living.player.gamemode.GameMode; + /** + * Sets the new {@link GameMode}. + */ + // @ts-ignore + setGameMode(gameMode: org.spongepowered.api.entity.living.player.gamemode.GameMode): void; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.ChangeLevelEvent.TargetPlayer.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.ChangeLevelEvent.TargetPlayer.ts new file mode 100644 index 00000000..8f8daa55 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.ChangeLevelEvent.TargetPlayer.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace ChangeLevelEvent { + // @ts-ignore + interface TargetPlayer extends org.spongepowered.api.event.entity.living.humanoid.ChangeLevelEvent, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.ChangeLevelEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.ChangeLevelEvent.ts new file mode 100644 index 00000000..59c49653 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.ChangeLevelEvent.ts @@ -0,0 +1,34 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + // @ts-ignore + interface ChangeLevelEvent extends org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the original level of the human. + */ + // @ts-ignore + getOriginalLevel(): number; + /** + * Gets the new level of the human. + */ + // @ts-ignore + getLevel(): number; + /** + * Sets the new level of the human. + *Technically, this can be set to the same level to + * cancel effects of the level being changed.
+ */ + // @ts-ignore + setLevel(level: number): void; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent.ts new file mode 100644 index 00000000..81766297 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + // @ts-ignore + interface HandInteractEvent extends org.spongepowered.api.event.action.InteractEvent { + /** + * Gets the {@link HandType} used for interaction. + */ + // @ts-ignore + getHandType(): org.spongepowered.api.data.type.HandType; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent.ts new file mode 100644 index 00000000..271a11f0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + // @ts-ignore + interface TargetHumanoidEvent extends org.spongepowered.api.event.entity.living.TargetLivingEvent { + /** + * Gets the target {@link Entity}. + */ + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.living.Humanoid; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.End.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.End.ts new file mode 100644 index 00000000..fd05eece --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.End.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace player { + namespace CooldownEvent { + // @ts-ignore + interface End extends org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.Set.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.Set.ts new file mode 100644 index 00000000..1c27de93 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.Set.ts @@ -0,0 +1,41 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace player { + namespace CooldownEvent { + // @ts-ignore + interface Set extends org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the cooldown the item type had beforehand, if it had one at all. + */ + // @ts-ignore + getStartingCooldown(): any; + /** + * Gets the original new set cooldown at the beginning of the event. + */ + // @ts-ignore + getOriginalNewCooldown(): number; + /** + * Gets the new cooldown the item type has for the player. + */ + // @ts-ignore + getNewCooldown(): number; + /** + * Sets the new cooldown for the item type for the player. + */ + // @ts-ignore + setNewCooldown(ticks: number): void; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.ts new file mode 100644 index 00000000..fb2b2d81 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace player { + // @ts-ignore + interface CooldownEvent extends org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + /** + * Gets the associated item type whose cooldown is being set or removed. + */ + // @ts-ignore + getItemType(): org.spongepowered.api.item.ItemType; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.KickPlayerEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.KickPlayerEvent.ts new file mode 100644 index 00000000..104bee8c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.KickPlayerEvent.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace player { + // @ts-ignore + interface KickPlayerEvent extends org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent, org.spongepowered.api.event.message.MessageChannelEvent { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.PlayerChangeClientSettingsEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.PlayerChangeClientSettingsEvent.ts new file mode 100644 index 00000000..af7184dd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.PlayerChangeClientSettingsEvent.ts @@ -0,0 +1,45 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace player { + // @ts-ignore + interface PlayerChangeClientSettingsEvent extends org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + /** + * Gets the new locale of the player. + */ + // @ts-ignore + getLocale(): any; + /** + * Gets the new view distance of the player. This value represents the + * radius in unit chunks. + */ + // @ts-ignore + getViewDistance(): number; + /** + * Gets the new chat visibility setting of the player. + */ + // @ts-ignore + getChatVisibility(): org.spongepowered.api.text.chat.ChatVisibility; + /** + * Gets the new value for whether the player has colors enabled in chat. + */ + // @ts-ignore + isChatColorsEnabled(): boolean; + /** + * Gets the new skin part's displayed. + */ + // @ts-ignore + getDisplayedSkinParts(): any[] /*java.util.Set*/; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus.ts new file mode 100644 index 00000000..12375241 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace player { + namespace ResourcePackStatusEvent { + // @ts-ignore + class ResourcePackStatus { + // @ts-ignore + public static ACCEPTED: org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus; + // @ts-ignore + public static DECLINED: org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus; + // @ts-ignore + public static FAILED: org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus; + // @ts-ignore + public static SUCCESSFULLY_LOADED: org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus; + // @ts-ignore + public static values(): org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus; + /** + * Gets if this status indicates that the pack was successfully set. + */ + // @ts-ignore + public wasSuccessful(): any; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ts new file mode 100644 index 00000000..6767a9f2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ts @@ -0,0 +1,34 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace player { + // @ts-ignore + interface ResourcePackStatusEvent extends org.spongepowered.api.event.Event { + /** + * Get the player for this event. + */ + // @ts-ignore + getPlayer(): org.spongepowered.api.entity.living.player.Player; + /** + * Gets the pack that this status corresponds to. + */ + // @ts-ignore + getPack(): org.spongepowered.api.resourcepack.ResourcePack; + /** + * Gets the status of the sent pack. + */ + // @ts-ignore + getStatus(): org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.RespawnPlayerEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.RespawnPlayerEvent.ts new file mode 100644 index 00000000..7877e670 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.RespawnPlayerEvent.ts @@ -0,0 +1,50 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace player { + // @ts-ignore + interface RespawnPlayerEvent extends org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + /** + * The original {@link Player} that this new player is a clone of. + *When a player dies, or leaves The End, their {@link Player} is re-created.
+ */ + // @ts-ignore + getOriginalPlayer(): org.spongepowered.api.entity.living.player.Player; + /** + * Gets a copy of the transform that the entity came from. + */ + // @ts-ignore + getFromTransform(): org.spongepowered.api.entity.Transform; + /** + * Gets the new transform that the {@link Player} will change to. + */ + // @ts-ignore + getToTransform(): org.spongepowered.api.entity.Transform; + /** + * Sets the new transform that the entity will change to. + */ + // @ts-ignore + setToTransform(respawnTransform: org.spongepowered.api.entity.Transform): void; + /** + * Gets whether the transform was set by a bed or not. + */ + // @ts-ignore + isBedSpawn(): boolean; + /** + * Gets whether this event was fired because the {@link Player} died. + */ + // @ts-ignore + isDeath(): boolean; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent.ts new file mode 100644 index 00000000..9fe587fd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace player { + // @ts-ignore + interface TargetPlayerEvent extends org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent { + /** + * Gets the target {@link Player}. + */ + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.living.player.Player; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.projectile.LaunchProjectileEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.projectile.LaunchProjectileEvent.ts new file mode 100644 index 00000000..c1cf10b8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.projectile.LaunchProjectileEvent.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace projectile { + // @ts-ignore + interface LaunchProjectileEvent extends org.spongepowered.api.event.entity.projectile.TargetProjectileEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.entity.projectile.TargetProjectileEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.entity.projectile.TargetProjectileEvent.ts new file mode 100644 index 00000000..0f0157a5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.entity.projectile.TargetProjectileEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace projectile { + // @ts-ignore + interface TargetProjectileEvent extends org.spongepowered.api.event.entity.TargetEntityEvent { + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.projectile.Projectile; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.filter.Getter.ts b/packages/sponge/src/typings/org.spongepowered.api.event.filter.Getter.ts new file mode 100644 index 00000000..5543ff3e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.filter.Getter.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + // @ts-ignore + interface Getter { + /** + * The name of the method to fetch the value from within the event type. + */ + // @ts-ignore + value(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.filter.IsCancelled.ts b/packages/sponge/src/typings/org.spongepowered.api.event.filter.IsCancelled.ts new file mode 100644 index 00000000..50f98a78 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.filter.IsCancelled.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + // @ts-ignore + interface IsCancelled { + /** + * Gets the required cancellation state of the event for the annotated + * listener to be called. + */ + // @ts-ignore + value(): org.spongepowered.api.util.Tristate; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.After.ts b/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.After.ts new file mode 100644 index 00000000..9f37ec9f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.After.ts @@ -0,0 +1,37 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace cause { + // @ts-ignore + interface After { + /** + * Gets the class to use with {@link Cause#after(Class)}. + */ + // @ts-ignore + value(): any; + /** + * If specified the possible type for the returned object (normally + * specified by the type of the annotated parameter) is restricted + * to only the specified types. + *For exampled annotating a parameter of type Monster would + * normally accept all entities extending Monster, however with the + * includes specified as Enderman and Zombie the possible Monsters returned + * would be restricted to entities extending either Enderman and Zombie.
+ */ + // @ts-ignore + typeFilter(): any; + /** + * If true then the behavior of the typeFilter is reversed and the + * specified types are excluded rather than included. + */ + // @ts-ignore + inverse(): boolean; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.All.ts b/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.All.ts new file mode 100644 index 00000000..df1037cc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.All.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace cause { + // @ts-ignore + interface All { + /** + * Whether this listener should be skipped if the array would be empty. + */ + // @ts-ignore + ignoreEmpty(): boolean; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.Before.ts b/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.Before.ts new file mode 100644 index 00000000..04aef0c7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.Before.ts @@ -0,0 +1,37 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace cause { + // @ts-ignore + interface Before { + /** + * Gets the class to use with {@link Cause#before(Class)}. + */ + // @ts-ignore + value(): any; + /** + * If specified the possible type for the returned object (normally + * specified by the type of the annotated parameter) is restricted + * to only the specified types. + *For exampled annotating a parameter of type Monster would + * normally accept all entities extending Monster, however with the + * includes specified as Enderman and Zombie the possible Monsters returned + * would be restricted to entities extending either Enderman and Zombie.
+ */ + // @ts-ignore + typeFilter(): any; + /** + * If true then the behavior of the typeFilter is reversed and the + * specified types are excluded rather than included. + */ + // @ts-ignore + inverse(): boolean; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.ContextValue.ts b/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.ContextValue.ts new file mode 100644 index 00000000..a2a4e001 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.ContextValue.ts @@ -0,0 +1,37 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace cause { + // @ts-ignore + interface ContextValue { + /** + * Gets the name to use with the {@link EventContextKey}. + */ + // @ts-ignore + value(): string; + /** + * If specified the possible type for the returned object (normally + * specified by the type of the annotated parameter) is restricted to only + * the specified types. + *For exampled annotating a parameter of type Monster would normally + * accept all entities extending Monster, however with the includes + * specified as Enderman and Zombie the possible Monsters returned would be + * restricted to entities extending either Enderman and Zombie.
+ */ + // @ts-ignore + typeFilter(): any; + /** + * If true then the behavior of the typeFilter is reversed and the specified + * types are excluded rather than included. + */ + // @ts-ignore + inverse(): boolean; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.First.ts b/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.First.ts new file mode 100644 index 00000000..e6650615 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.First.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace cause { + // @ts-ignore + interface First { + /** + * If specified the possible type for the returned object (normally + * specified by the type of the annotated parameter) is restricted to only + * the specified types. + *For exampled annotating a parameter of type Monster would normally + * accept all entities extending Monster, however with the includes + * specified as Enderman and Zombie the possible Monsters returned would be + * restricted to entities extending either Enderman and Zombie.
+ */ + // @ts-ignore + typeFilter(): any; + /** + * If true then the behavior of the typeFilter is reversed and the specified + * types are excluded rather than included. + */ + // @ts-ignore + inverse(): boolean; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.Last.ts b/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.Last.ts new file mode 100644 index 00000000..204ff679 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.Last.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace cause { + // @ts-ignore + interface Last { + /** + * If specified the possible type for the returned object (normally + * specified by the type of the annotated parameter) is restricted to only + * the specified types. + *For exampled annotating a parameter of type Monster would normally + * accept all entities extending Monster, however with the includes + * specified as Enderman and Zombie the possible Monsters returned would be + * restricted to entities extending either Enderman and Zombie.
+ */ + // @ts-ignore + typeFilter(): any; + /** + * If true then the behavior of the typeFilter is reversed and the specified + * types are excluded rather than included. + */ + // @ts-ignore + inverse(): boolean; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.Root.ts b/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.Root.ts new file mode 100644 index 00000000..343a3e17 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.filter.cause.Root.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace cause { + // @ts-ignore + interface Root { + /** + * If specified the possible type for the returned object (normally + * specified by the type of the annotated parameter) is restricted to only + * the specified types. + *For example annotating a parameter of type Monster would normally + * accept all entities extending Monster, however with the includes + * specified as Enderman and Zombie the possible Monsters returned would be + * restricted to entities extending either Enderman and Zombie.
+ */ + // @ts-ignore + typeFilter(): any; + /** + * If true then the behavior of the typeFilter is reversed and the specified + * types are excluded rather than included. + */ + // @ts-ignore + inverse(): boolean; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.filter.data.Has.ts b/packages/sponge/src/typings/org.spongepowered.api.event.filter.data.Has.ts new file mode 100644 index 00000000..bb6e75c9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.filter.data.Has.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace data { + // @ts-ignore + interface Has { + /** + * Gets the {@link DataManipulator} type to test for. + */ + // @ts-ignore + value(): any; + /** + * If true the standard behavior of this filter is reversed and events where + * the annotated parameter does have the specified data + * manipulator type are filtered out. + */ + // @ts-ignore + inverse(): boolean; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.filter.data.Supports.ts b/packages/sponge/src/typings/org.spongepowered.api.event.filter.data.Supports.ts new file mode 100644 index 00000000..c999c9ac --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.filter.data.Supports.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace data { + // @ts-ignore + interface Supports { + /** + * Gets the {@link DataManipulator} type to test for. + */ + // @ts-ignore + value(): any; + /** + * If true the standard behavior of this filter is reversed and events where + * the annotated parameter does support the specified data + * manipulator type are filtered out. + */ + // @ts-ignore + inverse(): boolean; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.filter.type.Exclude.ts b/packages/sponge/src/typings/org.spongepowered.api.event.filter.type.Exclude.ts new file mode 100644 index 00000000..783b81e9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.filter.type.Exclude.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace type { + // @ts-ignore + interface Exclude { + /** + * Gets the event types to exclude. + */ + // @ts-ignore + value(): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.filter.type.Include.ts b/packages/sponge/src/typings/org.spongepowered.api.event.filter.type.Include.ts new file mode 100644 index 00000000..106372e8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.filter.type.Include.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace type { + // @ts-ignore + interface Include { + /** + * Gets the included event types. + */ + // @ts-ignore + value(): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.game.GameRegistryEvent.Register.ts b/packages/sponge/src/typings/org.spongepowered.api.event.game.GameRegistryEvent.Register.ts new file mode 100644 index 00000000..e1f8bb79 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.game.GameRegistryEvent.Register.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace GameRegistryEvent { + // @ts-ignore + interface Register extends org.spongepowered.api.event.game.GameRegistryEvent, org.spongepowered.api.event.GenericEvent { + /** + * Gets the {@link CatalogType} that + * is allowing registrations. + */ + // @ts-ignore + getCatalogType(): any; + /** + * Gets the registry module. + */ + // @ts-ignore + getRegistryModule(): org.spongepowered.api.registry.CatalogRegistryModule; + /** + * Registers the {@link CatalogType}. + */ + // @ts-ignore + register(catalogType: org.spongepowered.api.CatalogType): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.game.GameRegistryEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.game.GameRegistryEvent.ts new file mode 100644 index 00000000..c02e9b8c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.game.GameRegistryEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + // @ts-ignore + interface GameRegistryEvent extends org.spongepowered.api.event.Event { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.game.GameReloadEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.game.GameReloadEvent.ts new file mode 100644 index 00000000..68087a66 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.game.GameReloadEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + // @ts-ignore + interface GameReloadEvent extends org.spongepowered.api.event.Event { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameAboutToStartServerEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameAboutToStartServerEvent.ts new file mode 100644 index 00000000..696ed2ef --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameAboutToStartServerEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameAboutToStartServerEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameConstructionEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameConstructionEvent.ts new file mode 100644 index 00000000..849440ce --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameConstructionEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameConstructionEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameInitializationEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameInitializationEvent.ts new file mode 100644 index 00000000..4436aa03 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameInitializationEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameInitializationEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameLoadCompleteEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameLoadCompleteEvent.ts new file mode 100644 index 00000000..41468e02 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameLoadCompleteEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameLoadCompleteEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GamePostInitializationEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GamePostInitializationEvent.ts new file mode 100644 index 00000000..910d99a9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GamePostInitializationEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GamePostInitializationEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GamePreInitializationEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GamePreInitializationEvent.ts new file mode 100644 index 00000000..ce668c35 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GamePreInitializationEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GamePreInitializationEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStartedServerEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStartedServerEvent.ts new file mode 100644 index 00000000..fc168974 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStartedServerEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameStartedServerEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStartingServerEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStartingServerEvent.ts new file mode 100644 index 00000000..b37d20f1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStartingServerEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameStartingServerEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStateEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStateEvent.ts new file mode 100644 index 00000000..fdacb1d1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStateEvent.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameStateEvent extends org.spongepowered.api.event.Event { + /** + * Gets the {@link GameState} that this event represents. + */ + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStoppedEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStoppedEvent.ts new file mode 100644 index 00000000..14ef5d37 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStoppedEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameStoppedEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStoppedServerEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStoppedServerEvent.ts new file mode 100644 index 00000000..60d7b306 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStoppedServerEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameStoppedServerEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStoppingEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStoppingEvent.ts new file mode 100644 index 00000000..5d6eda53 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStoppingEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameStoppingEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStoppingServerEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStoppingServerEvent.ts new file mode 100644 index 00000000..28e2e686 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.game.state.GameStoppingServerEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameStoppingServerEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.impl.AbstractAITaskEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.impl.AbstractAITaskEvent.ts new file mode 100644 index 00000000..465ba445 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.impl.AbstractAITaskEvent.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace impl { + // @ts-ignore + abstract class AbstractAITaskEvent extends org.spongepowered.api.event.impl.AbstractEvent implements org.spongepowered.api.event.entity.ai.AITaskEvent { + constructor() + // @ts-ignore + public init(): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.impl.AbstractAffectEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.impl.AbstractAffectEntityEvent.ts new file mode 100644 index 00000000..053675e2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.impl.AbstractAffectEntityEvent.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace impl { + // @ts-ignore + abstract class AbstractAffectEntityEvent extends org.spongepowered.api.event.impl.AbstractEvent implements org.spongepowered.api.event.entity.AffectEntityEvent { + constructor() + // @ts-ignore + protected entities: any[] /*java.util.List*/; + // @ts-ignore + protected entitySnapshots: any[] /*java.util.List*/; + // @ts-ignore + public getEntitySnapshots(): any[] /*java.util.List*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.impl.AbstractAttackEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.impl.AbstractAttackEntityEvent.ts new file mode 100644 index 00000000..55f5c56b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.impl.AbstractAttackEntityEvent.ts @@ -0,0 +1,48 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace impl { + // @ts-ignore + abstract class AbstractAttackEntityEvent extends org.spongepowered.api.event.impl.AbstractModifierEvent implements org.spongepowered.api.event.entity.AttackEntityEvent { + constructor() + // @ts-ignore + protected originalDamage: number; + // @ts-ignore + protected originalFunctions: any[] /*java.util.List*/; + // @ts-ignore + protected baseDamage: number; + // @ts-ignore + protected init(): void; + // @ts-ignore + public getOriginalModifierDamage(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier): number; + // @ts-ignore + public getOriginalFinalDamage(): number; + // @ts-ignore + public getOriginalDamages(): MapThis method should be used + * to initialize any fields that depend on parameters + * passed to the constructor.
+ */ + // @ts-ignore + protected init(): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.impl.AbstractGameRegistryRegisterEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.impl.AbstractGameRegistryRegisterEvent.ts new file mode 100644 index 00000000..00f24f3a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.impl.AbstractGameRegistryRegisterEvent.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace impl { + // @ts-ignore + abstract class AbstractGameRegistryRegisterEvent extends org.spongepowered.api.event.impl.AbstractEvent implements org.spongepowered.api.event.game.GameRegistryEvent.Register { + constructor() + // @ts-ignore + public register(catalogType: org.spongepowered.api.CatalogType): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.impl.AbstractHealEntityEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.impl.AbstractHealEntityEvent.ts new file mode 100644 index 00000000..dd2d9398 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.impl.AbstractHealEntityEvent.ts @@ -0,0 +1,42 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace impl { + // @ts-ignore + abstract class AbstractHealEntityEvent extends org.spongepowered.api.event.impl.AbstractModifierEvent implements org.spongepowered.api.event.entity.HealEntityEvent { + constructor() + // @ts-ignore + protected originalHealAmount: number; + // @ts-ignore + protected originalFunctions: any[] /*java.util.List*/; + // @ts-ignore + protected baseHealAmount: number; + // @ts-ignore + protected init(): void; + // @ts-ignore + public getOriginalHealingModifierAmount(healthModifier: org.spongepowered.api.event.cause.entity.health.HealthModifier): number; + // @ts-ignore + public getOriginalFinalHealAmount(): number; + // @ts-ignore + public getOriginalHealingAmounts(): Mapfalse
+ * on a {@link Transaction}, the {@link Transaction} is
+ * marked as "invalid" and will not apply post event.
+ * {@link Transaction#getFinal()} is used to construct + * the {@link ItemStack} to pass to the predicate
+ */ + // @ts-ignore + filter(predicate: any): any[] /*java.util.List*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.AffectSlotEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.AffectSlotEvent.ts new file mode 100644 index 00000000..8c7072ad --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.AffectSlotEvent.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface AffectSlotEvent extends org.spongepowered.api.event.item.inventory.AffectItemStackEvent { + // @ts-ignore + getTransactions(): any[] /*java.util.List*/; + // @ts-ignore + filter(predicate: any): any[] /*java.util.List*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Equipment.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Equipment.ts new file mode 100644 index 00000000..7938f4a4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Equipment.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ChangeInventoryEvent { + // @ts-ignore + interface Equipment extends org.spongepowered.api.event.item.inventory.ChangeInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Held.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Held.ts new file mode 100644 index 00000000..ebeeee88 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Held.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ChangeInventoryEvent { + // @ts-ignore + interface Held extends org.spongepowered.api.event.item.inventory.ChangeInventoryEvent { + /** + * The previously selected slot. + */ + // @ts-ignore + getOriginalSlot(): org.spongepowered.api.item.inventory.Slot; + /** + * The new selected slot. + */ + // @ts-ignore + getFinalSlot(): org.spongepowered.api.item.inventory.Slot; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Pickup.Pre.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Pickup.Pre.ts new file mode 100644 index 00000000..b738219f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Pickup.Pre.ts @@ -0,0 +1,44 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ChangeInventoryEvent { + namespace Pickup { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.item.inventory.TargetInventoryEvent, org.spongepowered.api.event.entity.item.TargetItemEvent, org.spongepowered.api.event.Cancellable { + /** + * Returns the original picked up {@link ItemStackSnapshot} + * to add to the inventory. + */ + // @ts-ignore + getOriginalStack(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns the custom set list of items to add to the inventory or {@link Optional#empty()} if not set. + */ + // @ts-ignore + getCustom(): any; + /** + * Sets the items to add to the inventory. + *If all items do not fit the inventory this event will be + * automatically canceled.
+ */ + // @ts-ignore + setCustom(items: any[] /*java.util.List*/): void; + /** + * Returns the proposed final list of items to add to the inventory. + *If a custom list was set all items have to fit the inventory + * or this event will be automatically canceled.
+ */ + // @ts-ignore + getFinal(): any[] /*java.util.List*/; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Pickup.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Pickup.ts new file mode 100644 index 00000000..7d3b8829 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Pickup.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ChangeInventoryEvent { + // @ts-ignore + interface Pickup extends org.spongepowered.api.event.item.inventory.ChangeInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.SwapHand.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.SwapHand.ts new file mode 100644 index 00000000..f77ab7d6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.SwapHand.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ChangeInventoryEvent { + // @ts-ignore + interface SwapHand extends org.spongepowered.api.event.item.inventory.ChangeInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.Post.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.Post.ts new file mode 100644 index 00000000..1a44420a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.Post.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ChangeInventoryEvent { + namespace Transfer { + // @ts-ignore + interface Post extends org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.Pre.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.Pre.ts new file mode 100644 index 00000000..3f702bac --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.Pre.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ChangeInventoryEvent { + namespace Transfer { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.item.inventory.TargetInventoryEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the source {@link Inventory} of this {@link Event}. + */ + // @ts-ignore + getSourceInventory(): org.spongepowered.api.item.inventory.Inventory; + /** + * Gets the target {@link Inventory} of this {@link Event}. + */ + // @ts-ignore + getTargetInventory(): org.spongepowered.api.item.inventory.Inventory; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.ts new file mode 100644 index 00000000..c11a45a6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ChangeInventoryEvent { + // @ts-ignore + interface Transfer extends org.spongepowered.api.event.item.inventory.ChangeInventoryEvent { + /** + * Gets the source {@link Inventory} of this {@link Event}. + */ + // @ts-ignore + getSourceInventory(): org.spongepowered.api.item.inventory.Inventory; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.ts new file mode 100644 index 00000000..bd88d496 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface ChangeInventoryEvent extends org.spongepowered.api.event.item.inventory.TargetInventoryEvent, org.spongepowered.api.event.item.inventory.AffectSlotEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Creative.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Creative.ts new file mode 100644 index 00000000..b515f005 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Creative.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface Creative extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Double.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Double.ts new file mode 100644 index 00000000..39dff2eb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Double.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface Double extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Primary { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Middle.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Middle.ts new file mode 100644 index 00000000..5da7cc10 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Middle.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Drag { + // @ts-ignore + interface Middle extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag, org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Middle { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Primary.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Primary.ts new file mode 100644 index 00000000..843b035a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Primary.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Drag { + // @ts-ignore + interface Primary extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag, org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Primary { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Secondary.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Secondary.ts new file mode 100644 index 00000000..9d971842 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Secondary.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Drag { + // @ts-ignore + interface Secondary extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag, org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Secondary { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.ts new file mode 100644 index 00000000..d067a1e0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface Drag extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Full.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Full.ts new file mode 100644 index 00000000..521d2f53 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Full.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Drop { + // @ts-ignore + interface Full extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Creative.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Creative.ts new file mode 100644 index 00000000..92de1af7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Creative.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Drop { + namespace Outside { + // @ts-ignore + interface Creative extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside, org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Creative { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Primary.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Primary.ts new file mode 100644 index 00000000..fe862d89 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Primary.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Drop { + namespace Outside { + // @ts-ignore + interface Primary extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside, org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Primary { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Secondary.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Secondary.ts new file mode 100644 index 00000000..c74a1192 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Secondary.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Drop { + namespace Outside { + // @ts-ignore + interface Secondary extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside, org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Secondary { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.ts new file mode 100644 index 00000000..3cec970f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Drop { + // @ts-ignore + interface Outside extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Single.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Single.ts new file mode 100644 index 00000000..32bd2caf --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Single.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Drop { + // @ts-ignore + interface Single extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.ts new file mode 100644 index 00000000..084f35a3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface Drop extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent, org.spongepowered.api.event.item.inventory.DropItemEvent.Dispense { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Middle.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Middle.ts new file mode 100644 index 00000000..b8312af7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Middle.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface Middle extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.NumberPress.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.NumberPress.ts new file mode 100644 index 00000000..a29b905c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.NumberPress.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface NumberPress extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent { + // @ts-ignore + getNumber(): number; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Primary.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Primary.ts new file mode 100644 index 00000000..0f323d55 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Primary.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface Primary extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.All.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.All.ts new file mode 100644 index 00000000..24656a90 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.All.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Recipe { + // @ts-ignore + interface All extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.Single.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.Single.ts new file mode 100644 index 00000000..a9caaf43 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.Single.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Recipe { + // @ts-ignore + interface Single extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.ts new file mode 100644 index 00000000..096c47bd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface Recipe extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent { + /** + * Returns the requested recipe. + */ + // @ts-ignore + getRecipe(): org.spongepowered.api.item.recipe.Recipe; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Secondary.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Secondary.ts new file mode 100644 index 00000000..1ff08e8b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Secondary.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface Secondary extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.Primary.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.Primary.ts new file mode 100644 index 00000000..58d8d47c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.Primary.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Shift { + // @ts-ignore + interface Primary extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift, org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Primary { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.Secondary.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.Secondary.ts new file mode 100644 index 00000000..51953e48 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.Secondary.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Shift { + // @ts-ignore + interface Secondary extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift, org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Secondary { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.ts new file mode 100644 index 00000000..f88ba1d4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface Shift extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.ts new file mode 100644 index 00000000..5e0d4147 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface ClickInventoryEvent extends org.spongepowered.api.event.item.inventory.ChangeInventoryEvent, org.spongepowered.api.event.item.inventory.InteractInventoryEvent { + /** + * Returns the primary interaction Slot. + *May return {@link Optional#empty()} for events that do not directly interact with a Slot
+ */ + // @ts-ignore + getSlot(): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.CraftItemEvent.Craft.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.CraftItemEvent.Craft.ts new file mode 100644 index 00000000..f343b4cc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.CraftItemEvent.Craft.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace CraftItemEvent { + // @ts-ignore + interface Craft extends org.spongepowered.api.event.item.inventory.CraftItemEvent, org.spongepowered.api.event.item.inventory.ClickInventoryEvent { + /** + * The item crafted with this event. + */ + // @ts-ignore + getCrafted(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns the crafting output Slot. + */ + // @ts-ignore + getSlot(): any; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.CraftItemEvent.Preview.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.CraftItemEvent.Preview.ts new file mode 100644 index 00000000..e39ae99b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.CraftItemEvent.Preview.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace CraftItemEvent { + // @ts-ignore + interface Preview extends org.spongepowered.api.event.item.inventory.CraftItemEvent { + /** + * The SlotTransaction on the output slot. + *Setting a custom Item here changes the result of the recipe replacing the default result
+ */ + // @ts-ignore + getPreview(): org.spongepowered.api.item.inventory.transaction.SlotTransaction; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.CraftItemEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.CraftItemEvent.ts new file mode 100644 index 00000000..ae4f6901 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.CraftItemEvent.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface CraftItemEvent extends org.spongepowered.api.event.item.inventory.ChangeInventoryEvent { + /** + * Returns the crafting inventory. + *This includes the crafting grid and one output slot
+ */ + // @ts-ignore + getCraftingInventory(): org.spongepowered.api.item.inventory.crafting.CraftingInventory; + /** + * Returns the {@link Recipe} used for crafting + */ + // @ts-ignore + getRecipe(): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.DropItemEvent.Close.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.DropItemEvent.Close.ts new file mode 100644 index 00000000..adab1cc8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.DropItemEvent.Close.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace DropItemEvent { + // @ts-ignore + interface Close extends org.spongepowered.api.event.item.inventory.DropItemEvent, org.spongepowered.api.event.entity.SpawnEntityEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.DropItemEvent.Custom.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.DropItemEvent.Custom.ts new file mode 100644 index 00000000..381404ac --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.DropItemEvent.Custom.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace DropItemEvent { + // @ts-ignore + interface Custom extends org.spongepowered.api.event.item.inventory.DropItemEvent, org.spongepowered.api.event.entity.SpawnEntityEvent.Custom { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.DropItemEvent.Destruct.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.DropItemEvent.Destruct.ts new file mode 100644 index 00000000..83babd72 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.DropItemEvent.Destruct.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace DropItemEvent { + // @ts-ignore + interface Destruct extends org.spongepowered.api.event.item.inventory.DropItemEvent, org.spongepowered.api.event.entity.SpawnEntityEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.DropItemEvent.Dispense.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.DropItemEvent.Dispense.ts new file mode 100644 index 00000000..38c7a0ec --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.DropItemEvent.Dispense.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace DropItemEvent { + // @ts-ignore + interface Dispense extends org.spongepowered.api.event.item.inventory.DropItemEvent, org.spongepowered.api.event.entity.SpawnEntityEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.DropItemEvent.Pre.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.DropItemEvent.Pre.ts new file mode 100644 index 00000000..09d0083d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.DropItemEvent.Pre.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace DropItemEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.item.inventory.DropItemEvent { + /** + * Gets the original immutable list of {@link ItemStackSnapshot}s to be + * dropped. + */ + // @ts-ignore + getOriginalDroppedItems(): any[] /*java.util.List*/; + /** + * Gets the mutable list of {@link ItemStackSnapshot}s to be dropped. + */ + // @ts-ignore + getDroppedItems(): any[] /*java.util.List*/; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.DropItemEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.DropItemEvent.ts new file mode 100644 index 00000000..79154614 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.DropItemEvent.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface DropItemEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.EnchantItemEvent.CalculateEnchantment.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.EnchantItemEvent.CalculateEnchantment.ts new file mode 100644 index 00000000..79f3a79a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.EnchantItemEvent.CalculateEnchantment.ts @@ -0,0 +1,49 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace EnchantItemEvent { + // @ts-ignore + interface CalculateEnchantment extends org.spongepowered.api.event.item.inventory.EnchantItemEvent { + /** + * The itemstack to enchant. + */ + // @ts-ignore + getItem(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * The final level requirement from {@link CalculateLevelRequirement}. + *In vanilla the maximum value is 30.
+ */ + // @ts-ignore + getLevelRequirement(): number; + /** + * Returns the original list of enchantments to apply to the item. + *The first item in the list is used for display when previewing the enchantments.
+ */ + // @ts-ignore + getOriginalEnchantments(): any[] /*java.util.List*/; + /** + * Returns the list of enchantments to apply to the item. + *The first item in the list is used for display when previewing the enchantments.
+ */ + // @ts-ignore + getEnchantments(): any[] /*java.util.List*/; + /** + * Sets the list of enchantments to apply to the item. + *The first item in the list is used for display when previewing the enchantments.
+ *Note that when modifying the enchantment list you should + * return the same enchantments for the same seed and option.
+ *See {@link Enchantment#randomListBuilder()} to generate enchantment lists.
+ */ + // @ts-ignore + setEnchantments(enchantments: any[] /*java.util.List*/): void; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.EnchantItemEvent.CalculateLevelRequirement.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.EnchantItemEvent.CalculateLevelRequirement.ts new file mode 100644 index 00000000..ad545841 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.EnchantItemEvent.CalculateLevelRequirement.ts @@ -0,0 +1,45 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace EnchantItemEvent { + // @ts-ignore + interface CalculateLevelRequirement extends org.spongepowered.api.event.item.inventory.EnchantItemEvent { + /** + * The enchantment power based on bookshelves around the enchantment table. + */ + // @ts-ignore + getPower(): number; + /** + * The itemstack to enchant. + */ + // @ts-ignore + getItem(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns the original level requirement + */ + // @ts-ignore + getOriginalLevelRequirement(): number; + /** + * Returns the level requirement + */ + // @ts-ignore + getLevelRequirement(): number; + /** + * Sets the new level requirement + *In vanilla the maximum value is 30.
+ *Returning a much higher level may result in no enchantments + * because the existing enchantments are too weak.
+ */ + // @ts-ignore + setLevelRequirement(value: number): void; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.EnchantItemEvent.Post.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.EnchantItemEvent.Post.ts new file mode 100644 index 00000000..ad3a7fb5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.EnchantItemEvent.Post.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace EnchantItemEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent, org.spongepowered.api.event.item.inventory.EnchantItemEvent { + /** + * Returns the slot of the enchanted item. + */ + // @ts-ignore + getEnchantingSlot(): org.spongepowered.api.item.inventory.Slot; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.EnchantItemEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.EnchantItemEvent.ts new file mode 100644 index 00000000..ecf47a91 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.EnchantItemEvent.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface EnchantItemEvent extends org.spongepowered.api.event.item.inventory.TargetContainerEvent { + /** + * The seed for pseudo random enchantment generation. + */ + // @ts-ignore + getSeed(): number; + /** + * The enchantment option. 1, 2 or 3 + */ + // @ts-ignore + getOption(): number; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.Close.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.Close.ts new file mode 100644 index 00000000..45d1bbdc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.Close.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace InteractInventoryEvent { + // @ts-ignore + interface Close extends org.spongepowered.api.event.item.inventory.InteractInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.Open.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.Open.ts new file mode 100644 index 00000000..f8c81b16 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.Open.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace InteractInventoryEvent { + // @ts-ignore + interface Open extends org.spongepowered.api.event.item.inventory.InteractInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.ts new file mode 100644 index 00000000..3349bcef --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface InteractInventoryEvent extends org.spongepowered.api.event.item.inventory.TargetContainerEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link Transaction} of {@link ItemStackSnapshot}s for this event. + */ + // @ts-ignore + getCursorTransaction(): org.spongepowered.api.data.Transaction; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.MainHand.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.MainHand.ts new file mode 100644 index 00000000..7c5031f5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.MainHand.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace InteractItemEvent { + namespace Primary { + // @ts-ignore + interface MainHand extends org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.OffHand.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.OffHand.ts new file mode 100644 index 00000000..cacb5cc8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.OffHand.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace InteractItemEvent { + namespace Primary { + // @ts-ignore + interface OffHand extends org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.ts new file mode 100644 index 00000000..c1475fac --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace InteractItemEvent { + // @ts-ignore + interface Primary extends org.spongepowered.api.event.item.inventory.InteractItemEvent, org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.MainHand.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.MainHand.ts new file mode 100644 index 00000000..64b5f660 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.MainHand.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace InteractItemEvent { + namespace Secondary { + // @ts-ignore + interface MainHand extends org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.OffHand.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.OffHand.ts new file mode 100644 index 00000000..0a33914b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.OffHand.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace InteractItemEvent { + namespace Secondary { + // @ts-ignore + interface OffHand extends org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary { + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.ts new file mode 100644 index 00000000..5785a2eb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace InteractItemEvent { + // @ts-ignore + interface Secondary extends org.spongepowered.api.event.item.inventory.InteractItemEvent, org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.ts new file mode 100644 index 00000000..99e610e9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.InteractItemEvent.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface InteractItemEvent extends org.spongepowered.api.event.action.InteractEvent { + /** + * Gets the {@link ItemStackSnapshot} being interacted with. + */ + // @ts-ignore + getItemStack(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.TargetContainerEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.TargetContainerEvent.ts new file mode 100644 index 00000000..909d265d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.TargetContainerEvent.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface TargetContainerEvent extends org.spongepowered.api.event.item.inventory.TargetInventoryEvent { + // @ts-ignore + getTargetInventory(): org.spongepowered.api.item.inventory.Container; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.TargetInventoryEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.TargetInventoryEvent.ts new file mode 100644 index 00000000..4ede6491 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.TargetInventoryEvent.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface TargetInventoryEvent extends org.spongepowered.api.event.Event { + /** + * Gets the target {@link Inventory} of this {@link Event}. + */ + // @ts-ignore + getTargetInventory(): org.spongepowered.api.item.inventory.Inventory; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UpdateAnvilEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UpdateAnvilEvent.ts new file mode 100644 index 00000000..62568f09 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UpdateAnvilEvent.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface UpdateAnvilEvent extends org.spongepowered.api.event.item.inventory.TargetInventoryEvent, org.spongepowered.api.event.Cancellable { + /** + * Returns the new item name. + */ + // @ts-ignore + getItemName(): string; + /** + * Returns the left input item. + */ + // @ts-ignore + getLeft(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns the right input item. + */ + // @ts-ignore + getRight(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns the transaction for the resulting item. + */ + // @ts-ignore + getResult(): org.spongepowered.api.data.Transaction; + /** + * Returns the transaction for the repair costs. + */ + // @ts-ignore + getCosts(): org.spongepowered.api.data.Transaction; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Finish.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Finish.ts new file mode 100644 index 00000000..d2a1ef3f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Finish.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace UseItemStackEvent { + // @ts-ignore + interface Finish extends org.spongepowered.api.event.item.inventory.UseItemStackEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Replace.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Replace.ts new file mode 100644 index 00000000..0ab01e4c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Replace.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace UseItemStackEvent { + // @ts-ignore + interface Replace extends org.spongepowered.api.event.item.inventory.UseItemStackEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link ItemStack} that is placed in the player's + * inventory in replacement of the stack that is currently being used. + */ + // @ts-ignore + getItemStackResult(): org.spongepowered.api.data.Transaction; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Reset.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Reset.ts new file mode 100644 index 00000000..dcccc5af --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Reset.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace UseItemStackEvent { + // @ts-ignore + interface Reset extends org.spongepowered.api.event.item.inventory.UseItemStackEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Start.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Start.ts new file mode 100644 index 00000000..9343e984 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Start.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace UseItemStackEvent { + // @ts-ignore + interface Start extends org.spongepowered.api.event.item.inventory.UseItemStackEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Stop.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Stop.ts new file mode 100644 index 00000000..f658cbb8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Stop.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace UseItemStackEvent { + // @ts-ignore + interface Stop extends org.spongepowered.api.event.item.inventory.UseItemStackEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Tick.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Tick.ts new file mode 100644 index 00000000..2d9da1a1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Tick.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace UseItemStackEvent { + // @ts-ignore + interface Tick extends org.spongepowered.api.event.item.inventory.UseItemStackEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.ts new file mode 100644 index 00000000..f5f4db26 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.item.inventory.UseItemStackEvent.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface UseItemStackEvent extends org.spongepowered.api.event.Event { + /** + * Gets the original remaining duration of {@link ItemStack} in use. + */ + // @ts-ignore + getOriginalRemainingDuration(): number; + /** + * Gets the remaining duration of {@link ItemStack} in use. + */ + // @ts-ignore + getRemainingDuration(): number; + /** + * Sets the remaining duration of {@link ItemStack} in use. + */ + // @ts-ignore + setRemainingDuration(duration: number): void; + /** + * Gets the {@link ItemStack} being consumed. + */ + // @ts-ignore + getItemStackInUse(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.message.MessageChannelEvent.Chat.ts b/packages/sponge/src/typings/org.spongepowered.api.event.message.MessageChannelEvent.Chat.ts new file mode 100644 index 00000000..eb508c1f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.message.MessageChannelEvent.Chat.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace message { + namespace MessageChannelEvent { + // @ts-ignore + interface Chat extends org.spongepowered.api.event.message.MessageChannelEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the 'raw' chat message. + *This message is the original chat message, without any formatting + * whatsoever.
+ *In Vanilla, this is equivalent to what a player typed into the + * chat box (no name prefix or other elements).
+ */ + // @ts-ignore + getRawMessage(): org.spongepowered.api.text.Text; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.message.MessageChannelEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.message.MessageChannelEvent.ts new file mode 100644 index 00000000..78466eb7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.message.MessageChannelEvent.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace message { + // @ts-ignore + interface MessageChannelEvent extends org.spongepowered.api.event.message.MessageEvent { + /** + * Gets the original channel that this message will be sent to. + */ + // @ts-ignore + getOriginalChannel(): org.spongepowered.api.text.channel.MessageChannel; + /** + * Gets the current channel that this message will be sent to. + *Note that an {@link Optional#empty()} channel is different from a + * {@link MessageChannel#TO_NONE} channel.
+ */ + // @ts-ignore + getChannel(): any; + /** + * Sets the channel for this message to go to. + *Note that an {@link Optional#empty()} channel is different from a + * {@link MessageChannel#TO_NONE} channel.
+ */ + // @ts-ignore + setChannel(channel: org.spongepowered.api.text.channel.MessageChannel): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.message.MessageEvent.DefaultBodyApplier.ts b/packages/sponge/src/typings/org.spongepowered.api.event.message.MessageEvent.DefaultBodyApplier.ts new file mode 100644 index 00000000..75bbb6cf --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.message.MessageEvent.DefaultBodyApplier.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace message { + namespace MessageEvent { + // @ts-ignore + class DefaultBodyApplier extends org.spongepowered.api.text.transform.SimpleTextTemplateApplier { + constructor(value: org.spongepowered.api.text.TextRepresentable) + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.message.MessageEvent.DefaultHeaderApplier.ts b/packages/sponge/src/typings/org.spongepowered.api.event.message.MessageEvent.DefaultHeaderApplier.ts new file mode 100644 index 00000000..35ab4a9b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.message.MessageEvent.DefaultHeaderApplier.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace message { + namespace MessageEvent { + // @ts-ignore + class DefaultHeaderApplier extends org.spongepowered.api.text.transform.SimpleTextTemplateApplier { + constructor(value: org.spongepowered.api.text.TextRepresentable) + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.message.MessageEvent.MessageFormatter.ts b/packages/sponge/src/typings/org.spongepowered.api.event.message.MessageEvent.MessageFormatter.ts new file mode 100644 index 00000000..ca20e05e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.message.MessageEvent.MessageFormatter.ts @@ -0,0 +1,54 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace message { + namespace MessageEvent { + // @ts-ignore + class MessageFormatter extends org.spongepowered.api.text.transform.FixedPartitionedTextFormatter { + constructor() + constructor(header: org.spongepowered.api.text.Text, body: org.spongepowered.api.text.Text) + constructor(body: org.spongepowered.api.text.Text) + /** + * Returns the header partition within this formatter. + */ + // @ts-ignore + public getHeader(): org.spongepowered.api.text.transform.SimpleTextFormatter; + /** + * Clears any existing components within the header partition and adds + * a new {@link TextTemplateApplier} to the partition with the + * specified value. + */ + // @ts-ignore + public setHeader(header: org.spongepowered.api.text.TextRepresentable): void; + /** + * Returns the body partition within this formatter. + */ + // @ts-ignore + public getBody(): org.spongepowered.api.text.transform.SimpleTextFormatter; + /** + * Clears any existing components within the body partition and adds + * a new {@link TextTemplateApplier} to the partition with the + * specified value. + */ + // @ts-ignore + public setBody(body: org.spongepowered.api.text.TextRepresentable): void; + /** + * Returns the footer partition within this formatter. + */ + // @ts-ignore + public getFooter(): org.spongepowered.api.text.transform.SimpleTextFormatter; + /** + * Clears any existing components within the footer partition and adds + * a new {@link TextTemplateApplier} to the partition with the + * specified value. + */ + // @ts-ignore + public setFooter(footer: org.spongepowered.api.text.TextRepresentable): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.message.MessageEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.message.MessageEvent.ts new file mode 100644 index 00000000..01302279 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.message.MessageEvent.ts @@ -0,0 +1,68 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace message { + // @ts-ignore + interface MessageEvent extends org.spongepowered.api.event.Event { + // @ts-ignore + PARAM_MESSAGE_HEADER: string; + // @ts-ignore + PARAM_MESSAGE_BODY: string; + // @ts-ignore + PARAM_MESSAGE_FOOTER: string; + /** + * Gets the original {@link Text} message. + */ + // @ts-ignore + getOriginalMessage(): org.spongepowered.api.text.Text; + /** + * Returns true if the {@link Text} returned by + * {@link #getMessage()} should not be sent. + */ + // @ts-ignore + isMessageCancelled(): boolean; + /** + * Sets whether the {@link Text} returned by + * {@link #getMessage()} should be sent. + */ + // @ts-ignore + setMessageCancelled(cancelled: boolean): void; + /** + * Returns the {@link MessageFormatter} used to mutate the event's message. + */ + // @ts-ignore + getFormatter(): org.spongepowered.api.event.message.MessageEvent.MessageFormatter; + /** + * Returns the formatted message. + */ + // @ts-ignore + getMessage(): org.spongepowered.api.text.Text; + /** + * Clears the currently set message and returns the empty formatter. + */ + // @ts-ignore + clearMessage(): org.spongepowered.api.event.message.MessageEvent.MessageFormatter; + /** + * Clears any existing components and sets the header, body, and footer + * respectively. + */ + // @ts-ignore + setMessage(header: org.spongepowered.api.text.TextRepresentable, body: org.spongepowered.api.text.TextRepresentable, footer: org.spongepowered.api.text.TextRepresentable): void; + /** + * Clears any existing components and sets the header and body + * respectively. + */ + // @ts-ignore + setMessage(header: org.spongepowered.api.text.TextRepresentable, body: org.spongepowered.api.text.TextRepresentable): void; + /** + * Clears any existing components and sets the body. + */ + // @ts-ignore + setMessage(body: org.spongepowered.api.text.TextRepresentable): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.network.BanIpEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.network.BanIpEvent.ts new file mode 100644 index 00000000..5caecc29 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.network.BanIpEvent.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + // @ts-ignore + interface BanIpEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the ban made in this event. + */ + // @ts-ignore + getBan(): org.spongepowered.api.util.ban.Ban.Ip; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.network.ChannelRegistrationEvent.Register.ts b/packages/sponge/src/typings/org.spongepowered.api.event.network.ChannelRegistrationEvent.Register.ts new file mode 100644 index 00000000..e6d7379b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.network.ChannelRegistrationEvent.Register.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace ChannelRegistrationEvent { + // @ts-ignore + interface Register extends org.spongepowered.api.event.network.ChannelRegistrationEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.network.ChannelRegistrationEvent.Unregister.ts b/packages/sponge/src/typings/org.spongepowered.api.event.network.ChannelRegistrationEvent.Unregister.ts new file mode 100644 index 00000000..bf889147 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.network.ChannelRegistrationEvent.Unregister.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace ChannelRegistrationEvent { + // @ts-ignore + interface Unregister extends org.spongepowered.api.event.network.ChannelRegistrationEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.network.ChannelRegistrationEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.network.ChannelRegistrationEvent.ts new file mode 100644 index 00000000..2c7c48cd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.network.ChannelRegistrationEvent.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + // @ts-ignore + interface ChannelRegistrationEvent extends org.spongepowered.api.event.Event { + /** + * Gets the name of the channel being registered or unregistered. + */ + // @ts-ignore + getChannel(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.network.ClientConnectionEvent.Auth.ts b/packages/sponge/src/typings/org.spongepowered.api.event.network.ClientConnectionEvent.Auth.ts new file mode 100644 index 00000000..f252b21d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.network.ClientConnectionEvent.Auth.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace ClientConnectionEvent { + // @ts-ignore + interface Auth extends org.spongepowered.api.event.network.ClientConnectionEvent, org.spongepowered.api.event.message.MessageEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link RemoteConnection} representing the client connection. + */ + // @ts-ignore + getConnection(): org.spongepowered.api.network.RemoteConnection; + /** + * Gets the profile of the client attempting to connect. + */ + // @ts-ignore + getProfile(): org.spongepowered.api.profile.GameProfile; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.network.ClientConnectionEvent.Disconnect.ts b/packages/sponge/src/typings/org.spongepowered.api.event.network.ClientConnectionEvent.Disconnect.ts new file mode 100644 index 00000000..1ed122b4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.network.ClientConnectionEvent.Disconnect.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace ClientConnectionEvent { + // @ts-ignore + interface Disconnect extends org.spongepowered.api.event.network.ClientConnectionEvent, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent, org.spongepowered.api.event.message.MessageChannelEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.network.ClientConnectionEvent.Join.ts b/packages/sponge/src/typings/org.spongepowered.api.event.network.ClientConnectionEvent.Join.ts new file mode 100644 index 00000000..29aa1ddb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.network.ClientConnectionEvent.Join.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace ClientConnectionEvent { + // @ts-ignore + interface Join extends org.spongepowered.api.event.network.ClientConnectionEvent, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent, org.spongepowered.api.event.message.MessageChannelEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.network.ClientConnectionEvent.Login.ts b/packages/sponge/src/typings/org.spongepowered.api.event.network.ClientConnectionEvent.Login.ts new file mode 100644 index 00000000..86756e6f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.network.ClientConnectionEvent.Login.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace ClientConnectionEvent { + // @ts-ignore + interface Login extends org.spongepowered.api.event.network.ClientConnectionEvent, org.spongepowered.api.event.message.MessageEvent, org.spongepowered.api.event.user.TargetUserEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link RemoteConnection} representing the client connection. + */ + // @ts-ignore + getConnection(): org.spongepowered.api.network.RemoteConnection; + /** + * Gets the profile of the client attempting to connect. + */ + // @ts-ignore + getProfile(): org.spongepowered.api.profile.GameProfile; + /** + * Gets the transform that the {@link Player} came from. + */ + // @ts-ignore + getFromTransform(): org.spongepowered.api.entity.Transform; + /** + * Gets the new transform that the {@link Player} will change to. + */ + // @ts-ignore + getToTransform(): org.spongepowered.api.entity.Transform; + /** + * Sets the new transform that the {@link Player} will change to. + */ + // @ts-ignore + setToTransform(transform: org.spongepowered.api.entity.Transform): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.network.ClientConnectionEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.network.ClientConnectionEvent.ts new file mode 100644 index 00000000..9f681308 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.network.ClientConnectionEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + // @ts-ignore + interface ClientConnectionEvent extends org.spongepowered.api.event.Event { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.network.PardonIpEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.network.PardonIpEvent.ts new file mode 100644 index 00000000..c9b02120 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.network.PardonIpEvent.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + // @ts-ignore + interface PardonIpEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the ban pardoned in this event. + */ + // @ts-ignore + getBan(): org.spongepowered.api.util.ban.Ban.Ip; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Connect.ts b/packages/sponge/src/typings/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Connect.ts new file mode 100644 index 00000000..a807c929 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Connect.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace rcon { + namespace RconConnectionEvent { + // @ts-ignore + interface Connect extends org.spongepowered.api.event.network.rcon.RconConnectionEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Disconnect.ts b/packages/sponge/src/typings/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Disconnect.ts new file mode 100644 index 00000000..97f15177 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Disconnect.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace rcon { + namespace RconConnectionEvent { + // @ts-ignore + interface Disconnect extends org.spongepowered.api.event.network.rcon.RconConnectionEvent { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Login.ts b/packages/sponge/src/typings/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Login.ts new file mode 100644 index 00000000..b29b779a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Login.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace rcon { + namespace RconConnectionEvent { + // @ts-ignore + interface Login extends org.spongepowered.api.event.network.rcon.RconConnectionEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.network.rcon.RconConnectionEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.network.rcon.RconConnectionEvent.ts new file mode 100644 index 00000000..25eed883 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.network.rcon.RconConnectionEvent.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace rcon { + // @ts-ignore + interface RconConnectionEvent extends org.spongepowered.api.event.Event { + /** + * Gets the {@link RconSource} responsible for the event. + */ + // @ts-ignore + getSource(): org.spongepowered.api.command.source.RconSource; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.server.ClientPingServerEvent.Response.Players.ts b/packages/sponge/src/typings/org.spongepowered.api.event.server.ClientPingServerEvent.Response.Players.ts new file mode 100644 index 00000000..61c6a95e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.server.ClientPingServerEvent.Response.Players.ts @@ -0,0 +1,34 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace server { + namespace ClientPingServerEvent { + namespace Response { + // @ts-ignore + interface Players extends org.spongepowered.api.network.status.StatusResponse.Players { + /** + * Sets the amount of online players to display on the client. + */ + // @ts-ignore + setOnline(online: number): void; + /** + * Sets the maximum amount of allowed players to display on the + * client. + */ + // @ts-ignore + setMax(max: number): void; + /** + * Gets an mutable list of online players on the server to display + * on the client. + */ + // @ts-ignore + getProfiles(): any[] /*java.util.List*/; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.server.ClientPingServerEvent.Response.ts b/packages/sponge/src/typings/org.spongepowered.api.event.server.ClientPingServerEvent.Response.ts new file mode 100644 index 00000000..0e8c68cf --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.server.ClientPingServerEvent.Response.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace server { + namespace ClientPingServerEvent { + // @ts-ignore + interface Response extends org.spongepowered.api.network.status.StatusResponse { + /** + * Sets the description (MOTD) of the status response. + */ + // @ts-ignore + setDescription(description: org.spongepowered.api.text.Text): void; + // @ts-ignore + getPlayers(): any; + /** + * Sets whether the player count and the list of players on this server + * is hidden and doesn't get sent to the client. This will restore + * {@link #getPlayers()} if the players were previously hidden. + *Use {@link #getPlayers()}.{@link Optional#isPresent() isPresent()} to + * check if the players are already hidden.
+ *In Vanilla, this will display {@code ???} instead of the player + * count in the server list.
+ */ + // @ts-ignore + setHidePlayers(hide: boolean): void; + /** + * Sets the {@link Favicon} to display on the client. + */ + // @ts-ignore + setFavicon(favicon: org.spongepowered.api.network.status.Favicon): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.server.ClientPingServerEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.server.ClientPingServerEvent.ts new file mode 100644 index 00000000..69ad3614 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.server.ClientPingServerEvent.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace server { + // @ts-ignore + interface ClientPingServerEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the client pinging the server. + */ + // @ts-ignore + getClient(): org.spongepowered.api.network.status.StatusClient; + /** + * Gets the response that is about to be sent to the client. + */ + // @ts-ignore + getResponse(): org.spongepowered.api.event.server.ClientPingServerEvent.Response; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.server.query.QueryServerEvent.Basic.ts b/packages/sponge/src/typings/org.spongepowered.api.event.server.query.QueryServerEvent.Basic.ts new file mode 100644 index 00000000..0d8644a2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.server.query.QueryServerEvent.Basic.ts @@ -0,0 +1,114 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace server { + namespace query { + namespace QueryServerEvent { + // @ts-ignore + interface Basic extends org.spongepowered.api.event.server.query.QueryServerEvent { + /** + * Gets the MOTD to respond with. + *By default, this is the server's current MOTD
+ */ + // @ts-ignore + getMotd(): string; + /** + * Sets the MOTD to respond with. + *If setting the string causes the message to go over the + * maximum size, the message will be automatically truncated.
+ */ + // @ts-ignore + setMotd(motd: string): void; + /** + * Gets the GameType to respond with. + *By default, this is SMP
.
+ * If setting the string causes the message to go over the
+ * maximum size, the message will be automatically truncated.
If setting the string causes the message to go over the + * maximum size, the message will be automatically truncated.
+ */ + // @ts-ignore + setGameType(gameType: string): void; + /** + * Gets the map (world) to respond with. + *By default, this is the current world on the server.
+ */ + // @ts-ignore + getMap(): string; + /** + * Sets the map (world) to respond with. + *If setting the string causes the message to go over the + * maximum size, the message will be automatically truncated.
+ */ + // @ts-ignore + setMap(map: string): void; + /** + * Gets the player count to respond with. + *By default, this is the number of players present on the server. + * If setting the string causes the message to go over the + * maximum size, the message will be automatically truncated.
+ */ + // @ts-ignore + getPlayerCount(): number; + /** + * Sets the player count to respond with. + *If setting the int causes the message to go over the + * maximum size, the message will be automatically truncated.
+ */ + // @ts-ignore + setPlayerCount(playerCount: number): void; + /** + * Gets the max player count to respond with. + *By default, this is the maximum number of players allowed on the + * server.
+ */ + // @ts-ignore + getMaxPlayerCount(): number; + /** + * Sets the max player count to respond with. + *If setting the int causes the message to go over the + * maximum size, the message will be automatically truncated.
+ */ + // @ts-ignore + setMaxPlayerCount(maxPlayerCount: number): void; + /** + * Gets the address to respond with. + *By default, this is the address the server is listening on.
+ */ + // @ts-ignore + getAddress(): any; + /** + * Sets the address to respond with. + */ + // @ts-ignore + setAddress(address: any): void; + /** + * Gets the current size of the data to respond with. + *This value is implementation-defined - it is only meaningful when + * compared with {@link #getMaxSize()}.
+ */ + // @ts-ignore + getSize(): number; + /** + * Gets the maximum size of the data to respond with. + *If the size of the data is greater than the returned value, + * it will be automatically truncated. + * This value is implementation-defined - it is only meaningful when + * compared with {@link #getSize()} ()}.
+ */ + // @ts-ignore + getMaxSize(): number; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.server.query.QueryServerEvent.Full.ts b/packages/sponge/src/typings/org.spongepowered.api.event.server.query.QueryServerEvent.Full.ts new file mode 100644 index 00000000..69408727 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.server.query.QueryServerEvent.Full.ts @@ -0,0 +1,62 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace server { + namespace query { + namespace QueryServerEvent { + // @ts-ignore + interface Full extends org.spongepowered.api.event.server.query.QueryServerEvent.Basic { + /** + * Gets the GameId to respond with. + *This is currently hardcoded to MINECRAFT
.
By default, this is the server's Minecraft version (e.g 1.8.1). + *
+ */ + // @ts-ignore + getVersion(): string; + /** + * Sets the version to respond with. + *If setting the string causes the message to go over the + * maximum size, the message will be automatically truncated.
+ */ + // @ts-ignore + setVersion(version: string): void; + /** + * Gets the list of plugins to respond with. + */ + // @ts-ignore + getPlugins(): string; + /** + * Sets the list of plugins to respond with. + *If setting the string causes the message to go over the + * maximum size, the message will be automatically truncated.
+ */ + // @ts-ignore + setPlugins(plugins: string): void; + /** + * Gets the map of custom keys and values to respond with. + *If settings any of the keys or values causes the message + * to go over the maximum size, the message will be automatically + * truncated.
+ */ + // @ts-ignore + getCustomValuesMap(): MapIf a provider is being registered for the first time for the service, + * this will return {@link Optional#empty()}.
+ *If this is present, then it will always have the same + * provider as {@link #getNewProviderRegistration()}.
+ */ + // @ts-ignore + getPreviousProviderRegistration(): any; + /** + * Gets the new provider registration for the service. + */ + // @ts-ignore + getNewProviderRegistration(): org.spongepowered.api.service.ProviderRegistration; + /** + * Gets whether a previous provider existed, which was replaced by the new + * provider. + */ + // @ts-ignore + isReplacement(): boolean; + /** + * Gets the service that a provider is being registered for. + */ + // @ts-ignore + getService(): any; + /** + * Gets the new provider being registered. + */ + // @ts-ignore + getNewProvider(): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.sound.PlaySoundEvent.AtEntity.ts b/packages/sponge/src/typings/org.spongepowered.api.event.sound.PlaySoundEvent.AtEntity.ts new file mode 100644 index 00000000..2c738f50 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.sound.PlaySoundEvent.AtEntity.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace sound { + namespace PlaySoundEvent { + // @ts-ignore + interface AtEntity extends org.spongepowered.api.event.sound.PlaySoundEvent { + // @ts-ignore + getPlayer(): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.sound.PlaySoundEvent.Broadcast.ts b/packages/sponge/src/typings/org.spongepowered.api.event.sound.PlaySoundEvent.Broadcast.ts new file mode 100644 index 00000000..300740f4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.sound.PlaySoundEvent.Broadcast.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace sound { + namespace PlaySoundEvent { + // @ts-ignore + interface Broadcast extends org.spongepowered.api.event.sound.PlaySoundEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.sound.PlaySoundEvent.Record.Start.ts b/packages/sponge/src/typings/org.spongepowered.api.event.sound.PlaySoundEvent.Record.Start.ts new file mode 100644 index 00000000..b7a87f4a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.sound.PlaySoundEvent.Record.Start.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace sound { + namespace PlaySoundEvent { + namespace Record { + // @ts-ignore + interface Start extends org.spongepowered.api.event.sound.PlaySoundEvent.Record { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.sound.PlaySoundEvent.Record.Stop.ts b/packages/sponge/src/typings/org.spongepowered.api.event.sound.PlaySoundEvent.Record.Stop.ts new file mode 100644 index 00000000..2202a0c2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.sound.PlaySoundEvent.Record.Stop.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace sound { + namespace PlaySoundEvent { + namespace Record { + // @ts-ignore + interface Stop extends org.spongepowered.api.event.sound.PlaySoundEvent.Record { + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.sound.PlaySoundEvent.Record.ts b/packages/sponge/src/typings/org.spongepowered.api.event.sound.PlaySoundEvent.Record.ts new file mode 100644 index 00000000..ebcaa297 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.sound.PlaySoundEvent.Record.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace sound { + namespace PlaySoundEvent { + // @ts-ignore + interface Record extends org.spongepowered.api.event.sound.PlaySoundEvent { + /** + * Gets the {@link Jukebox} associated with this event. + */ + // @ts-ignore + getJukebox(): org.spongepowered.api.block.tileentity.Jukebox; + /** + * Gets the {@link RecordType} associated with this event. + */ + // @ts-ignore + getRecordType(): org.spongepowered.api.effect.sound.record.RecordType; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.sound.PlaySoundEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.sound.PlaySoundEvent.ts new file mode 100644 index 00000000..a133a057 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.sound.PlaySoundEvent.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace sound { + // @ts-ignore + interface PlaySoundEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the location of the sound being played. + */ + // @ts-ignore + getLocation(): org.spongepowered.api.world.Location; + /** + * Gets the {@link SoundCategory} for the sound being played + */ + // @ts-ignore + getSoundCategory(): org.spongepowered.api.effect.sound.SoundCategory; + /** + * Gets the {@link SoundType} for the sound being played + */ + // @ts-ignore + getSoundType(): org.spongepowered.api.effect.sound.SoundType; + /** + * Gets the volume of the sound being played + */ + // @ts-ignore + getVolume(): number; + /** + * Gets the pitch of the sound being played + */ + // @ts-ignore + getPitch(): number; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.statistic.ChangeStatisticEvent.TargetPlayer.ts b/packages/sponge/src/typings/org.spongepowered.api.event.statistic.ChangeStatisticEvent.TargetPlayer.ts new file mode 100644 index 00000000..8096136f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.statistic.ChangeStatisticEvent.TargetPlayer.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace statistic { + namespace ChangeStatisticEvent { + // @ts-ignore + interface TargetPlayer extends org.spongepowered.api.event.statistic.ChangeStatisticEvent, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.statistic.ChangeStatisticEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.statistic.ChangeStatisticEvent.ts new file mode 100644 index 00000000..8659dc4f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.statistic.ChangeStatisticEvent.ts @@ -0,0 +1,33 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace statistic { + // @ts-ignore + interface ChangeStatisticEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link Statistic}. + */ + // @ts-ignore + getStatistic(): org.spongepowered.api.statistic.Statistic; + /** + * Gets the original value of the statistic. + */ + // @ts-ignore + getOriginalValue(): number; + /** + * Gets the new value of the statistic. + */ + // @ts-ignore + getValue(): number; + /** + * Sets the new value of the statistic to the given value. + */ + // @ts-ignore + setValue(value: number): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.user.BanUserEvent.TargetPlayer.ts b/packages/sponge/src/typings/org.spongepowered.api.event.user.BanUserEvent.TargetPlayer.ts new file mode 100644 index 00000000..65ccab57 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.user.BanUserEvent.TargetPlayer.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace user { + namespace BanUserEvent { + // @ts-ignore + interface TargetPlayer extends org.spongepowered.api.event.user.BanUserEvent, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.user.BanUserEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.user.BanUserEvent.ts new file mode 100644 index 00000000..51b37b01 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.user.BanUserEvent.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace user { + // @ts-ignore + interface BanUserEvent extends org.spongepowered.api.event.user.TargetUserEvent { + /** + * Gets the ban involved in this event. + */ + // @ts-ignore + getBan(): org.spongepowered.api.util.ban.Ban.Profile; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.user.PardonUserEvent.TargetPlayer.ts b/packages/sponge/src/typings/org.spongepowered.api.event.user.PardonUserEvent.TargetPlayer.ts new file mode 100644 index 00000000..af3cc6be --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.user.PardonUserEvent.TargetPlayer.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace user { + namespace PardonUserEvent { + // @ts-ignore + interface TargetPlayer extends org.spongepowered.api.event.user.PardonUserEvent, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + // @ts-ignore + getTargetUser(): org.spongepowered.api.entity.living.player.Player; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.user.PardonUserEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.user.PardonUserEvent.ts new file mode 100644 index 00000000..f2c2ad17 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.user.PardonUserEvent.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace user { + // @ts-ignore + interface PardonUserEvent extends org.spongepowered.api.event.user.TargetUserEvent { + /** + * Gets the ban involved in this event. + */ + // @ts-ignore + getBan(): org.spongepowered.api.util.ban.Ban.Profile; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.user.TargetUserEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.user.TargetUserEvent.ts new file mode 100644 index 00000000..89ce0c00 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.user.TargetUserEvent.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace user { + // @ts-ignore + interface TargetUserEvent extends org.spongepowered.api.event.Event { + /** + * Gets the targeted {@link User}. + */ + // @ts-ignore + getTargetUser(): org.spongepowered.api.entity.living.player.User; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.ChangeWorldBorderEvent.TargetPlayer.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChangeWorldBorderEvent.TargetPlayer.ts new file mode 100644 index 00000000..3ae1906d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChangeWorldBorderEvent.TargetPlayer.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace ChangeWorldBorderEvent { + // @ts-ignore + interface TargetPlayer extends org.spongepowered.api.event.world.ChangeWorldBorderEvent, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.ChangeWorldBorderEvent.TargetWorld.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChangeWorldBorderEvent.TargetWorld.ts new file mode 100644 index 00000000..d4d0c579 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChangeWorldBorderEvent.TargetWorld.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace ChangeWorldBorderEvent { + // @ts-ignore + interface TargetWorld extends org.spongepowered.api.event.world.ChangeWorldBorderEvent, org.spongepowered.api.event.world.TargetWorldEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.ChangeWorldBorderEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChangeWorldBorderEvent.ts new file mode 100644 index 00000000..64f75540 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChangeWorldBorderEvent.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface ChangeWorldBorderEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the border that was previously used as an {@link Optional}. There + * may be no border set for the target (especially, if it is a player), in + * which case, an empty {@code Optional} is returned. + */ + // @ts-ignore + getPreviousBorder(): any; + /** + * Gets the border that will be used as an {@link Optional}. For some + * targets, the border may be unset and therefore they may not always have a + * border. It is in these instances that an empty {@code Optional} is + * returned. + */ + // @ts-ignore + getNewBorder(): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.ChangeWorldGameRuleEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChangeWorldGameRuleEvent.ts new file mode 100644 index 00000000..9a9344ad --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChangeWorldGameRuleEvent.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface ChangeWorldGameRuleEvent extends org.spongepowered.api.event.world.TargetWorldEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the original value of the GameRule. + */ + // @ts-ignore + getOriginalValue(): string; + /** + * Gets the new value of the GameRule. + */ + // @ts-ignore + getValue(): string; + /** + * Gets the name of this GameRule. + */ + // @ts-ignore + getName(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.ChangeWorldWeatherEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChangeWorldWeatherEvent.ts new file mode 100644 index 00000000..cc8d5f8d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChangeWorldWeatherEvent.ts @@ -0,0 +1,48 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface ChangeWorldWeatherEvent extends org.spongepowered.api.event.world.TargetWorldEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the original {@link Weather} that the event is creating. + */ + // @ts-ignore + getOriginalWeather(): org.spongepowered.api.world.weather.Weather; + /** + * Gets the {@link Weather} that was happening before this event. + */ + // @ts-ignore + getInitialWeather(): org.spongepowered.api.world.weather.Weather; + /** + * Gets the {@link Weather} that this event is creating. + */ + // @ts-ignore + getWeather(): org.spongepowered.api.world.weather.Weather; + /** + * Sets what the new {@link Weather} should be with a random duration. + */ + // @ts-ignore + setWeather(weather: org.spongepowered.api.world.weather.Weather): void; + /** + * Gets the original duration of {@link ChangeWorldWeatherEvent#getWeather()} that would run after event. + */ + // @ts-ignore + getOriginalDuration(): number; + /** + * Sets the duration of the {@link Weather} (in ticks). + */ + // @ts-ignore + getDuration(): number; + /** + * Sets the duration of the {@link Weather} (in ticks). + */ + // @ts-ignore + setDuration(duration: number): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Cancelled.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Cancelled.ts new file mode 100644 index 00000000..65640c10 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Cancelled.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace ChunkPreGenerationEvent { + // @ts-ignore + interface Cancelled extends org.spongepowered.api.event.world.ChunkPreGenerationEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Complete.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Complete.ts new file mode 100644 index 00000000..002693bc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Complete.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace ChunkPreGenerationEvent { + // @ts-ignore + interface Complete extends org.spongepowered.api.event.world.ChunkPreGenerationEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Post.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Post.ts new file mode 100644 index 00000000..58264559 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Post.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace ChunkPreGenerationEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.world.ChunkPreGenerationEvent, org.spongepowered.api.event.Cancellable { + /** + * The number of chunks generated during the previous step. + */ + // @ts-ignore + getChunksGeneratedThisStep(): number; + /** + * The number of chunks generated that did not need to be generated and + * were skipped over. + */ + // @ts-ignore + getChunksSkippedThisStep(): number; + /** + * The {@link Duration} of the previous step. + */ + // @ts-ignore + getTimeTakenForStep(): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Pre.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Pre.ts new file mode 100644 index 00000000..e9248d46 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Pre.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace ChunkPreGenerationEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.world.ChunkPreGenerationEvent, org.spongepowered.api.event.Cancellable { + /** + * Returns whether the chunk generator will skip generation this time + * around. This only prevents the next step from being performed. + *Use {@link #isCancelled()} to check for cancellation of the + * entire generation task.
+ */ + // @ts-ignore + getSkipStep(): boolean; + /** + * Sets whether the next step should be skipped. + *Use {@link #setCancelled(boolean)} to cancel the entire pre + * generation task.
+ */ + // @ts-ignore + setSkipStep(skipStep: boolean): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.ChunkPreGenerationEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChunkPreGenerationEvent.ts new file mode 100644 index 00000000..3b97a9de --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.ChunkPreGenerationEvent.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface ChunkPreGenerationEvent extends org.spongepowered.api.event.world.TargetWorldEvent { + /** + * The object that contains the progress information for the + * current {@link ChunkPreGenerate}. + */ + // @ts-ignore + getChunkPreGenerate(): org.spongepowered.api.world.ChunkPreGenerate; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.ConstructPortalEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.ConstructPortalEvent.ts new file mode 100644 index 00000000..5a399861 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.ConstructPortalEvent.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface ConstructPortalEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the position location of a portal. + */ + // @ts-ignore + getPortalLocation(): org.spongepowered.api.world.Location; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.ConstructWorldPropertiesEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.ConstructWorldPropertiesEvent.ts new file mode 100644 index 00000000..c89cfd5a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.ConstructWorldPropertiesEvent.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface ConstructWorldPropertiesEvent extends org.spongepowered.api.event.Event { + /** + * Gets the properties of the newly created world. + */ + // @ts-ignore + getWorldProperties(): org.spongepowered.api.world.storage.WorldProperties; + /** + * Gets the {@link WorldArchetype} used to create the world. + */ + // @ts-ignore + getWorldArchetype(): org.spongepowered.api.world.WorldArchetype; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.ExplosionEvent.Detonate.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.ExplosionEvent.Detonate.ts new file mode 100644 index 00000000..44976001 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.ExplosionEvent.Detonate.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace ExplosionEvent { + // @ts-ignore + interface Detonate extends org.spongepowered.api.event.world.ExplosionEvent, org.spongepowered.api.event.world.TargetWorldEvent, org.spongepowered.api.event.entity.AffectEntityEvent { + /** + * Gets the list of calculated affected locations for blocks that will + * be removed due to the explosion. Note that the list is mutable. + * However, adding new locations may cause unknown effects. + */ + // @ts-ignore + getAffectedLocations(): any[] /*java.util.List*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.ExplosionEvent.Post.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.ExplosionEvent.Post.ts new file mode 100644 index 00000000..a5282aeb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.ExplosionEvent.Post.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace ExplosionEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.world.ExplosionEvent, org.spongepowered.api.event.block.ChangeBlockEvent.Post { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.ExplosionEvent.Pre.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.ExplosionEvent.Pre.ts new file mode 100644 index 00000000..40fb8ece --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.ExplosionEvent.Pre.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace ExplosionEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.world.ExplosionEvent, org.spongepowered.api.event.world.TargetWorldEvent, org.spongepowered.api.event.Cancellable { + /** + * Sets the {@link Explosion} involved for this event. This will + * override the explosion used before calculations take place with + * regards to the blocks and entities affected. + */ + // @ts-ignore + setExplosion(explosion: org.spongepowered.api.world.explosion.Explosion): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.ExplosionEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.ExplosionEvent.ts new file mode 100644 index 00000000..9bc8c531 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.ExplosionEvent.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface ExplosionEvent extends org.spongepowered.api.event.Event { + /** + * Gets the {@link Explosion} involved in this event. + */ + // @ts-ignore + getExplosion(): org.spongepowered.api.world.explosion.Explosion; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.GenerateChunkEvent.Post.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.GenerateChunkEvent.Post.ts new file mode 100644 index 00000000..f95d662a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.GenerateChunkEvent.Post.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace GenerateChunkEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.world.GenerateChunkEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.GenerateChunkEvent.Pre.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.GenerateChunkEvent.Pre.ts new file mode 100644 index 00000000..5efc6f08 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.GenerateChunkEvent.Pre.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace GenerateChunkEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.world.GenerateChunkEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.GenerateChunkEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.GenerateChunkEvent.ts new file mode 100644 index 00000000..6c65ae7b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.GenerateChunkEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface GenerateChunkEvent extends org.spongepowered.api.event.world.chunk.TargetChunkEvent { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.LoadWorldEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.LoadWorldEvent.ts new file mode 100644 index 00000000..d6d4d137 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.LoadWorldEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface LoadWorldEvent extends org.spongepowered.api.event.world.TargetWorldEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.SaveWorldEvent.Post.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.SaveWorldEvent.Post.ts new file mode 100644 index 00000000..67276f55 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.SaveWorldEvent.Post.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace SaveWorldEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.world.SaveWorldEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.SaveWorldEvent.Pre.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.SaveWorldEvent.Pre.ts new file mode 100644 index 00000000..00686da3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.SaveWorldEvent.Pre.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace SaveWorldEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.world.SaveWorldEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.SaveWorldEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.SaveWorldEvent.ts new file mode 100644 index 00000000..55899f8c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.SaveWorldEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface SaveWorldEvent extends org.spongepowered.api.event.world.TargetWorldEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.TargetWorldEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.TargetWorldEvent.ts new file mode 100644 index 00000000..8d586d9b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.TargetWorldEvent.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface TargetWorldEvent extends org.spongepowered.api.event.Event { + /** + * Gets the target world of this {@link Event}. + */ + // @ts-ignore + getTargetWorld(): org.spongepowered.api.world.World; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.UnloadWorldEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.UnloadWorldEvent.ts new file mode 100644 index 00000000..bad7a224 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.UnloadWorldEvent.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface UnloadWorldEvent extends org.spongepowered.api.event.world.TargetWorldEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.ForcedChunkEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.ForcedChunkEvent.ts new file mode 100644 index 00000000..1fad34fa --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.ForcedChunkEvent.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace chunk { + // @ts-ignore + interface ForcedChunkEvent extends org.spongepowered.api.event.Event { + /** + * Gets the ticket that the chunk was added to. + */ + // @ts-ignore + getTicket(): org.spongepowered.api.world.ChunkTicketManager.LoadingTicket; + /** + * Gets the chunk coordinates. + */ + // @ts-ignore + getChunkCoords(): any /*Vector3i*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.LoadChunkEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.LoadChunkEvent.ts new file mode 100644 index 00000000..6b2b78fe --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.LoadChunkEvent.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace chunk { + // @ts-ignore + interface LoadChunkEvent extends org.spongepowered.api.event.world.chunk.TargetChunkEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Populate.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Populate.ts new file mode 100644 index 00000000..ec8e259b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Populate.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace chunk { + namespace PopulateChunkEvent { + // @ts-ignore + interface Populate extends org.spongepowered.api.event.world.chunk.PopulateChunkEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the populator which is about to be run. + */ + // @ts-ignore + getPopulator(): org.spongepowered.api.world.gen.Populator; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Post.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Post.ts new file mode 100644 index 00000000..f75b2199 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Post.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace chunk { + namespace PopulateChunkEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.world.chunk.PopulateChunkEvent { + /** + * Returns a copy of the {@link Populator}s that ran + * on this {@link Chunk}. + */ + // @ts-ignore + getAppliedPopulators(): any[] /*java.util.List*/; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Pre.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Pre.ts new file mode 100644 index 00000000..41e184d8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Pre.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace chunk { + namespace PopulateChunkEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.world.chunk.PopulateChunkEvent { + /** + * Returns a mutable list of all pending populators. + */ + // @ts-ignore + getPendingPopulators(): any[] /*java.util.List*/; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.ts new file mode 100644 index 00000000..2cff7ff4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace chunk { + // @ts-ignore + interface PopulateChunkEvent extends org.spongepowered.api.event.world.chunk.TargetChunkEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.TargetChunkEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.TargetChunkEvent.ts new file mode 100644 index 00000000..166d6815 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.TargetChunkEvent.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace chunk { + // @ts-ignore + interface TargetChunkEvent extends org.spongepowered.api.event.Event { + /** + * Gets the {@link Chunk} being changed. + */ + // @ts-ignore + getTargetChunk(): org.spongepowered.api.world.Chunk; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.UnforcedChunkEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.UnforcedChunkEvent.ts new file mode 100644 index 00000000..64343377 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.UnforcedChunkEvent.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace chunk { + // @ts-ignore + interface UnforcedChunkEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the ticket that the chunk was removed from. + */ + // @ts-ignore + getTicket(): org.spongepowered.api.world.ChunkTicketManager.LoadingTicket; + /** + * Gets the chunk coordinates. + */ + // @ts-ignore + getChunkCoords(): any /*Vector3i*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.UnloadChunkEvent.ts b/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.UnloadChunkEvent.ts new file mode 100644 index 00000000..91defe67 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.event.world.chunk.UnloadChunkEvent.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace chunk { + // @ts-ignore + interface UnloadChunkEvent extends org.spongepowered.api.event.world.chunk.TargetChunkEvent { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.FluidStack.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.FluidStack.Builder.ts new file mode 100644 index 00000000..c42adfc6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.FluidStack.Builder.ts @@ -0,0 +1,45 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + namespace FluidStack { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.persistence.DataBuilder { + /** + * Sets the {@link FluidType} to use to build the {@link FluidStack}. + */ + // @ts-ignore + fluid(fluidType: org.spongepowered.api.extra.fluid.FluidType): org.spongepowered.api.extra.fluid.FluidStack.Builder; + /** + * Sets the desired volume of the {@link FluidStack}. + *Note that the volume is measured in "milli buckets", otherwise + * read as {@code mB}. The scaling is as follows: 1 bucket = 1000mB, + * whereas 1 block usually equals 1000mB.
+ */ + // @ts-ignore + volume(volume: number): org.spongepowered.api.extra.fluid.FluidStack.Builder; + /** + * Builds a new {@link FluidStack} based on the desired volume and + * {@link FluidType}. If either are not set (invalid), an + * {@link IllegalStateException} may be thrown. + */ + // @ts-ignore + build(): org.spongepowered.api.extra.fluid.FluidStack; + /** + * Resets and fills this builder with all the information from the + * provided {@link FluidStackSnapshot}. + */ + // @ts-ignore + from(fluidStackSnapshot: org.spongepowered.api.extra.fluid.FluidStackSnapshot): org.spongepowered.api.extra.fluid.FluidStack.Builder; + // @ts-ignore + from(value: org.spongepowered.api.extra.fluid.FluidStack): org.spongepowered.api.extra.fluid.FluidStack.Builder; + // @ts-ignore + reset(): org.spongepowered.api.extra.fluid.FluidStack.Builder; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.FluidStack.ts b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.FluidStack.ts new file mode 100644 index 00000000..e4179b01 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.FluidStack.ts @@ -0,0 +1,44 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + // @ts-ignore + interface FluidStack extends org.spongepowered.api.data.DataHolder { + /** + * Creates a new {@link Builder} to make fluid stacks. + */ + // @ts-ignore + builder(): org.spongepowered.api.extra.fluid.FluidStack.Builder; + /** + * Gets the {@link FluidType} for this fluid stack. + */ + // @ts-ignore + getFluid(): org.spongepowered.api.extra.fluid.FluidType; + /** + * Gets the "volume" of this {@link FluidStack}. + *Note that the volume is measured in "milli buckets", otherwise read + * as {@code mB}. The scaling is as follows: 1 bucket = 1000mB, whereas 1 + * block usually equals 1000mB.
+ */ + // @ts-ignore + getVolume(): number; + /** + * Sets the desired volume for this stack. + *Note that the volume is measured in "milli buckets", otherwise read + * as {@code mB}. The scaling is as follows: 1 bucket = 1000mB, whereas 1 + * block usually equals 1000mB.
+ */ + // @ts-ignore + setVolume(volume: number): org.spongepowered.api.extra.fluid.FluidStack; + /** + * Creates a snapshot of this {@link FluidStack}. + */ + // @ts-ignore + createSnapshot(): org.spongepowered.api.extra.fluid.FluidStackSnapshot; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.FluidStackSnapshot.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.FluidStackSnapshot.Builder.ts new file mode 100644 index 00000000..e50cb281 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.FluidStackSnapshot.Builder.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + namespace FluidStackSnapshot { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.ImmutableDataBuilder { + // @ts-ignore + fluid(fluidType: org.spongepowered.api.extra.fluid.FluidType): org.spongepowered.api.extra.fluid.FluidStackSnapshot.Builder; + // @ts-ignore + volume(volume: number): org.spongepowered.api.extra.fluid.FluidStackSnapshot.Builder; + /** + * Resets this builder and accepts all data from the incoming {@link FluidStack}. + */ + // @ts-ignore + from(fluidStack: org.spongepowered.api.extra.fluid.FluidStack): org.spongepowered.api.extra.fluid.FluidStackSnapshot.Builder; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.FluidStackSnapshot.ts b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.FluidStackSnapshot.ts new file mode 100644 index 00000000..c84bb413 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.FluidStackSnapshot.ts @@ -0,0 +1,36 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + // @ts-ignore + interface FluidStackSnapshot extends org.spongepowered.api.data.ImmutableDataHolder { + /** + * Creates a new {@link Builder} to build a new {@link FluidStackSnapshot}. + */ + // @ts-ignore + builder(): org.spongepowered.api.extra.fluid.FluidStackSnapshot.Builder; + /** + * Gets the {@link FluidType} of this snapshot. + */ + // @ts-ignore + getFluid(): org.spongepowered.api.extra.fluid.FluidType; + /** + * Gets the volume of this snapshot. + *Note that the volume is measured in "milli buckets", otherwise read + * as {@code mB}. The scaling is as follows: 1 bucket = 1000mB, whereas 1 + * block usually equals 1000mB.
+ */ + // @ts-ignore + getVolume(): number; + /** + * Creates a new {@link FluidStack} based on this snapshot. + */ + // @ts-ignore + createStack(): org.spongepowered.api.extra.fluid.FluidStack; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.FluidType.ts b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.FluidType.ts new file mode 100644 index 00000000..6f5b0c27 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.FluidType.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + // @ts-ignore + interface FluidType extends org.spongepowered.api.CatalogType, org.spongepowered.api.data.property.PropertyHolder { + /** + * Gets the {@link BlockType} that normally would represent this fluid + * type if it exists as a block in the world. + */ + // @ts-ignore + getBlockTypeBase(): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.FluidTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.FluidTypes.ts new file mode 100644 index 00000000..c4c57aa0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.FluidTypes.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + // @ts-ignore + class FluidTypes { + // @ts-ignore + public static WATER: org.spongepowered.api.extra.fluid.FluidType; + // @ts-ignore + public static LAVA: org.spongepowered.api.extra.fluid.FluidType; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.data.manipulator.immutable.ImmutableFluidItemData.ts b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.data.manipulator.immutable.ImmutableFluidItemData.ts new file mode 100644 index 00000000..7e64301b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.data.manipulator.immutable.ImmutableFluidItemData.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableFluidItemData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} of the {@link FluidStackSnapshot}. + */ + // @ts-ignore + fluid(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.data.manipulator.immutable.ImmutableFluidTankData.ts b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.data.manipulator.immutable.ImmutableFluidTankData.ts new file mode 100644 index 00000000..2d933c33 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.data.manipulator.immutable.ImmutableFluidTankData.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableFluidTankData extends org.spongepowered.api.data.manipulator.immutable.ImmutableMappedData { + /** + * Gets the {@link MapValue} of the various {@link FluidStackSnapshot}s + * available from the owner. Note that a fluid tank may have multiple + * {@link FluidStack}s differing based on {@link Direction}. + */ + // @ts-ignore + fluids(): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + /** + * Gets the {@link List} of {@link FluidStackSnapshot}s at a defined + * {@link Direction}. + */ + // @ts-ignore + fluidAtDirection(direction: org.spongepowered.api.util.Direction): any; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.data.manipulator.mutable.FluidItemData.ts b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.data.manipulator.mutable.FluidItemData.ts new file mode 100644 index 00000000..17a526c3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.data.manipulator.mutable.FluidItemData.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface FluidItemData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link FluidStackSnapshot} from the owner as a value. + */ + // @ts-ignore + fluid(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.data.manipulator.mutable.FluidTankData.ts b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.data.manipulator.mutable.FluidTankData.ts new file mode 100644 index 00000000..69113517 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.data.manipulator.mutable.FluidTankData.ts @@ -0,0 +1,32 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface FluidTankData extends org.spongepowered.api.data.manipulator.mutable.MappedData { + /** + * Gets the {@link MapValue} of the various {@link FluidStackSnapshot}s + * available from the owner. Note that a fluid tank may have multiple + * {@link FluidStack}s differing based on {@link Direction}. + */ + // @ts-ignore + fluids(): org.spongepowered.api.data.value.mutable.MapValue; + /** + * Gets the {@link List} of {@link FluidStackSnapshot}s at a defined + * {@link Direction}. + */ + // @ts-ignore + fluidAtDirection(direction: org.spongepowered.api.util.Direction): any; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.data.property.FluidTemperatureProperty.ts b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.data.property.FluidTemperatureProperty.ts new file mode 100644 index 00000000..9ddbf755 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.data.property.FluidTemperatureProperty.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + namespace data { + namespace property { + // @ts-ignore + class FluidTemperatureProperty extends org.spongepowered.api.data.property.IntProperty { + /** + * Creates a new {@link FluidTemperatureProperty} with the desired temperature. + */ + constructor(value: number) + /** + * Creates a new {@link FluidTemperatureProperty} with the desired temperature + * and {@link org.spongepowered.api.data.Property.Operator} for comparisons. + */ + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.data.property.FluidViscosityProperty.ts b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.data.property.FluidViscosityProperty.ts new file mode 100644 index 00000000..c2e48755 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.extra.fluid.data.property.FluidViscosityProperty.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + namespace data { + namespace property { + // @ts-ignore + class FluidViscosityProperty extends org.spongepowered.api.data.property.IntProperty { + /** + * Creates a new {@link FluidViscosityProperty} with the desired viscosity. + */ + constructor(value: number) + /** + * Creates a new {@link FluidViscosityProperty} with the desired viscosity + * and {@link org.spongepowered.api.data.Property.Operator} for comparisons. + */ + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.extra.modifier.empty.VoidWorldGeneratorModifier.ts b/packages/sponge/src/typings/org.spongepowered.api.extra.modifier.empty.VoidWorldGeneratorModifier.ts new file mode 100644 index 00000000..91289678 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.extra.modifier.empty.VoidWorldGeneratorModifier.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace modifier { + namespace empty { + // @ts-ignore + class VoidWorldGeneratorModifier implements org.spongepowered.api.world.gen.WorldGeneratorModifier { + constructor() + // @ts-ignore + public modifyWorldGenerator(world: org.spongepowered.api.world.storage.WorldProperties, settings: org.spongepowered.api.data.DataContainer, worldGenerator: org.spongepowered.api.world.gen.WorldGenerator): void; + // @ts-ignore + public getId(): string; + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.extra.modifier.skylands.SkylandsBiomeGenerator.ts b/packages/sponge/src/typings/org.spongepowered.api.extra.modifier.skylands.SkylandsBiomeGenerator.ts new file mode 100644 index 00000000..c417c116 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.extra.modifier.skylands.SkylandsBiomeGenerator.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace modifier { + namespace skylands { + // @ts-ignore + class SkylandsBiomeGenerator implements org.spongepowered.api.world.gen.BiomeGenerator { + constructor() + // @ts-ignore + public generateBiomes(buffer: org.spongepowered.api.world.extent.MutableBiomeVolume): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.extra.modifier.skylands.SkylandsGrassPopulator.ts b/packages/sponge/src/typings/org.spongepowered.api.extra.modifier.skylands.SkylandsGrassPopulator.ts new file mode 100644 index 00000000..f946a51a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.extra.modifier.skylands.SkylandsGrassPopulator.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace modifier { + namespace skylands { + // @ts-ignore + class SkylandsGrassPopulator implements org.spongepowered.api.world.gen.GenerationPopulator { + /** + * Constructs a new grass populator for the Skylands. + */ + constructor() + // @ts-ignore + public populate(world: org.spongepowered.api.world.World, buffer: org.spongepowered.api.world.extent.MutableBlockVolume, biomes: org.spongepowered.api.world.extent.ImmutableBiomeVolume): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.extra.modifier.skylands.SkylandsGroundCoverPopulator.ts b/packages/sponge/src/typings/org.spongepowered.api.extra.modifier.skylands.SkylandsGroundCoverPopulator.ts new file mode 100644 index 00000000..0411012c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.extra.modifier.skylands.SkylandsGroundCoverPopulator.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace modifier { + namespace skylands { + // @ts-ignore + class SkylandsGroundCoverPopulator implements org.spongepowered.api.world.gen.GenerationPopulator { + constructor() + // @ts-ignore + public populate(world: org.spongepowered.api.world.World, buffer: org.spongepowered.api.world.extent.MutableBlockVolume, biomes: org.spongepowered.api.world.extent.ImmutableBiomeVolume): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.extra.modifier.skylands.SkylandsTerrainGenerator.ts b/packages/sponge/src/typings/org.spongepowered.api.extra.modifier.skylands.SkylandsTerrainGenerator.ts new file mode 100644 index 00000000..ee3cb142 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.extra.modifier.skylands.SkylandsTerrainGenerator.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace modifier { + namespace skylands { + // @ts-ignore + class SkylandsTerrainGenerator implements org.spongepowered.api.world.gen.GenerationPopulator { + /** + * Constructs a new Skylands terrain generator. + */ + constructor() + // @ts-ignore + public static MAX_HEIGHT: number; + // @ts-ignore + public static MIN_HEIGHT: number; + // @ts-ignore + public populate(world: org.spongepowered.api.world.World, buffer: org.spongepowered.api.world.extent.MutableBlockVolume, biomes: org.spongepowered.api.world.extent.ImmutableBiomeVolume): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.extra.modifier.skylands.SkylandsWorldGeneratorModifier.ts b/packages/sponge/src/typings/org.spongepowered.api.extra.modifier.skylands.SkylandsWorldGeneratorModifier.ts new file mode 100644 index 00000000..5ee87e00 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.extra.modifier.skylands.SkylandsWorldGeneratorModifier.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace modifier { + namespace skylands { + // @ts-ignore + class SkylandsWorldGeneratorModifier implements org.spongepowered.api.world.gen.WorldGeneratorModifier { + constructor() + // @ts-ignore + public modifyWorldGenerator(properties: org.spongepowered.api.world.storage.WorldProperties, settings: org.spongepowered.api.data.DataContainer, worldGenerator: org.spongepowered.api.world.gen.WorldGenerator): void; + // @ts-ignore + public getId(): string; + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.FireworkEffect.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.item.FireworkEffect.Builder.ts new file mode 100644 index 00000000..ec249bf3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.FireworkEffect.Builder.ts @@ -0,0 +1,78 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace FireworkEffect { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets whether the {@link FireworkEffect} is going to have a trail + * or not. + */ + // @ts-ignore + trail(trail: boolean): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Sets whether the {@link FireworkEffect} is going to flicker + * on explosion. + */ + // @ts-ignore + flicker(flicker: boolean): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Adds the given {@link Color} to the initial explosion colors. + *Colors can be mixed and matched in the order they are added + * in.
+ */ + // @ts-ignore + color(color: org.spongepowered.api.util.Color): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Adds the given {@link Color}s to the initial explosion colors. + *Colors can be mixed and matched in the order they are added + * in.
+ */ + // @ts-ignore + colors(colors: org.spongepowered.api.util.Color): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Adds the given {@link Color}s to the initial explosion colors. + *Colors can be mixed and matched in the order they are added + * in.
+ */ + // @ts-ignore + colors(colors: any): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Adds the given {@link Color} to the fade colors. + *Colors can be mixed and matched in the order they are added + * in.
+ */ + // @ts-ignore + fade(color: org.spongepowered.api.util.Color): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Adds the given {@link Color}s to the fade colors. + *Colors can be mixed and matched in the order they are added + * in.
+ */ + // @ts-ignore + fades(colors: org.spongepowered.api.util.Color): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Adds the given {@link Color}s to the fade colors. + *Colors can be mixed and matched in the order they are added + * in.
+ */ + // @ts-ignore + fades(colors: any): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Sets the shape of the {@link FireworkEffect} explosion. + */ + // @ts-ignore + shape(shape: org.spongepowered.api.item.FireworkShape): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Builds a {@link FireworkEffect} based on the current state of this + * builder. + */ + // @ts-ignore + build(): org.spongepowered.api.item.FireworkEffect; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.FireworkEffect.ts b/packages/sponge/src/typings/org.spongepowered.api.item.FireworkEffect.ts new file mode 100644 index 00000000..12d59c40 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.FireworkEffect.ts @@ -0,0 +1,47 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + // @ts-ignore + interface FireworkEffect extends org.spongepowered.api.data.DataSerializable { + /** + * Creates a new {@link Builder} to build a {@link FireworkEffect}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Gets whether this {@link FireworkEffect} will flicker when + * detonated. + */ + // @ts-ignore + flickers(): boolean; + /** + * Gets whether this {@link FireworkEffect} will have a trail + * when detonated. + */ + // @ts-ignore + hasTrail(): boolean; + /** + * Gets the ordered list of colors. + *In some implementations, the order of colors defines the colors + * showing from edge to center of the firework explosion.
+ */ + // @ts-ignore + getColors(): any[] /*java.util.List*/; + /** + * Gets the ordered list of colors. + *Normally in vanilla, the order of colors defines the colors + * showing from edge to center of the firework explosion.
+ */ + // @ts-ignore + getFadeColors(): any[] /*java.util.List*/; + /** + * Gets the explosion shape. + */ + // @ts-ignore + getShape(): org.spongepowered.api.item.FireworkShape; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.FireworkShape.ts b/packages/sponge/src/typings/org.spongepowered.api.item.FireworkShape.ts new file mode 100644 index 00000000..3b7e7765 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.FireworkShape.ts @@ -0,0 +1,11 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + // @ts-ignore + interface FireworkShape extends org.spongepowered.api.CatalogType { + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.FireworkShapes.ts b/packages/sponge/src/typings/org.spongepowered.api.item.FireworkShapes.ts new file mode 100644 index 00000000..05bb9509 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.FireworkShapes.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + // @ts-ignore + class FireworkShapes { + // @ts-ignore + public static BALL: org.spongepowered.api.item.FireworkShape; + // @ts-ignore + public static BURST: org.spongepowered.api.item.FireworkShape; + // @ts-ignore + public static CREEPER: org.spongepowered.api.item.FireworkShape; + // @ts-ignore + public static LARGE_BALL: org.spongepowered.api.item.FireworkShape; + // @ts-ignore + public static STAR: org.spongepowered.api.item.FireworkShape; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.ItemType.ts b/packages/sponge/src/typings/org.spongepowered.api.item.ItemType.ts new file mode 100644 index 00000000..a7916a97 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.ItemType.ts @@ -0,0 +1,48 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + // @ts-ignore + interface ItemType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable, org.spongepowered.api.GameDictionary.Entry { + /** + * Gets the corresponding {@link BlockType} of this item if one exists. + */ + // @ts-ignore + getBlock(): any; + /** + * Gets the id of this item. + *Ex. Minecraft registers a golden carrot as + * "minecraft:golden_carrot".
+ */ + // @ts-ignore + getName(): string; + /** + * Gets the default maximum quantity for + * {@link ItemStack}s of this item. + */ + // @ts-ignore + getMaxStackQuantity(): number; + /** + * Gets the default {@link Property} of this {@link ItemType}. + *While item stacks do have properties, generally, there is an + * intrinsic default property for many item types. However, it should be + * considered that when mods are introducing their own custom items, they + * too could introduce different item properties based on various data on + * the item stack. The default properties retrieved from here should merely + * be considered as a default, not as a definitive property.
+ */ + // @ts-ignore + getDefaultProperty(propertyClass: any): any; + // @ts-ignore + getType(): org.spongepowered.api.item.ItemType; + // @ts-ignore + matches(stack: org.spongepowered.api.item.inventory.ItemStack): boolean; + // @ts-ignore + isSpecific(): boolean; + // @ts-ignore + getTemplate(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.ItemTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.item.ItemTypes.ts new file mode 100644 index 00000000..8dd23a5b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.ItemTypes.ts @@ -0,0 +1,835 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + // @ts-ignore + class ItemTypes { + // @ts-ignore + public static ACACIA_BOAT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ACACIA_DOOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ACACIA_FENCE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ACACIA_FENCE_GATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ACACIA_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ACTIVATOR_RAIL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static AIR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ANVIL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static APPLE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ARMOR_STAND: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ARROW: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BAKED_POTATO: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BANNER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BARRIER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BEACON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BED: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BEDROCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BEEF: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BEETROOT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BEETROOT_SEEDS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BEETROOT_SOUP: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BIRCH_BOAT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BIRCH_DOOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BIRCH_FENCE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BIRCH_FENCE_GATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BIRCH_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BLACK_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BLACK_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BLAZE_POWDER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BLAZE_ROD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BLUE_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BLUE_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BOAT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BONE_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BOOK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BOOKSHELF: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BOW: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BOWL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BREAD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BREWING_STAND: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BRICK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BRICK_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BRICK_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BROWN_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BROWN_MUSHROOM: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BROWN_MUSHROOM_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BROWN_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BUCKET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CACTUS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CAKE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CARPET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CARROT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CARROT_ON_A_STICK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CAULDRON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHAINMAIL_BOOTS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHAINMAIL_CHESTPLATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHAINMAIL_HELMET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHAINMAIL_LEGGINGS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHAIN_COMMAND_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHEST: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHEST_MINECART: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHICKEN: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHORUS_FLOWER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHORUS_FRUIT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHORUS_FRUIT_POPPED: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHORUS_PLANT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CLAY: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CLAY_BALL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COAL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COAL_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COAL_ORE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COBBLESTONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COBBLESTONE_WALL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COMMAND_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COMMAND_BLOCK_MINECART: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COMPARATOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COMPASS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CONCRETE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CONCRETE_POWDER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COOKED_BEEF: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COOKED_CHICKEN: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COOKED_FISH: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COOKED_MUTTON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COOKED_PORKCHOP: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COOKED_RABBIT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COOKIE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CRAFTING_TABLE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CYAN_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CYAN_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DARK_OAK_BOAT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DARK_OAK_DOOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DARK_OAK_FENCE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DARK_OAK_FENCE_GATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DARK_OAK_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DAYLIGHT_DETECTOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DEADBUSH: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DETECTOR_RAIL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_AXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_BOOTS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_CHESTPLATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_HELMET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_HOE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_HORSE_ARMOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_LEGGINGS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_ORE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_PICKAXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_SHOVEL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_SWORD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIRT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DISPENSER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DOUBLE_PLANT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DRAGON_BREATH: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DRAGON_EGG: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DROPPER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DYE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static EGG: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ELYTRA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static EMERALD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static EMERALD_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static EMERALD_ORE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ENCHANTED_BOOK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ENCHANTING_TABLE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ENDER_CHEST: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ENDER_EYE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ENDER_PEARL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static END_BRICKS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static END_CRYSTAL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static END_PORTAL_FRAME: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static END_ROD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static END_STONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static EXPERIENCE_BOTTLE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FARMLAND: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FEATHER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FENCE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FENCE_GATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FERMENTED_SPIDER_EYE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FILLED_MAP: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FIREWORKS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FIREWORK_CHARGE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FIRE_CHARGE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FISH: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FISHING_ROD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FLINT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FLINT_AND_STEEL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FLOWER_POT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FURNACE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FURNACE_MINECART: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GHAST_TEAR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GLASS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GLASS_BOTTLE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GLASS_PANE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GLOWSTONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GLOWSTONE_DUST: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_APPLE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_AXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_BOOTS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_CARROT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_CHESTPLATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_HELMET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_HOE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_HORSE_ARMOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_LEGGINGS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_PICKAXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_RAIL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_SHOVEL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_SWORD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLD_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLD_INGOT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLD_NUGGET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLD_ORE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GRASS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GRASS_PATH: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GRAVEL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GRAY_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GRAY_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GREEN_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GREEN_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GUNPOWDER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static HARDENED_CLAY: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static HAY_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static HEAVY_WEIGHTED_PRESSURE_PLATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static HOPPER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static HOPPER_MINECART: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ICE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_AXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_BARS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_BOOTS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_CHESTPLATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_DOOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_HELMET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_HOE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_HORSE_ARMOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_INGOT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_LEGGINGS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_NUGGET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_ORE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_PICKAXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_SHOVEL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_SWORD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_TRAPDOOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ITEM_FRAME: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static JUKEBOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static JUNGLE_BOAT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static JUNGLE_DOOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static JUNGLE_FENCE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static JUNGLE_FENCE_GATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static JUNGLE_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static KNOWLEDGE_BOOK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LADDER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LAPIS_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LAPIS_ORE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LAVA_BUCKET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LEAD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LEATHER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LEATHER_BOOTS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LEATHER_CHESTPLATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LEATHER_HELMET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LEATHER_LEGGINGS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LEAVES: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LEAVES2: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LEVER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LIGHT_BLUE_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LIGHT_BLUE_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LIGHT_WEIGHTED_PRESSURE_PLATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LIME_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LIME_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LINGERING_POTION: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LIT_PUMPKIN: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LOG: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LOG2: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MAGENTA_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MAGENTA_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MAGMA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MAGMA_CREAM: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MAP: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MELON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MELON_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MELON_SEEDS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MILK_BUCKET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MINECART: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MOB_SPAWNER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MONSTER_EGG: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MOSSY_COBBLESTONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MUSHROOM_STEW: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MUTTON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MYCELIUM: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NAME_TAG: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NETHERBRICK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NETHERRACK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NETHER_BRICK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NETHER_BRICK_FENCE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NETHER_BRICK_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NETHER_STAR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NETHER_WART: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NETHER_WART_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NOTEBLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static OAK_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static OBSERVER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static OBSIDIAN: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ORANGE_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ORANGE_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PACKED_ICE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PAINTING: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PAPER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PINK_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PINK_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PISTON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PLANKS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static POISONOUS_POTATO: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PORKCHOP: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static POTATO: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static POTION: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PRISMARINE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PRISMARINE_CRYSTALS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PRISMARINE_SHARD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PUMPKIN: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PUMPKIN_PIE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PUMPKIN_SEEDS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PURPLE_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PURPLE_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PURPUR_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PURPUR_PILLAR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PURPUR_SLAB: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PURPUR_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static QUARTZ: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static QUARTZ_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static QUARTZ_ORE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static QUARTZ_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RABBIT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RABBIT_FOOT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RABBIT_HIDE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RABBIT_STEW: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RAIL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_11: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_13: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_BLOCKS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_CAT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_CHIRP: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_FAR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_MALL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_MELLOHI: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_STAL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_STRAD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_WAIT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_WARD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static REDSTONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static REDSTONE_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static REDSTONE_LAMP: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static REDSTONE_ORE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static REDSTONE_TORCH: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RED_FLOWER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RED_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RED_MUSHROOM: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RED_MUSHROOM_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RED_NETHER_BRICK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RED_SANDSTONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RED_SANDSTONE_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RED_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static REEDS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static REPEATER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static REPEATING_COMMAND_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ROTTEN_FLESH: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SADDLE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SAND: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SANDSTONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SANDSTONE_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SAPLING: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SEA_LANTERN: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SHEARS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SHIELD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SHULKER_SHELL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SIGN: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SILVER_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SILVER_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SKULL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SLIME: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SLIME_BALL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SNOW: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SNOWBALL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SNOW_LAYER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SOUL_SAND: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPAWN_EGG: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPECKLED_MELON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPECTRAL_ARROW: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPIDER_EYE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPLASH_POTION: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPONGE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPRUCE_BOAT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPRUCE_DOOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPRUCE_FENCE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPRUCE_FENCE_GATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPRUCE_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STAINED_GLASS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STAINED_GLASS_PANE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STAINED_HARDENED_CLAY: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STICK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STICKY_PISTON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONEBRICK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_AXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_BRICK_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_BUTTON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_HOE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_PICKAXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_PRESSURE_PLATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_SHOVEL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_SLAB: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_SLAB2: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_SWORD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STRING: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STRUCTURE_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STRUCTURE_VOID: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SUGAR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static TALLGRASS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static TIPPED_ARROW: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static TNT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static TNT_MINECART: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static TORCH: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static TOTEM_OF_UNDYING: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static TRAPDOOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static TRAPPED_CHEST: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static TRIPWIRE_HOOK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static VINE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WATERLILY: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WATER_BUCKET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WEB: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WHEAT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WHEAT_SEEDS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WHITE_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WHITE_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOODEN_AXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOODEN_BUTTON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOODEN_DOOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOODEN_HOE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOODEN_PICKAXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOODEN_PRESSURE_PLATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOODEN_SHOVEL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOODEN_SLAB: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOODEN_SWORD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOOL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WRITABLE_BOOK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WRITTEN_BOOK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static YELLOW_FLOWER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static YELLOW_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static YELLOW_SHULKER_BOX: org.spongepowered.api.item.ItemType; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.enchantment.Enchantment.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.item.enchantment.Enchantment.Builder.ts new file mode 100644 index 00000000..eceb90b0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.enchantment.Enchantment.Builder.ts @@ -0,0 +1,37 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace enchantment { + namespace Enchantment { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.persistence.DataBuilder { + /** + * Sets the {@link EnchantmentType} for this enchantment. + */ + // @ts-ignore + type(enchantmentType: org.spongepowered.api.item.enchantment.EnchantmentType): org.spongepowered.api.item.enchantment.Enchantment.Builder; + /** + * Sets the level for this enchantment. + *This level must be between {@link Short#MIN_VALUE} and
+ * {@link Short#MAX_VALUE}, but there is no guarantee all levels will
+ * work properly without error. It is recommended for reliable results
+ * you stay between {@link EnchantmentType#getMinimumLevel()} and
+ * {@link EnchantmentType#getMaximumLevel()}, or at least larger
+ * than 0
and less than {@link Short#MAX_VALUE}.
If empty a pool will be calculated based on the other values instead.
+ */ + // @ts-ignore + fixedPool(pool: any[] /*java.util.List*/): org.spongepowered.api.item.enchantment.Enchantment.RandomListBuilder; + /** + * Sets the item for which the enchantments are chosen + */ + // @ts-ignore + item(item: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.enchantment.Enchantment.RandomListBuilder; + /** + * Builds an instance of a {@link Enchantment} based on the entered + * information. + */ + // @ts-ignore + build(): any[] /*java.util.List*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.enchantment.Enchantment.ts b/packages/sponge/src/typings/org.spongepowered.api.item.enchantment.Enchantment.ts new file mode 100644 index 00000000..5a3b8c7e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.enchantment.Enchantment.ts @@ -0,0 +1,36 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace enchantment { + // @ts-ignore + interface Enchantment extends org.spongepowered.api.data.DataSerializable { + /** + * Creates a new {@link Builder} to create an {@link Enchantment}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.enchantment.Enchantment.Builder; + // @ts-ignore + randomListBuilder(): org.spongepowered.api.item.enchantment.Enchantment.RandomListBuilder; + /** + * Creates a new {@link Enchantment} with the provided + * {@link EnchantmentType} and level. + */ + // @ts-ignore + of(enchantmentType: org.spongepowered.api.item.enchantment.EnchantmentType, level: number): org.spongepowered.api.item.enchantment.Enchantment; + /** + * Gets the {@link EnchantmentType} for this enchantment. + */ + // @ts-ignore + getType(): org.spongepowered.api.item.enchantment.EnchantmentType; + /** + * Gets the level of this enchantment. + */ + // @ts-ignore + getLevel(): number; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.enchantment.EnchantmentType.ts b/packages/sponge/src/typings/org.spongepowered.api.item.enchantment.EnchantmentType.ts new file mode 100644 index 00000000..9bf4b746 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.enchantment.EnchantmentType.ts @@ -0,0 +1,73 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace enchantment { + // @ts-ignore + interface EnchantmentType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + /** + * Gets the weight of this enchantment type. + *Higher values are more common. This value is also used in the repair + * cost calculation.
+ */ + // @ts-ignore + getWeight(): number; + /** + * Gets the minimum level of this enchantment type allowed where + * it is present. + */ + // @ts-ignore + getMinimumLevel(): number; + /** + * Gets the maximum level of this enchantment type normally allowed. + */ + // @ts-ignore + getMaximumLevel(): number; + /** + * Gets the minimum item enchantability for this level to be normally added + * by enchanting tables. + */ + // @ts-ignore + getMinimumEnchantabilityForLevel(level: number): number; + /** + * Gets the maximum item enchantability for this level to be normally added + * by enchanting tables. + */ + // @ts-ignore + getMaximumEnchantabilityForLevel(level: number): number; + /** + * Test if this enchantment type can be applied to an {@link ItemStack}. + */ + // @ts-ignore + canBeAppliedToStack(stack: org.spongepowered.api.item.inventory.ItemStack): boolean; + /** + * Test if this enchantment type can be applied to an {@link ItemStack} by + * the {@link EnchantmentTable}. + */ + // @ts-ignore + canBeAppliedByTable(stack: org.spongepowered.api.item.inventory.ItemStack): boolean; + /** + * Test if this enchantment type can be applied along with + * another enchantment type. + */ + // @ts-ignore + isCompatibleWith(enchantmentType: org.spongepowered.api.item.enchantment.EnchantmentType): boolean; + /** + * Gets whether or not this enchantment type is considered a "treasure" + * enchantment. + *These do not occur naturally in enchantment tables.
+ */ + // @ts-ignore + isTreasure(): boolean; + /** + * Gets whether or not this enchantment type is considered a "curse" + * enchantment. + */ + // @ts-ignore + isCurse(): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.enchantment.EnchantmentTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.item.enchantment.EnchantmentTypes.ts new file mode 100644 index 00000000..f6c2b996 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.enchantment.EnchantmentTypes.ts @@ -0,0 +1,73 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentTypes { + // @ts-ignore + public static AQUA_AFFINITY: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static BANE_OF_ARTHROPODS: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static BINDING_CURSE: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static BLAST_PROTECTION: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static DEPTH_STRIDER: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static EFFICIENCY: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static FEATHER_FALLING: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static FIRE_ASPECT: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static FIRE_PROTECTION: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static FLAME: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static FORTUNE: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static FROST_WALKER: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static INFINITY: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static KNOCKBACK: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static LOOTING: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static LUCK_OF_THE_SEA: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static LURE: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static MENDING: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static POWER: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static PROJECTILE_PROTECTION: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static PROTECTION: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static PUNCH: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static RESPIRATION: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static SHARPNESS: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static SILK_TOUCH: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static SMITE: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static SWEEPING: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static THORNS: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static UNBREAKING: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static VANISHING_CURSE: org.spongepowered.api.item.enchantment.EnchantmentType; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.inventory.AnvilCost.ts b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.AnvilCost.ts new file mode 100644 index 00000000..6c67025e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.AnvilCost.ts @@ -0,0 +1,33 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface AnvilCost extends org.spongepowered.api.data.DataSerializable { + /** + * Returns the level cost. + */ + // @ts-ignore + getLevelCost(): number; + /** + * Returns the material cost. + */ + // @ts-ignore + getMaterialCost(): number; + /** + * Returns a modified copy of the Costs + */ + // @ts-ignore + withLevelCost(levelCost: number): org.spongepowered.api.item.inventory.AnvilCost; + /** + * Returns a modified copy of the Costs + */ + // @ts-ignore + withMaterialCost(materialCost: number): org.spongepowered.api.item.inventory.AnvilCost; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.inventory.BlockCarrier.ts b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.BlockCarrier.ts new file mode 100644 index 00000000..3f9fb75d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.BlockCarrier.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface BlockCarrier extends org.spongepowered.api.item.inventory.Carrier, org.spongepowered.api.world.Locatable { + /** + * Returns the Location of the Block. + */ + // @ts-ignore + getLocation(): org.spongepowered.api.world.Location; + /** + * Returns the Inventory owned by this Carrier and accessible from + * the given direction. + *e.g. A Furnace accessed from {@link Direction#DOWN} will return its Fuel Slot
+ *When no inventory is accessible a {@link EmptyInventory} is returned
+ */ + // @ts-ignore + getInventory(from: org.spongepowered.api.util.Direction): org.spongepowered.api.item.inventory.Inventory; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.inventory.Carrier.ts b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.Carrier.ts new file mode 100644 index 00000000..9b794ade --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.Carrier.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface Carrier { + /** + * Returns the inventory that this Carrier is holding. + */ + // @ts-ignore + getInventory(): org.spongepowered.api.item.inventory.type.CarriedInventory; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.inventory.Container.ts b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.Container.ts new file mode 100644 index 00000000..23d97d94 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.Container.ts @@ -0,0 +1,42 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface Container extends org.spongepowered.api.item.inventory.type.Interactable { + /** + * Gets the current viewers looking at this Inventory. + */ + // @ts-ignore + getViewers(): any[] /*java.util.Set*/; + /** + * Checks for whether this Inventory currently has viewers. + */ + // @ts-ignore + hasViewers(): boolean; + /** + * Shows this Inventory to the given viewer. + */ + // @ts-ignore + open(viewer: org.spongepowered.api.entity.living.player.Player): void; + /** + * Stops showing this Inventory to the given viewer. + */ + // @ts-ignore + close(viewer: org.spongepowered.api.entity.living.player.Player): void; + /** + * Returns whether given slot is part of the viewed inventories + * but not part of the viewers own inventory. + *Examples for viewed inventory slots:
+ *All the slots of the opened chest and not the player grid below.
+ *The slots of the crafting grid in the opened player inventory.
+ */ + // @ts-ignore + isViewedSlot(slot: org.spongepowered.api.item.inventory.Slot): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.inventory.EmptyInventory.ts b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.EmptyInventory.ts new file mode 100644 index 00000000..28bcfaa1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.EmptyInventory.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface EmptyInventory extends org.spongepowered.api.item.inventory.Inventory { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.inventory.Inventory.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.Inventory.Builder.ts new file mode 100644 index 00000000..5c3c29df --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.Inventory.Builder.ts @@ -0,0 +1,57 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace Inventory { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the base {@link InventoryArchetype} for the Inventory. + */ + // @ts-ignore + of(archetype: org.spongepowered.api.item.inventory.InventoryArchetype): org.spongepowered.api.item.inventory.Inventory.Builder; + /** + * Sets an {@link InventoryProperty}. + */ + // @ts-ignore + property(name: string, property: org.spongepowered.api.item.inventory.InventoryProperty): org.spongepowered.api.item.inventory.Inventory.Builder; + /** + * Sets an {@link InventoryProperty} with its default key. + */ + // @ts-ignore + property(property: org.spongepowered.api.item.inventory.InventoryProperty): org.spongepowered.api.item.inventory.Inventory.Builder; + /** + * Sets the {@link Carrier} that carries the Inventory. + */ + // @ts-ignore + withCarrier(carrier: org.spongepowered.api.item.inventory.Carrier): org.spongepowered.api.item.inventory.Inventory.Builder; + /** + * Registers a listener for given Event type + */ + // @ts-ignore + listener(type: any, listener: any): org.spongepowered.api.item.inventory.Inventory.Builder; + /** + * Sets the InventoryArchetype and Properties according to the + * {@link Carrier}s Inventory. + */ + // @ts-ignore + forCarrier(carrier: org.spongepowered.api.item.inventory.Carrier): org.spongepowered.api.item.inventory.Inventory.Builder; + /** + * Sets the InventoryArchetype and Properties for a default Inventory of + * given {@link Carrier}. + */ + // @ts-ignore + forCarrier(carrier: any): org.spongepowered.api.item.inventory.Inventory.Builder; + /** + * Builds the {@link Inventory}. + */ + // @ts-ignore + build(plugin: any): org.spongepowered.api.item.inventory.Inventory; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.inventory.Inventory.ts b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.Inventory.ts new file mode 100644 index 00000000..a8b6e57e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.Inventory.ts @@ -0,0 +1,384 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface Inventory extends org.spongepowered.api.Nameable { + /** + * Creates a new {@link Inventory.Builder} to build an {@link Inventory}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.inventory.Inventory.Builder; + /** + * Gets the parent {@link Inventory} of this {@link Inventory}. + */ + // @ts-ignore + parent(): org.spongepowered.api.item.inventory.Inventory; + /** + * Gets the root {@link Inventory} of this {@link Inventory}. + * This is equivalent to calling {@link #parent()} until it returns itself. + */ + // @ts-ignore + root(): org.spongepowered.api.item.inventory.Inventory; + /** + * Returns an iterable view of all {@link Slot}s (leaf nodes) in this + * Inventory. + */ + // @ts-ignore + slots(): any; + /** + * Return the first child inventory, effectively the same as + *Inventory::iterator().next()
but more convenient when we are
+ * expecting a result set with only a single entry. Also use type specifier
+ * to allow easy pseudo-duck-typing. If no children, then returns
+ * this
.
+ */
+ // @ts-ignore
+ first(): org.spongepowered.api.item.inventory.Inventory;
+ /**
+ * Return the next sibling inventory, allows traversing the inventory
+ * hierarchy without using an iterator. If no more siblings, returns an
+ * {@link EmptyInventory}.
+ */
+ // @ts-ignore
+ next(): org.spongepowered.api.item.inventory.Inventory;
+ /**
+ * Gets and remove the first available stack from this Inventory.
+ * 'Available' has a different meaning for different inventory types. In + * a single-slot inventory this has a fixed implication. However larger and + * more complex inventories are at liberty to implement whatever logic they + * wish to back this method. If an inventory cannot provide a meaningful + * implementation of this method then it should return + * {@link Optional#empty()} instead.
+ *For consumers, this means that just because an inventory doesn't + * return anything here, this does not imply that the inventory is empty, + * just that a more specific query is required to obtain items from it.
+ */ + // @ts-ignore + poll(): any; + /** + *Get and remove up to limit
items of the type in the first
+ * available stack in this Inventory from all stacks in this Inventory. If
+ * no stack is available then {@link Optional#empty()} is returned (as per
+ * the usual behaviour of {@link #poll()}, otherwise a new {@link ItemStack}
+ * is returned containing the removed items, the contents of the stack in
+ * the inventory are reduced by the number of items consumed. Note that this
+ * method attempts to consume items into the output up to
+ * limit
, which may consume items from an arbitrary number
+ * of internal slots.
For example, assume an inventory containing 4 slots contains stacks as + * follows:
+ *+ *+ *[Stone x10] [Dirt x3] [Arrows x9] [Stone x32]+ *
Calling poll(16)
on this inventory will consume Stone
+ * from the Inventory (because the first stack contains stone), and
+ * will then consume the remaining 6 items from the 4th slot.
It is intended that this method is used in conjunction with a query + * which returns a set of slots containing a specific item type:
+ *+ *+ */ + // @ts-ignore + poll(limit: number): any; + /** + * Gets without removing the first available stack from this Inventory. For + * the definition of 'available', see {@link #poll}. + */ + // @ts-ignore + peek(): any; + /** + * Uses the same semantics as {@link #poll(int)} but does not remove the + * items from the inventory. The {@link ItemStack} returned is thus a + * new ItemStack containing a copy of the items in inventory. Use + * this method only if you wish to determine whether a call to + * {@link #poll(int)} is likely to succeed. + */ + // @ts-ignore + peek(limit: number): any; + /** + * Try to put an ItemStack into this Inventory. Just like + * {@link Queue}, this method returns true if the Inventory + * accepted the stack and false if not, the size of the supplied stack is + * reduced by the number of items successfully consumed by the Inventory. + *Optional<ItemStack> q = inv.query(ItemTypes.DIRT).poll(1); + *+ *
Unlike {@link #set}, this method's general contract does not permit + * items in the Inventory to be replaced. However trying to insert items + * that an Inventory cannot accept is not an error condition, the size of + * the supplied stack will simply not be reduced if no items are consumed by + * the Inventory.
+ */ + // @ts-ignore + offer(stack: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult; + /** + * Returns true if the entire stack can fit in this inventory. + *If this returns {@code true} {@link #offer(ItemStack)} should always succeed.
+ */ + // @ts-ignore + canFit(stack: org.spongepowered.api.item.inventory.ItemStack): boolean; + /** + * Forcibly put the supplied stack into this inventory. Overwrites existing + * objects in the inventory as required to accommodate the entire stack. The + * entire stack is always consumed. + *The general contract of this method is to prioritise insertion of the + * supplied items over items already in the Inventory. However the Inventory + * may still reject the supplied items if they are of an unsupported type + * for the target (for example trying to insert non-fuel items into a fuel + * slot) or if the number of items is larger than the total capacity of the + * inventory and not all items from the supplied stack can be consumed.
+ *For {@link Slot}s, the supplied stack is generally consumed and the + * existing contents ejected (at the discretion of the target Inventory). + * For multi-slot inventories the insertion order is up to the target + * inventory to decide, and does not have to match the traversal order of + * the leaf nodes as supplied by {@link #slots()}, although this is + * generally recommended. Inventories should document their specific + * insertion logic where the insertion order differs from the traversal + * order.
+ *Consumers should inspect the returned + * {@link InventoryTransactionResult} and act accordingly. Ejected items + * should generally be "thrown" into the world or deposited into another + * Inventory (depending on the operation in question. The supplied stack is + * not adjusted, any rejected items are returned in the operation result + * struct.
+ */ + // @ts-ignore + set(stack: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult; + /** + * Clears this inventory if it is clearable. + */ + // @ts-ignore + clear(): void; + /** + * The number of non-empty slots in the Inventory. Either 1 or 0 for + * {@link Slot}s and always 0 for {@link EmptyInventory}s. + */ + // @ts-ignore + size(): number; + /** + * Returns the number total number of individual items in this + * inventory. + *This equivalent to counting up the stack sizes of all slots.
+ */ + // @ts-ignore + totalItems(): number; + /** + * The maximum number of stacks the Inventory can hold. Always 1 for + * {@link Slot}s and always 0 for {@link EmptyInventory}s. + */ + // @ts-ignore + capacity(): number; + /** + * Returns true if this Inventory contains children. If false, this does not + * imply that the Inventory accepts no items, and an Inventory is perfectly + * at liberty to provide {@link #peek}, {@link #poll}, {@link #offer} and + * {@link #set} semantics even if it has no internal storage of its own. + */ + // @ts-ignore + hasChildren(): boolean; + /** + * Checks whether the stacks quantity or more of given stack is + * contained in this Inventory. This is equivalent to calling + *!inv.query(stack).hasChildren();
To check if an
+ * inventory contains any amount use {@link #containsAny(ItemStack)}.
+ */
+ // @ts-ignore
+ contains(stack: org.spongepowered.api.item.inventory.ItemStack): boolean;
+ /**
+ * Checks for whether there is a stack in this Inventory with the given
+ * ItemType. This is equivalent to calling !inv.query(stack)
+ * .hasChildren();
+ */
+ // @ts-ignore
+ contains(type: org.spongepowered.api.item.ItemType): boolean;
+ /**
+ * Checks whether the given stack is contained in this Inventory.
+ * The stack size is ignored. Note this will return true if any amount
+ * of the supplied stack is found. To check if an inventory contains at
+ * least an amount use {@link #contains(ItemStack)}.
+ */
+ // @ts-ignore
+ containsAny(stack: org.spongepowered.api.item.inventory.ItemStack): boolean;
+ /**
+ * Returns the maximum size of any stack in this Inventory.
+ */
+ // @ts-ignore
+ getMaxStackSize(): number;
+ /**
+ * Sets the maximum stack size of any stack in this ItemList.
+ */
+ // @ts-ignore
+ setMaxStackSize(size: number): void;
+ /**
+ * Returns all properties matching the supplied type defined in
+ * this inventory for the specified (immediate) sub-inventory. If
+ * no matching properties are defined an empty collection is returned.
+ */
+ // @ts-ignore
+ getProperties(child: org.spongepowered.api.item.inventory.Inventory, property: any): any[] /*java.util.Collection*/;
+ /**
+ * Gets all properties of the specified type defined directly on this
+ * Inventory. For sub-inventories this is effectively the same as
+ * inv.getParent().getProperty(inv, property);
but for
+ * top-level inventories may include properties defined on the inventory
+ * directly.
+ */
+ // @ts-ignore
+ getProperties(property: any): any[] /*java.util.Collection*/;
+ /**
+ * Gets the property with the specified key defined in this
+ * inventory for the specified (immediate) sub-inventory.
+ */
+ // @ts-ignore
+ getProperty(child: org.spongepowered.api.item.inventory.Inventory, property: any, key: any): any;
+ /**
+ * Gets a property with the specified key defined directly on this Inventory
+ * if one is defined. For sub-inventories this is effectively the same as
+ * inv.getParent().getProperty(inv, property, key);
but for
+ * top-level inventories may include properties defined on the inventory
+ * directly.
+ */
+ // @ts-ignore
+ getProperty(property: any, key: any): any;
+ /**
+ * Gets the property with the default key defined in this
+ * inventory for the specified (immediate) sub-inventory.
+ */
+ // @ts-ignore
+ getInventoryProperty(child: org.spongepowered.api.item.inventory.Inventory, property: any): any;
+ /**
+ * Gets a property with the default key defined directly on this Inventory
+ * if one is defined. For sub-inventories this is effectively the same as
+ * inv.getParent().getProperty(inv, property);
but for
+ * top-level inventories may include properties defined on the inventory
+ * directly.
+ */
+ // @ts-ignore
+ getInventoryProperty(property: any): any;
+ /**
+ * Query this inventory for inventories matching any of the supplied types.
+ * This is effectively an instanceof
check against each child
+ * inventory. Logical OR
is applied between operands.
+ */
+ // @ts-ignore
+ query(types: any): org.spongepowered.api.item.inventory.Inventory;
+ /**
+ * Query this inventory for inventories containing any of the supplied item
+ * types. This query operates directly on {@link Slot} leaf nodes in the
+ * inventory and will always return a collection containing only
+ * {@link Slot} instances. Logical OR
is applied between
+ * operands.
+ */
+ // @ts-ignore
+ query(types: org.spongepowered.api.item.ItemType): org.spongepowered.api.item.inventory.Inventory;
+ /**
+ * Query this inventory for inventories containing stacks which match the
+ * supplied stack operand. This query operates directly on {@link Slot}
+ * leaf nodes in the inventory and will always return a collection
+ * containing only {@link Slot} instances.
+ * To query for stacks of any size use {@link #queryAny(ItemStack...)}.
+ */
+ // @ts-ignore
+ query(types: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.inventory.Inventory;
+ /**
+ * Query this inventory for inventories which match any of the supplied
+ * properties. The equals
method of each property is called on
+ * each child inventory which has the supplied property. Logical
+ * OR
is applied between operands. This method is effectively
+ * the same as calling {@link #query} with an
+ * {@link org.spongepowered.api.data.Property.Operator} of
+ * {@link org.spongepowered.api.data.Property.Operator#EQUAL}.
+ */
+ // @ts-ignore
+ query(props: org.spongepowered.api.item.inventory.InventoryProperty): org.spongepowered.api.item.inventory.Inventory;
+ /**
+ * Query this inventory for inventories matching any of the supplied titles.
+ * Logical OR
is applied between operands.
+ */
+ // @ts-ignore
+ query(names: org.spongepowered.api.text.translation.Translation): org.spongepowered.api.item.inventory.Inventory;
+ /**
+ * Query this inventory by dynamically inspecting each operand. Each + * operand in turn is checked for a match against the other query methods, + * and if a matching method is found the query is performed using the + * operand. This is repeated until all operands are consumed and allows a + * union of multiple query types to be aggregated into a single view.
+ *For operands with no matching type, the behaviour is determined by the + * individual inventory. A naive match may be obtained by calling .equals() + * against the child inventory passing the unknown operand as an argument. + *
+ */ + // @ts-ignore + query(args: any): org.spongepowered.api.item.inventory.Inventory; + /** + * Query this inventory for inventories containing any stacks which match + * the supplied stack operands ignoring its quantity. This query operates + * directly on {@link Slot} leaf nodes in the inventory and will always + * return a collection containing only {@link Slot} instances. Logical + *OR
is applied between operands.
+ * This ignores stack sizes. To query for stacks of a specific size use
+ * {@link #query(ItemStack...)}.
+ */
+ // @ts-ignore
+ queryAny(types: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.inventory.Inventory;
+ /**
+ * Query this inventory for inventories matching any of the supplied
+ * queries. Logical OR
is applied between operands.
+ */
+ // @ts-ignore
+ query(operations: org.spongepowered.api.item.inventory.query.QueryOperation): org.spongepowered.api.item.inventory.Inventory;
+ /**
+ * Returns the {@link PluginContainer} who built this inventory.
+ */
+ // @ts-ignore
+ getPlugin(): org.spongepowered.api.plugin.PluginContainer;
+ /**
+ * Creates an {@link InventoryArchetype} based on this {@link Inventory}.
+ */
+ // @ts-ignore
+ getArchetype(): org.spongepowered.api.item.inventory.InventoryArchetype;
+ /**
+ * Intersects the slots of both inventories.
+ * The resulting inventory will only contain slots
+ * that are present in both inventories.
+ */
+ // @ts-ignore
+ intersect(inventory: org.spongepowered.api.item.inventory.Inventory): org.spongepowered.api.item.inventory.Inventory;
+ /**
+ * Constructs a union of the slots in both inventories.
+ * The resulting inventory will contain all slots from + * both inventories.
+ *The slots of this inventory are ordered before the slots of the + * given inventory.
+ *If the same slot is contained in both inventories the duplicate + * in the second one is removed.
+ */ + // @ts-ignore + union(inventory: org.spongepowered.api.item.inventory.Inventory): org.spongepowered.api.item.inventory.Inventory; + /** + * Returns true if the given inventory is a descendant of this one. + * This method will check for deeply nested inventories but + * will only return true if the entire inventory structure is contained. + * This means that e.g. for a query result of multiple slots the + * inventory will not return true even if all slots are contained. + * If you want to check if all slots of an inventory are contained in + * another one use {@link #intersect(Inventory)} instead. + *+ * You can use this if you want to check if a single Slot is contained + * in an inventory or an entire row is contained in a Grid. + *
+ */ + // @ts-ignore + containsInventory(inventory: org.spongepowered.api.item.inventory.Inventory): boolean; + /** + * Transforms this inventory using the given transformation. + */ + // @ts-ignore + transform(transformation: org.spongepowered.api.item.inventory.InventoryTransformation): org.spongepowered.api.item.inventory.Inventory; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.inventory.InventoryArchetype.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.InventoryArchetype.Builder.ts new file mode 100644 index 00000000..3a6376fb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.InventoryArchetype.Builder.ts @@ -0,0 +1,45 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace InventoryArchetype { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Adds a {@link InventoryTitle} to this Archetype. + */ + // @ts-ignore + title(title: org.spongepowered.api.text.translation.Translation): org.spongepowered.api.item.inventory.InventoryArchetype.Builder; + /** + * Adds a {@link InventoryTitle} to this Archetype. + */ + // @ts-ignore + title(title: org.spongepowered.api.text.Text): org.spongepowered.api.item.inventory.InventoryArchetype.Builder; + /** + * Adds an {@link InventoryProperty} to this Archetype. + */ + // @ts-ignore + property(property: org.spongepowered.api.item.inventory.InventoryProperty): org.spongepowered.api.item.inventory.InventoryArchetype.Builder; + /** + * Adds an {@link InventoryArchetype} to this Archetype. + */ + // @ts-ignore + with(archetype: org.spongepowered.api.item.inventory.InventoryArchetype): org.spongepowered.api.item.inventory.InventoryArchetype.Builder; + /** + * Adds multiple {@link InventoryArchetype} to this Archetype. + */ + // @ts-ignore + with(archetypes: org.spongepowered.api.item.inventory.InventoryArchetype): org.spongepowered.api.item.inventory.InventoryArchetype.Builder; + /** + * Registers the InventoryArchetype. + */ + // @ts-ignore + build(id: string, name: string): org.spongepowered.api.item.inventory.InventoryArchetype; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.inventory.InventoryArchetype.ts b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.InventoryArchetype.ts new file mode 100644 index 00000000..e4518ae5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.InventoryArchetype.ts @@ -0,0 +1,43 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface InventoryArchetype extends org.spongepowered.api.CatalogType { + /** + * Creates a new {@link Builder} to build an {@link InventoryArchetype}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.inventory.InventoryArchetype.Builder; + /** + * Gets all child InventoryArchetypes. + */ + // @ts-ignore + getChildArchetypes(): any[] /*java.util.List*/; + /** + * Returns all properties defined on this Archetype. + */ + // @ts-ignore + getProperties(): MapIn Vanilla empty ItemStacks are not rendered by the client.
+ */ + // @ts-ignore + isEmpty(): boolean; + // @ts-ignore + copy(): org.spongepowered.api.item.inventory.ItemStack; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.inventory.ItemStackBuilderPopulators.ts b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.ItemStackBuilderPopulators.ts new file mode 100644 index 00000000..74b14930 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.ItemStackBuilderPopulators.ts @@ -0,0 +1,270 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + class ItemStackBuilderPopulators { + /** + * Creates a new {@link BiConsumer} to set the {@link ItemStack.Builder} + * to use the provided {@link ItemStackSnapshot} as a "default". Note + * that the normal behavior of the builder is to reset according to + * the snapshot. + */ + // @ts-ignore + public static itemStack(snapshot: org.spongepowered.api.item.inventory.ItemStackSnapshot): any; + /** + * Creates a new {@link BiConsumer} that uses a randomized selection + * of the provided {@link ItemStackSnapshot}s. The builder, when called will + * only use one at random selection to default to. + */ + // @ts-ignore + public static itemStacks(snapshot: org.spongepowered.api.item.inventory.ItemStackSnapshot, snapshots: org.spongepowered.api.item.inventory.ItemStackSnapshot): any; + /** + * Creates a new {@link BiConsumer} that defines the provided + * {@link ItemType}. + */ + // @ts-ignore + public static item(itemType: org.spongepowered.api.item.ItemType): any; + /** + * Creates a new {@link BiConsumer} that defines the provided + * {@link ItemType}, provided that the {@link Supplier} does not + * return null. + *Note that the {@link Supplier} is not queried for an + * {@link ItemType} until the generated {@link BiConsumer} is + * called.
+ */ + // @ts-ignore + public static item(supplier: any): any; + /** + * Creates a new {@link BiConsumer} that provides a random + * {@link ItemType} of the provided item types. + *Note that the desired {@link ItemType} given to the builder is only + * defined at the time of calling {@link BiConsumer#accept(Object, Object)}. + *
+ */ + // @ts-ignore + public static items(itemType: org.spongepowered.api.item.ItemType, itemTypes: org.spongepowered.api.item.ItemType): any; + /** + * Creates a new {@link BiConsumer} that provides a random + * {@link ItemType} from the provided collection of item types. + */ + // @ts-ignore + public static items(itemTypes: any[] /*java.util.Collection*/): any; + /** + * Creates a new {@link BiConsumer} that sets the desired quantity + * for creating an {@link ItemStack}. + *Note that the default behavior of the item stack builder is still + * expected to take place. Negative values are not allowed.
+ */ + // @ts-ignore + public static quantity(amount: org.spongepowered.api.util.weighted.VariableAmount): any; + /** + * Creates a new {@link BiConsumer} that sets the desired quantity + * for creating an {@link ItemStack}. The supplier is not queried for + * a {@link VariableAmount} until the generated bi consumer is + * called on. + *Note that the default behavior of an item stack builder is still + * expected to take place. Negative values are not allowed.
+ */ + // @ts-ignore + public static quantity(supplier: any): any; + /** + * Creates a new {@link BiConsumer} that sets the provided {@link Key}'ed + * object where the value is possibly ignored or not supported. No checks + * on whether the key or object is supported until called upon. + *Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.
+ */ + // @ts-ignore + public static keyValue(key: org.spongepowered.api.data.key.Key, value: any): any; + /** + * Creates a new {@link BiConsumer} that sets a single provided + * value with the provided {@link Key}. Only a single value is chosen + * to provide to the itemstack builder. + *Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.
+ */ + // @ts-ignore + public static keyValues(key: org.spongepowered.api.data.key.Key, values: any): any; + /** + * Creates a new {@link BiConsumer} where the {@link Key} is responsible + * for a {@link List} based {@link Value}. Given that the provided elements + * are chosen with a {@link Random}, it's not clear that the elements will + * be added in bundles or in the same iteration order. + *Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.
+ */ + // @ts-ignore + public static listValues(key: org.spongepowered.api.data.key.Key, elementPool: any[] /*java.util.List*/, amount: org.spongepowered.api.util.weighted.VariableAmount): any; + /** + * Creates a new {@link BiConsumer} where the {@link Key} is responsible + * for a {@link List} based {@link Value}. Given that the provided elements + * are chosen with a {@link Random}, it's not clear that the elements will + * be added in bundles or in the same iteration order. The default variance + * is provided as {@link VariableAmount#baseWithRandomAddition(double, double)} + * where at the least, a single element is chosen, and at most the entire + * collection is chosen. + *Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.
+ */ + // @ts-ignore + public static listValues(key: org.spongepowered.api.data.key.Key, elementPool: any[] /*java.util.List*/): any; + /** + * Creates a new {@link BiConsumer} where the {@link Key} is responsible + * for a {@link List} based {@link Value}. Given the {@link WeightedTable} + * is already generated, the values requested are only retrieved when + * the generated biconsumer is called upon. + *Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.
+ */ + // @ts-ignore + public static listValues(key: org.spongepowered.api.data.key.Key, weightedTable: org.spongepowered.api.util.weighted.WeightedTable): any; + /** + * Creates a new {@link BiConsumer} where the {@link Key} is responsible + * for a {@link List} based {@link Value}. Given the + * {@link WeightedTable} is exclusively used with {@link Function}s, + * the {@link Function}s themselves are queried with a {@link Random} + * and expected to present a singular element of the defined type. It's + * expected that there are multiple functions to provide additional + * elements for a particular key'ed {@link ListValue}. + *An example usage of this can be for generating a randomized list + * of {@link Enchantment}s with varying enchantment levels.
+ *Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.
+ */ + // @ts-ignore + public static listValueSuppliers(key: org.spongepowered.api.data.key.Key, weightedTable: org.spongepowered.api.util.weighted.WeightedTable): any; + /** + * Creates a new {@link BiConsumer} where the {@link Key} is responsible + * for a {@link Set} based {@link Value}. Given the {@link Set} of element + * to act as a pool, the consumer will pull a random amount of the + * given pool and apply it as a new {@link Set}. + *Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.
+ */ + // @ts-ignore + public static setValues(key: org.spongepowered.api.data.key.Key, elementPool: any[] /*java.util.Set*/): any; + /** + * Creates a new {@link BiConsumer} where the {@link Key} is responsible + * for a {@link Set} based {@link Value}. Given the {@link Set} of + * elements to act as a pool, the consumer will pull a variable amount + * based on the provided {@link VariableAmount}, and apply it as a new + * {@link Set}. + *Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.
+ */ + // @ts-ignore + public static setValues(key: org.spongepowered.api.data.key.Key, elementPool: any[] /*java.util.Set*/, amount: org.spongepowered.api.util.weighted.VariableAmount): any; + /** + * Creates a new {@link BiConsumer} where the {@link Key} is + * responsible for a {@link Set} based {@link Value}. Given + * the provided {@link WeightedTable}, the consumer will retrieve + * a {@link List} of values and add them as a new {@link Set}. + *Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.
+ */ + // @ts-ignore + public static setValues(key: org.spongepowered.api.data.key.Key, weightedTable: org.spongepowered.api.util.weighted.WeightedTable): any; + /** + * Creates a new {@link BiConsumer} that applies the provided {@link Value} + * to the generated {@link ItemStack}. + *Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.
+ */ + // @ts-ignore + public static value(value: org.spongepowered.api.data.value.BaseValue): any; + /** + * Creates a new {@link BiConsumer} that applies a random selection of the + * provided {@link BaseValue}s. + *Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.
+ */ + // @ts-ignore + public static values(values: any): any; + /** + * Creates a new {@link BiConsumer} that sets a particular + * {@link DataManipulator} onto an {@link ItemStack}. Note + * that no validation can be performed, however the builder + * will ignore unsupported data. This can be used to provide + * custom data manipulators. + */ + // @ts-ignore + public static data(manipulator: org.spongepowered.api.data.manipulator.DataManipulator): any; + /** + * Creates a new {@link BiConsumer} that sets a single + * {@link DataManipulator} form the provided collection of manipulators. + * Note that no validation can be performed, however the builder will + * ignore unsupported data. This can be used to provide custom data + * manipulators. To apply multiple manipulators, use + * {@link #data(Collection, VariableAmount)}. + */ + // @ts-ignore + public static data(manipulators: any[] /*java.util.Collection*/): any; + /** + * Creates a new {@link BiConsumer} that provides a {@link VariableAmount} + * of {@link DataManipulator}s from the provided pool. Note that no + * validation can be performed, however the builder will ignore unsupported + * data. This can be used to provide custom data manipulators. + */ + // @ts-ignore + public static data(manipulators: any[] /*java.util.Collection*/, rolls: org.spongepowered.api.util.weighted.VariableAmount): any; + /** + * Creates a new {@link BiConsumer} that provides a variable + * amount of {@link DataManipulator}s from the provided + * {@link WeightedTable}. Note that no validation can be performed, however + * the builder will ignore unsupported data. This can be used to provide + * custom data manipulators. + */ + // @ts-ignore + public static data(weightedTable: org.spongepowered.api.util.weighted.WeightedTable): any; + /** + * Creates a new {@link BiConsumer} that takes the provided + * {@link EnchantmentType} and applies it to the generated {@link ItemStack}. + * The enchantmentType level is varied based on vanilla mechanics. + */ + // @ts-ignore + public static enchantment(enchantmentType: org.spongepowered.api.item.enchantment.EnchantmentType): any; + /** + * Creates a new {@link BiConsumer} that takes the provided + * {@link EnchantmentType} and applies it to the generated {@link ItemStack}. + * The enchantmentType level is defined by the variable amount provided. + */ + // @ts-ignore + public static enchantment(level: org.spongepowered.api.util.weighted.VariableAmount, enchantmentType: org.spongepowered.api.item.enchantment.EnchantmentType): any; + /** + * Creates a new {@link BiConsumer} that takes the provided + * {@link Collection} of {@link EnchantmentType}s and applies a + * singular {@link EnchantmentType} with varying levels to the generated + * {@link ItemStack}. + */ + // @ts-ignore + public static enchantmentsWithVanillaLevelVariance(enchantmentTypes: any[] /*java.util.Collection*/): any; + /** + * Creates a new {@link BiConsumer} that takes the provided + * {@link EnchantmentType}s and applies a variable amount of enchantmentTypes + * with varying levels to the generated {@link ItemStack}. + */ + // @ts-ignore + public static enchantmentsWithVanillaLevelVariance(amount: org.spongepowered.api.util.weighted.VariableAmount, enchantmentType: org.spongepowered.api.item.enchantment.EnchantmentType, enchantmentTypes: org.spongepowered.api.item.enchantment.EnchantmentType): any; + /** + * Creates a new {@link BiConsumer} that takes the provided + * {@link Collection} of {@link EnchantmentType}s and applies a varying amount + * of generated enchantments to the generated {@link ItemStack}. + */ + // @ts-ignore + public static enchantmentsWithVanillaLevelVariance(amount: org.spongepowered.api.util.weighted.VariableAmount, itemEnchantmentTypes: any[] /*java.util.Collection*/): any; + /** + * Creates a new {@link BiConsumer} that takes the provided + * {@link Collection} of coupled {@link EnchantmentType} and + * {@link VariableAmount} to apply varying enchantments of varying amounts + * to the generated {@link ItemStack}. + */ + // @ts-ignore + public static enchantments(amount: org.spongepowered.api.util.weighted.VariableAmount, enchantments: any[] /*java.util.Collection*/): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.inventory.ItemStackComparators.ts b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.ItemStackComparators.ts new file mode 100644 index 00000000..195d05a9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.ItemStackComparators.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + class ItemStackComparators { + // @ts-ignore + public static TYPE: any; + // @ts-ignore + public static SIZE: any; + // @ts-ignore + public static TYPE_SIZE: any; + // @ts-ignore + public static DEFAULT: any; + // @ts-ignore + public static PROPERTIES: any; + // @ts-ignore + public static ITEM_DATA: any; + // @ts-ignore + public static ITEM_DATA_IGNORE_DAMAGE: any; + // @ts-ignore + public static IGNORE_SIZE: any; + // @ts-ignore + public static ALL: any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.inventory.ItemStackGenerator.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.ItemStackGenerator.Builder.ts new file mode 100644 index 00000000..1594399c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.ItemStackGenerator.Builder.ts @@ -0,0 +1,37 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace ItemStackGenerator { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Adds a new biconsumer in the current order. + */ + // @ts-ignore + add(consumer: any): org.spongepowered.api.item.inventory.ItemStackGenerator.Builder; + /** + * Adds all the provided biconsumers from the provided collection. + */ + // @ts-ignore + addAll(collection: any[] /*java.util.Collection*/): org.spongepowered.api.item.inventory.ItemStackGenerator.Builder; + /** + * Sets the base {@link ItemType} for the {@link ItemStackGenerator}. A + * base type must be set to avoid issues. + */ + // @ts-ignore + baseItem(itemType: org.spongepowered.api.item.ItemType): org.spongepowered.api.item.inventory.ItemStackGenerator.Builder; + /** + * Creates a new {@link ItemStackGenerator} with all of the added + * {@link BiConsumer}s. + */ + // @ts-ignore + build(): org.spongepowered.api.item.inventory.ItemStackGenerator; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.inventory.ItemStackGenerator.ts b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.ItemStackGenerator.ts new file mode 100644 index 00000000..dfc49253 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.ItemStackGenerator.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface ItemStackGenerator { + /** + * Creates a new builder to build an {@link ItemStackGenerator}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.inventory.ItemStackGenerator.Builder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.inventory.ItemStackSnapshot.ts b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.ItemStackSnapshot.ts new file mode 100644 index 00000000..65673bff --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.ItemStackSnapshot.ts @@ -0,0 +1,53 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface ItemStackSnapshot extends org.spongepowered.api.data.ImmutableDataHolder, org.spongepowered.api.text.translation.Translatable { + // @ts-ignore + NONE: org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Gets the {@link ItemType} of this {@link ItemStackSnapshot}. The + * {@link ItemType} is always available. + */ + // @ts-ignore + getType(): org.spongepowered.api.item.ItemType; + /** + * Gets the current stack size count of the {@link ItemStack} this + * {@link ItemStackSnapshot} is representing. + */ + // @ts-ignore + getCount(): number; + /** + * Gets the quantity of items in this the {@link ItemStack} this + * {@link ItemStackSnapshot} is representing. + */ + // @ts-ignore + getQuantity(): number; + /** + * Returns true if {@link #getQuantity()} is zero and therefore this + * ItemStackSnapshot is empty. + */ + // @ts-ignore + isEmpty(): boolean; + /** + * Creates a new {@link ItemStack} with all the data currently available + * on this {@link ItemStackSnapshot}. + */ + // @ts-ignore + createStack(): org.spongepowered.api.item.inventory.ItemStack; + /** + * Creates a {@link org.spongepowered.api.GameDictionary.Entry} that + * compares stacks to this {@link ItemStackSnapshot}. Note that not all + * data stored in this {@link ItemStackSnapshot} may be stored in the + * returned entry. + */ + // @ts-ignore + createGameDictionaryEntry(): org.spongepowered.api.GameDictionary.Entry; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.inventory.MultiBlockCarrier.ts b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.MultiBlockCarrier.ts new file mode 100644 index 00000000..87a9e4ae --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.MultiBlockCarrier.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface MultiBlockCarrier extends org.spongepowered.api.item.inventory.BlockCarrier { + /** + * Returns the Locations of the Blocks. + */ + // @ts-ignore + getLocations(): any[] /*java.util.List*/; + /** + * Returns the Inventory at given location if owned by this Carrier. + */ + // @ts-ignore + getInventory(at: org.spongepowered.api.world.Location): any; + /** + * Returns the Inventory at given location if owned by this Carrier and + * accessible from given direction. + *e.g. A Furnace accessed from {@link Direction#DOWN} will return + * its Fuel Slot
+ */ + // @ts-ignore + getInventory(at: org.spongepowered.api.world.Location, from: org.spongepowered.api.util.Direction): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.inventory.SingleBlockCarrier.ts b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.SingleBlockCarrier.ts new file mode 100644 index 00000000..0ac235b2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.SingleBlockCarrier.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface SingleBlockCarrier extends org.spongepowered.api.item.inventory.BlockCarrier { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.inventory.Slot.Type.ts b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.Slot.Type.ts new file mode 100644 index 00000000..bd52f526 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.Slot.Type.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace Slot { + // @ts-ignore + class Type { + // @ts-ignore + public static INVENTORY: org.spongepowered.api.item.inventory.Slot.Type; + // @ts-ignore + public static values(): org.spongepowered.api.item.inventory.Slot.Type[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.item.inventory.Slot.Type; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.inventory.Slot.ts b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.Slot.ts new file mode 100644 index 00000000..90f5a5c2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.inventory.Slot.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface Slot extends org.spongepowered.api.item.inventory.Inventory { + /** + * Gets the size of the stack in this slot. Essentially the same as calling + * slot.peek().getQuantity(); but faster because it avoids the Optional + * boxing. + */ + // @ts-ignore + getStackSize(): number; + /** + * Transforms this Slot into given Type. + *If the humanoid entity is available, a new trading window may open + * with this merchant.
+ */ + // @ts-ignore + setCustomer(humanoid: org.spongepowered.api.entity.living.Humanoid): void; + /** + * Gets a copy of the used {@link TradeOfferData} containing all available + * {@link TradeOffer}s this {@link Merchant} may use. + */ + // @ts-ignore + getTradeOfferData(): org.spongepowered.api.data.manipulator.mutable.entity.TradeOfferData; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.merchant.TradeOffer.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.item.merchant.TradeOffer.Builder.ts new file mode 100644 index 00000000..06ae3712 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.merchant.TradeOffer.Builder.ts @@ -0,0 +1,66 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace merchant { + namespace TradeOffer { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.persistence.DataBuilder { + /** + *Sets the first selling item of the trade offer to be + * generated.
+ *Trade offers require at least one item to be generated.
+ */ + // @ts-ignore + firstBuyingItem(item: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.merchant.TradeOffer.Builder; + /** + * Sets the second selling item of the trade offer to be generated. + */ + // @ts-ignore + secondBuyingItem(item: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.merchant.TradeOffer.Builder; + /** + * Sets the selling item of the trade offer to be generated. + */ + // @ts-ignore + sellingItem(item: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.merchant.TradeOffer.Builder; + /** + * Sets the existing uses of the trade offer to be generated. A trade + * offer will become unusable when the uses surpasses the max uses. + */ + // @ts-ignore + uses(uses: number): org.spongepowered.api.item.merchant.TradeOffer.Builder; + /** + * Sets the maximum uses the generated trade offer will have. A trade + * offer will become unusable when the uses surpasses the max uses. + */ + // @ts-ignore + maxUses(maxUses: number): org.spongepowered.api.item.merchant.TradeOffer.Builder; + /** + * Sets the trade offer to be generated to grant experience upon use. + */ + // @ts-ignore + canGrantExperience(experience: boolean): org.spongepowered.api.item.merchant.TradeOffer.Builder; + /** + * Creates a new TradeOffer instance with the current state of the + * builder. + */ + // @ts-ignore + build(): org.spongepowered.api.item.merchant.TradeOffer; + /** + * Sets all the settings of this builder with the provided trade offer + * as a blueprint. + */ + // @ts-ignore + from(offer: org.spongepowered.api.item.merchant.TradeOffer): org.spongepowered.api.item.merchant.TradeOffer.Builder; + /** + * Clears all settings of this builder. + */ + // @ts-ignore + reset(): org.spongepowered.api.item.merchant.TradeOffer.Builder; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.merchant.TradeOffer.ts b/packages/sponge/src/typings/org.spongepowered.api.item.merchant.TradeOffer.ts new file mode 100644 index 00000000..80c9b31d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.merchant.TradeOffer.ts @@ -0,0 +1,74 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace merchant { + // @ts-ignore + interface TradeOffer extends org.spongepowered.api.data.DataSerializable { + /** + * Creates a new {@link Builder} to build a {@link TradeOffer}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.merchant.TradeOffer.Builder; + /** + * Gets the first buying item. + *The first buying item is an item that the customer is selling to the + * merchant in exchange for {@link #getSellingItem()}.
+ */ + // @ts-ignore + getFirstBuyingItem(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns whether this trade offer has a second item the merchant is buying + * from the customer. + */ + // @ts-ignore + hasSecondItem(): boolean; + /** + *Gets the second buying item.
+ *The second buying item is an item that the customer is selling to the + * merchant, along with the {@link #getFirstBuyingItem()}, in exchange for + * {@link #getSellingItem()}.
+ */ + // @ts-ignore + getSecondBuyingItem(): any; + /** + * Gets the selling item the {@link Merchant} will give to the customer + * often in exchange for a single item or sometimes, two items from the + * following methods: {@link #getFirstBuyingItem()} and + * {@link #getSecondBuyingItem}. + */ + // @ts-ignore + getSellingItem(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + *Gets the current uses of this offer.
+ *Usually, the uses of an offer are limited by the amount of + * {@link #getMaxUses()}. Once the uses reaches the max uses, the offer may + * temporarily become disabled.
+ */ + // @ts-ignore + getUses(): number; + /** + *Gets the current maximum uses of this offer.
+ *Usually, the uses of an offer are limited by the amount of maximum + * uses. Once the uses reaches the max uses, the offer may temporarily + * become disabled.
+ */ + // @ts-ignore + getMaxUses(): number; + /** + * Checks if this trade offer has indeed passed the time of which the uses + * surpassed the maximum uses. + */ + // @ts-ignore + hasExpired(): boolean; + /** + * Gets whether this trade offer will grant experience upon usage or not. + */ + // @ts-ignore + doesGrantExperience(): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder.ts new file mode 100644 index 00000000..0359d064 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder.ts @@ -0,0 +1,58 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace merchant { + namespace TradeOfferGenerator { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link ItemStackGenerator} for creating the primary item + * to be bought by the merchant. + */ + // @ts-ignore + setPrimaryItemGenerator(generator: org.spongepowered.api.item.inventory.ItemStackGenerator): org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder; + /** + * Sets the second {@link ItemStackGenerator} for creating the secondary + * item to be bought by the merchant. + */ + // @ts-ignore + setSecondItemGenerator(generator: org.spongepowered.api.item.inventory.ItemStackGenerator): org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder; + /** + * Sets the buying {@link ItemStackGenerator} for creating the selling + * item that players are buying. + */ + // @ts-ignore + setSellingGenerator(sellingGenerator: org.spongepowered.api.item.inventory.ItemStackGenerator): org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder; + /** + * Sets the chance when {@link Random#nextDouble()} is called where + * if the double is greater than the desired experience chance, the + * generated {@link TradeOffer} will grant experience upon a + * successful trade. + */ + // @ts-ignore + experienceChance(experienceChance: number): org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder; + /** + * Sets the {@link VariableAmount} of starting uses for the generated + * {@link TradeOffer}. + */ + // @ts-ignore + startingUses(amount: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder; + /** + * Sets the {@link VariableAmount} of maximum uses of the generated + * {@link TradeOffer}. + */ + // @ts-ignore + maxUses(amount: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder; + /** + * Builds a new {@link TradeOfferGenerator}. + */ + // @ts-ignore + build(): org.spongepowered.api.item.merchant.TradeOfferGenerator; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.merchant.TradeOfferGenerator.ts b/packages/sponge/src/typings/org.spongepowered.api.item.merchant.TradeOfferGenerator.ts new file mode 100644 index 00000000..c7e0a80e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.merchant.TradeOfferGenerator.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace merchant { + // @ts-ignore + interface TradeOfferGenerator extends org.spongepowered.api.item.merchant.TradeOfferListMutator { + /** + * Gets a new {@link Builder} to create a new {@link TradeOfferGenerator}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder; + // @ts-ignore + accept(owner: org.spongepowered.api.item.merchant.Merchant, tradeOffers: any[] /*java.util.List*/, random: any): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.merchant.TradeOfferListMutator.ts b/packages/sponge/src/typings/org.spongepowered.api.item.merchant.TradeOfferListMutator.ts new file mode 100644 index 00000000..54db519d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.merchant.TradeOfferListMutator.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace merchant { + // @ts-ignore + interface TradeOfferListMutator { + /** + * Mutates the provided {@link List list} of {@link TradeOffer}s + * with the provided {@link Merchant} and {@link Random} to provide + * possible contextualized information. + */ + // @ts-ignore + accept(owner: org.spongepowered.api.item.merchant.Merchant, tradeOffers: any[] /*java.util.List*/, random: any): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.merchant.VillagerRegistry.ts b/packages/sponge/src/typings/org.spongepowered.api.item.merchant.VillagerRegistry.ts new file mode 100644 index 00000000..f60df1e2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.merchant.VillagerRegistry.ts @@ -0,0 +1,75 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace merchant { + // @ts-ignore + interface VillagerRegistry { + /** + * Gets an immutable {@link Multimap} of the {@link Career}'s registered + * {code level} to {@link TradeOfferListMutator}s. Note that the map is + * immutable and cannot be modified directly. + */ + // @ts-ignore + getTradeOfferLevelMap(career: org.spongepowered.api.data.type.Career): any; + /** + * Gets the available {@link TradeOfferListMutator}s for the desired + * {@link Career} and {@code level}. + */ + // @ts-ignore + getMutatorsForCareer(career: org.spongepowered.api.data.type.Career, level: number): any[] /*java.util.Collection*/; + /** + * Adds the provided {@link TradeOfferListMutator} for the given + * {@link Career} and {@code level}. Note that the level + * must be at least 1. There can be multiple {@link TradeOfferListMutator}s + * per level. + */ + // @ts-ignore + addMutator(career: org.spongepowered.api.data.type.Career, level: number, mutator: org.spongepowered.api.item.merchant.TradeOfferListMutator): org.spongepowered.api.item.merchant.VillagerRegistry; + /** + * Adds the provided {@link TradeOfferListMutator}s for the given + * {@link Career} and {@code level}. Note that the level + * must be at least 1. There can be multiple {@link TradeOfferListMutator}s + * per level. + */ + // @ts-ignore + addMutators(career: org.spongepowered.api.data.type.Career, level: number, mutator: org.spongepowered.api.item.merchant.TradeOfferListMutator, mutators: org.spongepowered.api.item.merchant.TradeOfferListMutator): org.spongepowered.api.item.merchant.VillagerRegistry; + /** + * Sets the provided {@link TradeOfferListMutator} for the given + * {@link Career} and {@code level}. Note that the level + * must be at least 1. There can be multiple {@link TradeOfferListMutator}s + * per level. Any previously provided {@link TradeOfferListMutator}s will + * be erased. + */ + // @ts-ignore + setMutators(career: org.spongepowered.api.data.type.Career, level: number, mutators: any[] /*java.util.List*/): org.spongepowered.api.item.merchant.VillagerRegistry; + /** + * Sets the provided {@link TradeOfferListMutator} for the given + * {@link Career} and {@code level}. Note that the level + * must be at least 1. There can be multiple {@link TradeOfferListMutator}s + * per level. Any previously provided {@link TradeOfferListMutator}s will + * be erased. + */ + // @ts-ignore + setMutators(career: org.spongepowered.api.data.type.Career, mutatorMap: any): org.spongepowered.api.item.merchant.VillagerRegistry; + /** + * Generates a new {@link List} of {@link TradeOffer}s based on the + * provided {@link Career}, {@code level}, and {@link Random}. + */ + // @ts-ignore + generateTradeOffers(merchant: org.spongepowered.api.item.merchant.Merchant, career: org.spongepowered.api.data.type.Career, level: number, random: any): any[] /*java.util.Collection*/; + /** + * Populates the provided {@link List} of {@link TradeOffer}s with + * potentially new {@link TradeOffer}s based on the + * {@link TradeOfferListMutator}s and {@code level}. If there are no + * {@link TradeOfferListMutator}s registered for the desired level + * and {@link Career}, the list remains unmodified. + */ + // @ts-ignore + populateOffers(merchant: org.spongepowered.api.item.merchant.Merchant, currentOffers: any[] /*java.util.List*/, career: org.spongepowered.api.data.type.Career, level: number, random: any): any[] /*java.util.List*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.potion.PotionType.ts b/packages/sponge/src/typings/org.spongepowered.api.item.potion.PotionType.ts new file mode 100644 index 00000000..f4f9b910 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.potion.PotionType.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace potion { + // @ts-ignore + interface PotionType extends org.spongepowered.api.CatalogType { + // @ts-ignore + getEffects(): any[] /*java.util.List*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.potion.PotionTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.item.potion.PotionTypes.ts new file mode 100644 index 00000000..f87724e8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.potion.PotionTypes.ts @@ -0,0 +1,85 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace potion { + // @ts-ignore + class PotionTypes { + // @ts-ignore + public static AWKWARD: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static EMPTY: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static FIRE_RESISTANCE: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static HARMING: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static HEALING: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static INVISIBILITY: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LEAPING: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_FIRE_RESISTANCE: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_INVISIBILITY: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_LEAPING: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_NIGHT_VISION: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_POISON: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_REGENERATION: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_SLOWNESS: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_STRENGTH: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_SWIFTNESS: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_WATER_BREATHING: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_WEAKNESS: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static MUNDANE: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static NIGHT_VISION: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static POISON: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static REGENERATION: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static SLOWNESS: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static STRENGTH: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static STRONG_HARMING: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static STRONG_HEALING: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static STRONG_LEAPING: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static STRONG_POISON: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static STRONG_REGENERATION: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static STRONG_STRENGTH: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static STRONG_SWIFTNESS: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static SWIFTNESS: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static THICK: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static WATER: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static WATER_BREATHING: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static WEAKNESS: org.spongepowered.api.item.potion.PotionType; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.Recipe.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.Recipe.ts new file mode 100644 index 00000000..1c847ec2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.Recipe.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + // @ts-ignore + interface Recipe extends org.spongepowered.api.CatalogType { + /** + * A general result of this recipe. This result may be customized depending + * on the context. + */ + // @ts-ignore + getExemplaryResult(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.RecipeRegistry.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.RecipeRegistry.ts new file mode 100644 index 00000000..1b97b220 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.RecipeRegistry.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + // @ts-ignore + interface RecipeRegistry extends org.spongepowered.api.registry.CatalogRegistryModule { + /** + * Registers the given {@link Recipe} to make it available to craft. + */ + // @ts-ignore + register(recipe: org.spongepowered.api.item.recipe.Recipe): void; + /** + * Retrieves all recipes registered in this registry. + */ + // @ts-ignore + getRecipes(): any[] /*java.util.Collection*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.CraftingRecipe.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.CraftingRecipe.ts new file mode 100644 index 00000000..d09ef8ab --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.CraftingRecipe.ts @@ -0,0 +1,68 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + // @ts-ignore + interface CraftingRecipe extends org.spongepowered.api.item.recipe.Recipe, org.spongepowered.api.CatalogType { + /** + * Checks if the given {@link CraftingGridInventory} fits the required + * constraints to craft this {@link CraftingGridInventory}. + */ + // @ts-ignore + isValid(grid: org.spongepowered.api.item.inventory.crafting.CraftingGridInventory, world: org.spongepowered.api.world.World): boolean; + /** + * This method should only be called if + * {@link #isValid(CraftingGridInventory, World)} returns {@code true}. + *This method is preferred over the + * {@link CraftingRecipe#getExemplaryResult()} method, as it customizes + * the result further depending on the context.
+ *Implementing classes are advised to use the output of + * {@link CraftingRecipe#getExemplaryResult()}, modify it accordingly, + * and {@code return} it.
+ */ + // @ts-ignore + getResult(grid: org.spongepowered.api.item.inventory.crafting.CraftingGridInventory): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns the {@link CraftingResult} for the current crafting grid + * configuration and the {@link World} the player is in. + *Returns + * {@link Optional#empty()} if the arguments do not satisfy + * {@link #isValid(CraftingGridInventory, World)}.
+ */ + // @ts-ignore + getResult(grid: org.spongepowered.api.item.inventory.crafting.CraftingGridInventory, world: org.spongepowered.api.world.World): any; + /** + * This method should only be called if + * {@link #isValid(CraftingGridInventory, World)} returns {@code true}. + *A list of items to be added to the inventory of the player when they + * craft the result. For example, if a player crafts a + * {@link ItemTypes#CAKE}, the empty buckets are returned to their + * inventory.
+ */ + // @ts-ignore + getRemainingItems(grid: org.spongepowered.api.item.inventory.crafting.CraftingGridInventory): any[] /*java.util.List*/; + /** + * The group this CraftingRecipe belongs to or {@link Optional#empty()} + * if not defined. + */ + // @ts-ignore + getGroup(): any; + /** + * Provides a Builder for a {@link ShapedCraftingRecipe}. + */ + // @ts-ignore + shapedBuilder(): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder; + /** + * Provides a Builder for a {@link ShapelessCraftingRecipe}. + */ + // @ts-ignore + shapelessBuilder(): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.CraftingRecipeRegistry.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.CraftingRecipeRegistry.ts new file mode 100644 index 00000000..5729d8c5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.CraftingRecipeRegistry.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + // @ts-ignore + interface CraftingRecipeRegistry extends org.spongepowered.api.item.recipe.RecipeRegistry { + /** + * Retrieves the recipe which would be crafted when the player clicks + * the output slot. + */ + // @ts-ignore + findMatchingRecipe(grid: org.spongepowered.api.item.inventory.crafting.CraftingGridInventory, world: org.spongepowered.api.world.World): any; + /** + * Finds the matching recipe and creates the {@link CraftingResult}, + * which is then returned. + */ + // @ts-ignore + getResult(grid: org.spongepowered.api.item.inventory.crafting.CraftingGridInventory, world: org.spongepowered.api.world.World): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.CraftingRecipes.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.CraftingRecipes.ts new file mode 100644 index 00000000..7d6cacb4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.CraftingRecipes.ts @@ -0,0 +1,901 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + // @ts-ignore + class CraftingRecipes { + // @ts-ignore + public static ACACIA_BOAT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ACACIA_DOOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ACACIA_FENCE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ACACIA_FENCE_GATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ACACIA_PLANKS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ACACIA_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ACACIA_WOODEN_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ACTIVATOR_RAIL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ANDESITE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ANVIL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ARMORDYE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ARMOR_STAND: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ARROW: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BANNERADDPATTERN: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BANNERDUPLICATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BEACON: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BEETROOT_SOUP: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BIRCH_BOAT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BIRCH_DOOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BIRCH_FENCE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BIRCH_FENCE_GATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BIRCH_PLANKS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BIRCH_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BIRCH_WOODEN_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLACK_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLACK_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLACK_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLACK_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLACK_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLACK_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLACK_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLACK_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLACK_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLAZE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLUE_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLUE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLUE_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLUE_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLUE_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLUE_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLUE_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLUE_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLUE_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BOAT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BONE_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BONE_MEAL_FROM_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BONE_MEAL_FROM_BONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BOOK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BOOKCLONING: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BOOKSHELF: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BOW: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BOWL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BREAD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BREWING_STAND: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BRICK_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BRICK_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BRICK_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BROWN_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BROWN_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BROWN_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BROWN_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BROWN_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BROWN_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BROWN_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BROWN_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BROWN_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BUCKET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CAKE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CARROT_ON_A_STICK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CAULDRON: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CHEST: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CHEST_MINECART: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CHISELED_QUARTZ_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CHISELED_RED_SANDSTONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CHISELED_SANDSTONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CHISELED_STONEBRICK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static COAL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static COAL_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static COARSE_DIRT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static COBBLESTONE_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static COBBLESTONE_WALL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static COMPARATOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static COMPASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static COOKIE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CRAFTING_TABLE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_DYE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DARK_OAK_BOAT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DARK_OAK_DOOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DARK_OAK_FENCE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DARK_OAK_FENCE_GATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DARK_OAK_PLANKS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DARK_OAK_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DARK_OAK_WOODEN_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DARK_PRISMARINE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DAYLIGHT_DETECTOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DETECTOR_RAIL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_AXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_BOOTS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_CHESTPLATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_HELMET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_HOE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_LEGGINGS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_PICKAXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_SHOVEL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_SWORD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIORITE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DISPENSER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DROPPER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static EMERALD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static EMERALD_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ENCHANTING_TABLE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ENDER_CHEST: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ENDER_EYE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static END_BRICKS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static END_CRYSTAL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static END_ROD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FENCE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FENCE_GATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FERMENTED_SPIDER_EYE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FIREWORKS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FIRE_CHARGE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FISHING_ROD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FLINT_AND_STEEL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FLOWER_POT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FURNACE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FURNACE_MINECART: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GLASS_BOTTLE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GLOWSTONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_APPLE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_AXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_BOOTS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_CARROT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_CHESTPLATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_HELMET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_HOE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_LEGGINGS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_PICKAXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_RAIL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_SHOVEL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_SWORD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLD_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLD_INGOT_FROM_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLD_INGOT_FROM_NUGGETS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLD_NUGGET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRANITE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_DYE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GREEN_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GREEN_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GREEN_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GREEN_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GREEN_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GREEN_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GREEN_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GREEN_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GREEN_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static HAY_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static HEAVY_WEIGHTED_PRESSURE_PLATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static HOPPER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static HOPPER_MINECART: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_AXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_BARS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_BOOTS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_CHESTPLATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_DOOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_HELMET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_HOE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_INGOT_FROM_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_INGOT_FROM_NUGGETS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_LEGGINGS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_NUGGET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_PICKAXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_SHOVEL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_SWORD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_TRAPDOOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ITEM_FRAME: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static JUKEBOX: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static JUNGLE_BOAT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static JUNGLE_DOOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static JUNGLE_FENCE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static JUNGLE_FENCE_GATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static JUNGLE_PLANKS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static JUNGLE_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static JUNGLE_WOODEN_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LADDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LAPIS_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LAPIS_LAZULI: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LEAD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LEATHER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LEATHER_BOOTS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LEATHER_CHESTPLATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LEATHER_HELMET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LEATHER_LEGGINGS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LEVER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_DYE_FROM_BLUE_ORCHID: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_DYE_FROM_LAPIS_BONEMEAL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_DYE_FROM_AZURE_BLUET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_DYE_FROM_GRAY_BONEMEAL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_DYE_FROM_INK_BONEMEAL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_DYE_FROM_OXEYE_DAISY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_DYE_FROM_WHITE_TULIP: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_WEIGHTED_PRESSURE_PLATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_DYE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIT_PUMPKIN: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_DYE_FROM_ALLIUM: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_DYE_FROM_LAPIS_INK_BONEMEAL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_DYE_FROM_LAPIS_RED_PINK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_DYE_FROM_LILAC: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_DYE_FROM_PURPLE_AND_PINK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGMA: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGMA_CREAM: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAP: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAPCLONING: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAPEXTENDING: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MELON_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MELON_SEEDS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MINECART: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MOSSY_COBBLESTONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MOSSY_COBBLESTONE_WALL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MOSSY_STONEBRICK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MUSHROOM_STEW: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static NETHER_BRICK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static NETHER_BRICK_FENCE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static NETHER_BRICK_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static NETHER_BRICK_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static NETHER_WART_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static NOTEBLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static OAK_PLANKS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static OAK_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static OAK_WOODEN_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static OBSERVER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_DYE_FROM_ORANGE_TULIP: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_DYE_FROM_RED_YELLOW: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PAINTING: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PAPER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PILLAR_QUARTZ_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_DYE_FROM_PEONY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_DYE_FROM_PINK_TULIP: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_DYE_FROM_RED_BONEMEAL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PISTON: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static POLISHED_ANDESITE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static POLISHED_DIORITE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static POLISHED_GRANITE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PRISMARINE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PRISMARINE_BRICKS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PUMPKIN_PIE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PUMPKIN_SEEDS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_DYE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_SHULKER_BOX: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPUR_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPUR_PILLAR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPUR_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPUR_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static QUARTZ_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static QUARTZ_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static QUARTZ_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RABBIT_STEW_FROM_BROWN_MUSHROOM: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RABBIT_STEW_FROM_RED_MUSHROOM: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RAIL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static REDSTONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static REDSTONE_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static REDSTONE_LAMP: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static REDSTONE_TORCH: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_DYE_FROM_BEETROOT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_DYE_FROM_POPPY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_DYE_FROM_ROSE_BUSH: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_DYE_FROM_TULIP: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_NETHER_BRICK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_SANDSTONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_SANDSTONE_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_SANDSTONE_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static REPAIRITEM: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static REPEATER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SANDSTONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SANDSTONE_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SANDSTONE_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SEA_LANTERN: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SHEARS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SHIELD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SHIELDDECORATION: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SHULKERBOXCOLORING: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SIGN: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SLIME: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SLIME_BALL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SMOOTH_RED_SANDSTONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SMOOTH_SANDSTONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SNOW: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SNOW_LAYER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SPECKLED_MELON: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SPECTRAL_ARROW: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SPRUCE_BOAT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SPRUCE_DOOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SPRUCE_FENCE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SPRUCE_FENCE_GATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SPRUCE_PLANKS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SPRUCE_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SPRUCE_WOODEN_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STICK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STICKY_PISTON: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONEBRICK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_AXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_BRICK_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_BRICK_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_BUTTON: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_HOE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_PICKAXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_PRESSURE_PLATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_SHOVEL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_SWORD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STRING_TO_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SUGAR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static TIPPEDARROW: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static TNT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static TNT_MINECART: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static TORCH: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static TRAPDOOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static TRAPPED_CHEST: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static TRIPWIRE_HOOK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WHEAT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WHITE_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WHITE_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WHITE_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WHITE_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WHITE_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WHITE_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WOODEN_AXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WOODEN_BUTTON: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WOODEN_DOOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WOODEN_HOE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WOODEN_PICKAXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WOODEN_PRESSURE_PLATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WOODEN_SHOVEL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WOODEN_SWORD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WRITABLE_BOOK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_DYE_FROM_DANDELION: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_DYE_FROM_SUNFLOWER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.CraftingResult.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.CraftingResult.ts new file mode 100644 index 00000000..a5d4b610 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.CraftingResult.ts @@ -0,0 +1,44 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + // @ts-ignore + class CraftingResult { + /** + * Creates a new {@link CraftingResult}. + *Note that this may be replaced with a static of method in the + * future.
+ */ + constructor(result: org.spongepowered.api.item.inventory.ItemStackSnapshot, remainingItems: any[] /*java.util.List*/) + /** + * This method should be used instead of the + * {@link CraftingRecipe#getExemplaryResult()} method, as it customizes the + * result further depending on the specified ingredient + * {@link ItemStackSnapshot}. It is advised to use the output of + * {@link CraftingRecipe#getExemplaryResult()}, modify it accordingly, and + * {@code return} it. + */ + // @ts-ignore + public getResult(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns a list of {@link ItemStackSnapshot} to be set in the input + * {@link CraftingGridInventory}, contains {@link ItemStackSnapshot#NONE}s for + * slots which should be cleared. + */ + // @ts-ignore + public getRemainingItems(): any[] /*java.util.List*/; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.Ingredient.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.Ingredient.Builder.ts new file mode 100644 index 00000000..3ad8a3a2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.Ingredient.Builder.ts @@ -0,0 +1,78 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + namespace Ingredient { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Adds a predicate for matching the ingredient. + *Also clears all previously set {@link #withDisplay} items.
+ *All predicates and items are ORed together.
+ *Use {@link #from} to create an ingredient from another one.
+ */ + // @ts-ignore + with(predicate: any): org.spongepowered.api.item.recipe.crafting.Ingredient.Builder; + /** + * Adds a GameDictionary Entry as Predicate for matching the ingredient. + * Also clears all previously set {@link #withDisplay} items and then + * adds {@link org.spongepowered.api.GameDictionary.Entry#getTemplate()} + * to it. + *All predicates and items are ORed together.
+ */ + // @ts-ignore + with(entry: org.spongepowered.api.GameDictionary.Entry): org.spongepowered.api.item.recipe.crafting.Ingredient.Builder; + /** + * Adds one or more ItemTypes for matching the ingredient. + * The ItemTypes are also used as display items. + * All predicates and items are ORed together. + */ + // @ts-ignore + with(types: org.spongepowered.api.item.ItemType): org.spongepowered.api.item.recipe.crafting.Ingredient.Builder; + /** + * Adds one or more ItemStacks for matching the ingredient. + * The ItemStacks are also used as display items. + * All predicates and items are ORed together. + */ + // @ts-ignore + with(items: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.recipe.crafting.Ingredient.Builder; + /** + * Adds one or more ItemStackSnapshots for matching the ingredient. + * The Snapshots are also used as display items. + * All predicates and items are ORed together. + */ + // @ts-ignore + with(items: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.item.recipe.crafting.Ingredient.Builder; + /** + * Adds ItemTypes used to display this Ingredient in a recipe. + * These are not used for matching the recipe. + */ + // @ts-ignore + withDisplay(types: org.spongepowered.api.item.ItemType): org.spongepowered.api.item.recipe.crafting.Ingredient.Builder; + /** + * Adds ItemStacks used to display this Ingredient in a recipe. + * These are not used for matching the recipe. + */ + // @ts-ignore + withDisplay(items: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.recipe.crafting.Ingredient.Builder; + /** + * Adds ItemStackSnasphots used to display this Ingredient in a recipe. + * These are not used for matching the recipe. + */ + // @ts-ignore + withDisplay(items: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.item.recipe.crafting.Ingredient.Builder; + /** + * Builds the {@link Ingredient} with the specified items and or predicates. + */ + // @ts-ignore + build(): org.spongepowered.api.item.recipe.crafting.Ingredient; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.Ingredient.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.Ingredient.ts new file mode 100644 index 00000000..e31c7049 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.Ingredient.ts @@ -0,0 +1,51 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + // @ts-ignore + interface Ingredient { + // @ts-ignore + NONE: org.spongepowered.api.item.recipe.crafting.Ingredient; + // @ts-ignore + test(itemStack: org.spongepowered.api.item.inventory.ItemStack): boolean; + /** + * Returns the list of {@link ItemStack}s used to display the ingredient in a recipe. + * These are not necessarily all the items that this Ingredient can match. + */ + // @ts-ignore + displayedItems(): any[] /*java.util.List*/; + /** + * Creates a new {@link Builder} to build an {@link Ingredient}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.recipe.crafting.Ingredient.Builder; + /** + * Creates a new {@link Ingredient} for the provided {@link ItemStackSnapshot}s. + */ + // @ts-ignore + of(snapshots: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.item.recipe.crafting.Ingredient; + /** + * Creates a new {@link Ingredient} for the provided {@link ItemStack}s. + */ + // @ts-ignore + of(itemStacks: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.recipe.crafting.Ingredient; + /** + * Creates a new {@link Ingredient} for the provided {@link ItemType}s. + */ + // @ts-ignore + of(itemTypes: org.spongepowered.api.item.ItemType): org.spongepowered.api.item.recipe.crafting.Ingredient; + /** + * Creates a new {@link Ingredient} for the provided + * {@link org.spongepowered.api.GameDictionary.Entry}s. + */ + // @ts-ignore + of(entries: org.spongepowered.api.GameDictionary.Entry): org.spongepowered.api.item.recipe.crafting.Ingredient; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep.ResultStep.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep.ResultStep.ts new file mode 100644 index 00000000..6680a07a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep.ResultStep.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + namespace ShapedCraftingRecipe { + namespace Builder { + namespace AisleStep { + // @ts-ignore + interface ResultStep extends org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep, org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.ResultStep { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep.ts new file mode 100644 index 00000000..20b55d13 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + namespace ShapedCraftingRecipe { + namespace Builder { + // @ts-ignore + interface AisleStep extends org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder { + /** + * Sets an ingredient based on the aisle pattern. + *Sets the ingredient to {@link Ingredient#NONE} if + * {@code null} is specified.
+ */ + // @ts-ignore + where(symbol: string, ingredient: org.spongepowered.api.item.recipe.crafting.Ingredient): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep.ResultStep; + /** + * Sets multiple ingredients based on the aisle pattern. + */ + // @ts-ignore + where(ingredientMap: MapUse {@link AisleStep#where} to assign ingredients to characters + * of the aisles.
+ *The space character will be defaulted to {@link Ingredient#NONE} + * if not specified.
+ *Any other not assigned characters will cause an Exception + * when {@link EndStep#build}ing the Recipe.
+ */ + // @ts-ignore + aisle(aisle: string): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep; + /** + * Start building a new recipe with ingredients based on rows. + * After this call {@link RowsStep#row} for each row of your recipe. + */ + // @ts-ignore + rows(): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.RowsStep; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.ts new file mode 100644 index 00000000..d0466ddf --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.ts @@ -0,0 +1,36 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + // @ts-ignore + interface ShapedCraftingRecipe extends org.spongepowered.api.item.recipe.crafting.CraftingRecipe { + /** + * Creates a new {@link ShapedCraftingRecipe.Builder} to build a {@link ShapedCraftingRecipe}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder; + /** + * Returns the ingredient predicate at the specified location in this + * recipe. + */ + // @ts-ignore + getIngredient(x: number, y: number): org.spongepowered.api.item.recipe.crafting.Ingredient; + /** + * Gets the width of the grid this ShapedCraftingRecipe fits into. + */ + // @ts-ignore + getWidth(): number; + /** + * Gets the height of the grid this ShapedCraftingRecipe fits into. + */ + // @ts-ignore + getHeight(): number; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep.ts new file mode 100644 index 00000000..0ccfcb51 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + namespace ShapelessCraftingRecipe { + namespace Builder { + // @ts-ignore + interface EndStep extends org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder, org.spongepowered.api.util.CatalogBuilder { + /** + * Sets the group of the recipe. + */ + // @ts-ignore + group(name: string): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep; + // @ts-ignore + id(id: string): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep; + // @ts-ignore + name(name: string): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep; + // @ts-ignore + name(name: org.spongepowered.api.text.translation.Translation): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep; + /** + * Builds a new {@link ShapelessCraftingRecipe} from this builder. + */ + // @ts-ignore + build(id: string, plugin: any): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.ResultStep.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.ResultStep.ts new file mode 100644 index 00000000..3abb081e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.ResultStep.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + namespace ShapelessCraftingRecipe { + namespace Builder { + // @ts-ignore + interface ResultStep extends org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder { + /** + * Changes the result and returns this builder. The result is the + * {@link ItemStack} created when the recipe is fulfilled. + */ + // @ts-ignore + result(result: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep; + /** + * Changes the result and returns this builder. The result is the + * {@link ItemStack} created when the recipe is fulfilled. + */ + // @ts-ignore + result(result: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.ts new file mode 100644 index 00000000..eb886608 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + namespace ShapelessCraftingRecipe { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Adds an ingredient predicate to the requirements of this + * {@link ShapelessCraftingRecipe}. + */ + // @ts-ignore + addIngredient(ingredient: org.spongepowered.api.item.recipe.crafting.Ingredient): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.ResultStep; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.ts new file mode 100644 index 00000000..8a0df996 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + // @ts-ignore + interface ShapelessCraftingRecipe extends org.spongepowered.api.item.recipe.crafting.CraftingRecipe { + /** + * Creates a new {@link Builder} to build a {@link ShapelessCraftingRecipe}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder; + /** + * Gets the ingredient predicates for this ShapelessCraftingRecipe. + */ + // @ts-ignore + getIngredientPredicates(): any[] /*java.util.List*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep.ts new file mode 100644 index 00000000..7edb6dcf --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep.ts @@ -0,0 +1,34 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace smelting { + namespace SmeltingRecipe { + namespace Builder { + // @ts-ignore + interface EndStep extends org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder, org.spongepowered.api.util.CatalogBuilder { + /** + * Changes the experience and returns this builder. It is the + * required amount of experience the user must possess in order to + * be able to fulfill the recipe. + */ + // @ts-ignore + experience(experience: number): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep; + // @ts-ignore + id(id: string): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep; + // @ts-ignore + name(name: string): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep; + // @ts-ignore + name(name: org.spongepowered.api.text.translation.Translation): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep; + // @ts-ignore + build(): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.ResultStep.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.ResultStep.ts new file mode 100644 index 00000000..be2cc10e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.ResultStep.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace smelting { + namespace SmeltingRecipe { + namespace Builder { + // @ts-ignore + interface ResultStep extends org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder { + /** + * Changes the result and returns this builder. The result is the + * {@link ItemStack} created when the recipe is fulfilled. + */ + // @ts-ignore + result(result: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep; + /** + * Changes the result and returns this builder. The result is the + * {@link ItemStack} created when the recipe is fulfilled. + */ + // @ts-ignore + result(result: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep; + } + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.ts new file mode 100644 index 00000000..0698da3f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.ts @@ -0,0 +1,47 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace smelting { + namespace SmeltingRecipe { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Changes the ingredient predicate and returns this builder. + * The ingredient predicate is the predicate which must return + * {@code true} in order for this recipe to be fulfilled. + */ + // @ts-ignore + ingredient(ingredientPredicate: any, exemplaryIngredient: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.ResultStep; + /** + * Changes the ingredient predicate and returns this builder. + * The ingredient predicate is the predicate which must return + * {@code true} in order for this recipe to be fulfilled. + *The vanilla {@link ItemStack} matching behavior is used as the + * ingredient predicate.
+ */ + // @ts-ignore + ingredient(ingredient: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.ResultStep; + /** + * Changes the ingredient and returns this builder. The ingredient is + * the {@link ItemStack} required in order for the recipe to be + * fulfilled. + */ + // @ts-ignore + ingredient(ingredient: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.ResultStep; + /** + * Changes the ingredient and returns this builder. The ingredient is + * the {@link ItemStack} required in order for the recipe to be + * fulfilled. + */ + // @ts-ignore + ingredient(ingredient: org.spongepowered.api.item.ItemType): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.ResultStep; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.ts new file mode 100644 index 00000000..72097511 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.ts @@ -0,0 +1,48 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace smelting { + // @ts-ignore + interface SmeltingRecipe extends org.spongepowered.api.item.recipe.Recipe, org.spongepowered.api.CatalogType { + /** + * Builds a simple furnace recipe. Note, that you can implement the + * {@link SmeltingRecipe} manually, too. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder; + // @ts-ignore + getId(): string; + // @ts-ignore + getName(): string; + /** + * An exemplary {@link ItemStackSnapshot}, which will always make + * {@link #isValid(ItemStackSnapshot)} return {@code true}. + */ + // @ts-ignore + getExemplaryIngredient(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Checks if the given {@link ItemStackSnapshot} fits the required + * constraints to craft this {@link SmeltingRecipe}. + */ + // @ts-ignore + isValid(ingredient: org.spongepowered.api.item.inventory.ItemStackSnapshot): boolean; + /** + *Returns the {@link SmeltingResult} containing the resulting + * {@link ItemStackSnapshot} and the amount of experience released.
+ *This method should be used instead of the {@link #getExemplaryResult()} + * method, as it customizes the result further depending on the specified + * ingredient {@link ItemStackSnapshot}. It is advised to use + * the output of {@link #getExemplaryResult()}, modify it accordingly, + * and {@code return} it.
+ */ + // @ts-ignore + getResult(ingredient: org.spongepowered.api.item.inventory.ItemStackSnapshot): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.smelting.SmeltingRecipeRegistry.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.smelting.SmeltingRecipeRegistry.ts new file mode 100644 index 00000000..30002e86 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.smelting.SmeltingRecipeRegistry.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace smelting { + // @ts-ignore + interface SmeltingRecipeRegistry extends org.spongepowered.api.item.recipe.RecipeRegistry { + /** + * Retrieves the recipe used when smelting the given ingredient. + */ + // @ts-ignore + findMatchingRecipe(ingredient: org.spongepowered.api.item.inventory.ItemStackSnapshot): any; + /** + * Finds the matching recipe and creates the {@link SmeltingResult}, + * which is then returned. + */ + // @ts-ignore + getResult(ingredient: org.spongepowered.api.item.inventory.ItemStackSnapshot): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.item.recipe.smelting.SmeltingResult.ts b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.smelting.SmeltingResult.ts new file mode 100644 index 00000000..7265b336 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.item.recipe.smelting.SmeltingResult.ts @@ -0,0 +1,42 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace smelting { + // @ts-ignore + class SmeltingResult { + /** + * Creates a new {@link SmeltingResult}. + *Note that this may be replaced with a static of method in the + * future.
+ */ + constructor(result: org.spongepowered.api.item.inventory.ItemStackSnapshot, experience: number) + /** + * This method should be used instead of the + * {@link SmeltingRecipe#getExemplaryResult()} method, as it customizes the + * result further depending on the specified ingredient + * {@link ItemStackSnapshot}. It is advised to use the output of + * {@link SmeltingRecipe#getExemplaryResult()}, modify it accordingly, and + * {@code return} it. + */ + // @ts-ignore + public getResult(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns the amount of experience released after completing a recipe. + */ + // @ts-ignore + public getExperience(): number; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.network.ChannelBinding.IndexedMessageChannel.ts b/packages/sponge/src/typings/org.spongepowered.api.network.ChannelBinding.IndexedMessageChannel.ts new file mode 100644 index 00000000..c61c0b55 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.network.ChannelBinding.IndexedMessageChannel.ts @@ -0,0 +1,65 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + namespace ChannelBinding { + // @ts-ignore + interface IndexedMessageChannel extends org.spongepowered.api.network.ChannelBinding { + /** + * Register a message class to this channel without a receiving handler. + * This will only allow the message to be sent, this channel binding + * will not be able to receive the message. + *The message ID is used to identify this message class as it is + * sent and received across the network, it is a single byte and thus + * has a range of 0 to 255.
+ */ + // @ts-ignore + registerMessage(messageClass: any, messageId: number): void; + /** + * Register a message class to this channel and a handler for receiving + * the message. The handler is invoked every time the message is sent to + * either side. + */ + // @ts-ignore + registerMessage(messageClass: any, messageId: number, handler: org.spongepowered.api.network.MessageHandler): void; + /** + * Register a message class to this channel and a handler for receiving + * the message. The handler is invoked every time the message is sent to + * the given side. + */ + // @ts-ignore + registerMessage(messageClass: any, messageId: number, side: org.spongepowered.api.Platform.Type, handler: org.spongepowered.api.network.MessageHandler): void; + /** + * Register a {@link MessageHandler} for a {@link Message}. + */ + // @ts-ignore + addHandler(messageClass: any, side: org.spongepowered.api.Platform.Type, handler: org.spongepowered.api.network.MessageHandler): void; + /** + * Register a {@link MessageHandler} for a {@link Message} + */ + // @ts-ignore + addHandler(messageClass: any, handler: org.spongepowered.api.network.MessageHandler): void; + /** + * Sends the message to the player across this channel. The message may + * not be sent if the player doesn't have a registered handler. + */ + // @ts-ignore + sendTo(player: org.spongepowered.api.entity.living.player.Player, message: org.spongepowered.api.network.Message): void; + /** + * Sends the message to the server. The message may not be sent if there + * is no registered handler. This must be called from + * the client side. + */ + // @ts-ignore + sendToServer(message: org.spongepowered.api.network.Message): void; + /** + * Sends the message to all players on the server. + */ + // @ts-ignore + sendToAll(message: org.spongepowered.api.network.Message): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.network.ChannelBinding.RawDataChannel.ts b/packages/sponge/src/typings/org.spongepowered.api.network.ChannelBinding.RawDataChannel.ts new file mode 100644 index 00000000..41cedf56 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.network.ChannelBinding.RawDataChannel.ts @@ -0,0 +1,48 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + namespace ChannelBinding { + // @ts-ignore + interface RawDataChannel extends org.spongepowered.api.network.ChannelBinding { + /** + * Adds a listener to this channel that is invoked every time data is + * sent to it on either side. + */ + // @ts-ignore + addListener(listener: org.spongepowered.api.network.RawDataListener): void; + /** + * Adds a listener to this channel that is invoked every time data is + * sent to it on the given side. + */ + // @ts-ignore + addListener(side: org.spongepowered.api.Platform.Type, listener: org.spongepowered.api.network.RawDataListener): void; + /** + * Removes the listener from handling data. + */ + // @ts-ignore + removeListener(listener: org.spongepowered.api.network.RawDataListener): void; + /** + * Sends the raw payload to the player across this channel. The data may + * not be sent if the player doesn't have a registered handler. + */ + // @ts-ignore + sendTo(player: org.spongepowered.api.entity.living.player.Player, payload: any): void; + /** + * Sends the raw payload to the server. The data may not be sent if + * there is no registered handler. This must be called + * from the client side. + */ + // @ts-ignore + sendToServer(payload: any): void; + /** + * Sends the raw payload to all players on the server. + */ + // @ts-ignore + sendToAll(payload: any): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.network.ChannelBinding.ts b/packages/sponge/src/typings/org.spongepowered.api.network.ChannelBinding.ts new file mode 100644 index 00000000..42f8ccaf --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.network.ChannelBinding.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + interface ChannelBinding { + /** + * Gets the registrar that this channel is bound to. + */ + // @ts-ignore + getRegistrar(): org.spongepowered.api.network.ChannelRegistrar; + /** + * Gets this channel's bound name. + */ + // @ts-ignore + getName(): string; + /** + * Gets the plugin that created this binding. + */ + // @ts-ignore + getOwner(): org.spongepowered.api.plugin.PluginContainer; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.network.ChannelBuf.ts b/packages/sponge/src/typings/org.spongepowered.api.network.ChannelBuf.ts new file mode 100644 index 00000000..09fca095 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.network.ChannelBuf.ts @@ -0,0 +1,555 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + interface ChannelBuf { + /** + * Gets the number of bytes this buffer can contain. + */ + // @ts-ignore + getCapacity(): number; + /** + * Gets the number of bytes available between the reader and the writer. + */ + // @ts-ignore + available(): number; + /** + * Returns a buffer with the specified endianness which shares the whole + * region, indexes, and marks of this buffer. Modifying the content, the + * indexes, or the marks of the returned buffer or this buffer affects + * each other's content, indexes, and marks. + *If the specified endianness is identical to this buffer's byte + * order, this method can return this.
+ *This method does not modify readerIndex or writerIndex of this + * buffer.
+ */ + // @ts-ignore + order(order: any): org.spongepowered.api.network.ChannelBuf; + /** + * Returns the endianness ({@link ByteOrder}) of this buffer. + */ + // @ts-ignore + getByteOrder(): any; + /** + * Gets the readerIndex of this buffer. + */ + // @ts-ignore + readerIndex(): number; + /** + * Sets the readerIndex of this buffer. + */ + // @ts-ignore + setReadIndex(index: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets the writerIndex of this buffer. + */ + // @ts-ignore + writerIndex(): number; + /** + * Sets the writerIndex of this buffer. + */ + // @ts-ignore + setWriteIndex(index: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets both the reader and writer indices. + */ + // @ts-ignore + setIndex(readIndex: number, writeIndex: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the readerIndex and writerIndex of this buffer to 0. + * This method is identical to {@link #setIndex(int, int)}. + */ + // @ts-ignore + clear(): org.spongepowered.api.network.ChannelBuf; + /** + * Marks the current readerIndex in this buffer. You can reposition + * the current readerIndex to the marked readerIndex by calling + * resetRead(). The initial value of the marked readerIndex is 0. + */ + // @ts-ignore + markRead(): org.spongepowered.api.network.ChannelBuf; + /** + * Marks the current writerIndex in this buffer. You can reposition + * the current writerIndex to the marked writerIndex by calling + * resetWrite(). The initial value of the marked writerIndex is 0. + */ + // @ts-ignore + markWrite(): org.spongepowered.api.network.ChannelBuf; + /** + * Resets the current readerIndex in this buffer to the marked reader + * index. + */ + // @ts-ignore + resetRead(): org.spongepowered.api.network.ChannelBuf; + /** + * Resets the current writerIndex in this buffer to the marked writer + * index. + */ + // @ts-ignore + resetWrite(): org.spongepowered.api.network.ChannelBuf; + /** + * Returns a slice of this buffer's readable bytes. Modifying the content + * of the returned buffer or this buffer affects each other's content + * while they maintain separate indexes and marks. This method is + * identical to buf.slice(buf.readerIndex(), buf.readableBytes()). + * This method does not modify readerIndex or writerIndex of this buffer. + */ + // @ts-ignore + slice(): org.spongepowered.api.network.ChannelBuf; + /** + * Returns a slice of this buffer's sub-region. Modifying the content of + * the returned buffer or this buffer affects each other's content while + * they maintain separate indexes and marks. This method does not modify + * readerIndex or writerIndex of this buffer. + */ + // @ts-ignore + slice(index: number, length: number): org.spongepowered.api.network.ChannelBuf; + /** + * Returns {@code true} if and only if this buffer has a backing byte array. + *If this method returns true, you can safely call {@link #array()}.
+ */ + // @ts-ignore + hasArray(): boolean; + /** + * Gets the backing byte array of this stream. + */ + // @ts-ignore + array(): number[]; + /** + * Sets the specified boolean at the current writerIndex and increases + * the writerIndex by 1 in this buffer. + */ + // @ts-ignore + writeBoolean(data: boolean): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the boolean at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setBoolean(index: number, data: boolean): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a boolean at the current readerIndex and increases the + * readerIndex by 1 in this buffer. + */ + // @ts-ignore + readBoolean(): boolean; + /** + * Gets a boolean at the specified absolute index in this buffer. + */ + // @ts-ignore + getBoolean(index: number): boolean; + /** + * Sets the specified byte at the current writerIndex and increases + * the writerIndex by 1 in this buffer. + */ + // @ts-ignore + writeByte(data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the byte at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setByte(index: number, data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a byte at the current readerIndex and increases the + * readerIndex by 1 in this buffer. + */ + // @ts-ignore + readByte(): number; + /** + * Gets a byte at the specified absolute index in this buffer. + */ + // @ts-ignore + getByte(index: number): number; + /** + * Sets the specified byte array at the current writerIndex and increases + * the writerIndex by the number of bytes and the size of the length as a + * varint. + *The length of the array is written preceding the data as a varint.
+ */ + // @ts-ignore + writeByteArray(data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the specified byte array at the current writerIndex and increases + * the writerIndex by the length specified and the size of the length as a + * varint. + *The length of the array is written preceding the data as a varint.
+ */ + // @ts-ignore + writeByteArray(data: number, start: number, length: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the specified byte array at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + *The length of the array is written preceding the data as a varint.
+ */ + // @ts-ignore + setByteArray(index: number, data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the specified byte array at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + *The length of the array is written preceding the data as a varint.
+ */ + // @ts-ignore + setByteArray(index: number, data: number, start: number, length: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a byte array at the current readerIndex and increases the + * readerIndex by the length of the array and the length of the array size. + *The length of the array is expected to be preceding the array as a + * varint.
+ */ + // @ts-ignore + readByteArray(): number[]; + /** + * Gets a byte array at the specified absolute index in this buffer. + *The length of the array is expected to be preceding the array as a + * varint.
+ */ + // @ts-ignore + readByteArray(index: number): number[]; + /** + * Sets the specified byte array at the current writerIndex and increases + * the writerIndex by the number of bytes. + */ + // @ts-ignore + writeBytes(data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the specified byte array at the current writerIndex and increases + * the writerIndex by the length specified. + */ + // @ts-ignore + writeBytes(data: number, start: number, length: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the specified byte array at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setBytes(index: number, data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the specified byte array at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setBytes(index: number, data: number, start: number, length: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a byte array at the current readerIndex and increases the + * readerIndex by the length of the array. + */ + // @ts-ignore + readBytes(length: number): number[]; + /** + * Gets a byte array at the specified absolute index in this buffer. + */ + // @ts-ignore + readBytes(index: number, length: number): number[]; + /** + * Sets the specified short integer at the current writerIndex and + * increases the writerIndex by 2 in this buffer. + */ + // @ts-ignore + writeShort(data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the short at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setShort(index: number, data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a short integer at the current readerIndex and increases the + * readerIndex by 2 in this buffer. + */ + // @ts-ignore + readShort(): number; + /** + * Gets a short integer at the specified absolute index in this buffer. + */ + // @ts-ignore + getShort(index: number): number; + /** + * Sets the specified character at the current writerIndex and + * increases the writerIndex by 2 in this buffer. + */ + // @ts-ignore + writeChar(data: string): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the char at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setChar(index: number, data: string): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a character at the current readerIndex and increases the + * readerIndex by 2 in this buffer. + */ + // @ts-ignore + readChar(): string; + /** + * Gets a character at the specified absolute index in this buffer. + */ + // @ts-ignore + getChar(index: number): string; + /** + * Sets the specified integer at the current writerIndex and increases + * the writerIndex by 4 in this buffer. + */ + // @ts-ignore + writeInteger(data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the integer at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setInteger(index: number, data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets an integer at the current readerIndex and increases the + * readerIndex by 4 in this buffer. + */ + // @ts-ignore + readInteger(): number; + /** + * Gets an integer at the specified absolute index in this buffer. + */ + // @ts-ignore + getInteger(index: number): number; + /** + * Sets the specified long integer at the current writerIndex and + * increases the writerIndex by 8 in this buffer. + */ + // @ts-ignore + writeLong(data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the long integer at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setLong(index: number, data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a long integer at the current readerIndex and increases the + * readerIndex by 8 in this buffer. + */ + // @ts-ignore + readLong(): number; + /** + * Gets a long integer at the specified absolute index in this buffer. + */ + // @ts-ignore + getLong(index: number): number; + /** + * Sets the specified float at the current writerIndex and increases + * the writerIndex by 4 in this buffer. + */ + // @ts-ignore + writeFloat(data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the float at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setFloat(index: number, data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a float at the current readerIndex and increases the + * readerIndex by 4 in this buffer. + */ + // @ts-ignore + readFloat(): number; + /** + * Gets a float at the specified absolute index in this buffer. + */ + // @ts-ignore + getFloat(index: number): number; + /** + * Sets the specified double at the current writerIndex and increases + * the writerIndex by 8 in this buffer. + */ + // @ts-ignore + writeDouble(data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the double at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setDouble(index: number, data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a double at the current readerIndex and increases the + * readerIndex by 8 in this buffer. + */ + // @ts-ignore + readDouble(): number; + /** + * Gets a double at the specified absolute index in this buffer. + */ + // @ts-ignore + getDouble(index: number): number; + /** + * Sets the specified varint at the current writerIndex and increases the + * writerIndex by the number of bytes written. + *The number of bytes written depends on the size of the value, see + * https://developers.google.com/protocol-buffers/docs/encoding#varints + * for a full description.
+ */ + // @ts-ignore + writeVarInt(data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the specified varint at the specified absolute index in this buffer. + * This method does not modify readerIndex or writerIndex of this buffer. + *The number of bytes written depends on the size of the value, see + * https://developers.google.com/protocol-buffers/docs/encoding#varints + * for a full description.
+ */ + // @ts-ignore + setVarInt(index: number, data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a varint at the current readerIndex and increases the readerIndex by + * the number of bytes read. + *The number of bytes read depends on the size of the value, see + * https://developers.google.com/protocol-buffers/docs/encoding#varints + * for a full description.
+ */ + // @ts-ignore + readVarInt(): number; + /** + * Gets a varint at the specified absolute index in this buffer. + *The number of bytes read depends on the size of the value, see + * https://developers.google.com/protocol-buffers/docs/encoding#varints + * for a full description.
+ */ + // @ts-ignore + getVarInt(index: number): number; + /** + * Sets the specified string at the current writerIndex and increases the + * writerIndex by the length of the string. + *The string will be encoded as the utf length as a varint followed by + * the UTF-8 bytes of the string.
+ */ + // @ts-ignore + writeString(data: string): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the string at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + *The string will be encoded as the utf length as a varint followed by + * the UTF-8 bytes of the string.
+ */ + // @ts-ignore + setString(index: number, data: string): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a string at the current readerIndex and increases the readerIndex by + * the length of a varint followed by the utf-8 bytes of the string. + *The string will be encoded as the utf length as a varint followed by + * the UTF-8 bytes of the string.
+ */ + // @ts-ignore + readString(): string; + /** + * Gets a string at the specified absolute index in this buffer. + *The string will be encoded as the utf length as a varint followed by + * the UTF-8 bytes of the string.
+ */ + // @ts-ignore + getString(index: number): string; + /** + * Sets the specified string at the current writerIndex and increases the + * writerIndex by the length of the string. + *The string will be encoded as the utf length as a short followed by + * the UTF-8 bytes of the string.
+ */ + // @ts-ignore + writeUTF(data: string): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the string at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + *The string will be encoded as the utf length as a short followed by + * the UTF-8 bytes of the string.
+ */ + // @ts-ignore + setUTF(index: number, data: string): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a string at the current readerIndex and increases the readerIndex by + * the length of a varint followed by the utf-8 bytes of the string. + *The string will be encoded as the utf length as a short followed by + * the UTF-8 bytes of the string.
+ */ + // @ts-ignore + readUTF(): string; + /** + * Gets a string at the specified absolute index in this buffer. + *The string will be encoded as the utf length as a short followed by + * the UTF-8 bytes of the string.
+ */ + // @ts-ignore + getUTF(index: number): string; + /** + * Sets the specified {@link UUID} at the current writerIndex and + * increases the writerIndex by 16 in this buffer. + */ + // @ts-ignore + writeUniqueId(data: any): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the {@link UUID} at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setUniqueId(index: number, data: any): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a UUID at the current readerIndex and increases the + * readerIndex by 16 in this buffer. + */ + // @ts-ignore + readUniqueId(): any; + /** + * Gets a {@link UUID} at the specified absolute index in this buffer. + */ + // @ts-ignore + getUniqueId(index: number): any; + /** + * Sets the specified {@link DataView} at the current writerIndex and + * increases the writerIndex according to the length of the data view + * in this buffer. + */ + // @ts-ignore + writeDataView(data: org.spongepowered.api.data.DataView): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the {@link DataView} at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setDataView(index: number, data: org.spongepowered.api.data.DataView): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a {@link DataView} at the current readerIndex and increases the + * readerIndex according to the length of the data view in this buffer. + */ + // @ts-ignore + readDataView(): org.spongepowered.api.data.DataView; + /** + * Gets a {@link DataView} at the specified absolute index in this buffer. + */ + // @ts-ignore + getDataView(index: number): org.spongepowered.api.data.DataView; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.network.ChannelId.ts b/packages/sponge/src/typings/org.spongepowered.api.network.ChannelId.ts new file mode 100644 index 00000000..b5f4d1d0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.network.ChannelId.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + interface ChannelId { + /** + * Gets the channel id. + */ + // @ts-ignore + value(): string; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.network.ChannelRegistrar.ts b/packages/sponge/src/typings/org.spongepowered.api.network.ChannelRegistrar.ts new file mode 100644 index 00000000..830686d9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.network.ChannelRegistrar.ts @@ -0,0 +1,64 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + interface ChannelRegistrar { + /** + * Creates a new channel binding for the given channel name. The channel can + * be used to send and receive messages. + */ + // @ts-ignore + createChannel(plugin: any, channel: string): org.spongepowered.api.network.ChannelBinding.IndexedMessageChannel; + /** + * Creates a new raw channel binding. The channel can be used to send and + * Receive data from {@link ChannelBuf} objects. + */ + // @ts-ignore + createRawChannel(plugin: any, channel: string): org.spongepowered.api.network.ChannelBinding.RawDataChannel; + /** + * Gets a channel binding if a channel registered by that name exists. + */ + // @ts-ignore + getChannel(channel: string): any; + /** + * Gets or creates a {@link ChannelBinding.IndexedMessageChannel} by the + * given name. If the channel exists and is a indexed message channel, then + * it is returned. If the channel is not an indexed message channel, then + * {@link IllegalStateException} is thrown. Otherwise, a new channel is + * created. + */ + // @ts-ignore + getOrCreate(plugin: any, channel: string): org.spongepowered.api.network.ChannelBinding.IndexedMessageChannel; + /** + * Gets or creates a {@link ChannelBinding.RawDataChannel} by the given + * name. If the channel exists and is a raw data channel, then it is + * returned. If the channel is not a raw data channel, then + * {@link IllegalStateException} is thrown. Otherwise, a new channel is + * created. + */ + // @ts-ignore + getOrCreateRaw(plugin: any, channel: string): org.spongepowered.api.network.ChannelBinding.RawDataChannel; + /** + * Remove the channel binding from this registrar, freeing up the channel + * name. All method calls on the channel binding instance will now throw + * {@link IllegalStateException}. + */ + // @ts-ignore + unbindChannel(channel: org.spongepowered.api.network.ChannelBinding): void; + /** + * Gets the set of registered channels. + */ + // @ts-ignore + getRegisteredChannels(side: org.spongepowered.api.Platform.Type): any[] /*java.util.Set*/; + /** + * Returns whether the given channel name is available for creating with + * {@link #createChannel}. + */ + // @ts-ignore + isChannelAvailable(channelName: string): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.network.ChannelRegistrationException.ts b/packages/sponge/src/typings/org.spongepowered.api.network.ChannelRegistrationException.ts new file mode 100644 index 00000000..fbb0e1e1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.network.ChannelRegistrationException.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + class ChannelRegistrationException { + /** + * Constructs a new {@link ChannelRegistrationException}. + */ + constructor() + /** + * Constructs a new {@link ChannelRegistrationException} with a message. + */ + constructor(message: string) + /** + * Constructs a new {@link ChannelRegistrationException} with the specified message and + * cause. + */ + constructor(message: string, cause: any) + /** + * Constructs a new {@link ChannelRegistrationException} with the specified cause and a + * null message. + */ + constructor(cause: any) + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.network.Message.ts b/packages/sponge/src/typings/org.spongepowered.api.network.Message.ts new file mode 100644 index 00000000..849402c6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.network.Message.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + interface Message { + /** + * Read the data from the channel buffer into this message. + */ + // @ts-ignore + readFrom(buf: org.spongepowered.api.network.ChannelBuf): void; + /** + * Write the data from this message to the channel buffer. + */ + // @ts-ignore + writeTo(buf: org.spongepowered.api.network.ChannelBuf): void; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.network.MessageHandler.ts b/packages/sponge/src/typings/org.spongepowered.api.network.MessageHandler.ts new file mode 100644 index 00000000..ac5f474f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.network.MessageHandler.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + interface MessageHandler { + /** + * Handles the message sent by a remote connection. + */ + // @ts-ignore + handleMessage(message: org.spongepowered.api.network.Message, connection: org.spongepowered.api.network.RemoteConnection, side: org.spongepowered.api.Platform.Type): void; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.network.PlayerConnection.ts b/packages/sponge/src/typings/org.spongepowered.api.network.PlayerConnection.ts new file mode 100644 index 00000000..cfde8d0f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.network.PlayerConnection.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + interface PlayerConnection extends org.spongepowered.api.network.RemoteConnection { + /** + * Gets the associated {@link Player} for this connection. + */ + // @ts-ignore + getPlayer(): org.spongepowered.api.entity.living.player.Player; + /** + * Gets the connection latency. This is constantly calculated by the server. + */ + // @ts-ignore + getLatency(): number; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.network.RawDataListener.ts b/packages/sponge/src/typings/org.spongepowered.api.network.RawDataListener.ts new file mode 100644 index 00000000..eb919053 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.network.RawDataListener.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + interface RawDataListener { + /** + * Handles the given {@link ChannelBuf} data sent by a remote connection. + */ + // @ts-ignore + handlePayload(data: org.spongepowered.api.network.ChannelBuf, connection: org.spongepowered.api.network.RemoteConnection, side: org.spongepowered.api.Platform.Type): void; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.network.RemoteConnection.ts b/packages/sponge/src/typings/org.spongepowered.api.network.RemoteConnection.ts new file mode 100644 index 00000000..60b6e75e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.network.RemoteConnection.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + interface RemoteConnection { + /** + * Gets the {@link InetSocketAddress} of this connection. + */ + // @ts-ignore + getAddress(): any; + /** + * Gets the host name the connection is connecting to the server with. + *Examples include: If a player is connecting to `mc.example.com`, + * the hostname will show `mc.example.com`. This is NOT the originating + * hostname of the client.
+ */ + // @ts-ignore + getVirtualHost(): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.network.status.Favicon.ts b/packages/sponge/src/typings/org.spongepowered.api.network.status.Favicon.ts new file mode 100644 index 00000000..ed5a1338 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.network.status.Favicon.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + namespace status { + // @ts-ignore + interface Favicon { + /** + * Gets the decoded image of this favicon. + */ + // @ts-ignore + getImage(): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.network.status.StatusClient.ts b/packages/sponge/src/typings/org.spongepowered.api.network.status.StatusClient.ts new file mode 100644 index 00000000..f47e41d3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.network.status.StatusClient.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + namespace status { + // @ts-ignore + interface StatusClient { + /** + * Gets the address of the client. + */ + // @ts-ignore + getAddress(): any; + /** + * Gets the game version of the client. + */ + // @ts-ignore + getVersion(): org.spongepowered.api.MinecraftVersion; + /** + * Gets the address the player is connecting to. + */ + // @ts-ignore + getVirtualHost(): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.network.status.StatusResponse.Players.ts b/packages/sponge/src/typings/org.spongepowered.api.network.status.StatusResponse.Players.ts new file mode 100644 index 00000000..0188e86e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.network.status.StatusResponse.Players.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + namespace status { + namespace StatusResponse { + // @ts-ignore + interface Players { + /** + * Gets the amount of online players on the server. + */ + // @ts-ignore + getOnline(): number; + /** + * Gets the maximum amount of allowed players on the server. + */ + // @ts-ignore + getMax(): number; + /** + * Gets an immutable list of online players on the server to display on + * the client. + */ + // @ts-ignore + getProfiles(): any[] /*java.util.List*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.network.status.StatusResponse.ts b/packages/sponge/src/typings/org.spongepowered.api.network.status.StatusResponse.ts new file mode 100644 index 00000000..6ab1beab --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.network.status.StatusResponse.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + namespace status { + // @ts-ignore + interface StatusResponse { + /** + * Gets the description (MOTD) of the status response. + */ + // @ts-ignore + getDescription(): org.spongepowered.api.text.Text; + /** + * Gets player count and the list of players currently playing on the + * server. + */ + // @ts-ignore + getPlayers(): any; + /** + * Gets the version of the server displayed when the client or the server + * are outdated. + */ + // @ts-ignore + getVersion(): org.spongepowered.api.MinecraftVersion; + /** + * Gets the {@link Favicon} of the server. + */ + // @ts-ignore + getFavicon(): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.plugin.Dependency.ts b/packages/sponge/src/typings/org.spongepowered.api.plugin.Dependency.ts new file mode 100644 index 00000000..e350d841 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.plugin.Dependency.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace plugin { + // @ts-ignore + interface Dependency { + /** + * The plugin ID of the dependency. + */ + // @ts-ignore + id(): string; + /** + * The required version range of the dependency. + *The version range will be specified in Maven version range + * syntax:
+ *Range | Meaning |
---|---|
1.0 | Any dependency version, 1.0 is recommended |
[1.0] | x == 1.0 |
[1.0,) | x >= 1.0 |
(1.0,) | x > 1.0 |
(,1.0] | x <= 1.0 |
(,1.0) | x < 1.0 |
(1.0,2.0) | 1.0 < x < 2.0 |
[1.0,2.0] | 1.0 <= x <= 2.0 |
The plugin ID must match the {@link #ID_PATTERN}.
+ */ + // @ts-ignore + id(): string; + /** + * The human readable name of the plugin as to be used in descriptions and + * similar things. + */ + // @ts-ignore + name(): string; + /** + * The version of the plugin. + */ + // @ts-ignore + version(): string; + /** + * The dependencies required to load before this plugin. + */ + // @ts-ignore + dependencies(): org.spongepowered.api.plugin.Dependency[]; + /** + * The description of the plugin, explaining what it can be used for. + */ + // @ts-ignore + description(): string; + /** + * The URL or website of the plugin. + */ + // @ts-ignore + url(): string; + /** + * The authors of the plugin. + */ + // @ts-ignore + authors(): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.plugin.PluginContainer.ts b/packages/sponge/src/typings/org.spongepowered.api.plugin.PluginContainer.ts new file mode 100644 index 00000000..4938a33d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.plugin.PluginContainer.ts @@ -0,0 +1,74 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace plugin { + // @ts-ignore + interface PluginContainer { + /** + * Gets the qualified ID of the {@link Plugin} within this container. + */ + // @ts-ignore + getId(): string; + /** + * Gets the name of the {@link Plugin} within this container. + */ + // @ts-ignore + getName(): string; + /** + * Gets the version of the {@link Plugin} within this container. + */ + // @ts-ignore + getVersion(): any; + /** + * Gets the description of the {@link Plugin} within this container. + */ + // @ts-ignore + getDescription(): any; + /** + * Gets the url or website of the {@link Plugin} within this container. + */ + // @ts-ignore + getUrl(): any; + /** + * Gets the authors of the {@link Plugin} within this container. + */ + // @ts-ignore + getAuthors(): any[] /*java.util.List*/; + /** + * Gets a {@link Set} of all dependencies of the {@link Plugin} within this + * container. + */ + // @ts-ignore + getDependencies(): any[] /*java.util.Set*/; + /** + * Gets the {@link PluginDependency} the plugin in this container has on + * the plugin with the specified plugin ID. + */ + // @ts-ignore + getDependency(id: string): any; + /** + * Retrieves the {@link Asset} of the specified name from the + * {@link AssetManager} for this {@link Plugin}. + */ + // @ts-ignore + getAsset(name: string): any; + /** + * Returns the source the plugin was loaded from. + */ + // @ts-ignore + getSource(): any; + /** + * Returns the created instance of {@link Plugin} if it is available. + */ + // @ts-ignore + getInstance(): any; + /** + * Returns the assigned logger to this {@link Plugin}. + */ + // @ts-ignore + getLogger(): any /*Logger*/; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.plugin.PluginManager.ts b/packages/sponge/src/typings/org.spongepowered.api.plugin.PluginManager.ts new file mode 100644 index 00000000..6fb7cdb3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.plugin.PluginManager.ts @@ -0,0 +1,36 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace plugin { + // @ts-ignore + interface PluginManager { + // @ts-ignore + MINECRAFT_PLUGIN_ID: string; + // @ts-ignore + SPONGE_PLUGIN_ID: string; + /** + * Gets the plugin container from an instance. + */ + // @ts-ignore + fromInstance(instance: any): any; + /** + * Retrieves a {@link PluginContainer} based on its ID. + */ + // @ts-ignore + getPlugin(id: string): any; + /** + * Gets a {@link Collection} of all {@link PluginContainer}s. + */ + // @ts-ignore + getPlugins(): any[] /*java.util.Collection*/; + /** + * Checks if a plugin is loaded based on its ID. + * This may contain plugins/mods from other systems in some implementations. + */ + // @ts-ignore + isLoaded(id: string): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.profile.GameProfile.ts b/packages/sponge/src/typings/org.spongepowered.api.profile.GameProfile.ts new file mode 100644 index 00000000..97aa5cc8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.profile.GameProfile.ts @@ -0,0 +1,63 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace profile { + // @ts-ignore + interface GameProfile extends org.spongepowered.api.util.Identifiable, org.spongepowered.api.data.DataSerializable { + /** + * Creates a {@link GameProfile} from the provided ID. + *The name of the created profile will be {@code null}.
+ */ + // @ts-ignore + of(uniqueId: any): org.spongepowered.api.profile.GameProfile; + /** + * Creates a {@link GameProfile} from the provided ID and name. + */ + // @ts-ignore + of(uniqueId: any, name: string): org.spongepowered.api.profile.GameProfile; + /** + * Gets the name associated with this profile. + */ + // @ts-ignore + getName(): any; + /** + * Gets the property map for this profile. + *This is a mutable map.
+ */ + // @ts-ignore + getPropertyMap(): any; + /** + * Adds a profile property to this game profile. + *The {@link ProfileProperty#getName() name} of the property is used when + * adding the profile property to the {@link #getPropertyMap() property map}.
+ */ + // @ts-ignore + addProperty(property: org.spongepowered.api.profile.property.ProfileProperty): org.spongepowered.api.profile.GameProfile; + /** + * Adds a profile property to this game profile. + */ + // @ts-ignore + addProperty(name: string, property: org.spongepowered.api.profile.property.ProfileProperty): org.spongepowered.api.profile.GameProfile; + /** + * Removes a profile property to this game profile. + *The {@link ProfileProperty#getName() name} of the property is used when + * removing the profile property from the {@link #getPropertyMap() property map}.
+ */ + // @ts-ignore + removeProperty(property: org.spongepowered.api.profile.property.ProfileProperty): boolean; + /** + * Removes a profile property to this game profile. + */ + // @ts-ignore + removeProperty(name: string, property: org.spongepowered.api.profile.property.ProfileProperty): boolean; + /** + * Checks if this profile is filled. + *A filled profile contains both a unique id and name.
+ */ + // @ts-ignore + isFilled(): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.profile.GameProfileCache.ts b/packages/sponge/src/typings/org.spongepowered.api.profile.GameProfileCache.ts new file mode 100644 index 00000000..fd5aab36 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.profile.GameProfileCache.ts @@ -0,0 +1,146 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace profile { + // @ts-ignore + interface GameProfileCache { + /** + * Add an entry to this cache. + */ + // @ts-ignore + add(profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Add an entry to this cache, with an optional expiration date. + */ + // @ts-ignore + add(profile: org.spongepowered.api.profile.GameProfile, expiry: any /*java.util.Date*/): boolean; + /** + * Add an entry to this cache, with an optional expiration date. + */ + // @ts-ignore + add(profile: org.spongepowered.api.profile.GameProfile, expiry: any): boolean; + /** + * Add an entry to this cache, with an optional expiration date. + */ + // @ts-ignore + add(profile: org.spongepowered.api.profile.GameProfile, overwrite: boolean, expiry: any /*java.util.Date*/): boolean; + /** + * Add an entry to this cache, with an optional expiration date. + */ + // @ts-ignore + add(profile: org.spongepowered.api.profile.GameProfile, overwrite: boolean, expiry: any): boolean; + /** + * Remove an entry from this cache. + */ + // @ts-ignore + remove(profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Remove entries from this cache in bulk. + */ + // @ts-ignore + remove(profiles: any): any[] /*java.util.Collection*/; + /** + * Clear all entries from this cache. + */ + // @ts-ignore + clear(): void; + /** + * Gets a {@link GameProfile} from this cache by its unique id. + */ + // @ts-ignore + getById(uniqueId: any): any; + /** + * Gets {@link GameProfile}s in bulk by their unique id. + */ + // @ts-ignore + getByIds(uniqueIds: any): MapThis collection may also contain profiles of players who never played + * on the server!
+ *Use {@link UserStorageService#match(String)} for a collection that + * only contains {@link GameProfile}s with attached {@link User} data.
+ *This method only searches the local cache, so the data may not be up + * to date.
+ */ + // @ts-ignore + match(name: string): any[] /*java.util.Collection*/; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.profile.GameProfileManager.ts b/packages/sponge/src/typings/org.spongepowered.api.profile.GameProfileManager.ts new file mode 100644 index 00000000..63eb3b57 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.profile.GameProfileManager.ts @@ -0,0 +1,117 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace profile { + // @ts-ignore + interface GameProfileManager { + /** + * Creates a {@link GameProfile} from the provided ID and name. + */ + // @ts-ignore + createProfile(uniqueId: any, name: string): org.spongepowered.api.profile.GameProfile; + /** + * Creates a {@link ProfileProperty} from the provided name, value, + * and optional signature. + */ + // @ts-ignore + createProfileProperty(name: string, value: string, signature: string): org.spongepowered.api.profile.property.ProfileProperty; + /** + * Looks up a {@link GameProfile} by its unique ID. + *This method checks the local profile cache before contacting the + * profile servers. Use {@link #get(UUID, boolean)} to disable the cache + * lookup.
+ *The returned {@link CompletableFuture} throws an {@link ExecutionException} + * caused by a {@link ProfileNotFoundException} if the profile does not exist or + * an {@link IOException} if a network error occurred.
+ */ + // @ts-ignore + get(uniqueId: any): any; + /** + * Looks up a {@link GameProfile} by its user name (case-insensitive). + *This method checks the local profile cache before contacting the + * profile servers. Use {@link #get(String, boolean)} to disable the cache + * lookup.
+ *The returned {@link CompletableFuture} throws an {@link ExecutionException} + * caused by a {@link ProfileNotFoundException} if the profile does not exist or + * an {@link IOException} if a network error occurred.
+ */ + // @ts-ignore + get(name: string): any; + /** + * Looks up a {@link GameProfile} by its unique ID. + *The returned {@link CompletableFuture} throws an {@link ExecutionException} + * caused by a {@link ProfileNotFoundException} if the profile does not exist or + * an {@link IOException} if a network error occurred.
+ */ + // @ts-ignore + get(uniqueId: any, useCache: boolean): any; + /** + * Looks up a {@link GameProfile} by its user name (case-insensitive). + *The returned {@link CompletableFuture} throws an {@link ExecutionException} + * caused by a {@link ProfileNotFoundException} if the profile does not exist or + * an {@link IOException} if a network error occurred.
+ */ + // @ts-ignore + get(name: string, useCache: boolean): any; + /** + * Gets a collection of {@link GameProfile}s by their unique IDs. + *The returned {@link CompletableFuture} throws an {@link ExecutionException} + * caused by a {@link ProfileNotFoundException} if the profile does not exist or + * an {@link IOException} if a network error occurred.
+ */ + // @ts-ignore + getAllById(uniqueIds: any, useCache: boolean): any; + /** + * Gets a collection of {@link GameProfile}s by their user names + * (case-insensitive). + *The returned {@link CompletableFuture} throws an {@link ExecutionException} + * caused by a {@link ProfileNotFoundException} if the profile does not exist or + * an {@link IOException} if a network error occurred.
+ */ + // @ts-ignore + getAllByName(names: any, useCache: boolean): any; + /** + * Fills a {@link GameProfile}. + *The returned {@link CompletableFuture} throws an {@link ExecutionException} + * caused by a {@link ProfileNotFoundException} if the profile does not exist or + * an {@link IOException} if a network error occurred.
+ */ + // @ts-ignore + fill(profile: org.spongepowered.api.profile.GameProfile): any; + /** + * Fills a {@link GameProfile}. + *The returned {@link CompletableFuture} throws an {@link ExecutionException} + * caused by a {@link ProfileNotFoundException} if the profile does not exist or + * an {@link IOException} if a network error occurred.
+ */ + // @ts-ignore + fill(profile: org.spongepowered.api.profile.GameProfile, signed: boolean): any; + /** + * Fills a {@link GameProfile}. + *The returned {@link CompletableFuture} throws an {@link ExecutionException} + * caused by a {@link ProfileNotFoundException} if the profile does not exist or + * an {@link IOException} if a network error occurred.
+ */ + // @ts-ignore + fill(profile: org.spongepowered.api.profile.GameProfile, signed: boolean, useCache: boolean): any; + /** + * Gets the active {@link GameProfile} cache. + */ + // @ts-ignore + getCache(): org.spongepowered.api.profile.GameProfileCache; + /** + * Sets the {@link GameProfile} cache. + *To restore the original cache, pass the result of {@link #getDefaultCache()}.
+ */ + // @ts-ignore + setCache(cache: org.spongepowered.api.profile.GameProfileCache): void; + /** + * Gets the default cache. + */ + // @ts-ignore + getDefaultCache(): org.spongepowered.api.profile.GameProfileCache; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.profile.ProfileNotFoundException.ts b/packages/sponge/src/typings/org.spongepowered.api.profile.ProfileNotFoundException.ts new file mode 100644 index 00000000..a53dddf2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.profile.ProfileNotFoundException.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace profile { + // @ts-ignore + class ProfileNotFoundException { + /** + * Constructs a new {@link ProfileNotFoundException}. + */ + constructor() + /** + * Constructs a new {@link ProfileNotFoundException} with the specified + * message. + */ + constructor(message: string) + /** + * Constructs a new {@link ProfileNotFoundException} with the specified + * cause and a null message. + */ + constructor(cause: any) + /** + * Constructs a new {@link ProfileNotFoundException} with the specified + * message and cause. + */ + constructor(message: string, cause: any) + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.profile.property.ProfileProperty.ts b/packages/sponge/src/typings/org.spongepowered.api.profile.property.ProfileProperty.ts new file mode 100644 index 00000000..ccb61a6f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.profile.property.ProfileProperty.ts @@ -0,0 +1,47 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace profile { + namespace property { + // @ts-ignore + interface ProfileProperty { + /** + * Creates a new property. + */ + // @ts-ignore + of(name: string, value: string): org.spongepowered.api.profile.property.ProfileProperty; + /** + * Creates a new signed property. + *Depending on the property name, if the signature is provided it must + * originate from Mojang.
+ */ + // @ts-ignore + of(name: string, value: string, signature: string): org.spongepowered.api.profile.property.ProfileProperty; + /** + * Gets the name of this property. + */ + // @ts-ignore + getName(): string; + /** + * Gets the value of this property. + */ + // @ts-ignore + getValue(): string; + /** + * Gets the signature of this property. + *Depending on the property name, if the signature is provided it must + * originate from Mojang.
+ */ + // @ts-ignore + getSignature(): any; + /** + * Tests if this property has a signature. + */ + // @ts-ignore + hasSignature(): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.registry.AdditionalCatalogRegistryModule.ts b/packages/sponge/src/typings/org.spongepowered.api.registry.AdditionalCatalogRegistryModule.ts new file mode 100644 index 00000000..85ed4a31 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.registry.AdditionalCatalogRegistryModule.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + // @ts-ignore + interface AdditionalCatalogRegistryModule extends org.spongepowered.api.registry.CatalogRegistryModule { + /** + * Performs additional registration after initial registration of + * the pertaining {@link CatalogType}. + */ + // @ts-ignore + registerAdditionalCatalog(extraCatalog: org.spongepowered.api.CatalogType): void; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.registry.AlternateCatalogRegistryModule.ts b/packages/sponge/src/typings/org.spongepowered.api.registry.AlternateCatalogRegistryModule.ts new file mode 100644 index 00000000..b3efa75d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.registry.AlternateCatalogRegistryModule.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + // @ts-ignore + interface AlternateCatalogRegistryModule extends org.spongepowered.api.registry.CatalogRegistryModule { + /** + * Gets the catalog {@link Map map} instead of defaulting to utilizing + * {@link RegisterCatalog} annotated field for the map of catalog types. + */ + // @ts-ignore + provideCatalogMap(): MapNote that this is different from having a module performing + * a {@link DelayedRegistration}, as the module in question can still + * perform it's registrations in the same {@link RegistrationPhase} + * as the depending modules. It is guaranteed that the depending + * modules will perform their registrations prior to the owning module. + *
+ */ + // @ts-ignore + value(): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.resourcepack.ResourcePack.ts b/packages/sponge/src/typings/org.spongepowered.api.resourcepack.ResourcePack.ts new file mode 100644 index 00000000..b4f1f805 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.resourcepack.ResourcePack.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace resourcepack { + // @ts-ignore + interface ResourcePack { + /** + * Gets the URI associated with this ResourcePack. + */ + // @ts-ignore + getUri(): any; + /** + * Gets the name of this resource pack. This is the filename of the pack + * zipfile, with all non-word characters removed. Note to implementers: The + * name MUST be calculated like above, or this API will not + * work. + */ + // @ts-ignore + getName(): string; + /** + * Gets the ID of this resource pack. + */ + // @ts-ignore + getId(): string; + /** + * If this resource pack was initialized through + * {@link ResourcePackFactory#fromUri(URI)}, the hash, as calculated with + *com.google.common.hash.Hashing.sha1().hashBytes(
+ * com.google.common.io.Files.toByteArray(resourcepackfile)
+ * ).toString();
.
+ */
+ // @ts-ignore
+ getHash(): any;
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.resourcepack.ResourcePackFactory.ts b/packages/sponge/src/typings/org.spongepowered.api.resourcepack.ResourcePackFactory.ts
new file mode 100644
index 00000000..fee08a72
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.resourcepack.ResourcePackFactory.ts
@@ -0,0 +1,22 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace resourcepack {
+ // @ts-ignore
+ interface ResourcePackFactory {
+ /**
+ * Creates a {@link ResourcePack} from a URI and tries to download and hash
+ * it.
+ */
+ // @ts-ignore
+ fromUri(uri: any): org.spongepowered.api.resourcepack.ResourcePack;
+ /**
+ * Creates a {@link ResourcePack} from a URI.
+ */
+ // @ts-ignore
+ fromUriUnchecked(uri: any): org.spongepowered.api.resourcepack.ResourcePack;
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.resourcepack.ResourcePacks.ts b/packages/sponge/src/typings/org.spongepowered.api.resourcepack.ResourcePacks.ts
new file mode 100644
index 00000000..af3484fc
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.resourcepack.ResourcePacks.ts
@@ -0,0 +1,24 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace resourcepack {
+ // @ts-ignore
+ class ResourcePacks {
+ constructor()
+ /**
+ * Creates a {@link ResourcePack} from a URI and tries to download and hash
+ * it.
+ */
+ // @ts-ignore
+ public static fromUri(uri: any): org.spongepowered.api.resourcepack.ResourcePack;
+ /**
+ * Creates a {@link ResourcePack} from a URI, without checking ("unchecked")
+ * if there is a valid pack at the URI.
+ */
+ // @ts-ignore
+ public static fromUriUnchecked(uri: any): org.spongepowered.api.resourcepack.ResourcePack;
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.scheduler.AsynchronousExecutor.ts b/packages/sponge/src/typings/org.spongepowered.api.scheduler.AsynchronousExecutor.ts
new file mode 100644
index 00000000..a2ec9a8e
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.scheduler.AsynchronousExecutor.ts
@@ -0,0 +1,11 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace scheduler {
+ // @ts-ignore
+ interface AsynchronousExecutor {
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.scheduler.Scheduler.ts b/packages/sponge/src/typings/org.spongepowered.api.scheduler.Scheduler.ts
new file mode 100644
index 00000000..e8cb13be
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.scheduler.Scheduler.ts
@@ -0,0 +1,60 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace scheduler {
+ // @ts-ignore
+ interface Scheduler {
+ /**
+ * Gets a new instance of a {@link Task.Builder}.
+ */
+ // @ts-ignore
+ createTaskBuilder(): org.spongepowered.api.scheduler.Task.Builder;
+ /**
+ * Retrieves a scheduled or running task by its unique ID.
+ */
+ // @ts-ignore
+ getTaskById(id: any): any;
+ /**
+ * Returns a set of {@link Task}s that match the Regular Expression pattern.
+ */
+ // @ts-ignore
+ getTasksByName(pattern: string): any[] /*java.util.Set*/;
+ /**
+ * Returns a set of all currently scheduled tasks.
+ */
+ // @ts-ignore
+ getScheduledTasks(): any[] /*java.util.Set*/;
+ /**
+ * Returns a set of all currently scheduled tasks for either asynchronous or
+ * synchronous execution.
+ */
+ // @ts-ignore
+ getScheduledTasks(async: boolean): any[] /*java.util.Set*/;
+ /**
+ * Returns a set of all currently scheduled tasks owned by the given plugin.
+ */
+ // @ts-ignore
+ getScheduledTasks(plugin: any): any[] /*java.util.Set*/;
+ /**
+ * Gets the ideal delay between ticks in milliseconds. The server aims to
+ * stabilise at this value.
+ */
+ // @ts-ignore
+ getPreferredTickInterval(): number;
+ /**
+ * Creates a new {@link ExecutorService} that can be used to schedule
+ * synchronous tasks through the standard Java concurrency interfaces.
+ */
+ // @ts-ignore
+ createSyncExecutor(plugin: any): org.spongepowered.api.scheduler.SpongeExecutorService;
+ /**
+ * Creates a new {@link ExecutorService} that can be used to schedule
+ * asynchronous tasks through the standard Java concurrency interfaces.
+ */
+ // @ts-ignore
+ createAsyncExecutor(plugin: any): org.spongepowered.api.scheduler.SpongeExecutorService;
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.scheduler.SpongeExecutorService.SpongeFuture.ts b/packages/sponge/src/typings/org.spongepowered.api.scheduler.SpongeExecutorService.SpongeFuture.ts
new file mode 100644
index 00000000..048bff67
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.scheduler.SpongeExecutorService.SpongeFuture.ts
@@ -0,0 +1,19 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace scheduler {
+ namespace SpongeExecutorService {
+ // @ts-ignore
+ interface SpongeFuture {
+ /**
+ * Retrieves the {@link Scheduler} {@link Task} instance that
+ * is responsible for the execution of this future.
+ */
+ // @ts-ignore
+ getTask(): org.spongepowered.api.scheduler.Task;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.scheduler.SpongeExecutorService.ts b/packages/sponge/src/typings/org.spongepowered.api.scheduler.SpongeExecutorService.ts
new file mode 100644
index 00000000..9f77e67f
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.scheduler.SpongeExecutorService.ts
@@ -0,0 +1,19 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace scheduler {
+ // @ts-ignore
+ interface SpongeExecutorService {
+ // @ts-ignore
+ schedule(command: any, delay: number, unit: any): org.spongepowered.api.scheduler.SpongeExecutorService.SpongeFuture;
+ // @ts-ignore
+ schedule(callable: any, delay: number, unit: any): org.spongepowered.api.scheduler.SpongeExecutorService.SpongeFuture;
+ // @ts-ignore
+ scheduleAtFixedRate(command: any, initialDelay: number, period: number, unit: any): org.spongepowered.api.scheduler.SpongeExecutorService.SpongeFuture;
+ // @ts-ignore
+ scheduleWithFixedDelay(command: any, initialDelay: number, delay: number, unit: any): org.spongepowered.api.scheduler.SpongeExecutorService.SpongeFuture;
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.scheduler.SynchronousExecutor.ts b/packages/sponge/src/typings/org.spongepowered.api.scheduler.SynchronousExecutor.ts
new file mode 100644
index 00000000..5d8e3c36
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.scheduler.SynchronousExecutor.ts
@@ -0,0 +1,11 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace scheduler {
+ // @ts-ignore
+ interface SynchronousExecutor {
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.scheduler.Task.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.scheduler.Task.Builder.ts
new file mode 100644
index 00000000..ad77feea
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.scheduler.Task.Builder.ts
@@ -0,0 +1,91 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace scheduler {
+ namespace Task {
+ // @ts-ignore
+ interface Builder extends org.spongepowered.api.util.ResettableBuilder {
+ /**
+ * Sets whether the task should run asynchronous, outside of the main
+ * loop, and in it's own thread. By default, tasks are synchronous.
+ * A synchronous task is ran in alignment with the game's main loop, + * in the same thread. Each synchronous task is ran in series with the + * tick cycle. It is safe to manipulate game data when running in this + * mode.
+ *In contrast, a task set to run asynchronously will run + * independently of the tick cycle and in it's own thread. Therefore the + * task is not thread safe with game data and care must be taken. + * It is strongly advised to not manipulate game data in + * asynchronous tasks.
+ *It is not possible to schedule a task in unit ticks when running + * asynchronously. If the delay or interval is specified in ticks, it + * will be converted to the equivalent wall clock time by multiplying + * the value by {@link Scheduler#getPreferredTickInterval()}.
+ */ + // @ts-ignore + async(): org.spongepowered.api.scheduler.Task.Builder; + /** + * Sets the {@link Runnable} to run when this task executes. + */ + // @ts-ignore + execute(runnable: any): org.spongepowered.api.scheduler.Task.Builder; + /** + * Sets the consumer that runs when this task executes. + */ + // @ts-ignore + execute(executor: any): org.spongepowered.api.scheduler.Task.Builder; + /** + * Sets the delay before the task runs. This delay is an initial offset, + * subsequent runs (when the interval is not 0) will not be offset. By + * default, the delay is 0. + */ + // @ts-ignore + delay(delay: number, unit: any): org.spongepowered.api.scheduler.Task.Builder; + /** + * Sets the delay before the task runs, in unit ticks. + */ + // @ts-ignore + delayTicks(ticks: number): org.spongepowered.api.scheduler.Task.Builder; + /** + * Sets the interval between repetitions of the task. The task will not + * repeat if the interval is 0. By default, the interval is 0. + *If the scheduler detects that two tasks will overlap, the 2nd task + * will not be started. The next time the task is due to run, the test + * will be made again to determine if the previous occurrence of the + * task is still alive (running). As long as a previous occurrence is + * running no new occurrences of that specific task will start, although + * the scheduler will never cease in trying to start it a 2nd time.
+ */ + // @ts-ignore + interval(interval: number, unit: any): org.spongepowered.api.scheduler.Task.Builder; + /** + * Sets the interval in unit ticks between repetitions of the task. + */ + // @ts-ignore + intervalTicks(ticks: number): org.spongepowered.api.scheduler.Task.Builder; + /** + * Sets the name of the task, the name cannot be blank. + *If the name is not set in the builder, the name of the task
+ * will be the form:
PLUGIN_ID "-" ( "A-" | "S-" ) SERIAL_ID
+ *
Examples of default Task names:
+ * "FooPlugin-A-12"
"BarPlugin-S-4322"
No two active tasks will have the same serial ID for the same
+ * synchronisation type.
i.e APlugin-A-15 and
+ * BPlugin-A-15 is not possible but BPlugin-S-15
+ * is.
By default, this is the empty list.
+ */ + // @ts-ignore + objectives(objectives: any[] /*java.util.List*/): org.spongepowered.api.scoreboard.Scoreboard.Builder; + /** + * Sets the list of {@link Team}s of the {@link Scoreboard}. + *By default, this is the empty list.
+ */ + // @ts-ignore + teams(teams: any[] /*java.util.List*/): org.spongepowered.api.scoreboard.Scoreboard.Builder; + /** + * Builds an instance of a {@link Scoreboard}. + */ + // @ts-ignore + build(): org.spongepowered.api.scoreboard.Scoreboard; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.scoreboard.Scoreboard.ts b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.Scoreboard.ts new file mode 100644 index 00000000..1696743a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.Scoreboard.ts @@ -0,0 +1,100 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + // @ts-ignore + interface Scoreboard { + /** + * Creates a new {@link Builder} to build a {@link Scoreboard}. + */ + // @ts-ignore + builder(): org.spongepowered.api.scoreboard.Scoreboard.Builder; + /** + * Gets an {@link Objective} on this scoreboard by name, if it exists. + */ + // @ts-ignore + getObjective(name: string): any; + /** + * Gets the {@link Objective} currently displayed in a {@link DisplaySlot} on this + * scoreboard, if one is present. + */ + // @ts-ignore + getObjective(slot: org.spongepowered.api.scoreboard.displayslot.DisplaySlot): any; + /** + * Adds the specified {@link Objective} to this scoreboard. + */ + // @ts-ignore + addObjective(objective: org.spongepowered.api.scoreboard.objective.Objective): void; + /** + * Sets the specified {@link Objective} in the specified {@link DisplaySlot}. + *If the {@link Objective} is null
, then the specified
+ * {@link DisplaySlot} will be cleared.
If the same {@link Score} has been added to multiple objectives, + * it will only appear once in the set.
+ */ + // @ts-ignore + getScores(): any[] /*java.util.Set*/; + /** + * Gets all scores with the specified name on this scoreboard, + * across all objectives. + *If the same {@link Score} has been added to multiple objectives, + * it will only appear once in the set.
+ */ + // @ts-ignore + getScores(name: org.spongepowered.api.text.Text): any[] /*java.util.Set*/; + /** + * Removes all scores with the specified name on this scoreboard, + * across all objectives. + */ + // @ts-ignore + removeScores(name: org.spongepowered.api.text.Text): void; + /** + * Gets a {@link Team} by name on this scoreboard. + */ + // @ts-ignore + getTeam(teamName: string): any; + /** + * Registers the specified {@link Team} to this scoreboard. + */ + // @ts-ignore + registerTeam(team: org.spongepowered.api.scoreboard.Team): void; + /** + * Gets all the {@link Team}s on this scoreboard. + */ + // @ts-ignore + getTeams(): any[] /*java.util.Set*/; + /** + * Gets a {@link Text} member's {@link Team} on this scoreboard. + */ + // @ts-ignore + getMemberTeam(member: org.spongepowered.api.text.Text): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.scoreboard.Team.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.Team.Builder.ts new file mode 100644 index 00000000..9de37081 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.Team.Builder.ts @@ -0,0 +1,92 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace Team { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the name of the {@link Team}. + */ + // @ts-ignore + name(name: string): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets the color of the {@link Team}. + *The team's color is a distinct concept from its prefix or suffix. + * It is only used for colored sidebar display slots, and certain + * statistic criteria.
+ */ + // @ts-ignore + color(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets the name displayed to users for the {@link Team}. + *Display names may be truncated in order to meet an + * implementation-defined length limit. In Vanilla, this is sixteen + * characters.
+ *By default, this is set to {@link #name(String)}
+ */ + // @ts-ignore + displayName(displayName: org.spongepowered.api.text.Text): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets the prefix prepended to the display name of users on the + * {@link Team}. + *Display names may be truncated in order to meet an + * implementation-defined length limit. In Vanilla, this is sixteen + * characters.
+ */ + // @ts-ignore + prefix(prefix: org.spongepowered.api.text.Text): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets the suffix appended to the display name of users on the + * {@link Team}. + *Display names may be truncated in order to meet an + * implementation-defined length limit. In Vanilla, this is sixteen + * characters.
+ */ + // @ts-ignore + suffix(suffix: org.spongepowered.api.text.Text): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets whether friendly fire is enabled for the {@link Team}. + */ + // @ts-ignore + allowFriendlyFire(enabled: boolean): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets whether invisible team members are shown for the + * {@link Team}. + */ + // @ts-ignore + canSeeFriendlyInvisibles(enabled: boolean): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets the {@link Visibility} which controls to who nametags + * of players on the {@link Team} are visible to. + */ + // @ts-ignore + nameTagVisibility(visibility: org.spongepowered.api.scoreboard.Visibility): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets the {@link Visibility} which controls who death Texts + * of players on the {@link Team} are visible to. + */ + // @ts-ignore + deathTextVisibility(visibility: org.spongepowered.api.scoreboard.Visibility): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets the {@link CollisionRule} for this team's members. + */ + // @ts-ignore + collisionRule(rule: org.spongepowered.api.scoreboard.CollisionRule): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets the set of {@link Text} members on the {@link Team}. + *By default, this is the empty set.
+ */ + // @ts-ignore + members(users: any[] /*java.util.Set*/): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Builds an instance of a {@link Team}. + */ + // @ts-ignore + build(): org.spongepowered.api.scoreboard.Team; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.scoreboard.Team.ts b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.Team.ts new file mode 100644 index 00000000..884a87cb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.Team.ts @@ -0,0 +1,163 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + // @ts-ignore + interface Team { + /** + * Creates a new {@link Builder} to build a {@link Team}. + */ + // @ts-ignore + builder(): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Gets the name of this team. + */ + // @ts-ignore + getName(): string; + /** + * Gets the name displayed to users for this team. + */ + // @ts-ignore + getDisplayName(): org.spongepowered.api.text.Text; + /** + * Sets the name displayed to users for this team. + */ + // @ts-ignore + setDisplayName(displayName: org.spongepowered.api.text.Text): void; + /** + * Gets the color of this team. + *The team's color is a distinct concept from its prefix or suffix. + * It is only used for colored sidebar display slots, and certain statistic + * criteria.
+ */ + // @ts-ignore + getColor(): org.spongepowered.api.text.format.TextColor; + /** + * Sets the color of this team. + *The team's color is a distinct concept from its prefix or suffix. + * It is only used for colored sidebar display slots, and certain statistic + * criteria.
+ */ + // @ts-ignore + setColor(color: org.spongepowered.api.text.format.TextColor): void; + /** + * Gets the prefix prepended to the display name of users on this team. + */ + // @ts-ignore + getPrefix(): org.spongepowered.api.text.Text; + /** + * Sets the prefix prepended to the display name of users on this team. + */ + // @ts-ignore + setPrefix(prefix: org.spongepowered.api.text.Text): void; + /** + * Gets the suffix appended to the display name of users on this team. + */ + // @ts-ignore + getSuffix(): org.spongepowered.api.text.Text; + /** + * Sets the suffix appended to the display name of users on this team. + */ + // @ts-ignore + setSuffix(suffix: org.spongepowered.api.text.Text): void; + /** + * Gets whether friendly fire is enabled. + *This option only controls players attacking other players. It has no + * affect other entities attacking other entities, or players attacking + * other entities (or vice-versa).
+ */ + // @ts-ignore + allowFriendlyFire(): boolean; + /** + * Sets whether friendly fire is enabled. + */ + // @ts-ignore + setAllowFriendlyFire(enabled: boolean): void; + /** + * Gets whether invisible team members are shown. + */ + // @ts-ignore + canSeeFriendlyInvisibles(): boolean; + /** + * Sets whether invisible team members are shown. + */ + // @ts-ignore + setCanSeeFriendlyInvisibles(enabled: boolean): void; + /** + * Gets the {@link Visibility} which controls to who nametags + * of players on this team are visible to. + */ + // @ts-ignore + getNameTagVisibility(): org.spongepowered.api.scoreboard.Visibility; + /** + * Sets the {@link Visibility} which controls to who nametags + * of players on this team are visible to. + */ + // @ts-ignore + setNameTagVisibility(visibility: org.spongepowered.api.scoreboard.Visibility): void; + /** + * Gets the {@link Visibility} which controls who death Texts + * for players on this team are visible to. + */ + // @ts-ignore + getDeathMessageVisibility(): org.spongepowered.api.scoreboard.Visibility; + /** + * Sets the {@link Visibility} which controls who death Texts + * of players on this team are visible to. + */ + // @ts-ignore + setDeathMessageVisibility(visibility: org.spongepowered.api.scoreboard.Visibility): void; + /** + * Gets the {@link CollisionRule} for entities on this team. + */ + // @ts-ignore + getCollisionRule(): org.spongepowered.api.scoreboard.CollisionRule; + /** + * Sets the {@link CollisionRule} for entities on this team. + */ + // @ts-ignore + setCollisionRule(rule: org.spongepowered.api.scoreboard.CollisionRule): void; + /** + * Gets the {@link Text}s representing the members of this team. + */ + // @ts-ignore + getMembers(): any[] /*java.util.Set*/; + /** + * Adds the specified {@link Text} to this team. + *While any {@link Text} may be added, the {@link Text} to use should + * normally be obtained by calling + * {@link TeamMember#getTeamRepresentation()} on a {@link TeamMember}, such + * as a {@link Player}.
+ */ + // @ts-ignore + addMember(member: org.spongepowered.api.text.Text): void; + /** + * Removes the specified {@link Text} from this team. + *While any {@link Text} may be removed, the {@link Text} + * to use should normally be obtained by calling {@link TeamMember#getTeamRepresentation()} + * on a {@link TeamMember}, such as a {@link Player}.
+ */ + // @ts-ignore + removeMember(member: org.spongepowered.api.text.Text): boolean; + /** + * Returns the scoreboard this team is registered on, if available. + *This will return {@link Optional#empty()} when a team has + * been removed from its {@link Scoreboard}, or has been created + * but not yet registered.
+ */ + // @ts-ignore + getScoreboard(): any; + /** + * Unregisters this team from its {@link Scoreboard}, if present. + *A team can still be fully used after being unregistered. However, + * it will not affect the game in any way until registered to a + * {@link Scoreboard} again, through + * {@link Scoreboard#registerTeam(Team)}.
+ */ + // @ts-ignore + unregister(): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.scoreboard.TeamMember.ts b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.TeamMember.ts new file mode 100644 index 00000000..73cd6ec2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.TeamMember.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + // @ts-ignore + interface TeamMember { + /** + * Gets a {@link Text} representing this team member, suitable for adding + * to an {@link Team} with {@link Team#addMember(Text)}. + */ + // @ts-ignore + getTeamRepresentation(): org.spongepowered.api.text.Text; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.scoreboard.Visibilities.ts b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.Visibilities.ts new file mode 100644 index 00000000..96fa9f3e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.Visibilities.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + // @ts-ignore + class Visibilities { + // @ts-ignore + public static ALWAYS: org.spongepowered.api.scoreboard.Visibility; + // @ts-ignore + public static HIDE_FOR_OTHER_TEAMS: org.spongepowered.api.scoreboard.Visibility; + // @ts-ignore + public static HIDE_FOR_OWN_TEAM: org.spongepowered.api.scoreboard.Visibility; + // @ts-ignore + public static NEVER: org.spongepowered.api.scoreboard.Visibility; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.scoreboard.Visibility.ts b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.Visibility.ts new file mode 100644 index 00000000..0533164d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.Visibility.ts @@ -0,0 +1,11 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + // @ts-ignore + interface Visibility extends org.spongepowered.api.CatalogType { + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.scoreboard.critieria.Criteria.ts b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.critieria.Criteria.ts new file mode 100644 index 00000000..e1c00d44 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.critieria.Criteria.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace critieria { + // @ts-ignore + class Criteria { + // @ts-ignore + public static DEATHS: org.spongepowered.api.scoreboard.critieria.Criterion; + // @ts-ignore + public static DUMMY: org.spongepowered.api.scoreboard.critieria.Criterion; + // @ts-ignore + public static HEALTH: org.spongepowered.api.scoreboard.critieria.Criterion; + // @ts-ignore + public static PLAYER_KILLS: org.spongepowered.api.scoreboard.critieria.Criterion; + // @ts-ignore + public static TOTAL_KILLS: org.spongepowered.api.scoreboard.critieria.Criterion; + // @ts-ignore + public static TRIGGER: org.spongepowered.api.scoreboard.critieria.Criterion; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.scoreboard.critieria.Criterion.ts b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.critieria.Criterion.ts new file mode 100644 index 00000000..9a56614f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.critieria.Criterion.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace critieria { + // @ts-ignore + interface Criterion extends org.spongepowered.api.CatalogType { + /** + * Gets the name of this criterion. + */ + // @ts-ignore + getName(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.scoreboard.displayslot.DisplaySlot.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.displayslot.DisplaySlot.Builder.ts new file mode 100644 index 00000000..db5d16e8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.displayslot.DisplaySlot.Builder.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace displayslot { + namespace DisplaySlot { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link TextColor} of the display slot. + */ + // @ts-ignore + sidebarTeamColor(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.scoreboard.displayslot.DisplaySlot.Builder; + /** + * Builds an instance of a {@link DisplaySlot}. + */ + // @ts-ignore + build(): org.spongepowered.api.scoreboard.displayslot.DisplaySlot; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.scoreboard.displayslot.DisplaySlot.ts b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.displayslot.DisplaySlot.ts new file mode 100644 index 00000000..fb5a992e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.displayslot.DisplaySlot.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace displayslot { + // @ts-ignore + interface DisplaySlot extends org.spongepowered.api.CatalogType { + /** + * Gets the {@link Team} color that this objective will display for, if set. + */ + // @ts-ignore + getTeamColor(): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.scoreboard.displayslot.DisplaySlots.ts b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.displayslot.DisplaySlots.ts new file mode 100644 index 00000000..8210e98b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.displayslot.DisplaySlots.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace displayslot { + // @ts-ignore + class DisplaySlots { + // @ts-ignore + public static BELOW_NAME: org.spongepowered.api.scoreboard.displayslot.DisplaySlot; + // @ts-ignore + public static LIST: org.spongepowered.api.scoreboard.displayslot.DisplaySlot; + // @ts-ignore + public static SIDEBAR: org.spongepowered.api.scoreboard.displayslot.DisplaySlot; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.scoreboard.objective.Objective.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.objective.Objective.Builder.ts new file mode 100644 index 00000000..bebf6df2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.objective.Objective.Builder.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace objective { + namespace Objective { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the name of the {@link Objective}. + */ + // @ts-ignore + name(name: string): org.spongepowered.api.scoreboard.objective.Objective.Builder; + /** + * Sets the display name of the {@link Objective}. + */ + // @ts-ignore + displayName(displayName: org.spongepowered.api.text.Text): org.spongepowered.api.scoreboard.objective.Objective.Builder; + /** + * Sets the {@link Criterion} of the {@link Objective}. + */ + // @ts-ignore + criterion(criterion: org.spongepowered.api.scoreboard.critieria.Criterion): org.spongepowered.api.scoreboard.objective.Objective.Builder; + /** + * Sets the {@link ObjectiveDisplayMode} of the {@link Objective}. + */ + // @ts-ignore + objectiveDisplayMode(objectiveDisplayMode: org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayMode): org.spongepowered.api.scoreboard.objective.Objective.Builder; + /** + * Builds an instance of an {@link Objective}. + */ + // @ts-ignore + build(): org.spongepowered.api.scoreboard.objective.Objective; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.scoreboard.objective.Objective.ts b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.objective.Objective.ts new file mode 100644 index 00000000..0cde65e4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.objective.Objective.ts @@ -0,0 +1,90 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace objective { + // @ts-ignore + interface Objective { + /** + * Creates a new {@link Builder} to build a {@link Objective}. + */ + // @ts-ignore + builder(): org.spongepowered.api.scoreboard.objective.Objective.Builder; + /** + * Gets the name of this Objective. + */ + // @ts-ignore + getName(): string; + /** + * Gets the name displayed to players. + */ + // @ts-ignore + getDisplayName(): org.spongepowered.api.text.Text; + /** + * Sets the name displayed to players. + */ + // @ts-ignore + setDisplayName(displayName: org.spongepowered.api.text.Text): void; + /** + * Gets the criterion for this objective. + */ + // @ts-ignore + getCriterion(): org.spongepowered.api.scoreboard.critieria.Criterion; + /** + * Gets the {@link ObjectiveDisplayMode} used to display this objective. + */ + // @ts-ignore + getDisplayMode(): org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayMode; + /** + * Sets the {@link ObjectiveDisplayMode} used to display this objective. + */ + // @ts-ignore + setDisplayMode(displayMode: org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayMode): void; + /** + * Gets the set of {@link Score}s for this objective. + */ + // @ts-ignore + getScores(): MapIf the {@link Score} does not exist, it will be created.
+ */ + // @ts-ignore + getOrCreateScore(name: org.spongepowered.api.text.Text): org.spongepowered.api.scoreboard.Score; + /** + * Removes the specified {@link Score} from this objective, if present. + */ + // @ts-ignore + removeScore(score: org.spongepowered.api.scoreboard.Score): boolean; + /** + * Removes the {@link Score} with the specified name from this objective, if present. + */ + // @ts-ignore + removeScore(name: org.spongepowered.api.text.Text): boolean; + /** + * Returns a {@link Set} of parent {@link Scoreboard}s this + * {@link Objective} is registered to. + */ + // @ts-ignore + getScoreboards(): any[] /*java.util.Set*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayMode.ts b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayMode.ts new file mode 100644 index 00000000..128d2547 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayMode.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace objective { + namespace displaymode { + // @ts-ignore + interface ObjectiveDisplayMode extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayModes.ts b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayModes.ts new file mode 100644 index 00000000..ca70d545 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayModes.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace objective { + namespace displaymode { + // @ts-ignore + class ObjectiveDisplayModes { + // @ts-ignore + public static HEARTS: org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayMode; + // @ts-ignore + public static INTEGER: org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayMode; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.ProviderRegistration.ts b/packages/sponge/src/typings/org.spongepowered.api.service.ProviderRegistration.ts new file mode 100644 index 00000000..be23d657 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.ProviderRegistration.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + // @ts-ignore + interface ProviderRegistration { + /** + * Gets the service of this provider registration. + */ + // @ts-ignore + getService(): any; + /** + * Gets the service provider of this provider registration. + */ + // @ts-ignore + getProvider(): any; + /** + * Gets the {@link PluginContainer} that registered the provider of this + * provider registration. + */ + // @ts-ignore + getPlugin(): org.spongepowered.api.plugin.PluginContainer; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.ProvisioningException.ts b/packages/sponge/src/typings/org.spongepowered.api.service.ProvisioningException.ts new file mode 100644 index 00000000..109bde25 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.ProvisioningException.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + // @ts-ignore + class ProvisioningException { + /** + * Constructs a new {@link ProvisioningException} for the specified service. + */ + constructor(service: any) + /** + * Constructs a new {@link ProvisioningException} for the specified service with + * the specified message. + */ + constructor(message: string, service: any) + /** + * Constructs a new {@link ProvisioningException} for the specified service with + * the specified service and cause. + */ + constructor(message: string, cause: any, service: any) + /** + * Constructs a new {@link ProvisioningException} for the specified service with + * the specified cause and a null message. + */ + constructor(cause: any, service: any) + /** + * Gets the service that was requested. + */ + // @ts-ignore + public getService(): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.ServiceManager.ts b/packages/sponge/src/typings/org.spongepowered.api.service.ServiceManager.ts new file mode 100644 index 00000000..cc04311e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.ServiceManager.ts @@ -0,0 +1,45 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + // @ts-ignore + interface ServiceManager { + /** + * Register a provider with the service manager. + *Services are by definition replaceable at any given time.
+ *Services should only be registered during initialization. If services + * are registered later, then they may not be utilized.
+ */ + // @ts-ignore + setProvider(plugin: any, service: any, provider: any): void; + /** + * Return a provider for the given service, if one is available. + *The returned provider may be a proxy to the real underlying proxy, + * depending on the implementation of the service manager.
+ */ + // @ts-ignore + provide(service: any): any; + /** + * Gets the {@link ProviderRegistration} for the given service, if available. + */ + // @ts-ignore + getRegistration(service: any): any; + /** + * Gets whether the class of the type of service is already registered with + * this manager. This does not register or unregister any services. + */ + // @ts-ignore + isRegistered(service: any): boolean; + /** + * Return a provider for the given service, raising an unchecked exception + * if a provider does not exist. + *The returned provider may be a proxy to the real underlying proxy, + * depending on the implementation of the service manager.
+ */ + // @ts-ignore + provideUnchecked(service: any): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.SimpleServiceManager.ts b/packages/sponge/src/typings/org.spongepowered.api.service.SimpleServiceManager.ts new file mode 100644 index 00000000..caab9d98 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.SimpleServiceManager.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + // @ts-ignore + class SimpleServiceManager implements org.spongepowered.api.service.ServiceManager { + /** + * Construct a simple {@link ServiceManager}. + */ + constructor(pluginManager: org.spongepowered.api.plugin.PluginManager) + // @ts-ignore + public setProvider(plugin: any, service: any, provider: any): void; + // @ts-ignore + public provide(service: any): any; + // @ts-ignore + public getRegistration(service: any): any; + // @ts-ignore + public provideUnchecked(service: any): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.ban.BanService.ts b/packages/sponge/src/typings/org.spongepowered.api.service.ban.BanService.ts new file mode 100644 index 00000000..41060f65 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.ban.BanService.ts @@ -0,0 +1,75 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace ban { + // @ts-ignore + interface BanService { + /** + * Gets all bans registered. + */ + // @ts-ignore + getBans(): any[] /*java.util.Collection*/; + /** + * Gets all {@link GameProfile} bans registered. + */ + // @ts-ignore + getProfileBans(): any[] /*java.util.Collection*/; + /** + * Gets all IP bans registered. + */ + // @ts-ignore + getIpBans(): any[] /*java.util.Collection*/; + /** + * Gets the ban for the given {@link GameProfile}, if available. + */ + // @ts-ignore + getBanFor(profile: org.spongepowered.api.profile.GameProfile): any; + /** + * Gets the ban for the given address, if available. + */ + // @ts-ignore + getBanFor(address: any): any; + /** + * Checks if a {@link GameProfile} has a ban. + */ + // @ts-ignore + isBanned(profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Checks if an IP has a ban. + */ + // @ts-ignore + isBanned(address: any): boolean; + /** + * Pardons a profile, or removes its ban, if present. + */ + // @ts-ignore + pardon(profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Pardons an IP address, or removes its ban, if present. + */ + // @ts-ignore + pardon(address: any): boolean; + /** + * Removes a ban. + */ + // @ts-ignore + removeBan(ban: org.spongepowered.api.util.ban.Ban): boolean; + /** + * Adds a ban. + *If the GameProfile or IP address of the ban already has a ban set, + * the passed in ban will replace the existing ban.
+ */ + // @ts-ignore + addBan(ban: org.spongepowered.api.util.ban.Ban): any; + /** + * Checks if the specified ban is present. + */ + // @ts-ignore + hasBan(ban: org.spongepowered.api.util.ban.Ban): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.context.Context.ts b/packages/sponge/src/typings/org.spongepowered.api.service.context.Context.ts new file mode 100644 index 00000000..1510d5be --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.context.Context.ts @@ -0,0 +1,59 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace context { + // @ts-ignore + class Context { + /** + * Create a new context instance. + */ + constructor(key: string, value: string) + // @ts-ignore + public static USER_KEY: string; + // @ts-ignore + public static WORLD_KEY: string; + // @ts-ignore + public static DIMENSION_KEY: string; + // @ts-ignore + public static REMOTE_IP_KEY: string; + // @ts-ignore + public static LOCAL_HOST_KEY: string; + // @ts-ignore + public static LOCAL_IP_KEY: string; + // @ts-ignore + public static LOCAL_PORT_KEY: string; + /** + * Gets the context key. + */ + // @ts-ignore + public getKey(): string; + /** + * Gets the context value. + */ + // @ts-ignore + public getValue(): string; + /** + * Alias method for {@link #getKey()}. + */ + // @ts-ignore + public getType(): string; + /** + * Alias method for {@link #getValue()}. + */ + // @ts-ignore + public getName(): string; + // @ts-ignore + public setValue(value: string): string; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.context.ContextCalculator.ts b/packages/sponge/src/typings/org.spongepowered.api.service.context.ContextCalculator.ts new file mode 100644 index 00000000..ec30c58e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.context.ContextCalculator.ts @@ -0,0 +1,41 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace context { + // @ts-ignore + interface ContextCalculator { + /** + * Creates a new {@link ContextCalculator} that provides a single context. + */ + // @ts-ignore + forSingleContext(key: string, valueFunction: any): org.spongepowered.api.service.context.ContextCalculator; + /** + * Adds any {@link Context}s this calculator determines to be applicable to + * the {@code target} contextual. + *Care should be taken to ensure implementations of this method meet the + * general requirements for {@link ContextCalculator}, defined in the class + * doc.
+ *Calculators should not rely on the state of {@code accumulator} during + * this call, and also shouldn't make calls to remove contexts added by + * other calculators.
+ */ + // @ts-ignore + accumulateContexts(target: org.spongepowered.api.service.context.Contextual, accumulator: any[] /*java.util.Set*/): void; + /** + * Checks if a {@link Context} is currently applicable to a + * {@link Contextual}. + *If this calculator does not handle the given type of context, this + * method should return false.
+ *For the given set of contexts which would be accumulated using + * {@link #accumulateContexts(Contextual, Set)}, this method should return + * true if the given context would be included in the accumulated set.
+ */ + // @ts-ignore + matches(context: org.spongepowered.api.service.context.Context, target: org.spongepowered.api.service.context.Contextual): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.context.ContextSource.ts b/packages/sponge/src/typings/org.spongepowered.api.service.context.ContextSource.ts new file mode 100644 index 00000000..93431b2e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.context.ContextSource.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace context { + // @ts-ignore + interface ContextSource { + /** + * Returns the context most relevant to this object. + *This context may or may not be the same across multiple invocations.
+ */ + // @ts-ignore + getContext(): org.spongepowered.api.service.context.Context; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.context.Contextual.ts b/packages/sponge/src/typings/org.spongepowered.api.service.context.Contextual.ts new file mode 100644 index 00000000..2c86eb80 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.context.Contextual.ts @@ -0,0 +1,42 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace context { + // @ts-ignore + interface Contextual { + /** + * Returns the identifier associated with this Contextual. + *The identifier of each distinct Contextual within a collection of + * contextuals should be unique.
+ *Not guaranteed to be human-readable. Use + * {@link #getFriendlyIdentifier()} for a more readable alternative.
+ */ + // @ts-ignore + getIdentifier(): string; + /** + * Returns the friendly identifier associated with this Contextual. + *Unlike {@link #getIdentifier()}, this value is not guaranteed to be + * unique.
+ *If the friendly identifier is equal to the normal identifier, + * this method should return {@link Optional#empty()}.
+ *Contextuals which represent a Player or a User should return the + * username here, if available.
+ */ + // @ts-ignore + getFriendlyIdentifier(): any; + /** + * Calculates the objects active contexts at the given moment, using the + * {@link ContextCalculator}s held by the {@link ContextualService}. + *"Active" contexts refers to the contexts currently applicable to the + * contextual.
+ *The result of these calculations may be cached.
+ */ + // @ts-ignore + getActiveContexts(): any[] /*java.util.Set*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.context.ContextualService.ts b/packages/sponge/src/typings/org.spongepowered.api.service.context.ContextualService.ts new file mode 100644 index 00000000..5468852f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.context.ContextualService.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace context { + // @ts-ignore + interface ContextualService { + /** + * Registers a {@link ContextCalculator} for use by this service. + *It is not guaranteed that the calculator will be used by the service, + * as some implementations may not support contexts.
+ */ + // @ts-ignore + registerContextCalculator(calculator: org.spongepowered.api.service.context.ContextCalculator): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.economy.Currency.ts b/packages/sponge/src/typings/org.spongepowered.api.service.economy.Currency.ts new file mode 100644 index 00000000..c41dd30c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.economy.Currency.ts @@ -0,0 +1,56 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + // @ts-ignore + interface Currency extends org.spongepowered.api.CatalogType { + /** + * The currency's display name, in singular form. Ex: Dollar. + *This should be preferred over {@link CatalogType#getName()} + * for display purposes.
+ */ + // @ts-ignore + getDisplayName(): org.spongepowered.api.text.Text; + /** + * The currency's display name in plural form. Ex: Dollars. + *Not all currencies will have a plural name that differs from the + * display name.
+ */ + // @ts-ignore + getPluralDisplayName(): org.spongepowered.api.text.Text; + /** + * The currency's symbol. Ex. $ + */ + // @ts-ignore + getSymbol(): org.spongepowered.api.text.Text; + /** + * Formats the given amount using the default number of fractional digits. + *Should include the symbol if it is present
+ */ + // @ts-ignore + format(amount: any): org.spongepowered.api.text.Text; + /** + * Formats the given amount using the specified number of fractional digits. + *Should include the symbol if it is present
+ */ + // @ts-ignore + format(amount: any, numFractionDigits: number): org.spongepowered.api.text.Text; + /** + * This is the default number of fractional digits that is utilized for + * formatting purposes. + */ + // @ts-ignore + getDefaultFractionDigits(): number; + /** + * Returns true if this currency is the default currency for the economy, + * otherwise false. + */ + // @ts-ignore + isDefault(): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.economy.EconomyService.ts b/packages/sponge/src/typings/org.spongepowered.api.service.economy.EconomyService.ts new file mode 100644 index 00000000..2d363645 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.economy.EconomyService.ts @@ -0,0 +1,59 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + // @ts-ignore + interface EconomyService extends org.spongepowered.api.service.context.ContextualService { + /** + * Retrieves the default {@link Currency} used by the {@link EconomyService}. + */ + // @ts-ignore + getDefaultCurrency(): org.spongepowered.api.service.economy.Currency; + /** + * Returns the {@link Set} of supported {@link Currency} objects that are + * implemented by this EconomyService. + *The economy service provider may only support one currency, in which + * case {@link #getDefaultCurrency()} will be the only member of the set.
+ *The set returned is a read-only a view of all currencies available in + * the EconomyService.
+ */ + // @ts-ignore + getCurrencies(): any[] /*java.util.Set*/; + /** + * Returns whether a {@link UniqueAccount} exists with the specified {@link UUID}. + */ + // @ts-ignore + hasAccount(uuid: any): boolean; + /** + * Returns whether an {@link Account} with the specified identifier exists. + *Depending on the implementation, the {@link Account} may be a + * {@link UniqueAccount} or a {@link VirtualAccount}. + */ + // @ts-ignore + hasAccount(identifier: string): boolean; + /** + * Gets the {@link UniqueAccount} for the user with the specified {@link UUID}. + *
If an account does not already exists with the specified {@link UUID}, + * it will be created.
+ *Creation might fail if the provided {@link UUID} does not correspond to + * an actual player, or for an implementation-defined reason.
+ */ + // @ts-ignore + getOrCreateAccount(uuid: any): any; + /** + * Gets the {@link VirtualAccount} with the specified identifier. + *Depending on the implementation, the {@link Account} may be a + * {@link UniqueAccount} or a {@link VirtualAccount}.
+ *If an account does not already exists with the specified identifier, + * it will be created.
+ *Creation may fail for an implementation-defined reason.
+ */ + // @ts-ignore + getOrCreateAccount(identifier: string): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.economy.account.Account.ts b/packages/sponge/src/typings/org.spongepowered.api.service.economy.account.Account.ts new file mode 100644 index 00000000..e6256dae --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.economy.account.Account.ts @@ -0,0 +1,190 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + namespace account { + // @ts-ignore + interface Account extends org.spongepowered.api.service.context.Contextual { + /** + * Gets the display name for this account. + *This should be used by plugins to get a human-readable name for an + * account, regardless of the specific type ({@link UniqueAccount} or + * {@link VirtualAccount}).
+ *Its contents are dependent on the provider of {@link EconomyService}. + * For example, an economy plugin could allow players to configure the + * display name of their account
. + */ + // @ts-ignore + getDisplayName(): org.spongepowered.api.text.Text; + /** + * Gets the default balance of this account for the specified + * {@link Currency}. + *The default balance is used when the balance is retrieved for the + * first time for a given {@link Currency} on this account, or if no + * balance is available for the {@link Context}s used when retrieving + * a balance.
+ */ + // @ts-ignore + getDefaultBalance(currency: org.spongepowered.api.service.economy.Currency): any; + /** + * Returns whether this account has a set balance for the specified + * {@link Currency}, with the specified {@link Context}s. + *If this method returns false
, then
+ * {@link #getDefaultBalance(Currency)} will be used when
+ * retrieving a balance for the specified {@link Currency} with
+ * the specified {@link Context}s.
If this method returns false
, then
+ * {@link #getDefaultBalance(Currency)} will be used when retrieving
+ * a balance for the specifid {@link Currency} with
+ * the current active contexts
The default result when the account does not have a balance of the + * given {@link Currency} should be {@link BigDecimal#ZERO}.
+ *The balance may be unavailable depending on the set of + * {@link Context}s used.
+ */ + // @ts-ignore + getBalance(currency: org.spongepowered.api.service.economy.Currency, contexts: any[] /*java.util.Set*/): any; + /** + * Returns a {@link BigDecimal} representative of the balance stored + * within this {@link Account} for the {@link Currency} given, with + * the current active contexts. + *The default result when the account does not have a balance of the + * given {@link Currency} will be {@link #getDefaultBalance(Currency)}.
+ */ + // @ts-ignore + getBalance(currency: org.spongepowered.api.service.economy.Currency): any; + /** + * Returns a {@link Map} of all currently set balances the account holds + * within the set of {@link Context}s. + *Amounts may differ depending on the {@link Context}s specified and + * the implementation. The set of {@link Context}s may be empty.
+ *{@link Currency} amounts which are 0 may or may not be included in + * the returned mapping.
+ *Changes to the returned {@link Map} will not be reflected in + * the underlying {@link Account}. See + * {@link #setBalance(Currency, BigDecimal, Cause, Set)} to set values.
+ */ + // @ts-ignore + getBalances(contexts: any[] /*java.util.Set*/): MapAmounts may differ depending on the {@link Context}s specified and + * the implementation. The set of {@link Context}s may be empty.
+ *{@link Currency} amounts which are 0 may or may not be included in + * the returned mapping.
+ *Changes to the returned {@link Map} will not be reflected in + * the underlying {@link Account} and may result in runtime exceptions + * depending on implementation. See + * {@link #setBalance(Currency, BigDecimal, Cause, Set)} to set values.
+ */ + // @ts-ignore + getBalances(): MapNegative balances may or may not be supported depending on + * the {@link Currency} specified and the implementation.
+ */ + // @ts-ignore + setBalance(currency: org.spongepowered.api.service.economy.Currency, amount: any, cause: org.spongepowered.api.event.cause.Cause, contexts: any[] /*java.util.Set*/): org.spongepowered.api.service.economy.transaction.TransactionResult; + /** + * Sets the balance for this account to the specified amount for the + * specified {@link Currency}, with the current active {@link Context}s. + *Negative balances may or may not be supported depending on + * the {@link Currency} specified and the implementation.
+ */ + // @ts-ignore + setBalance(currency: org.spongepowered.api.service.economy.Currency, amount: any, cause: org.spongepowered.api.event.cause.Cause): org.spongepowered.api.service.economy.transaction.TransactionResult; + /** + * Resets the balances for all {@link Currency}s used on this account + * to their default values ({@link #getDefaultBalance(Currency)}), + * using the specified {@link Context}s. + */ + // @ts-ignore + resetBalances(cause: org.spongepowered.api.event.cause.Cause, contexts: any[] /*java.util.Set*/): MapThis operation is a merged {@link #withdraw(Currency, BigDecimal, Cause, Set)} + * from this account with a {@link #deposit(Currency, BigDecimal, Cause, Set)} + * into the specified account.
+ */ + // @ts-ignore + transfer(to: org.spongepowered.api.service.economy.account.Account, currency: org.spongepowered.api.service.economy.Currency, amount: any, cause: org.spongepowered.api.event.cause.Cause, contexts: any[] /*java.util.Set*/): org.spongepowered.api.service.economy.transaction.TransferResult; + /** + * Transfers the specified amount of the specified {@link Currency} + * from this account the destination account, + * using the current active {@link Context}s. + *This operation is a merged {@link #withdraw(Currency, BigDecimal, Cause, Set)} + * from this account with a {@link #deposit(Currency, BigDecimal, Cause, Set)} + * into the specified account.
+ */ + // @ts-ignore + transfer(to: org.spongepowered.api.service.economy.account.Account, currency: org.spongepowered.api.service.economy.Currency, amount: any, cause: org.spongepowered.api.event.cause.Cause): org.spongepowered.api.service.economy.transaction.TransferResult; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.economy.account.UniqueAccount.ts b/packages/sponge/src/typings/org.spongepowered.api.service.economy.account.UniqueAccount.ts new file mode 100644 index 00000000..ee8062a1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.economy.account.UniqueAccount.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + namespace account { + // @ts-ignore + interface UniqueAccount extends org.spongepowered.api.service.economy.account.Account, org.spongepowered.api.util.Identifiable { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.economy.account.VirtualAccount.ts b/packages/sponge/src/typings/org.spongepowered.api.service.economy.account.VirtualAccount.ts new file mode 100644 index 00000000..2838003c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.economy.account.VirtualAccount.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + namespace account { + // @ts-ignore + interface VirtualAccount extends org.spongepowered.api.service.economy.account.Account { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.economy.transaction.ResultType.ts b/packages/sponge/src/typings/org.spongepowered.api.service.economy.transaction.ResultType.ts new file mode 100644 index 00000000..076e739c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.economy.transaction.ResultType.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + namespace transaction { + // @ts-ignore + class ResultType { + // @ts-ignore + public static SUCCESS: org.spongepowered.api.service.economy.transaction.ResultType; + // @ts-ignore + public static CONTEXT_MISMATCH: org.spongepowered.api.service.economy.transaction.ResultType; + // @ts-ignore + public static FAILED: org.spongepowered.api.service.economy.transaction.ResultType; + // @ts-ignore + public static ACCOUNT_NO_FUNDS: org.spongepowered.api.service.economy.transaction.ResultType; + // @ts-ignore + public static ACCOUNT_NO_SPACE: org.spongepowered.api.service.economy.transaction.ResultType; + // @ts-ignore + public static values(): org.spongepowered.api.service.economy.transaction.ResultType[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.service.economy.transaction.ResultType; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.economy.transaction.TransactionResult.ts b/packages/sponge/src/typings/org.spongepowered.api.service.economy.transaction.TransactionResult.ts new file mode 100644 index 00000000..7d655e5c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.economy.transaction.TransactionResult.ts @@ -0,0 +1,46 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + namespace transaction { + // @ts-ignore + interface TransactionResult { + /** + * Gets the {@link Account} involved in the transaction. + */ + // @ts-ignore + getAccount(): org.spongepowered.api.service.economy.account.Account; + /** + * Gets the {@link Currency} involved in the transaction. + */ + // @ts-ignore + getCurrency(): org.spongepowered.api.service.economy.Currency; + /** + * Gets the amount of the {@link Currency} involved in the transaction. + */ + // @ts-ignore + getAmount(): any; + /** + * Returns the set of {@link Context}s used to perform the + * transaction. + */ + // @ts-ignore + getContexts(): any[] /*java.util.Set*/; + /** + * Gets the {@link ResultType} of this transaction. + */ + // @ts-ignore + getResult(): org.spongepowered.api.service.economy.transaction.ResultType; + /** + * Returns the {@link TransactionType} of this result. + */ + // @ts-ignore + getType(): org.spongepowered.api.service.economy.transaction.TransactionType; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.economy.transaction.TransactionType.ts b/packages/sponge/src/typings/org.spongepowered.api.service.economy.transaction.TransactionType.ts new file mode 100644 index 00000000..81365a2b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.economy.transaction.TransactionType.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + namespace transaction { + // @ts-ignore + interface TransactionType extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.economy.transaction.TransactionTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.service.economy.transaction.TransactionTypes.ts new file mode 100644 index 00000000..8bc05a21 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.economy.transaction.TransactionTypes.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + namespace transaction { + // @ts-ignore + class TransactionTypes { + // @ts-ignore + public static DEPOSIT: org.spongepowered.api.service.economy.transaction.TransactionType; + // @ts-ignore + public static TRANSFER: org.spongepowered.api.service.economy.transaction.TransactionType; + // @ts-ignore + public static WITHDRAW: org.spongepowered.api.service.economy.transaction.TransactionType; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.economy.transaction.TransferResult.ts b/packages/sponge/src/typings/org.spongepowered.api.service.economy.transaction.TransferResult.ts new file mode 100644 index 00000000..c718c162 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.economy.transaction.TransferResult.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + namespace transaction { + // @ts-ignore + interface TransferResult extends org.spongepowered.api.service.economy.transaction.TransactionResult { + /** + * Gets the {@link Account} that an amount of a {@link Currency} is being transferred to. + *{@link #getAccount()} can be used to get the {@link Account} that the currency + * is being transferred from.
+ */ + // @ts-ignore + getAccountTo(): org.spongepowered.api.service.economy.account.Account; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.pagination.PaginationList.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.service.pagination.PaginationList.Builder.ts new file mode 100644 index 00000000..2a6ccce4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.pagination.PaginationList.Builder.ts @@ -0,0 +1,81 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace pagination { + namespace PaginationList { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the contents of this output as an iterable. + *If this {@link Iterable} is a {@link List}, bidirectional + * navigation is supported. Otherwise, only going to the next page will + * be supported.
+ */ + // @ts-ignore + contents(contents: any): org.spongepowered.api.service.pagination.PaginationList.Builder; + /** + * Sets the contents of this output to be the given array of contents. + */ + // @ts-ignore + contents(contents: org.spongepowered.api.text.Text): org.spongepowered.api.service.pagination.PaginationList.Builder; + /** + * Sets the title text to be used in the title bar of this pagination. + *This should be less than one line long.
+ */ + // @ts-ignore + title(title: org.spongepowered.api.text.Text): org.spongepowered.api.service.pagination.PaginationList.Builder; + /** + * Sets the header to be displayed for this output on all pages after + * the title bar but before the contents. + *The header and footer will use this Text's style and color for + * formatting.
+ *If the header is not specified, or passed in as null
,
+ * it will be omitted when displaying the list.
If the footer is not specified, or passed in as null
,
+ * it will be omitted when displaying the list.
This defaults to the maximum amount of lines that can be displayed + * on a source's screen at one time if not specified.
+ */ + // @ts-ignore + linesPerPage(linesPerPage: number): org.spongepowered.api.service.pagination.PaginationList.Builder; + /** + * Creates a {@link PaginationList} from this pagination builder. + */ + // @ts-ignore + build(): org.spongepowered.api.service.pagination.PaginationList; + /** + * Sends the constructed pagination list to the given receiver. + */ + // @ts-ignore + sendTo(receiver: org.spongepowered.api.text.channel.MessageReceiver): org.spongepowered.api.service.pagination.PaginationList; + /** + * Sends the constructed pagination list to all + * {@link MessageReceiver}s within an {@link Iterable}. + */ + // @ts-ignore + sendTo(receivers: any): org.spongepowered.api.service.pagination.PaginationList; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.pagination.PaginationList.ts b/packages/sponge/src/typings/org.spongepowered.api.service.pagination.PaginationList.ts new file mode 100644 index 00000000..602593a4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.pagination.PaginationList.ts @@ -0,0 +1,81 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace pagination { + // @ts-ignore + interface PaginationList { + /** + * Creates a new {@link Builder} to build a pagination list. + */ + // @ts-ignore + builder(): org.spongepowered.api.service.pagination.PaginationList.Builder; + /** + * Gets the contents of this pagination list. + */ + // @ts-ignore + getContents(): any; + /** + * Gets the title text to be used in the title bar of this pagination. + */ + // @ts-ignore + getTitle(): any; + /** + * Gets the header to be displayed for this output on all pages after the + * title bar but before the contents, if available. + *Header and footer will use this Text's style and color for + * formatting.
+ */ + // @ts-ignore + getHeader(): any; + /** + * Gets the footer to be displayed for this output on all pages after the + * contents and page navigation bar, if available. + */ + // @ts-ignore + getFooter(): any; + /** + * Gets the padding character to be used when centering headers and footers. + */ + // @ts-ignore + getPadding(): org.spongepowered.api.text.Text; + /** + * Gets the maximum amount of lines that will be sent per page. + *This defaults to the maximum amount of lines that can be displayed + * on a source's screen at one time if not specified.
+ */ + // @ts-ignore + getLinesPerPage(): number; + /** + * Sends the first page of the constructed pagination list + * to the specified message receiver. + */ + // @ts-ignore + sendTo(receiver: org.spongepowered.api.text.channel.MessageReceiver): void; + /** + * Send the specified page of the constructed pagination list + * to the specified message receiver. + *A page that is out of bounds will result in a friendly + * error message being sent to the receiver.
+ *Pages start at an index of 1.
+ */ + // @ts-ignore + sendTo(receiver: org.spongepowered.api.text.channel.MessageReceiver, page: number): void; + /** + * Sends the first page of the constructed pagination list to + * all {@link MessageReceiver}s within an {@link Iterable}. + */ + // @ts-ignore + sendTo(receivers: any): void; + /** + * Sends the specified page of the constructed pagination list + * all {@link MessageReceiver}s within an {@link Iterable}. + */ + // @ts-ignore + sendTo(receivers: any, page: number): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.pagination.PaginationService.ts b/packages/sponge/src/typings/org.spongepowered.api.service.pagination.PaginationService.ts new file mode 100644 index 00000000..8dadc522 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.pagination.PaginationService.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace pagination { + // @ts-ignore + interface PaginationService { + /** + * Gets a new pagination builder to send paginated output to a player. + */ + // @ts-ignore + builder(): org.spongepowered.api.service.pagination.PaginationList.Builder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.permission.MemorySubjectData.ts b/packages/sponge/src/typings/org.spongepowered.api.service.permission.MemorySubjectData.ts new file mode 100644 index 00000000..b6ce8eb9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.permission.MemorySubjectData.ts @@ -0,0 +1,57 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace permission { + // @ts-ignore + class MemorySubjectData implements org.spongepowered.api.service.permission.SubjectData { + /** + * Creates a new subject data instance, using the provided service to + * request instances of permission subjects. + */ + constructor(service: org.spongepowered.api.service.permission.PermissionService) + // @ts-ignore + public getAllPermissions(): MapSee {@link PermissionDescription#getId()} for format + * specifications.
+ */ + // @ts-ignore + id(permissionId: string): org.spongepowered.api.service.permission.PermissionDescription.Builder; + /** + * Sets the short description to use. + *May include a link to a more detailed description on the plugin's + * web page.
+ *Can be null if the permission does not have a description.
+ */ + // @ts-ignore + description(description: org.spongepowered.api.text.Text): org.spongepowered.api.service.permission.PermissionDescription.Builder; + /** + * Assigns this permission to the given role-template {@link Subject}. + *If the given subject does not exist it will be created. Permission + * templates should not be assigned to regular subjects.
+ *It is recommended to use the standard role suggestions expressed + * as static parameters in {@link PermissionDescription}.
+ *Do not assign a permission to user, staff and admin at the same + * time but solve this with subject inheritance if possible.
+ *Note: The permissions are only assigned during + * {@link #register()}.
+ */ + // @ts-ignore + assign(role: string, value: boolean): org.spongepowered.api.service.permission.PermissionDescription.Builder; + /** + * Creates and registers a new {@link PermissionDescription} instance + * with the given settings. + */ + // @ts-ignore + register(): org.spongepowered.api.service.permission.PermissionDescription; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.permission.PermissionDescription.ts b/packages/sponge/src/typings/org.spongepowered.api.service.permission.PermissionDescription.ts new file mode 100644 index 00000000..55bf26a3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.permission.PermissionDescription.ts @@ -0,0 +1,103 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace permission { + // @ts-ignore + interface PermissionDescription { + // @ts-ignore + ROLE_USER: string; + // @ts-ignore + ROLE_STAFF: string; + // @ts-ignore + ROLE_ADMIN: string; + /** + * Gets the permission id this description belongs to. + *The permission id must be of the specified format as specified using + * EBNF: + *
The following examples shall help you to structure your permissions + * well: + *
+ * So if you want to allow someone to give themself only DIAMONDs, you would + * assign them the following permissions: + *
Note: Permission ids are case insensitive! Permission ids + * should start with the owning plugin's id.
+ */ + // @ts-ignore + getId(): string; + /** + * Gets a short description of the linked permission. + *May include a link to a more detailed description on the plugin's + * web page.
+ *Will return an empty optional for descriptions which have been + * automatically generated, or where a description was omitted when the + * {@link PermissionDescription} was created.
+ */ + // @ts-ignore + getDescription(): any; + /** + * Gets the owning plugin the permission belongs to. + *Will return an empty optional for descriptions which have been + * automatically generated.
+ */ + // @ts-ignore + getOwner(): any; + /** + * Gets all subjects that have this permission set in the given collection. + *If you want to know to which role-templates this permission is + * assigned, use {@link PermissionService#SUBJECTS_ROLE_TEMPLATE}. + *
This method is equivalent to calling + * {@link SubjectCollection#getAllWithPermission(String)} for the given + * collection, using {@link #getId()} as the permission.
+ */ + // @ts-ignore + findAssignedSubjects(collectionIdentifier: string): any; + /** + * Gets all loaded subjects that have this permission set in the given + * collection. + *If you want to know to which role-templates this permission is + * assigned, use {@link PermissionService#SUBJECTS_ROLE_TEMPLATE}.
+ *This method is equivalent to calling + * {@link SubjectCollection#getLoadedWithPermission(String)} for the given + * collection, using {@link #getId()} as the permission.
+ *This method will return an empty map if the given collection is not + * loaded or does not exist.
+ */ + // @ts-ignore + getAssignedSubjects(collectionIdentifier: string): MapUser identifiers are expected to be UUIDs in RFC4122 string format + * (This *does* have dashes).
+ *This method should return the same SubjectCollection as the result of + * invoking {@link #loadCollection(String)} with {@link #SUBJECTS_USER}.
+ */ + // @ts-ignore + getUserSubjects(): org.spongepowered.api.service.permission.SubjectCollection; + /** + * Returns the subject collection which holds groups. + *This method should return the same SubjectCollection as the result of + * invoking {@link #loadCollection(String)} with {@link #SUBJECTS_GROUP}.
+ */ + // @ts-ignore + getGroupSubjects(): org.spongepowered.api.service.permission.SubjectCollection; + /** + * Gets the subject holding data that is applied by default to all + * subjects. + *This subject is at the root of all inheritance trees, below + * even SubjectCollection defaults, meaning it has the lowest + * priority when all other weighting is equal.
+ *Note: This data may be persisted, so plugins that add + * permissions to this subject must take care to not override + * permissions already set or modified.
+ *It is also recommended to use + * {@link Subject#getTransientSubjectData()} where possible to avoid + * persisting unnecessary data.
+ *Assigning default permissions should be used sparingly, and by + * convention, only in situations where "default" game behaviour is restored + * by granting a certain permission.
+ */ + // @ts-ignore + getDefaults(): org.spongepowered.api.service.permission.Subject; + /** + * Returns a predicate which determines whether or not a given identifier + * is valid for a subject collection held by this service. + *It is expected that as a minimum, the standard identifiers expressed + * as static parameters in this class will pass the predicate.
+ */ + // @ts-ignore + getIdentifierValidityPredicate(): any; + /** + * Loads and returns a subject collection with the given identifier. + *The returned future will complete exceptionally if the subject + * collection with the given identifier cannot be loaded.
+ *A {@link IllegalArgumentException} will be thrown directly by this + * method if the identifier does not pass the identifier validity + * predicate.
+ */ + // @ts-ignore + loadCollection(identifier: string): any; + /** + * Returns a subject collection with the given identifier, if the + * collection is already loaded within this service. + *It is important to note that a subject collection with the given + * identifier may still exist, even if this method returns an empty + * optional. Checking for the presence of a subject collection should + * be done using {@link #hasCollection(String)}.
+ *If the collection identifier does not pass the validity predicate, + * this method will return an empty optional, and not throw an + * exception.
+ */ + // @ts-ignore + getCollection(identifier: string): any; + /** + * Returns whether a subject collection with the given identifier currently + * exists. + */ + // @ts-ignore + hasCollection(identifier: string): any; + /** + * Returns an immutable copy of all currently loaded subject collections + * held by this permission service. + */ + // @ts-ignore + getLoadedCollections(): MapNote that instances of SubjectReference must be capable of resolving + * the identifier to a Subject without being passed a reference to the + * service.
+ *A {@link IllegalArgumentException} will be thrown directly by this + * method if either identifiers do not pass the identifier validity + * predicates.
+ */ + // @ts-ignore + newSubjectReference(collectionIdentifier: string, subjectIdentifier: string): org.spongepowered.api.service.permission.SubjectReference; + /** + * Creates a new description builder for the given plugin's permission. + */ + // @ts-ignore + newDescriptionBuilder(plugin: any): org.spongepowered.api.service.permission.PermissionDescription.Builder; + /** + * Gets the registered or generated {@link PermissionDescription} for the + * given permission if available. + *If the given permission is not defined itself this might also return + * the associated permission template.
+ */ + // @ts-ignore + getDescription(permission: string): any; + /** + * Gets a immutable collection containing all registered or generated + * {@link PermissionDescription}s. + *Implementations may generate descriptions automatically for + * permissions in use on the server, based upon permissions stored in + * subject data, or based upon checks being performed.
+ */ + // @ts-ignore + getDescriptions(): any[] /*java.util.Collection*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.permission.Subject.ts b/packages/sponge/src/typings/org.spongepowered.api.service.permission.Subject.ts new file mode 100644 index 00000000..f4076899 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.permission.Subject.ts @@ -0,0 +1,146 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace permission { + // @ts-ignore + interface Subject extends org.spongepowered.api.service.context.Contextual { + /** + * Returns a possible {@link CommandSource} for the subject, if it relates + * to one. + *If this subject represents an actual user currently connected, this + * method returns this user. This user may in fact be the same as this + * subject. Some subjects may never directly map to a command source, while + * others may temporarily not have an accessible command source.
+ */ + // @ts-ignore + getCommandSource(): any; + /** + * Returns the subject collection this subject is a member of. + */ + // @ts-ignore + getContainingCollection(): org.spongepowered.api.service.permission.SubjectCollection; + /** + * Gets a SubjectReference representing this subject. + */ + // @ts-ignore + asSubjectReference(): org.spongepowered.api.service.permission.SubjectReference; + /** + * Returns if this Subject has persistent, non-transient data. + *If true, this subject should have two distinct stores of SubjectData, + * and the non-transient form should be saved between sessions.
+ *If false, this subject will have only one store of SubjectData, which + * will not be persisted between sessions.
+ */ + // @ts-ignore + isSubjectDataPersisted(): boolean; + /** + * Returns the primary data backing for this Subject. + *If this Subject is not persisted, this data will not be saved + * between sessions.
+ *For subjects which are not persisted, the same store will be returned + * by {@link #getTransientSubjectData()}.
+ */ + // @ts-ignore + getSubjectData(): org.spongepowered.api.service.permission.SubjectData; + /** + * Returns the transient data backing for this Subject. + *Transient data is guaranteed to only last for the duration of the + * subject's session, and is not persisted.
+ *For subjects which are not persisted, the same store will be returned + * by {@link #getSubjectData()}.
+ */ + // @ts-ignore + getTransientSubjectData(): org.spongepowered.api.service.permission.SubjectData; + /** + * Test whether the subject is permitted to perform an action corresponding + * to the given permission string. + *This must return the same boolean equivalent as + * {@link #getPermissionValue(Set, String)}.
+ */ + // @ts-ignore + hasPermission(contexts: any[] /*java.util.Set*/, permission: string): boolean; + /** + * Test whether the subject is permitted to perform an action given as the + * given permission string. + *This must return the same value as {@link #hasPermission(Set, String)} + * using {@link #getActiveContexts()}.
+ */ + // @ts-ignore + hasPermission(permission: string): boolean; + /** + * Returns the calculated value set for a given permission. + *It is expected that this method will also account for values + * inherited from parent subjects, as well as permission nodes inherited + * implicitly from a more generic level.
+ *Additionally, the defaults defined the {@link SubjectCollection} + * that holds this subject, as well as defaults defined in + * {@link PermissionService#getDefaults()} should be considered for this + * lookup.
+ *This method is likely to be called frequently, so it is desirable + * that implementations cache the results to method calls.
+ */ + // @ts-ignore + getPermissionValue(contexts: any[] /*java.util.Set*/, permission: string): org.spongepowered.api.util.Tristate; + /** + * Check if this subject is a child of the given parent in the subject's + * current context, traversing inheritance. + *This must return the same value as + * {@link #isChildOf(Set, SubjectReference)} using + * {@link #getActiveContexts()}.
+ */ + // @ts-ignore + isChildOf(parent: org.spongepowered.api.service.permission.SubjectReference): boolean; + /** + * Check if this subject is a child of the given parent in the given context + * combination, traversing inheritance. + *It is expected that this method will also account for data from + * distant parents, inherited from direct parent subjects. + *
Additionally, the defaults defined the {@link SubjectCollection} + * that holds this subject, as well as defaults defined in + * {@link PermissionService#getDefaults()} should be considered for this + * lookup.
+ */ + // @ts-ignore + isChildOf(contexts: any[] /*java.util.Set*/, parent: org.spongepowered.api.service.permission.SubjectReference): boolean; + /** + * Return all parents that this group has in its current context + * combination. + *This must include inherited values if the permissions + * service supports inheritance.
+ *It must also must return the same value as {@link #getParents(Set)} + * using {@link #getActiveContexts()}.
+ */ + // @ts-ignore + getParents(): any[] /*java.util.List*/; + /** + * Return all parents that this group has in the given context combination. + *This must include inherited values if the permissions + * service supports inheritance.
+ */ + // @ts-ignore + getParents(contexts: any[] /*java.util.Set*/): any[] /*java.util.List*/; + /** + * Gets the value of a given option in the given context. + *It is expected that this method will account for options + * inherited from parent subjects. + *
Additionally, the default options defined by the + * {@link SubjectCollection} that holds this subject, as well as defaults + * defined in {@link PermissionService#getDefaults()} should be considered + * for this lookup. + */ + // @ts-ignore + getOption(contexts: any[] /*java.util.Set*/, key: string): any; + /** + * Gets the value of a given option in the subject's current context. + *
This must return the same value as {@link #getOption(Set, String)} + * using {@link #getActiveContexts()}.
+ */ + // @ts-ignore + getOption(key: string): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.permission.SubjectCollection.ts b/packages/sponge/src/typings/org.spongepowered.api.service.permission.SubjectCollection.ts new file mode 100644 index 00000000..b1bd2d34 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.permission.SubjectCollection.ts @@ -0,0 +1,189 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace permission { + // @ts-ignore + interface SubjectCollection { + /** + * Return the identifier for this collection. + */ + // @ts-ignore + getIdentifier(): string; + /** + * Returns a predicate which determines whether or not a given identifier is + * valid for a subject held by this collection. + *It is expected that the {@link PermissionService#SUBJECTS_USER} + * collection should accept identifiers in UUID RFC4122 string format. (In + * the format produced by {@link UUID#toString()}
+ */ + // @ts-ignore + getIdentifierValidityPredicate(): any; + /** + * Loads and returns a subject with the given identifier. + *The returned future will complete exceptionally if the subject with + * the given identifier cannot be loaded.
+ *A {@link IllegalArgumentException} will be thrown directly by this + * method if the identifier does not pass the identifier validity + * predicate.
+ */ + // @ts-ignore + loadSubject(identifier: string): any; + /** + * Returns a subject with the given identifier, if the subject is already + * loaded within this collection. + *It is important to note that a subject with the given identifier + * may still exist, even if this method returns an empty + * optional. Checking for the presence of a subject should be + * done using {@link #hasSubject(String)}.
+ *If the subject identifier does not pass the validity predicate, this + * method will return an empty optional, and not throw an exception.
+ */ + // @ts-ignore + getSubject(identifier: string): any; + /** + * Returns whether a subject with the given identifier currently exists. + *The return value of this function does not influence whether or + * not the results from any subject lookups should be obtained. + */ + // @ts-ignore + hasSubject(identifier: string): any; + /** + * Gets a map of subjects from the provided set of identifiers. + *
If any of the identifiers do not pass the collections + * {@link #getIdentifierValidityPredicate()}, a subject will not be returned + * for that identifier.
+ */ + // @ts-ignore + loadSubjects(identifiers: any[] /*java.util.Set*/): any; + /** + * Returns an immutable copy of all subjects currently loaded in this + * collection. + */ + // @ts-ignore + getLoadedSubjects(): any[] /*java.util.Collection*/; + /** + * Gets a set of Subject identifiers being stored in the collection. This + * method must return a complete list, including identifiers of subjects not + * currently loaded. + *The results of this method should not be passed directly to + * {@link #loadSubjects(Set)}. Instead, each individual subject should be + * loaded, processed, and then allowed to be unloaded using + * {@link #suggestUnload(String)}.
+ *If you simply need to process each subject in the collection, you can + * use {@link #applyToAll(Consumer)} and gather data.
+ */ + // @ts-ignore + getAllIdentifiers(): any; + /** + * Creates a new subject reference to represent the expressed subject. + *Note that instances of SubjectReference must be capable of resolving + * the identifier to a Subject without being passed a reference to the + * service.
+ *A {@link IllegalArgumentException} will be thrown directly by this + * method if the identifier does not pass the identifier validity + * predicate.
+ */ + // @ts-ignore + newSubjectReference(subjectIdentifier: string): org.spongepowered.api.service.permission.SubjectReference; + /** + * Performs an action on each Subject in the collection. + *Subjects are loaded, supplied to the consumer, and then allowed to be + * uncached by the implementation.
+ *This should be used to apply bulk changes or gather data about all + * Subjects in the collection. The provided consumer will be supplied + * asynchronously. Acting upon a large collection may be particularly + * resource intensive.
+ *Implementations may choose to load and process subjects in + * parallel.
+ */ + // @ts-ignore + applyToAll(action: any): any; + /** + * Performs an action on each Subject in the provided set. + *Subjects are loaded, supplied to the consumer, and then allowed to be + * uncached by the implementation.
+ *This should be used to apply bulk changes or gather data about all + * Subjects in the collection. The provided consumer will be supplied + * asynchronously. Acting upon a large collection may be particularly + * resource intensive.
+ *Implementations may choose to load and process subjects in + * parallel.
+ */ + // @ts-ignore + applyToAll(action: any, identifiers: any[] /*java.util.Set*/): any; + /** + * Return the identifiers of all known subjects with the given permission + * set. + *This method
DOES NOT
consider inheritance, and will only query + * the data set to the subjects {@link Subject#getSubjectData()}. Transient + * data is not considered. + *As no context is passed, it is up to the implementation to decide + * which contexts to use. When available, + * {@link Subject#getActiveContexts()} is used for the lookup. Otherwise, it + * is likely that {@link SubjectData#GLOBAL_CONTEXT} will be + * used.
+ */ + // @ts-ignore + getAllWithPermission(permission: string): any; + /** + * Return the identifiers of all known subjects with the given permission + * set. + *This method
DOES NOT
consider inheritance, and will only query + * the data set to the subjects {@link Subject#getSubjectData()}. Transient + * data is not considered. + */ + // @ts-ignore + getAllWithPermission(contexts: any[] /*java.util.Set*/, permission: string): any; + /** + * Return all loaded subjects with the given permission set. + *This method
DOES NOT
consider inheritance, and will only query + * the data set to the subjects {@link Subject#getSubjectData()}. Transient + * data is not considered. + *As no context is passed, it is up to the implementation to decide + * which contexts to use. When available, + * {@link Subject#getActiveContexts()} is used for the lookup. Otherwise, it + * is likely that {@link SubjectData#GLOBAL_CONTEXT} will be + * used.
+ */ + // @ts-ignore + getLoadedWithPermission(permission: string): MapThis method
DOES NOT
consider inheritance, and will only query + * the data set to the subjects {@link Subject#getSubjectData()}. Transient + * data is not considered. + */ + // @ts-ignore + getLoadedWithPermission(contexts: any[] /*java.util.Set*/, permission: string): MapThis subject is at the root of all inheritance trees for subjects in + * this collection, but at a higher priority chan defaults expressed to + * {@link PermissionService#getDefaults()}.
+ *Note: This data may be persisted, so plugins that add + * permissions to this subject must take care to not override + * permissions already set or modified.
+ *It is also recommended to use + * {@link Subject#getTransientSubjectData()} where possible to avoid + * persisting unnecessary data.
+ *Assigning default permissions should be used sparingly, and by + * convention, only in situations where "default" game behaviour is restored + * by granting a certain permission.
+ */ + // @ts-ignore + getDefaults(): org.spongepowered.api.service.permission.Subject; + /** + * Indicate that a certain subject may be unloaded by the implementation. + *This is only a hint to the implementation, and does not guarantee that + * the subject will be unloaded.
+ */ + // @ts-ignore + suggestUnload(identifier: string): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.permission.SubjectData.ts b/packages/sponge/src/typings/org.spongepowered.api.service.permission.SubjectData.ts new file mode 100644 index 00000000..dd491d24 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.permission.SubjectData.ts @@ -0,0 +1,117 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace permission { + // @ts-ignore + interface SubjectData { + // @ts-ignore + GLOBAL_CONTEXT: any[] /*java.util.Set*/; + /** + * Return all permissions associated with this data object. + */ + // @ts-ignore + getAllPermissions(): MapThis list is immutable and is not a live view. If no permissions have + * been set, it returns an empty list.
+ */ + // @ts-ignore + getPermissions(contexts: any[] /*java.util.Set*/): MapSetting value as {@link Tristate#UNDEFINED} unsets the permission.
+ *An empty set of contexts applies this permission to the global + * context.
+ */ + // @ts-ignore + setPermission(contexts: any[] /*java.util.Set*/, permission: string, value: org.spongepowered.api.util.Tristate): any; + /** + * Clear all permissions set in any context. + */ + // @ts-ignore + clearPermissions(): any; + /** + * Clear all permissions set in a given context combination. + *Passing an empty context set clears permissions in the global + * context.
+ */ + // @ts-ignore + clearPermissions(contexts: any[] /*java.util.Set*/): any; + /** + * Return all registered parent subjects for all contexts. + *The returned map is immutable and not a live view. The results of this + * method do not traverse any sort of inheritance structure a permissions + * plugin may implement.
+ */ + // @ts-ignore + getAllParents(): MapThe returned map is immutable and not a live view. The results of this + * method do not traverse any sort of inheritance structure a permissions + * plugin may implement.
+ */ + // @ts-ignore + getParents(contexts: any[] /*java.util.Set*/): any[] /*java.util.List*/; + /** + * Adds a parent in a particular context combination. + *Passing an empty context combination means the parent is added in the + * global context.
+ */ + // @ts-ignore + addParent(contexts: any[] /*java.util.Set*/, parent: org.spongepowered.api.service.permission.SubjectReference): any; + /** + * Removes a parent in a particular context combination. + *Passing an empty context combination means the parent is removed in + * the global context.
+ */ + // @ts-ignore + removeParent(contexts: any[] /*java.util.Set*/, parent: org.spongepowered.api.service.permission.SubjectReference): any; + /** + * Remove all parents in any context combination. + */ + // @ts-ignore + clearParents(): any; + /** + * Remove all parents in a given context combination. + *Passing an empty context set clears parents in the global + * context.
+ */ + // @ts-ignore + clearParents(contexts: any[] /*java.util.Set*/): any; + /** + * Return all options for all context combinations currently registered. + */ + // @ts-ignore + getAllOptions(): MapPassing a null value will unset the option.
+ */ + // @ts-ignore + setOption(contexts: any[] /*java.util.Set*/, key: string, value: string): any; + /** + * Clear all options. + */ + // @ts-ignore + clearOptions(): any; + /** + * Clear all options in the given context combination. + *Passing an empty context set clears options in the global + * context.
+ */ + // @ts-ignore + clearOptions(contexts: any[] /*java.util.Set*/): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.permission.SubjectReference.ts b/packages/sponge/src/typings/org.spongepowered.api.service.permission.SubjectReference.ts new file mode 100644 index 00000000..b9e5946f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.permission.SubjectReference.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace permission { + // @ts-ignore + interface SubjectReference { + /** + * Gets the identifier of the collection containing the subject + * being referenced. + */ + // @ts-ignore + getCollectionIdentifier(): string; + /** + * Gets the identifier of the subject. + */ + // @ts-ignore + getSubjectIdentifier(): string; + /** + * Resolves and returns the Subject being referenced. + *The returned future will complete exceptionally if the subject + * collection with the given identifier cannot be loaded.
+ */ + // @ts-ignore + resolve(): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.rcon.RconService.ts b/packages/sponge/src/typings/org.spongepowered.api.service.rcon.RconService.ts new file mode 100644 index 00000000..e9217cfc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.rcon.RconService.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace rcon { + // @ts-ignore + interface RconService { + /** + * Tests whether Rcon is enabled for this service. + *Rcon allows commands to be remotely run on the server, after Rcon + * client have authenticated with a password.
+ */ + // @ts-ignore + isRconEnabled(): boolean; + /** + * Gets the Rcon password for this service. + *This password is used by Rcon clients to authenticate.
+ */ + // @ts-ignore + getRconPassword(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.sql.SqlService.ts b/packages/sponge/src/typings/org.spongepowered.api.service.sql.SqlService.ts new file mode 100644 index 00000000..ffa86c34 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.sql.SqlService.ts @@ -0,0 +1,39 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace sql { + // @ts-ignore + interface SqlService { + /** + * Returns a data source for the provided JDBC connection string or + * an alias. + *A jdbc connection url is expected to be of the form: + * jdbc:<engine>://[<username>[:<password>]@]<host + * >/<database> or an alias (available aliases are known only by + * the service provider)
+ */ + // @ts-ignore + getDataSource(jdbcConnection: string): any; + /** + * Returns a data source for the provided JDBC connection string or an + * alias. + *A jdbc connection url is expected to be of the form: + * jdbc:<engine>://[<username>[:<password>]@] + * <host>/<database> + * or an alias (available aliases are known only by the service + * provider)
+ */ + // @ts-ignore + getDataSource(plugin: any, jdbcConnection: string): any; + /** + * Returns a possible connection URL for a given alias. + */ + // @ts-ignore + getConnectionUrlFromAlias(alias: string): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.user.UserStorageService.ts b/packages/sponge/src/typings/org.spongepowered.api.service.user.UserStorageService.ts new file mode 100644 index 00000000..4fc4ec9c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.user.UserStorageService.ts @@ -0,0 +1,70 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace user { + // @ts-ignore + interface UserStorageService { + /** + * Gets the data of a {@link User} by their unique id. + */ + // @ts-ignore + get(uniqueId: any): any; + /** + * Gets the data of a {@link User} by their last known user name + * (case-insensitive). + *To get the current name of a player, use the + * {@link GameProfileManager} service.
+ */ + // @ts-ignore + get(lastKnownName: string): any; + /** + * Gets the data of a {@link User} by their {@link GameProfile}. + */ + // @ts-ignore + get(profile: org.spongepowered.api.profile.GameProfile): any; + /** + * Gets or creates a persistent {@link User} associated with the given + * {@link GameProfile}. + *To obtain a {@link GameProfile}, use the {@link GameProfileManager}. + *
+ */ + // @ts-ignore + getOrCreate(profile: org.spongepowered.api.profile.GameProfile): org.spongepowered.api.entity.living.player.User; + /** + * Gets the collection of all {@link GameProfile}s with stored {@link User} + * data. + *Note that this method is resource-intensive depending on the amount of + * stored data.
+ *Use {@link #get(GameProfile)} to get the {@link User} data + * corresponding to a {@link GameProfile}.
+ */ + // @ts-ignore + getAll(): any[] /*java.util.Collection*/; + /** + * Deletes the data associated with a {@link User}. + *This may not work if the user is logged in.
+ */ + // @ts-ignore + delete(profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Deletes the data associated with a {@link User}. + *This may not work if the user is logged in.
+ */ + // @ts-ignore + delete(user: org.spongepowered.api.entity.living.player.User): boolean; + /** + * Returns a collection of matching {@link GameProfile}s with stored + * {@link User} data whose last known user names start with the given string + * (case-insensitive). + *Use {@link #get(GameProfile)} to get the {@link User} data + * corresponding to a {@link GameProfile}.
+ */ + // @ts-ignore + match(lastKnownName: string): any[] /*java.util.Collection*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.service.whitelist.WhitelistService.ts b/packages/sponge/src/typings/org.spongepowered.api.service.whitelist.WhitelistService.ts new file mode 100644 index 00000000..70079f74 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.service.whitelist.WhitelistService.ts @@ -0,0 +1,34 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace whitelist { + // @ts-ignore + interface WhitelistService { + /** + * Gets the collection of {@link GameProfile}s present on this whitelist. + */ + // @ts-ignore + getWhitelistedProfiles(): any[] /*java.util.Collection*/; + /** + * Gets whether the specified {@link GameProfile} is present on this + * whitelist. + */ + // @ts-ignore + isWhitelisted(profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Adds the specified {@link GameProfile} to this whitelist. + */ + // @ts-ignore + addProfile(profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Removes the specified {@link GameProfile} from this whitelist, if present. + */ + // @ts-ignore + removeProfile(profile: org.spongepowered.api.profile.GameProfile): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.statistic.BlockStatistic.ts b/packages/sponge/src/typings/org.spongepowered.api.statistic.BlockStatistic.ts new file mode 100644 index 00000000..3a3bd0c3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.statistic.BlockStatistic.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace statistic { + // @ts-ignore + interface BlockStatistic extends org.spongepowered.api.statistic.ItemStatistic { + /** + * Returns the statistic's {@link BlockType}. + */ + // @ts-ignore + getBlockType(): org.spongepowered.api.block.BlockType; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.statistic.EntityStatistic.ts b/packages/sponge/src/typings/org.spongepowered.api.statistic.EntityStatistic.ts new file mode 100644 index 00000000..953c9bac --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.statistic.EntityStatistic.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace statistic { + // @ts-ignore + interface EntityStatistic extends org.spongepowered.api.statistic.Statistic { + /** + * Returns the {@link EntityType} of this statistic. + */ + // @ts-ignore + getEntityType(): org.spongepowered.api.entity.EntityType; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.statistic.ItemStatistic.ts b/packages/sponge/src/typings/org.spongepowered.api.statistic.ItemStatistic.ts new file mode 100644 index 00000000..6cf0f18f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.statistic.ItemStatistic.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace statistic { + // @ts-ignore + interface ItemStatistic extends org.spongepowered.api.statistic.Statistic { + /** + * Returns the {@link ItemType} this statistic is associated with. + */ + // @ts-ignore + getItemType(): org.spongepowered.api.item.ItemType; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.statistic.Statistic.ts b/packages/sponge/src/typings/org.spongepowered.api.statistic.Statistic.ts new file mode 100644 index 00000000..379fe015 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.statistic.Statistic.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace statistic { + // @ts-ignore + interface Statistic extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + /** + * Returns the objective {@link Criterion} for this statistic. + */ + // @ts-ignore + getCriterion(): any; + /** + * Returns the {@link NumberFormat} used to format the value of this + * statistic. + */ + // @ts-ignore + getFormat(): any; + /** + * Returns this statistic's {@link StatisticType}. + */ + // @ts-ignore + getType(): org.spongepowered.api.statistic.StatisticType; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.statistic.StatisticType.ts b/packages/sponge/src/typings/org.spongepowered.api.statistic.StatisticType.ts new file mode 100644 index 00000000..9b2b3a2b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.statistic.StatisticType.ts @@ -0,0 +1,11 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace statistic { + // @ts-ignore + interface StatisticType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.statistic.StatisticTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.statistic.StatisticTypes.ts new file mode 100644 index 00000000..3b411447 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.statistic.StatisticTypes.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace statistic { + // @ts-ignore + class StatisticTypes { + // @ts-ignore + public static BASIC: org.spongepowered.api.statistic.StatisticType; + // @ts-ignore + public static BLOCKS_BROKEN: org.spongepowered.api.statistic.StatisticType; + // @ts-ignore + public static ENTITIES_KILLED: org.spongepowered.api.statistic.StatisticType; + // @ts-ignore + public static ITEMS_BROKEN: org.spongepowered.api.statistic.StatisticType; + // @ts-ignore + public static ITEMS_CRAFTED: org.spongepowered.api.statistic.StatisticType; + // @ts-ignore + public static ITEMS_DROPPED: org.spongepowered.api.statistic.StatisticType; + // @ts-ignore + public static ITEMS_PICKED_UP: org.spongepowered.api.statistic.StatisticType; + // @ts-ignore + public static ITEMS_USED: org.spongepowered.api.statistic.StatisticType; + // @ts-ignore + public static KILLED_BY_ENTITY: org.spongepowered.api.statistic.StatisticType; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.statistic.Statistics.ts b/packages/sponge/src/typings/org.spongepowered.api.statistic.Statistics.ts new file mode 100644 index 00000000..d9b08575 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.statistic.Statistics.ts @@ -0,0 +1,109 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace statistic { + // @ts-ignore + class Statistics { + // @ts-ignore + public static ANIMALS_BRED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static ARMOR_CLEANED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static AVIATE_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static BANNER_CLEANED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static BEACON_INTERACTION: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static BOAT_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static BREWINGSTAND_INTERACTION: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static CAKE_SLICES_EATEN: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static CAULDRON_FILLED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static CAULDRON_USED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static CHEST_OPENED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static CLIMB_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static CRAFTING_TABLE_INTERACTION: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static CROUCH_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static DAMAGE_DEALT: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static DAMAGE_TAKEN: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static DEATHS: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static DISPENSER_INSPECTED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static DIVE_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static DROP: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static DROPPER_INSPECTED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static ENDERCHEST_OPENED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static FALL_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static FISH_CAUGHT: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static FLOWER_POTTED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static FURNACE_INTERACTION: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static HOPPER_INSPECTED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static HORSE_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static ITEM_ENCHANTED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static JUMP: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static LEAVE_GAME: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static MINECART_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static MOB_KILLS: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static NOTEBLOCK_PLAYED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static NOTEBLOCK_TUNED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static OPEN_SHULKER_BOX: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static PIG_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static PLAYER_KILLS: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static RECORD_PLAYED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static SLEEP_IN_BED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static SNEAK_TIME: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static SPRINT_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static SWIM_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static TALKED_TO_VILLAGER: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static TIME_PLAYED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static TIME_SINCE_DEATH: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static TRADED_WITH_VILLAGER: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static TRAPPED_CHEST_TRIGGERED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static WALK_ONE_CM: org.spongepowered.api.statistic.Statistic; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.BookView.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.text.BookView.Builder.ts new file mode 100644 index 00000000..6debc115 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.BookView.Builder.ts @@ -0,0 +1,91 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace BookView { + // @ts-ignore + class Builder implements org.spongepowered.api.util.ResettableBuilder { + constructor() + /** + * Sets the title of the {@link BookView}. + */ + // @ts-ignore + public title(title: org.spongepowered.api.text.Text): org.spongepowered.api.text.BookView.Builder; + /** + * Sets the author of the {@link BookView}. + */ + // @ts-ignore + public author(author: org.spongepowered.api.text.Text): org.spongepowered.api.text.BookView.Builder; + /** + * Adds a page to the end of the {@link BookView}. + */ + // @ts-ignore + public addPage(page: org.spongepowered.api.text.Text): org.spongepowered.api.text.BookView.Builder; + /** + * Adds multiple pages to the end of the {@link BookView}. + */ + // @ts-ignore + public addPages(pages: any[] /*java.util.Collection*/): org.spongepowered.api.text.BookView.Builder; + /** + * Adds multiple pages to the end of the {@link BookView}. + */ + // @ts-ignore + public addPages(pages: org.spongepowered.api.text.Text): org.spongepowered.api.text.BookView.Builder; + /** + * Inserts a page at the specified index of the {@link BookView}. + */ + // @ts-ignore + public insertPage(i: number, page: org.spongepowered.api.text.Text): org.spongepowered.api.text.BookView.Builder; + /** + * Inserts multiple pages at the specified index of the + * {@link BookView}. + */ + // @ts-ignore + public insertPages(i: number, pages: any[] /*java.util.Collection*/): org.spongepowered.api.text.BookView.Builder; + /** + * Inserts multiple pages at the specified index of the + * {@link BookView}. + */ + // @ts-ignore + public insertPages(i: number, pages: org.spongepowered.api.text.Text): org.spongepowered.api.text.BookView.Builder; + /** + * Removes a page from the {@link BookView}. + */ + // @ts-ignore + public removePage(page: org.spongepowered.api.text.Text): org.spongepowered.api.text.BookView.Builder; + /** + * Removes the page at the specified index of the {@link BookView}. + */ + // @ts-ignore + public removePage(i: number): org.spongepowered.api.text.BookView.Builder; + /** + * Removes multiple pages from the {@link BookView}. + */ + // @ts-ignore + public removePages(pages: any[] /*java.util.Collection*/): org.spongepowered.api.text.BookView.Builder; + /** + * Removes multiple pages from the {@link BookView}. + */ + // @ts-ignore + public removePages(pages: org.spongepowered.api.text.Text): org.spongepowered.api.text.BookView.Builder; + /** + * Removes all pages from the {@link BookView}. + */ + // @ts-ignore + public clearPages(): org.spongepowered.api.text.BookView.Builder; + /** + * Creates a new {@link BookView} from the current state of this + * builder. + */ + // @ts-ignore + public build(): org.spongepowered.api.text.BookView; + // @ts-ignore + public from(value: org.spongepowered.api.text.BookView): org.spongepowered.api.text.BookView.Builder; + // @ts-ignore + public reset(): org.spongepowered.api.text.BookView.Builder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.BookView.ts b/packages/sponge/src/typings/org.spongepowered.api.text.BookView.ts new file mode 100644 index 00000000..781d7d97 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.BookView.ts @@ -0,0 +1,41 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + // @ts-ignore + class BookView implements org.spongepowered.api.data.DataSerializable { + /** + * Returns the title of the book to be displayed. + */ + // @ts-ignore + public getTitle(): org.spongepowered.api.text.Text; + /** + * Returns the author of the book to be displayed. + */ + // @ts-ignore + public getAuthor(): org.spongepowered.api.text.Text; + /** + * Returns a list of pages that will be displayed to the client. + */ + // @ts-ignore + public getPages(): any; + /** + * Returns a new {@link Builder} for chaining. + */ + // @ts-ignore + public static builder(): org.spongepowered.api.text.BookView.Builder; + // @ts-ignore + public getContentVersion(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: any): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.LiteralText.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.text.LiteralText.Builder.ts new file mode 100644 index 00000000..921a913b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.LiteralText.Builder.ts @@ -0,0 +1,67 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace LiteralText { + // @ts-ignore + class Builder extends org.spongepowered.api.text.Text.Builder { + /** + * Returns the current content of this builder. + */ + // @ts-ignore + public getContent(): string; + /** + * Sets the plain text content of this text. + */ + // @ts-ignore + public content(content: string): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public build(): org.spongepowered.api.text.LiteralText; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public format(format: org.spongepowered.api.text.format.TextFormat): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public color(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public style(styles: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public onClick(clickAction: org.spongepowered.api.text.action.ClickAction): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public onHover(hoverAction: org.spongepowered.api.text.action.HoverAction): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public onShiftClick(shiftClickAction: org.spongepowered.api.text.action.ShiftClickAction): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public append(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public append(children: any[] /*java.util.Collection*/): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public append(children: any): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public append(children: any): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public insert(pos: number, children: org.spongepowered.api.text.Text): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public insert(pos: number, children: any[] /*java.util.Collection*/): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public insert(pos: number, children: any): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public insert(pos: number, children: any): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public remove(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public remove(children: any[] /*java.util.Collection*/): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public remove(children: any): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public remove(children: any): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public removeAll(): org.spongepowered.api.text.LiteralText.Builder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.LiteralText.ts b/packages/sponge/src/typings/org.spongepowered.api.text.LiteralText.ts new file mode 100644 index 00000000..632dc824 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.LiteralText.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + // @ts-ignore + class LiteralText extends org.spongepowered.api.text.Text { + /** + * Returns the plain text content of this {@link Text}. + */ + // @ts-ignore + public getContent(): string; + // @ts-ignore + public toBuilder(): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.ScoreText.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.text.ScoreText.Builder.ts new file mode 100644 index 00000000..778aa382 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.ScoreText.Builder.ts @@ -0,0 +1,77 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace ScoreText { + // @ts-ignore + class Builder extends org.spongepowered.api.text.Text.Builder { + /** + * Returns the current score of this builder. + */ + // @ts-ignore + public getScore(): org.spongepowered.api.scoreboard.Score; + /** + * Sets the score of the text. + */ + // @ts-ignore + public score(score: org.spongepowered.api.scoreboard.Score): org.spongepowered.api.text.ScoreText.Builder; + /** + * Returns the current override of this builder. + */ + // @ts-ignore + public getOverride(): any; + /** + * Overrides the real score and displays a custom text instead. + */ + // @ts-ignore + public override(override: string): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public build(): org.spongepowered.api.text.ScoreText; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public format(format: org.spongepowered.api.text.format.TextFormat): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public color(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public style(styles: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public onClick(clickAction: org.spongepowered.api.text.action.ClickAction): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public onHover(hoverAction: org.spongepowered.api.text.action.HoverAction): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public onShiftClick(shiftClickAction: org.spongepowered.api.text.action.ShiftClickAction): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public append(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public append(children: any[] /*java.util.Collection*/): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public append(children: any): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public append(children: any): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public insert(pos: number, children: org.spongepowered.api.text.Text): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public insert(pos: number, children: any[] /*java.util.Collection*/): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public insert(pos: number, children: any): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public insert(pos: number, children: any): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public remove(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public remove(children: any[] /*java.util.Collection*/): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public remove(children: any): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public remove(children: any): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public removeAll(): org.spongepowered.api.text.ScoreText.Builder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.ScoreText.ts b/packages/sponge/src/typings/org.spongepowered.api.text.ScoreText.ts new file mode 100644 index 00000000..3eb27546 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.ScoreText.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + // @ts-ignore + class ScoreText extends org.spongepowered.api.text.Text { + /** + * Returns the score displayed by this {@link Text}. + */ + // @ts-ignore + public getScore(): org.spongepowered.api.scoreboard.Score; + /** + * Returns a value that is displayed instead of the real score. + */ + // @ts-ignore + public getOverride(): any; + // @ts-ignore + public toBuilder(): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.SelectorText.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.text.SelectorText.Builder.ts new file mode 100644 index 00000000..82c5dd59 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.SelectorText.Builder.ts @@ -0,0 +1,67 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace SelectorText { + // @ts-ignore + class Builder extends org.spongepowered.api.text.Text.Builder { + /** + * Returns the current selector of this builder. + */ + // @ts-ignore + public getSelector(): org.spongepowered.api.text.selector.Selector; + /** + * Sets the selector of the text. + */ + // @ts-ignore + public selector(selector: org.spongepowered.api.text.selector.Selector): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public build(): org.spongepowered.api.text.SelectorText; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public format(format: org.spongepowered.api.text.format.TextFormat): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public color(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public style(styles: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public onClick(clickAction: org.spongepowered.api.text.action.ClickAction): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public onHover(hoverAction: org.spongepowered.api.text.action.HoverAction): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public onShiftClick(shiftClickAction: org.spongepowered.api.text.action.ShiftClickAction): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public append(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public append(children: any[] /*java.util.Collection*/): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public append(children: any): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public append(children: any): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public insert(pos: number, children: org.spongepowered.api.text.Text): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public insert(pos: number, children: any[] /*java.util.Collection*/): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public insert(pos: number, children: any): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public insert(pos: number, children: any): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public remove(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public remove(children: any[] /*java.util.Collection*/): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public remove(children: any): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public remove(children: any): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public removeAll(): org.spongepowered.api.text.SelectorText.Builder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.SelectorText.ts b/packages/sponge/src/typings/org.spongepowered.api.text.SelectorText.ts new file mode 100644 index 00000000..b63e6867 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.SelectorText.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + // @ts-ignore + class SelectorText extends org.spongepowered.api.text.Text { + /** + * Returns the selector used in this {@link Text}. + */ + // @ts-ignore + public getSelector(): org.spongepowered.api.text.selector.Selector; + // @ts-ignore + public toBuilder(): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.Text.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.text.Text.Builder.ts new file mode 100644 index 00000000..46e0da35 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.Text.Builder.ts @@ -0,0 +1,184 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace Text { + // @ts-ignore + abstract class Builder implements org.spongepowered.api.text.TextRepresentable { + /** + * Returns the current format of the {@link Text} in this builder. + */ + // @ts-ignore + public getFormat(): org.spongepowered.api.text.format.TextFormat; + /** + * Sets the {@link TextFormat} of this text. + */ + // @ts-ignore + public format(format: org.spongepowered.api.text.format.TextFormat): org.spongepowered.api.text.Text.Builder; + /** + * Returns the current color of the {@link Text} in this builder. + */ + // @ts-ignore + public getColor(): org.spongepowered.api.text.format.TextColor; + /** + * Sets the {@link TextColor} of this text. + */ + // @ts-ignore + public color(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.text.Text.Builder; + /** + * Returns the current style of the {@link Text} in this builder. + */ + // @ts-ignore + public getStyle(): org.spongepowered.api.text.format.TextStyle; + /** + * Sets the text styles of this text. This will construct a composite + * {@link TextStyle} of the current style and the specified styles first + * and set it to the text. + */ + // @ts-ignore + public style(styles: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.Text.Builder; + /** + * Returns the current {@link ClickAction} of this builder. + */ + // @ts-ignore + public getClickAction(): any; + /** + * Sets the {@link ClickAction} that will be executed if the text is + * clicked in the chat. + */ + // @ts-ignore + public onClick(clickAction: org.spongepowered.api.text.action.ClickAction): org.spongepowered.api.text.Text.Builder; + /** + * Returns the current {@link HoverAction} of this builder. + */ + // @ts-ignore + public getHoverAction(): any; + /** + * Sets the {@link HoverAction} that will be executed if the text is + * hovered in the chat. + */ + // @ts-ignore + public onHover(hoverAction: org.spongepowered.api.text.action.HoverAction): org.spongepowered.api.text.Text.Builder; + /** + * Returns the current {@link ShiftClickAction} of this builder. + */ + // @ts-ignore + public getShiftClickAction(): any; + /** + * Sets the {@link ShiftClickAction} that will be executed if the text + * is shift-clicked in the chat. + */ + // @ts-ignore + public onShiftClick(shiftClickAction: org.spongepowered.api.text.action.ShiftClickAction): org.spongepowered.api.text.Text.Builder; + /** + * Returns a view of the current children of this builder. + *The returned list is unmodifiable, but not immutable. It will + * change if new children get added through this builder.
+ */ + // @ts-ignore + public getChildren(): any[] /*java.util.List*/; + /** + * Appends the specified {@link Text} to the end of this text. + */ + // @ts-ignore + public append(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text.Builder; + /** + * Appends the specified {@link Text} to the end of this text. + */ + // @ts-ignore + public append(children: any[] /*java.util.Collection*/): org.spongepowered.api.text.Text.Builder; + /** + * Appends the specified {@link Text} to the end of this text. + */ + // @ts-ignore + public append(children: any): org.spongepowered.api.text.Text.Builder; + /** + * Appends the specified {@link Text} to the end of this text. + */ + // @ts-ignore + public append(children: any): org.spongepowered.api.text.Text.Builder; + /** + * Inserts the specified {@link Text} at the given position of this + * builder. + */ + // @ts-ignore + public insert(pos: number, children: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text.Builder; + /** + * Inserts the specified {@link Text} at the given position of this + * builder. + */ + // @ts-ignore + public insert(pos: number, children: any[] /*java.util.Collection*/): org.spongepowered.api.text.Text.Builder; + /** + * Inserts the specified {@link Text} at the given position of this + * builder. + */ + // @ts-ignore + public insert(pos: number, children: any): org.spongepowered.api.text.Text.Builder; + /** + * Inserts the specified {@link Text} at the given position of this + * builder. + */ + // @ts-ignore + public insert(pos: number, children: any): org.spongepowered.api.text.Text.Builder; + /** + * Removes the last child in this builder. + */ + // @ts-ignore + public removeLastChild(): org.spongepowered.api.text.Text.Builder; + /** + * Removes the child at the given index. + */ + // @ts-ignore + public remove(index: number): org.spongepowered.api.text.Text.Builder; + /** + * Removes the specified {@link Text} from this builder. + */ + // @ts-ignore + public remove(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text.Builder; + /** + * Removes the specified {@link Text} from this builder. + */ + // @ts-ignore + public remove(children: any[] /*java.util.Collection*/): org.spongepowered.api.text.Text.Builder; + /** + * Removes the specified {@link Text} from this builder. + */ + // @ts-ignore + public remove(children: any): org.spongepowered.api.text.Text.Builder; + /** + * Removes the specified {@link Text} from this builder. + */ + // @ts-ignore + public remove(children: any): org.spongepowered.api.text.Text.Builder; + /** + * Removes all children from this builder. + */ + // @ts-ignore + public removeAll(): org.spongepowered.api.text.Text.Builder; + /** + * Removes all empty texts from the beginning and end of this + * builder. + */ + // @ts-ignore + public trim(): org.spongepowered.api.text.Text.Builder; + /** + * Builds an immutable instance of the current state of this text + * builder. + */ + // @ts-ignore + public abstract build(): org.spongepowered.api.text.Text; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public toText(): org.spongepowered.api.text.Text; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.Text.ts b/packages/sponge/src/typings/org.spongepowered.api.text.Text.ts new file mode 100644 index 00000000..7791fc61 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.Text.ts @@ -0,0 +1,311 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + // @ts-ignore + abstract class Text implements org.spongepowered.api.text.TextRepresentable, org.spongepowered.api.data.DataSerializable { + // @ts-ignore + public static EMPTY: org.spongepowered.api.text.Text; + // @ts-ignore + public static NEW_LINE: org.spongepowered.api.text.LiteralText; + // @ts-ignore + public static PLAIN_COMPARATOR: any; + /** + * Returns the format of this {@link Text}. + */ + // @ts-ignore + public getFormat(): org.spongepowered.api.text.format.TextFormat; + /** + * Returns the color of this {@link Text}. + */ + // @ts-ignore + public getColor(): org.spongepowered.api.text.format.TextColor; + /** + * Returns the style of this {@link Text}. This will return a compound + * {@link TextStyle} if multiple different styles have been set. + */ + // @ts-ignore + public getStyle(): org.spongepowered.api.text.format.TextStyle; + /** + * Returns the immutable list of children appended after the content of this + * {@link Text}. + */ + // @ts-ignore + public getChildren(): any; + /** + * Returns an immutable {@link Iterable} over this text and all of its + * children. This is recursive, the children of the children will be also + * included. + */ + // @ts-ignore + public withChildren(): any; + /** + * Returns the {@link ClickAction} executed on the client when this + * {@link Text} gets clicked. + */ + // @ts-ignore + public getClickAction(): any; + /** + * Returns the {@link HoverAction} executed on the client when this + * {@link Text} gets hovered. + */ + // @ts-ignore + public getHoverAction(): any; + /** + * Returns the {@link ShiftClickAction} executed on the client when this + * {@link Text} gets shift-clicked. + */ + // @ts-ignore + public getShiftClickAction(): any; + /** + * Returns whether this {@link Text} is empty. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns a new {@link Builder} with the content, formatting and actions of + * this text. This can be used to edit an otherwise immutable {@link Text} + * instance. + */ + // @ts-ignore + public abstract toBuilder(): org.spongepowered.api.text.Text.Builder; + /** + * Returns a plain text representation of this {@link Text} without any + * formatting. + */ + // @ts-ignore + public toPlain(): string; + /** + * Returns a plain text representation of this {@link Text} without any + * children. + */ + // @ts-ignore + public toPlainSingle(): string; + /** + * Concatenates the specified {@link Text} to this Text and returns the + * result. + */ + // @ts-ignore + public concat(other: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text; + /** + * Removes all empty texts from the beginning and end of this + * text. + */ + // @ts-ignore + public trim(): org.spongepowered.api.text.Text; + /** + * Replaces a pattern in this text with a {@link Text}, preserving + * formatting where possible. + *If {@code lossy} is true, this will replace the pattern if this finds + * it spanning multiple child {@link Text}s, resulting in a potential loss + * of formatting; if false, it will only replace the pattern where it is + * contained within one child {@link Text}, to preserve all formatting.
+ *This method produces a copy with the specified replacements. The + * original is not modified.
+ */ + // @ts-ignore + public replace(oldValue: any, newValue: org.spongepowered.api.text.Text, lossy: boolean): org.spongepowered.api.text.Text; + /** + * Replaces a pattern in this text with a {@link Text}, preserving all + * formatting. + *This method produces a copy with the specified replacements. The + * original is not modified.
+ */ + // @ts-ignore + public replace(oldValue: any, newValue: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text; + /** + * Replaces a string within this text with a {@link Text}, preserving + * formatting where possible. + *If {@code lossy} is true, this will replace the pattern if this finds + * it spanning multiple child {@link Text}s, resulting in a potential loss + * of formatting; if false, it will only replace the pattern where it is + * contained within one child {@link Text}, to preserve all formatting.
+ *This method produces a copy with the specified replacements. The + * original is not modified.
+ */ + // @ts-ignore + public replace(oldValue: string, newValue: org.spongepowered.api.text.Text, lossy: boolean): org.spongepowered.api.text.Text; + /** + * Replaces a string within this text with a {@link Text}, preserving all + * formatting. + *This method produces a copy with the specified replacements. The + * original is not modified.
+ */ + // @ts-ignore + public replace(oldValue: string, newValue: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text; + // @ts-ignore + public getContentVersion(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public compareTo(o: org.spongepowered.api.text.Text): number; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public toText(): org.spongepowered.api.text.Text; + /** + * Returns an empty, unformatted {@link Text} instance. + */ + // @ts-ignore + public static of(): org.spongepowered.api.text.Text; + /** + * Creates a {@link Text} with the specified plain text. The created text + * won't have any formatting or events configured. + */ + // @ts-ignore + public static of(content: string): org.spongepowered.api.text.LiteralText; + /** + * Creates a {@link Text} with the specified char as plain text. The created + * text won't have any formatting or events configured. + */ + // @ts-ignore + public static of(content: string): org.spongepowered.api.text.LiteralText; + /** + * Creates a new unformatted {@link TranslatableText} with the given + * {@link Translation} and arguments. + */ + // @ts-ignore + public static of(translation: org.spongepowered.api.text.translation.Translation, args: any): org.spongepowered.api.text.TranslatableText; + /** + * Creates a new unformatted {@link TranslatableText} from the given + * {@link Translatable}. + */ + // @ts-ignore + public static of(translatable: org.spongepowered.api.text.translation.Translatable, args: any): org.spongepowered.api.text.TranslatableText; + /** + * Creates a new unformatted {@link SelectorText} with the given selector. + */ + // @ts-ignore + public static of(selector: org.spongepowered.api.text.selector.Selector): org.spongepowered.api.text.SelectorText; + /** + * Creates a new unformatted {@link ScoreText} with the given score. + */ + // @ts-ignore + public static of(score: org.spongepowered.api.scoreboard.Score): org.spongepowered.api.text.ScoreText; + /** + * Builds a {@link Text} from a given array of objects. + *For instance, you can use this like
+ * Text.of(TextColors.DARK_AQUA, "Hi", TextColors.AQUA, "Bye")
+ *
This will create the correct {@link Text} instance if the input object + * is the input for one of the {@link Text} types or convert the object to a + * string otherwise.
+ *For instances of type {@link TextRepresentable} (e.g. {@link Text}, + * {@link Builder}, ...) the formatting of appended text has priority over + * the current formatting in the method, e.g. the following results in a + * green, then yellow and at the end green again {@link Text}:
+ *Text.of(TextColors.GREEN, "Hello ", Text.of(TextColors.YELLOW,
+ * "Spongie"), '!');
+ */
+ // @ts-ignore
+ public static of(objects: any): org.spongepowered.api.text.Text;
+ /**
+ * Creates a {@link Text.Builder} with empty text.
+ */
+ // @ts-ignore
+ public static builder(): org.spongepowered.api.text.Text.Builder;
+ /**
+ * Creates a new unformatted {@link LiteralText.Builder} with the specified
+ * content.
+ */
+ // @ts-ignore
+ public static builder(content: string): org.spongepowered.api.text.LiteralText.Builder;
+ /**
+ * Creates a new unformatted {@link LiteralText.Builder} with the specified
+ * content.
+ */
+ // @ts-ignore
+ public static builder(content: string): org.spongepowered.api.text.LiteralText.Builder;
+ /**
+ * Creates a new {@link LiteralText.Builder} with the formatting and actions
+ * of the specified {@link Text} and the given content.
+ */
+ // @ts-ignore
+ public static builder(text: org.spongepowered.api.text.Text, content: string): org.spongepowered.api.text.LiteralText.Builder;
+ /**
+ * Creates a new unformatted {@link TranslatableText.Builder} with the given
+ * {@link Translation} and arguments.
+ */
+ // @ts-ignore
+ public static builder(translation: org.spongepowered.api.text.translation.Translation, args: any): org.spongepowered.api.text.TranslatableText.Builder;
+ /**
+ * Creates a new unformatted {@link TranslatableText.Builder} from the given
+ * {@link Translatable}.
+ */
+ // @ts-ignore
+ public static builder(translatable: org.spongepowered.api.text.translation.Translatable, args: any): org.spongepowered.api.text.TranslatableText.Builder;
+ /**
+ * Creates a new {@link TranslatableText.Builder} with the formatting and
+ * actions of the specified {@link Text} and the given {@link Translation}
+ * and arguments.
+ */
+ // @ts-ignore
+ public static builder(text: org.spongepowered.api.text.Text, translation: org.spongepowered.api.text.translation.Translation, args: any): org.spongepowered.api.text.TranslatableText.Builder;
+ /**
+ * Creates a new {@link TranslatableText.Builder} with the formatting and
+ * actions of the specified {@link Text} and the given {@link Translatable}.
+ */
+ // @ts-ignore
+ public static builder(text: org.spongepowered.api.text.Text, translatable: org.spongepowered.api.text.translation.Translatable, args: any): org.spongepowered.api.text.TranslatableText.Builder;
+ /**
+ * Creates a new unformatted {@link SelectorText.Builder} with the given
+ * selector.
+ */
+ // @ts-ignore
+ public static builder(selector: org.spongepowered.api.text.selector.Selector): org.spongepowered.api.text.SelectorText.Builder;
+ /**
+ * Creates a new {@link SelectorText.Builder} with the formatting and
+ * actions of the specified {@link Text} and the given selector.
+ */
+ // @ts-ignore
+ public static builder(text: org.spongepowered.api.text.Text, selector: org.spongepowered.api.text.selector.Selector): org.spongepowered.api.text.SelectorText.Builder;
+ /**
+ * Creates a new unformatted {@link ScoreText.Builder} with the given score.
+ */
+ // @ts-ignore
+ public static builder(score: org.spongepowered.api.scoreboard.Score): org.spongepowered.api.text.ScoreText.Builder;
+ /**
+ * Creates a new {@link ScoreText.Builder} with the formatting and actions
+ * of the specified {@link Text} and the given score.
+ */
+ // @ts-ignore
+ public static builder(text: org.spongepowered.api.text.Text, score: org.spongepowered.api.scoreboard.Score): org.spongepowered.api.text.ScoreText.Builder;
+ /**
+ * Joins a sequence of text objects together.
+ */
+ // @ts-ignore
+ public static join(texts: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text;
+ /**
+ * Joins a sequence of text objects together.
+ */
+ // @ts-ignore
+ public static join(texts: any): org.spongepowered.api.text.Text;
+ /**
+ * Joins a sequence of text objects together.
+ */
+ // @ts-ignore
+ public static join(texts: any): org.spongepowered.api.text.Text;
+ /**
+ * Joins a sequence of text objects together along with a separator.
+ */
+ // @ts-ignore
+ public static joinWith(separator: org.spongepowered.api.text.Text, texts: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text;
+ /**
+ * Joins a sequence of text objects together along with a separator.
+ */
+ // @ts-ignore
+ public static joinWith(separator: org.spongepowered.api.text.Text, texts: any): org.spongepowered.api.text.Text;
+ /**
+ * Joins a sequence of text objects together along with a separator.
+ */
+ // @ts-ignore
+ public static joinWith(separator: org.spongepowered.api.text.Text, texts: any): org.spongepowered.api.text.Text;
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.TextElement.ts b/packages/sponge/src/typings/org.spongepowered.api.text.TextElement.ts
new file mode 100644
index 00000000..171fb97a
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.text.TextElement.ts
@@ -0,0 +1,16 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace text {
+ // @ts-ignore
+ interface TextElement {
+ /**
+ * Applies this element to the end of the specified builder.
+ */
+ // @ts-ignore
+ applyTo(builder: org.spongepowered.api.text.Text.Builder): void;
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.TextRepresentable.ts b/packages/sponge/src/typings/org.spongepowered.api.text.TextRepresentable.ts
new file mode 100644
index 00000000..88a66092
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.text.TextRepresentable.ts
@@ -0,0 +1,22 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace text {
+ // @ts-ignore
+ interface TextRepresentable extends org.spongepowered.api.text.TextElement {
+ /**
+ * Gets the textual representation of this instance for its usage in other
+ * {@link Text} objects. This may but does not need to include
+ * {@link HoverAction hover texts} or other {@link TextAction actions}. This
+ * method is basically the {@link Object#toString() toString()} equivalent
+ * for {@link Text}s.
+ */
+ // @ts-ignore
+ toText(): org.spongepowered.api.text.Text;
+ // @ts-ignore
+ applyTo(builder: org.spongepowered.api.text.Text.Builder): void;
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.TextTemplate.Arg.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.text.TextTemplate.Arg.Builder.ts
new file mode 100644
index 00000000..ff2b93af
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.text.TextTemplate.Arg.Builder.ts
@@ -0,0 +1,58 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace text {
+ namespace TextTemplate {
+ namespace Arg {
+ // @ts-ignore
+ class Builder {
+ /**
+ * Builds a new {@link Arg}. Note that it is not necessary to call
+ * this method when supplying an argument to a template. You may
+ * pass the builder to {@link TextTemplate#of(Object...)} directly.
+ */
+ // @ts-ignore
+ public build(): org.spongepowered.api.text.TextTemplate.Arg;
+ /**
+ * Sets whether the Arg should be optional (false by default).
+ */
+ // @ts-ignore
+ public optional(optional: boolean): org.spongepowered.api.text.TextTemplate.Arg.Builder;
+ /**
+ * Makes the Arg optional.
+ */
+ // @ts-ignore
+ public optional(): org.spongepowered.api.text.TextTemplate.Arg.Builder;
+ /**
+ * Sets the default value for the Argument. The argument must by
+ * optional in order for this value to be used.
+ */
+ // @ts-ignore
+ public defaultValue(defaultValue: org.spongepowered.api.text.Text): org.spongepowered.api.text.TextTemplate.Arg.Builder;
+ /**
+ * Sets the "base" format of the Arg. This acts as a default format
+ * when no formatting data is provided by the parameter.
+ */
+ // @ts-ignore
+ public format(format: org.spongepowered.api.text.format.TextFormat): org.spongepowered.api.text.TextTemplate.Arg.Builder;
+ /**
+ * Sets the "base" color of the Arg. This acts as a default color
+ * when no color data is provided by the parameter.
+ */
+ // @ts-ignore
+ public color(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.text.TextTemplate.Arg.Builder;
+ /**
+ * Sets the "base" style of the Arg. This acts as a default style
+ * when no style data is provided by the parameter.
+ */
+ // @ts-ignore
+ public style(style: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.TextTemplate.Arg.Builder;
+ // @ts-ignore
+ public toString(): string;
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.TextTemplate.Arg.ts b/packages/sponge/src/typings/org.spongepowered.api.text.TextTemplate.Arg.ts
new file mode 100644
index 00000000..a9f6c1a5
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.text.TextTemplate.Arg.ts
@@ -0,0 +1,55 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace text {
+ namespace TextTemplate {
+ // @ts-ignore
+ class Arg implements org.spongepowered.api.text.TextRepresentable {
+ /**
+ * Returns the name of this argument to be matched with incoming
+ * parameters.
+ */
+ // @ts-ignore
+ public getName(): string;
+ /**
+ * Returns true if this Arg is optional. If a parameter is missing for
+ * a non-optional Arg, a {@link TextTemplateArgumentException} will be
+ * thrown.
+ */
+ // @ts-ignore
+ public isOptional(): boolean;
+ /**
+ * Returns the default value to use if the Arg {@link #isOptional()}
+ * and no parameter is supplied.
+ */
+ // @ts-ignore
+ public getDefaultValue(): any;
+ /**
+ * Returns the base format to be applied to this Arg.
+ */
+ // @ts-ignore
+ public getFormat(): org.spongepowered.api.text.format.TextFormat;
+ /**
+ * Returns the beginning string of the Arg's container.
+ */
+ // @ts-ignore
+ public getOpenArgString(): string;
+ /**
+ * Returns the end string of the Arg's container.
+ */
+ // @ts-ignore
+ public getCloseArgString(): string;
+ // @ts-ignore
+ public toText(): org.spongepowered.api.text.Text;
+ // @ts-ignore
+ public toString(): string;
+ // @ts-ignore
+ public hashCode(): number;
+ // @ts-ignore
+ public equals(obj: any): boolean;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.TextTemplate.ts b/packages/sponge/src/typings/org.spongepowered.api.text.TextTemplate.ts
new file mode 100644
index 00000000..3117cc40
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.text.TextTemplate.ts
@@ -0,0 +1,112 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace text {
+ // @ts-ignore
+ class TextTemplate implements org.spongepowered.api.text.TextRepresentable {
+ // @ts-ignore
+ public static DEFAULT_OPEN_ARG: string;
+ // @ts-ignore
+ public static DEFAULT_CLOSE_ARG: string;
+ // @ts-ignore
+ public static EMPTY: org.spongepowered.api.text.TextTemplate;
+ /**
+ * Returns the elements contained in this TextTemplate.
+ */
+ // @ts-ignore
+ public getElements(): any[] /*java.util.List*/;
+ /**
+ * Returns the arguments contained within the TextTemplate.
+ */
+ // @ts-ignore
+ public getArguments(): MapThe provided elements may be of any type.
+ *In the case that an element is a {@link TextElement}, + * {@link TextElement#applyTo(Text.Builder)} will be used to append the + * element to the builder.
+ *In the case that an element is an {@link Arg} the argument will be + * replaced with the {@link TextElement} provided by the corresponding + * parameter supplied by {@link #apply(Map)}
+ *In the case that an element is any other type, the parameter value's + * {@link Object#toString()} method will be used to create a {@link Text} + * object.
+ */ + // @ts-ignore + public static of(openArg: string, closeArg: string, elements: any): org.spongepowered.api.text.TextTemplate; + /** + * Constructs a new TextTemplate for the given elements. The order of the + * elements is the order in which they will be appended to the result + * builder via {@link #apply(Map)}. + *The provided elements may be of any type.
+ *In the case that an element is a {@link TextElement}, + * {@link TextElement#applyTo(Text.Builder)} will be used to append the + * element to the builder.
+ *In the case that an element is an {@link Arg} the argument will be + * replaced with the {@link TextElement} provided by the corresponding + * parameter supplied by {@link #apply(Map)}
+ *In the case that an element is any other type, the parameter value's + * {@link Object#toString()} method will be used to create a {@link Text} + * object.
+ */ + // @ts-ignore + public static of(elements: any): org.spongepowered.api.text.TextTemplate; + /** + * Returns the empty representation of a TextTemplate. + */ + // @ts-ignore + public static of(): org.spongepowered.api.text.TextTemplate; + /** + * Constructs a new {@link Arg} to be supplied to {@link #of(Object...)}. + * This argument expects a {@link TextElement} parameter. + */ + // @ts-ignore + public static arg(name: string): org.spongepowered.api.text.TextTemplate.Arg.Builder; + // @ts-ignore + public toText(): org.spongepowered.api.text.Text; + // @ts-ignore + public iterator(): any; + // @ts-ignore + public toString(): string; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: any): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.TextTemplateArgumentException.ts b/packages/sponge/src/typings/org.spongepowered.api.text.TextTemplateArgumentException.ts new file mode 100644 index 00000000..746d3e75 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.TextTemplateArgumentException.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + // @ts-ignore + class TextTemplateArgumentException { + /** + * Creates exception with the specified message. + */ + constructor(msg: string) + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.TranslatableText.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.text.TranslatableText.Builder.ts new file mode 100644 index 00000000..76d75d11 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.TranslatableText.Builder.ts @@ -0,0 +1,77 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace TranslatableText { + // @ts-ignore + class Builder extends org.spongepowered.api.text.Text.Builder { + /** + * Returns the current translation of this builder. + */ + // @ts-ignore + public getTranslation(): org.spongepowered.api.text.translation.Translation; + /** + * Returns the current translation arguments of this builder. + */ + // @ts-ignore + public getArguments(): any; + /** + * Sets the translation of the text. + */ + // @ts-ignore + public translation(translation: org.spongepowered.api.text.translation.Translation, args: any): org.spongepowered.api.text.TranslatableText.Builder; + /** + * Sets the translation of the text. + */ + // @ts-ignore + public translation(translatable: org.spongepowered.api.text.translation.Translatable, args: any): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public build(): org.spongepowered.api.text.TranslatableText; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public format(format: org.spongepowered.api.text.format.TextFormat): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public color(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public style(styles: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public onClick(clickAction: org.spongepowered.api.text.action.ClickAction): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public onHover(hoverAction: org.spongepowered.api.text.action.HoverAction): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public onShiftClick(shiftClickAction: org.spongepowered.api.text.action.ShiftClickAction): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public append(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public append(children: any[] /*java.util.Collection*/): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public append(children: any): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public append(children: any): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public insert(pos: number, children: org.spongepowered.api.text.Text): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public insert(pos: number, children: any[] /*java.util.Collection*/): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public insert(pos: number, children: any): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public insert(pos: number, children: any): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public remove(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public remove(children: any[] /*java.util.Collection*/): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public remove(children: any): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public remove(children: any): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public removeAll(): org.spongepowered.api.text.TranslatableText.Builder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.TranslatableText.ts b/packages/sponge/src/typings/org.spongepowered.api.text.TranslatableText.ts new file mode 100644 index 00000000..e59824bd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.TranslatableText.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + // @ts-ignore + class TranslatableText extends org.spongepowered.api.text.Text { + /** + * Returns the translation of this {@link Text}. + */ + // @ts-ignore + public getTranslation(): org.spongepowered.api.text.translation.Translation; + /** + * Returns the list of {@link Translation} arguments used to format this + * {@link Text}. + */ + // @ts-ignore + public getArguments(): any; + // @ts-ignore + public toBuilder(): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.action.ClickAction.ChangePage.ts b/packages/sponge/src/typings/org.spongepowered.api.text.action.ClickAction.ChangePage.ts new file mode 100644 index 00000000..f9730690 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.action.ClickAction.ChangePage.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace ClickAction { + // @ts-ignore + class ChangePage extends org.spongepowered.api.text.action.ClickAction { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.action.ClickAction.ExecuteCallback.ts b/packages/sponge/src/typings/org.spongepowered.api.text.action.ClickAction.ExecuteCallback.ts new file mode 100644 index 00000000..69ff719b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.action.ClickAction.ExecuteCallback.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace ClickAction { + // @ts-ignore + class ExecuteCallback extends org.spongepowered.api.text.action.ClickAction { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.action.ClickAction.OpenUrl.ts b/packages/sponge/src/typings/org.spongepowered.api.text.action.ClickAction.OpenUrl.ts new file mode 100644 index 00000000..afd1db4c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.action.ClickAction.OpenUrl.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace ClickAction { + // @ts-ignore + class OpenUrl extends org.spongepowered.api.text.action.ClickAction { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.action.ClickAction.RunCommand.ts b/packages/sponge/src/typings/org.spongepowered.api.text.action.ClickAction.RunCommand.ts new file mode 100644 index 00000000..2cf5e3be --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.action.ClickAction.RunCommand.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace ClickAction { + // @ts-ignore + class RunCommand extends org.spongepowered.api.text.action.ClickAction { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.action.ClickAction.SuggestCommand.ts b/packages/sponge/src/typings/org.spongepowered.api.text.action.ClickAction.SuggestCommand.ts new file mode 100644 index 00000000..12aac48e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.action.ClickAction.SuggestCommand.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace ClickAction { + // @ts-ignore + class SuggestCommand extends org.spongepowered.api.text.action.ClickAction { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.action.ClickAction.ts b/packages/sponge/src/typings/org.spongepowered.api.text.action.ClickAction.ts new file mode 100644 index 00000000..0fdcb853 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.action.ClickAction.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + // @ts-ignore + abstract class ClickAction extends org.spongepowered.api.text.action.TextAction { + // @ts-ignore + public applyTo(builder: org.spongepowered.api.text.Text.Builder): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.action.HoverAction.ShowEntity.Ref.ts b/packages/sponge/src/typings/org.spongepowered.api.text.action.HoverAction.ShowEntity.Ref.ts new file mode 100644 index 00000000..8bd4dbac --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.action.HoverAction.ShowEntity.Ref.ts @@ -0,0 +1,54 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace HoverAction { + namespace ShowEntity { + // @ts-ignore + class Ref implements org.spongepowered.api.util.Identifiable { + /** + * Constructs a Ref to an entity. + */ + constructor(uuid: any, name: string, type: org.spongepowered.api.entity.EntityType) + /** + * Constructs a Ref to an entity. + */ + constructor(uuid: any, name: string) + /** + * Constructs a Ref, given an {@link Entity}. + */ + constructor(entity: org.spongepowered.api.entity.Entity, name: string) + /** + * Constructs a Ref directly. + */ + constructor(uuid: any, name: string, type: any) + /** + * Retrieves the UUID that this {@link Ref} refers to. + */ + // @ts-ignore + public getUniqueId(): any; + /** + * Retrieves the name that this {@link Ref} refers to. + */ + // @ts-ignore + public getName(): string; + /** + * Retrieves the type that this {@link Ref} refers to, if it exists. + */ + // @ts-ignore + public getType(): any; + // @ts-ignore + public equals(obj: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.action.HoverAction.ShowEntity.ts b/packages/sponge/src/typings/org.spongepowered.api.text.action.HoverAction.ShowEntity.ts new file mode 100644 index 00000000..b795c036 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.action.HoverAction.ShowEntity.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace HoverAction { + // @ts-ignore + class ShowEntity extends org.spongepowered.api.text.action.HoverAction { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.action.HoverAction.ShowItem.ts b/packages/sponge/src/typings/org.spongepowered.api.text.action.HoverAction.ShowItem.ts new file mode 100644 index 00000000..ba7e3f45 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.action.HoverAction.ShowItem.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace HoverAction { + // @ts-ignore + class ShowItem extends org.spongepowered.api.text.action.HoverAction { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.action.HoverAction.ShowText.ts b/packages/sponge/src/typings/org.spongepowered.api.text.action.HoverAction.ShowText.ts new file mode 100644 index 00000000..671a71a1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.action.HoverAction.ShowText.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace HoverAction { + // @ts-ignore + class ShowText extends org.spongepowered.api.text.action.HoverAction { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.action.HoverAction.ts b/packages/sponge/src/typings/org.spongepowered.api.text.action.HoverAction.ts new file mode 100644 index 00000000..ab13ddb6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.action.HoverAction.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + // @ts-ignore + abstract class HoverAction extends org.spongepowered.api.text.action.TextAction { + // @ts-ignore + public applyTo(builder: org.spongepowered.api.text.Text.Builder): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.action.ShiftClickAction.InsertText.ts b/packages/sponge/src/typings/org.spongepowered.api.text.action.ShiftClickAction.InsertText.ts new file mode 100644 index 00000000..b7e64648 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.action.ShiftClickAction.InsertText.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace ShiftClickAction { + // @ts-ignore + class InsertText extends org.spongepowered.api.text.action.ShiftClickAction { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.action.ShiftClickAction.ts b/packages/sponge/src/typings/org.spongepowered.api.text.action.ShiftClickAction.ts new file mode 100644 index 00000000..1daefd60 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.action.ShiftClickAction.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + // @ts-ignore + abstract class ShiftClickAction extends org.spongepowered.api.text.action.TextAction { + // @ts-ignore + public applyTo(builder: org.spongepowered.api.text.Text.Builder): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.action.TextAction.ts b/packages/sponge/src/typings/org.spongepowered.api.text.action.TextAction.ts new file mode 100644 index 00000000..9151d6d3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.action.TextAction.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + // @ts-ignore + abstract class TextAction implements org.spongepowered.api.text.TextElement { + /** + * Constructs a new {@link TextAction} with the given result. + */ + constructor(result: any) + // @ts-ignore + protected result: any; + /** + * Returns the result of this {@link TextAction}. + */ + // @ts-ignore + public getResult(): any; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.action.TextActions.ts b/packages/sponge/src/typings/org.spongepowered.api.text.action.TextActions.ts new file mode 100644 index 00000000..7c01dfc4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.action.TextActions.ts @@ -0,0 +1,86 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + // @ts-ignore + class TextActions { + /** + * Creates a new {@link ClickAction} that will ask the player to open an URL + * when it is clicked. + */ + // @ts-ignore + public static openUrl(url: any): org.spongepowered.api.text.action.ClickAction.OpenUrl; + /** + * Creates a new {@link ClickAction} that will type a command on the client + * when it is clicked. + */ + // @ts-ignore + public static runCommand(command: string): org.spongepowered.api.text.action.ClickAction.RunCommand; + /** + * Creates a new {@link ClickAction} that will change the page in a book + * when it is clicked. + */ + // @ts-ignore + public static changePage(page: number): org.spongepowered.api.text.action.ClickAction.ChangePage; + /** + * Creates a new {@link ClickAction} that will suggest the player a command + * when it is clicked. + */ + // @ts-ignore + public static suggestCommand(command: string): org.spongepowered.api.text.action.ClickAction.SuggestCommand; + /** + * Creates a new {@link ClickAction} that will execute the given runnable on + * the server when clicked. The callback will expire after some amount of + * time (not particularly instantly, but not like overnight really either). + */ + // @ts-ignore + public static executeCallback(callback: any): org.spongepowered.api.text.action.ClickAction.ExecuteCallback; + /** + * Creates a new {@link HoverAction} that will show a text on the client + * when it is hovered. + */ + // @ts-ignore + public static showText(text: org.spongepowered.api.text.Text): org.spongepowered.api.text.action.HoverAction.ShowText; + /** + * Creates a new {@link HoverAction} that will show information about an + * item when it is hovered. + */ + // @ts-ignore + public static showItem(item: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.text.action.HoverAction.ShowItem; + /** + * Creates a new {@link HoverAction} that will show information about an + * entity when it is hovered. + */ + // @ts-ignore + public static showEntity(entity: org.spongepowered.api.text.action.HoverAction.ShowEntity.Ref): org.spongepowered.api.text.action.HoverAction.ShowEntity; + /** + * Creates a new {@link HoverAction} that will show information about an + * entity when it is hovered. + */ + // @ts-ignore + public static showEntity(uuid: any, name: string, type: org.spongepowered.api.entity.EntityType): org.spongepowered.api.text.action.HoverAction.ShowEntity; + /** + * Creates a new {@link HoverAction} that will show information about an + * entity when it is hovered. + */ + // @ts-ignore + public static showEntity(uuid: any, name: string): org.spongepowered.api.text.action.HoverAction.ShowEntity; + /** + * Creates a new {@link HoverAction} that will show information about an + * entity when it is hovered. + */ + // @ts-ignore + public static showEntity(entity: org.spongepowered.api.entity.Entity, name: string): org.spongepowered.api.text.action.HoverAction.ShowEntity; + /** + * Creates a new {@link ShiftClickAction} that will insert text at the + * current cursor position in the chat when it is shift-clicked. + */ + // @ts-ignore + public static insertText(text: string): org.spongepowered.api.text.action.ShiftClickAction.InsertText; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.channel.AbstractMutableMessageChannel.ts b/packages/sponge/src/typings/org.spongepowered.api.text.channel.AbstractMutableMessageChannel.ts new file mode 100644 index 00000000..acc663ae --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.channel.AbstractMutableMessageChannel.ts @@ -0,0 +1,37 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + // @ts-ignore + abstract class AbstractMutableMessageChannel implements org.spongepowered.api.text.channel.MutableMessageChannel { + /** + * The default implementation uses a {@link WeakHashMap} implementation of {@link Set}. + */ + constructor() + /** + * Creates a new instance of {@link AbstractMutableMessageChannel} with the + * provided {@link Collection} as the underlying member list. + *The passed {@link Collection} directly affects the members of this + * channel.
+ *It is recommended to use a weak collection to avoid memory leaks. If + * you do not use a weak collection, please ensure that members are cleaned + * up properly.
+ */ + constructor(members: any[] /*java.util.Collection*/) + // @ts-ignore + protected members: any[] /*java.util.Collection*/; + // @ts-ignore + public addMember(member: org.spongepowered.api.text.channel.MessageReceiver): boolean; + // @ts-ignore + public removeMember(member: org.spongepowered.api.text.channel.MessageReceiver): boolean; + // @ts-ignore + public clearMembers(): void; + // @ts-ignore + public getMembers(): any[] /*java.util.Collection*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.channel.ChatTypeMessageReceiver.ts b/packages/sponge/src/typings/org.spongepowered.api.text.channel.ChatTypeMessageReceiver.ts new file mode 100644 index 00000000..8705c55e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.channel.ChatTypeMessageReceiver.ts @@ -0,0 +1,50 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + // @ts-ignore + interface ChatTypeMessageReceiver { + /** + * Sends a message with the specified {@link ChatType} to this receiver. + *If text formatting is not supported in the implementation + * it will be displayed as plain text.
+ */ + // @ts-ignore + sendMessage(type: org.spongepowered.api.text.chat.ChatType, message: org.spongepowered.api.text.Text): void; + /** + * Sends a message constructed from the {@link TextTemplate} with the + * specified {@link ChatType} to this receiver. + *If text formatting is not supported in the implementation + * it will be displayed as plain text.
+ */ + // @ts-ignore + sendMessage(type: org.spongepowered.api.text.chat.ChatType, template: org.spongepowered.api.text.TextTemplate): void; + /** + * Sends a message constructed from the {@link TextTemplate} and + * {@code parameters} with the specified {@link ChatType} to this receiver. + *If text formatting is not supported in the implementation + * it will be displayed as plain text.
+ */ + // @ts-ignore + sendMessage(type: org.spongepowered.api.text.chat.ChatType, template: org.spongepowered.api.text.TextTemplate, parameters: MapIf text formatting is not supported in the implementation + * it will be displayed as plain text.
+ */ + // @ts-ignore + sendMessages(type: org.spongepowered.api.text.chat.ChatType, messages: org.spongepowered.api.text.Text): void; + /** + * Sends the message(s) with the specified {@link ChatType} to this receiver. + *If text formatting is not supported in the implementation + * it will be displayed as plain text.
+ */ + // @ts-ignore + sendMessages(type: org.spongepowered.api.text.chat.ChatType, messages: any): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.channel.MessageChannel.ts b/packages/sponge/src/typings/org.spongepowered.api.text.channel.MessageChannel.ts new file mode 100644 index 00000000..8ce3dd06 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.channel.MessageChannel.ts @@ -0,0 +1,101 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + // @ts-ignore + interface MessageChannel { + // @ts-ignore + TO_NONE: org.spongepowered.api.text.channel.MessageChannel; + // @ts-ignore + TO_PLAYERS: org.spongepowered.api.text.channel.MessageChannel; + // @ts-ignore + TO_CONSOLE: org.spongepowered.api.text.channel.MessageChannel; + // @ts-ignore + TO_ALL: org.spongepowered.api.text.channel.MessageChannel; + /** + * Creates a message channel that targets all subjects with the given + * permission. + */ + // @ts-ignore + permission(permission: string): org.spongepowered.api.text.channel.MessageChannel; + /** + * Creates a message channel that targets all subjects contained within the + * given channels and applies the message transformations of each channel in + * order. + */ + // @ts-ignore + combined(channels: org.spongepowered.api.text.channel.MessageChannel): org.spongepowered.api.text.channel.MessageChannel; + /** + * Gets a message channel that targets all subjects contained within the + * given channels and applies the message transformations of each channel in + * order. + */ + // @ts-ignore + combined(channels: any[] /*java.util.Collection*/): org.spongepowered.api.text.channel.MessageChannel; + /** + * Creates a message channel that targets the given sources. + */ + // @ts-ignore + fixed(recipients: org.spongepowered.api.text.channel.MessageReceiver): org.spongepowered.api.text.channel.MessageChannel; + /** + * Creates a message channel that targets the given recipients. + */ + // @ts-ignore + fixed(recipients: any[] /*java.util.Collection*/): org.spongepowered.api.text.channel.MessageChannel; + /** + * Creates a message channel that targets the given world. + */ + // @ts-ignore + world(world: org.spongepowered.api.world.World): org.spongepowered.api.text.channel.MessageChannel; + /** + * Broadcast a message to this channel, transforming and sending it to + * the members. + */ + // @ts-ignore + send(original: org.spongepowered.api.text.Text): void; + /** + * Sends a message to this channel, transforming and sending it to + * the members. + *By default, the {@link ChatTypes#SYSTEM} type is used when sending + * messages to applicable recipients of this channel.
+ */ + // @ts-ignore + send(original: org.spongepowered.api.text.Text, type: org.spongepowered.api.text.chat.ChatType): void; + /** + * Send a message to this channel, transforming and sending it to the + * members. + */ + // @ts-ignore + send(sender: any, original: org.spongepowered.api.text.Text): void; + /** + * Send a message to this channel, transforming and sending it to the + * members. + */ + // @ts-ignore + send(sender: any, original: org.spongepowered.api.text.Text, type: org.spongepowered.api.text.chat.ChatType): void; + /** + * Handle transforming the input message appropriately. + */ + // @ts-ignore + transformMessage(sender: any, recipient: org.spongepowered.api.text.channel.MessageReceiver, original: org.spongepowered.api.text.Text, type: org.spongepowered.api.text.chat.ChatType): any; + /** + * Gets a collection of all members in this channel. + */ + // @ts-ignore + getMembers(): any[] /*java.util.Collection*/; + /** + * Gets or creates a mutable version of this channel. + *The default behaviour of this method is to copy the current member + * list into a {@link DelegateMutableMessageChannel}, which calls the + * {@link #transformMessage(Object, MessageReceiver, Text, ChatType)} method + * on this channel.
+ */ + // @ts-ignore + asMutable(): org.spongepowered.api.text.channel.MutableMessageChannel; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.channel.MessageReceiver.ts b/packages/sponge/src/typings/org.spongepowered.api.text.channel.MessageReceiver.ts new file mode 100644 index 00000000..2395422d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.channel.MessageReceiver.ts @@ -0,0 +1,62 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + // @ts-ignore + interface MessageReceiver { + /** + * Sends a message to this receiver. + *If text formatting is not supported in the implementation + * it will be displayed as plain text.
+ */ + // @ts-ignore + sendMessage(message: org.spongepowered.api.text.Text): void; + /** + * Sends a message constructed from the {@link TextTemplate} to + * this receiver. + *If text formatting is not supported in the implementation + * it will be displayed as plain text.
+ */ + // @ts-ignore + sendMessage(template: org.spongepowered.api.text.TextTemplate): void; + /** + * Sends a message constructed from the {@link TextTemplate} and + * {@code parameters} to this receiver. + *If text formatting is not supported in the implementation + * it will be displayed as plain text.
+ */ + // @ts-ignore + sendMessage(template: org.spongepowered.api.text.TextTemplate, parameters: MapIf text formatting is not supported in the implementation + * it will be displayed as plain text.
+ */ + // @ts-ignore + sendMessages(messages: org.spongepowered.api.text.Text): void; + /** + * Sends the message(s) to this receiver. + *If text formatting is not supported in the implementation + * it will be displayed as plain text.
+ */ + // @ts-ignore + sendMessages(messages: any): void; + /** + * Return the message channel that messages from this source should be sent + * to. + */ + // @ts-ignore + getMessageChannel(): org.spongepowered.api.text.channel.MessageChannel; + /** + * Sets the message channel that messages sent by this source should be sent + * to. + */ + // @ts-ignore + setMessageChannel(channel: org.spongepowered.api.text.channel.MessageChannel): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.channel.MutableMessageChannel.ts b/packages/sponge/src/typings/org.spongepowered.api.text.channel.MutableMessageChannel.ts new file mode 100644 index 00000000..086faf80 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.channel.MutableMessageChannel.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + // @ts-ignore + interface MutableMessageChannel extends org.spongepowered.api.text.channel.MessageChannel { + /** + * Adds a member to this channel. + */ + // @ts-ignore + addMember(member: org.spongepowered.api.text.channel.MessageReceiver): boolean; + /** + * Removes a member from this channel. + */ + // @ts-ignore + removeMember(member: org.spongepowered.api.text.channel.MessageReceiver): boolean; + /** + * Removes all of the members from this channel. + */ + // @ts-ignore + clearMembers(): void; + // @ts-ignore + asMutable(): org.spongepowered.api.text.channel.MutableMessageChannel; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.channel.impl.DelegateMessageChannel.ts b/packages/sponge/src/typings/org.spongepowered.api.text.channel.impl.DelegateMessageChannel.ts new file mode 100644 index 00000000..5b580e2c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.channel.impl.DelegateMessageChannel.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + namespace impl { + // @ts-ignore + class DelegateMessageChannel implements org.spongepowered.api.text.channel.MessageChannel { + /** + * Creates a delegate {@link MessageChannel} that delegates all functions + * to the delegated message channel. + */ + constructor(delegate: org.spongepowered.api.text.channel.MessageChannel) + // @ts-ignore + protected delegate: org.spongepowered.api.text.channel.MessageChannel; + // @ts-ignore + public transformMessage(sender: any, recipient: org.spongepowered.api.text.channel.MessageReceiver, original: org.spongepowered.api.text.Text, type: org.spongepowered.api.text.chat.ChatType): any; + // @ts-ignore + public getMembers(): any[] /*java.util.Collection*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.channel.impl.DelegateMutableMessageChannel.ts b/packages/sponge/src/typings/org.spongepowered.api.text.channel.impl.DelegateMutableMessageChannel.ts new file mode 100644 index 00000000..e5f52e12 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.channel.impl.DelegateMutableMessageChannel.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + namespace impl { + // @ts-ignore + class DelegateMutableMessageChannel extends org.spongepowered.api.text.channel.AbstractMutableMessageChannel { + /** + * Constructs a delegate mutable message channel. + *The members from the provided channel are copied into our + * own local collection.
+ */ + constructor(delegate: org.spongepowered.api.text.channel.MessageChannel) + // @ts-ignore + protected delegate: org.spongepowered.api.text.channel.MessageChannel; + // @ts-ignore + public transformMessage(sender: any, recipient: org.spongepowered.api.text.channel.MessageReceiver, original: org.spongepowered.api.text.Text, type: org.spongepowered.api.text.chat.ChatType): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.channel.impl.SimpleMutableMessageChannel.ts b/packages/sponge/src/typings/org.spongepowered.api.text.channel.impl.SimpleMutableMessageChannel.ts new file mode 100644 index 00000000..f4f264e2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.channel.impl.SimpleMutableMessageChannel.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + namespace impl { + // @ts-ignore + class SimpleMutableMessageChannel extends org.spongepowered.api.text.channel.AbstractMutableMessageChannel { + /** + * Creates a new mutable {@link MessageChannel}. + */ + constructor() + /** + * Creates a new mutable {@link MessageChannel} with the provided + * {@link Collection} of {@link MessageReceiver}s. + */ + constructor(members: any[] /*java.util.Collection*/) + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.channel.type.CombinedMessageChannel.ts b/packages/sponge/src/typings/org.spongepowered.api.text.channel.type.CombinedMessageChannel.ts new file mode 100644 index 00000000..2979226f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.channel.type.CombinedMessageChannel.ts @@ -0,0 +1,31 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + namespace type { + // @ts-ignore + class CombinedMessageChannel implements org.spongepowered.api.text.channel.MessageChannel { + /** + * Creates a new combined message channel of the provided + * {@link MessageChannel}s. + */ + constructor(channels: org.spongepowered.api.text.channel.MessageChannel) + /** + * Creates a new combined message channel of the provided {@link Collection} + * of {@link MessageChannel}s. + */ + constructor(channels: any[] /*java.util.Collection*/) + // @ts-ignore + protected channels: any[] /*java.util.Collection*/; + // @ts-ignore + public transformMessage(sender: any, recipient: org.spongepowered.api.text.channel.MessageReceiver, original: org.spongepowered.api.text.Text, type: org.spongepowered.api.text.chat.ChatType): any; + // @ts-ignore + public getMembers(): any[] /*java.util.Collection*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.channel.type.FixedMessageChannel.ts b/packages/sponge/src/typings/org.spongepowered.api.text.channel.type.FixedMessageChannel.ts new file mode 100644 index 00000000..7eed47ec --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.channel.type.FixedMessageChannel.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + namespace type { + // @ts-ignore + class FixedMessageChannel implements org.spongepowered.api.text.channel.MessageChannel { + /** + * Creates an unmodifiable {@link MessageChannel} with the + * provided {@link MessageReceiver}s. + */ + constructor(recipients: org.spongepowered.api.text.channel.MessageReceiver) + /** + * Creates an unmodifiable {@link MessageChannel} with the provided + * {@link Collection} of {@link MessageReceiver}s. + */ + constructor(provided: any[] /*java.util.Collection*/) + // @ts-ignore + protected recipients: any[] /*java.util.Set*/; + // @ts-ignore + public getMembers(): any[] /*java.util.Collection*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.channel.type.PermissionMessageChannel.ts b/packages/sponge/src/typings/org.spongepowered.api.text.channel.type.PermissionMessageChannel.ts new file mode 100644 index 00000000..b1fd9f04 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.channel.type.PermissionMessageChannel.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + namespace type { + // @ts-ignore + class PermissionMessageChannel implements org.spongepowered.api.text.channel.MessageChannel { + /** + * Creates a new {@link MessageChannel} with the provided {@link String permission} + * required to be considered a "target" {@link MessageReceiver}. + */ + constructor(permission: string) + // @ts-ignore + protected permission: string; + /** + * Gets the {@link String} permission required to be included in this + * {@link MessageChannel}. + */ + // @ts-ignore + public getPermission(): string; + // @ts-ignore + public getMembers(): any[] /*java.util.Collection*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.channel.type.WorldMessageChannel.ts b/packages/sponge/src/typings/org.spongepowered.api.text.channel.type.WorldMessageChannel.ts new file mode 100644 index 00000000..2121d9bd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.channel.type.WorldMessageChannel.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + namespace type { + // @ts-ignore + class WorldMessageChannel implements org.spongepowered.api.text.channel.MessageChannel { + /** + * Creates a new {@link MessageChannel channel} specific to the provided + * {@link World world}. + */ + constructor(world: org.spongepowered.api.world.World) + // @ts-ignore + public getMembers(): any[] /*java.util.Collection*/; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.chat.ChatType.ts b/packages/sponge/src/typings/org.spongepowered.api.text.chat.ChatType.ts new file mode 100644 index 00000000..cb836a6b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.chat.ChatType.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace chat { + // @ts-ignore + interface ChatType extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.chat.ChatTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.text.chat.ChatTypes.ts new file mode 100644 index 00000000..5e19c2ca --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.chat.ChatTypes.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace chat { + // @ts-ignore + class ChatTypes { + // @ts-ignore + public static ACTION_BAR: org.spongepowered.api.text.chat.ChatType; + // @ts-ignore + public static CHAT: org.spongepowered.api.text.chat.ChatType; + // @ts-ignore + public static SYSTEM: org.spongepowered.api.text.chat.ChatType; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.chat.ChatVisibilities.ts b/packages/sponge/src/typings/org.spongepowered.api.text.chat.ChatVisibilities.ts new file mode 100644 index 00000000..f7d0dcf5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.chat.ChatVisibilities.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace chat { + // @ts-ignore + class ChatVisibilities { + // @ts-ignore + public static FULL: org.spongepowered.api.text.chat.ChatVisibility; + // @ts-ignore + public static HIDDEN: org.spongepowered.api.text.chat.ChatVisibility; + // @ts-ignore + public static SYSTEM: org.spongepowered.api.text.chat.ChatVisibility; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.chat.ChatVisibility.ts b/packages/sponge/src/typings/org.spongepowered.api.text.chat.ChatVisibility.ts new file mode 100644 index 00000000..2afb2d96 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.chat.ChatVisibility.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace chat { + // @ts-ignore + interface ChatVisibility extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + /** + * Tests whether the given chat type will be visible to a player's chat. + */ + // @ts-ignore + isVisible(chatType: org.spongepowered.api.text.chat.ChatType): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.format.TextColor.ts b/packages/sponge/src/typings/org.spongepowered.api.text.format.TextColor.ts new file mode 100644 index 00000000..dc955d49 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.format.TextColor.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace format { + // @ts-ignore + interface TextColor extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.TextElement { + /** + * Returns the corresponding {@link Color} for this {@link TextColor}. + */ + // @ts-ignore + getColor(): org.spongepowered.api.util.Color; + // @ts-ignore + applyTo(builder: org.spongepowered.api.text.Text.Builder): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.format.TextColors.ts b/packages/sponge/src/typings/org.spongepowered.api.text.format.TextColors.ts new file mode 100644 index 00000000..cc439cb1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.format.TextColors.ts @@ -0,0 +1,49 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace format { + // @ts-ignore + class TextColors { + // @ts-ignore + public static NONE: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static AQUA: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static BLACK: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static BLUE: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static DARK_AQUA: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static DARK_BLUE: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static DARK_GRAY: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static DARK_GREEN: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static DARK_PURPLE: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static DARK_RED: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static GOLD: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static GRAY: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static GREEN: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static LIGHT_PURPLE: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static RED: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static RESET: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static WHITE: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static YELLOW: org.spongepowered.api.text.format.TextColor; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.format.TextFormat.ts b/packages/sponge/src/typings/org.spongepowered.api.text.format.TextFormat.ts new file mode 100644 index 00000000..4714c672 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.format.TextFormat.ts @@ -0,0 +1,79 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace format { + // @ts-ignore + class TextFormat implements org.spongepowered.api.text.TextElement { + // @ts-ignore + public static NONE: org.spongepowered.api.text.format.TextFormat; + /** + * Gets the {@link TextFormat} with the default style and color. + */ + // @ts-ignore + public static of(): org.spongepowered.api.text.format.TextFormat; + /** + * Constructs a new {@link TextFormat} with the specific style. + */ + // @ts-ignore + public static of(style: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.format.TextFormat; + /** + * Constructs a new {@link TextFormat} with the specific color. + */ + // @ts-ignore + public static of(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.text.format.TextFormat; + /** + * Constructs a new {@link TextFormat} with the specific color and style. + */ + // @ts-ignore + public static of(color: org.spongepowered.api.text.format.TextColor, style: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.format.TextFormat; + /** + * Returns the {@link TextColor} in this format. + */ + // @ts-ignore + public getColor(): org.spongepowered.api.text.format.TextColor; + /** + * Returns the {@link TextStyle} in this format. + */ + // @ts-ignore + public getStyle(): org.spongepowered.api.text.format.TextStyle; + /** + * Returns a new {@link TextFormat} with the given color. + */ + // @ts-ignore + public color(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.text.format.TextFormat; + /** + * Returns a new {@link TextFormat} with the given style. + */ + // @ts-ignore + public style(style: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.format.TextFormat; + /** + * Returns a new {@link TextFormat} that combines this and the given format. + * The given format takes higher priority than this one. Due to this the + * color will only fallback to this one if the given format's color is + * {@link TextColors#NONE}. If the given format's color is + * {@link TextColors#RESET} then {@link TextColors#NONE} will be used. + * Styles are combined using {@link TextStyle#and(TextStyle...)}. + */ + // @ts-ignore + public merge(format: org.spongepowered.api.text.format.TextFormat): org.spongepowered.api.text.format.TextFormat; + /** + * Returns whether this {@link TextFormat} has no color and format + * specified. + */ + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public applyTo(builder: org.spongepowered.api.text.Text.Builder): void; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.format.TextStyle.Base.ts b/packages/sponge/src/typings/org.spongepowered.api.text.format.TextStyle.Base.ts new file mode 100644 index 00000000..7df9c51f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.format.TextStyle.Base.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace format { + namespace TextStyle { + // @ts-ignore + abstract class Base extends org.spongepowered.api.text.format.TextStyle implements org.spongepowered.api.CatalogType { + /** + * Constructs a new {@link Base}. + */ + constructor(bold: any, italic: any, underline: any, strikethrough: any, obfuscated: any) + // @ts-ignore + public isComposite(): boolean; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.format.TextStyle.ts b/packages/sponge/src/typings/org.spongepowered.api.text.format.TextStyle.ts new file mode 100644 index 00000000..d8fec754 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.format.TextStyle.ts @@ -0,0 +1,118 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace format { + // @ts-ignore + class TextStyle implements org.spongepowered.api.text.TextElement { + /** + * Constructs a new {@link TextStyle}. + */ + constructor(bold: any, italic: any, underline: any, strikethrough: any, obfuscated: any) + /** + * Returns whether this {@link TextStyle} is a composite of multiple text + * styles. + */ + // @ts-ignore + public isComposite(): boolean; + /** + * Returns whether this {@link TextStyle} has no set properties. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns a new {@link TextStyle} with the bold property changed. + */ + // @ts-ignore + public bold(bold: any): org.spongepowered.api.text.format.TextStyle; + /** + * Returns a new {@link TextStyle} with the italic property changed. + */ + // @ts-ignore + public italic(italic: any): org.spongepowered.api.text.format.TextStyle; + /** + * Returns a new {@link TextStyle} with the underline property changed. + */ + // @ts-ignore + public underline(underline: any): org.spongepowered.api.text.format.TextStyle; + /** + * Returns a new {@link TextStyle} with the strikethrough property changed. + */ + // @ts-ignore + public strikethrough(strikethrough: any): org.spongepowered.api.text.format.TextStyle; + /** + * Returns a new {@link TextStyle} with the obfuscated property changed. + */ + // @ts-ignore + public obfuscated(obfuscated: any): org.spongepowered.api.text.format.TextStyle; + /** + * Checks for whether text where this style is applied is bolded. + */ + // @ts-ignore + public isBold(): any; + /** + * Checks for whether text where this style is applied is italicized. + */ + // @ts-ignore + public isItalic(): any; + /** + * Checks for whether text where this style is applied has an underline. + */ + // @ts-ignore + public hasUnderline(): any; + /** + * Checks for whether text where this style is applied has a strikethrough. + */ + // @ts-ignore + public hasStrikethrough(): any; + /** + * Checks for whether text where this style is obfuscated. + */ + // @ts-ignore + public isObfuscated(): any; + /** + * Returns whether the given {@link TextStyle} is contained in this + * {@link TextStyle}. + *For example, a {@link TextStyle} with {@code bold: true, italic:
+ * true}} would return {@code true} for contains(
+ * {@link TextStyles#BOLD})
and contains(
+ * {@link TextStyles#ITALIC}).
If the specified {@link TextStyle} is a composite of multiple styles + * it returns {@code true} if this style has at least all of the properties + * set in the specified style.
+ */ + // @ts-ignore + public contains(styles: org.spongepowered.api.text.format.TextStyle): boolean; + /** + * Negates this {@link TextStyle}. This is useful for undoing text styles + * that are inherited from parent messages. + */ + // @ts-ignore + public negate(): org.spongepowered.api.text.format.TextStyle; + /** + * Composes this {@link TextStyle} with the specified text styles. + */ + // @ts-ignore + public and(styles: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.format.TextStyle; + /** + * Composes this {@link TextStyle} with the passed in TextStyles, but + * negates them before composition. This is the same as negating all the + * passed in {@link TextStyle} and then using the {@link #and(TextStyle...)} + * method. + */ + // @ts-ignore + public andNot(styles: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.format.TextStyle; + // @ts-ignore + public applyTo(builder: org.spongepowered.api.text.Text.Builder): void; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.format.TextStyles.ts b/packages/sponge/src/typings/org.spongepowered.api.text.format.TextStyles.ts new file mode 100644 index 00000000..78b0dc57 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.format.TextStyles.ts @@ -0,0 +1,39 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace format { + // @ts-ignore + class TextStyles { + // @ts-ignore + public static NONE: org.spongepowered.api.text.format.TextStyle; + // @ts-ignore + public static OBFUSCATED: org.spongepowered.api.text.format.TextStyle.Base; + // @ts-ignore + public static BOLD: org.spongepowered.api.text.format.TextStyle.Base; + // @ts-ignore + public static STRIKETHROUGH: org.spongepowered.api.text.format.TextStyle.Base; + // @ts-ignore + public static UNDERLINE: org.spongepowered.api.text.format.TextStyle.Base; + // @ts-ignore + public static ITALIC: org.spongepowered.api.text.format.TextStyle.Base; + // @ts-ignore + public static RESET: org.spongepowered.api.text.format.TextStyle.Base; + /** + * Returns an empty {@link TextStyle}. + */ + // @ts-ignore + public static of(): org.spongepowered.api.text.format.TextStyle; + /** + * Constructs a composite text style from the specified styles. This will + * result in the same as calling {@link TextStyle#and(TextStyle...)} on all + * of the text styles. + */ + // @ts-ignore + public static of(styles: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.format.TextStyle; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.selector.Argument.Invertible.ts b/packages/sponge/src/typings/org.spongepowered.api.text.selector.Argument.Invertible.ts new file mode 100644 index 00000000..75451507 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.selector.Argument.Invertible.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + namespace Argument { + // @ts-ignore + interface Invertible extends org.spongepowered.api.text.selector.Argument { + /** + * Returns whether this {@link Argument} is inverted and will select all + * targets not matching the filter. + */ + // @ts-ignore + isInverted(): boolean; + /** + * Inverts this {@link Argument.Invertible} argument and returns the new + * {@link Argument}. The new argument will select all targets this + * argument didn't select. + */ + // @ts-ignore + invert(): org.spongepowered.api.text.selector.Argument.Invertible; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.selector.Argument.ts b/packages/sponge/src/typings/org.spongepowered.api.text.selector.Argument.ts new file mode 100644 index 00000000..84c15913 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.selector.Argument.ts @@ -0,0 +1,54 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + // @ts-ignore + interface Argument { + /** + * Creates a new {@link Argument} using the specified type and value. + *If the type is invertible, the {@link Argument} will not be + * inverted.
+ */ + // @ts-ignore + create(type: org.spongepowered.api.text.selector.ArgumentType, value: any): org.spongepowered.api.text.selector.Argument; + /** + * Creates a new {@link Argument.Invertible} using the specified type and + * value. The created {@link Argument} will be inverted based on the given + * parameter. + */ + // @ts-ignore + create(type: org.spongepowered.api.text.selector.ArgumentType.Invertible, value: any, inverted: boolean): org.spongepowered.api.text.selector.Argument.Invertible; + /** + * Creates a new set of {@link Argument}s using the specified type and + * value. + */ + // @ts-ignore + createSet(type: org.spongepowered.api.text.selector.ArgumentHolder, value: any): any[] /*java.util.Set*/; + /** + * Parses an {@link Argument} from the given argument string. + *In Vanilla, it should be formatted like {@code key=value}.
+ */ + // @ts-ignore + parse(argument: string): org.spongepowered.api.text.selector.Argument; + /** + * Returns the type of this {@link Argument}. + */ + // @ts-ignore + getType(): org.spongepowered.api.text.selector.ArgumentType; + /** + * Returns the value of this {@link Argument}. + */ + // @ts-ignore + getValue(): any; + /** + * Converts this {@link Argument} to a valid argument string. + */ + // @ts-ignore + toPlain(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.selector.ArgumentHolder.Limit.ts b/packages/sponge/src/typings/org.spongepowered.api.text.selector.ArgumentHolder.Limit.ts new file mode 100644 index 00000000..9f6a7bcc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.selector.ArgumentHolder.Limit.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + namespace ArgumentHolder { + // @ts-ignore + interface Limit extends org.spongepowered.api.text.selector.ArgumentHolder { + /** + * Returns the minimum object of this {@link ArgumentHolder.Limit}. + */ + // @ts-ignore + minimum(): org.spongepowered.api.text.selector.ArgumentHolder; + /** + * Returns the maximum object of this {@link ArgumentHolder.Limit}. + */ + // @ts-ignore + maximum(): org.spongepowered.api.text.selector.ArgumentHolder; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.selector.ArgumentHolder.Vector3.ts b/packages/sponge/src/typings/org.spongepowered.api.text.selector.ArgumentHolder.Vector3.ts new file mode 100644 index 00000000..268a2fb4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.selector.ArgumentHolder.Vector3.ts @@ -0,0 +1,33 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + namespace ArgumentHolder { + // @ts-ignore + interface Vector3 extends org.spongepowered.api.text.selector.ArgumentHolder { + /** + * Gets the {@link ArgumentType} for the x coordinate of this + * {@link ArgumentHolder.Vector3}. + */ + // @ts-ignore + x(): org.spongepowered.api.text.selector.ArgumentType; + /** + * Gets the {@link ArgumentType} for the y coordinate of this + * {@link ArgumentHolder.Vector3}. + */ + // @ts-ignore + y(): org.spongepowered.api.text.selector.ArgumentType; + /** + * Gets the {@link ArgumentType} for the z coordinate of this + * {@link ArgumentHolder.Vector3}. + */ + // @ts-ignore + z(): org.spongepowered.api.text.selector.ArgumentType; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.selector.ArgumentHolder.ts b/packages/sponge/src/typings/org.spongepowered.api.text.selector.ArgumentHolder.ts new file mode 100644 index 00000000..86928313 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.selector.ArgumentHolder.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + // @ts-ignore + interface ArgumentHolder { + /** + * Returns the size of the Set from {@link #getTypes()}. + */ + // @ts-ignore + getCount(): number; + /** + * Returns a set containing all the {@link ArgumentHolder}s this + * {@link ArgumentHolder} holds. + */ + // @ts-ignore + getTypes(): any[] /*java.util.Set*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.selector.ArgumentType.Invertible.ts b/packages/sponge/src/typings/org.spongepowered.api.text.selector.ArgumentType.Invertible.ts new file mode 100644 index 00000000..a50969f6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.selector.ArgumentType.Invertible.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + namespace ArgumentType { + // @ts-ignore + interface Invertible extends org.spongepowered.api.text.selector.ArgumentType { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.selector.ArgumentType.ts b/packages/sponge/src/typings/org.spongepowered.api.text.selector.ArgumentType.ts new file mode 100644 index 00000000..ba2e8f51 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.selector.ArgumentType.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + // @ts-ignore + interface ArgumentType extends org.spongepowered.api.text.selector.ArgumentHolder { + /** + * Returns the key associated with this {@link ArgumentType}. + */ + // @ts-ignore + getKey(): string; + /** + * Returns 1. + */ + // @ts-ignore + getCount(): number; + /** + * Returns a set containing this {@link ArgumentType}. + */ + // @ts-ignore + getTypes(): any[] /*java.util.Set*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.selector.ArgumentTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.text.selector.ArgumentTypes.ts new file mode 100644 index 00000000..e2446e26 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.selector.ArgumentTypes.ts @@ -0,0 +1,59 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + // @ts-ignore + class ArgumentTypes { + // @ts-ignore + public static POSITION: org.spongepowered.api.text.selector.ArgumentHolder.Vector3; + // @ts-ignore + public static RADIUS: org.spongepowered.api.text.selector.ArgumentHolder.Limit; + // @ts-ignore + public static GAME_MODE: org.spongepowered.api.text.selector.ArgumentType; + // @ts-ignore + public static COUNT: org.spongepowered.api.text.selector.ArgumentType; + // @ts-ignore + public static LEVEL: org.spongepowered.api.text.selector.ArgumentHolder.Limit; + // @ts-ignore + public static TEAM: org.spongepowered.api.text.selector.ArgumentType.Invertible; + // @ts-ignore + public static NAME: org.spongepowered.api.text.selector.ArgumentType.Invertible; + // @ts-ignore + public static DIMENSION: org.spongepowered.api.text.selector.ArgumentHolder.Vector3; + // @ts-ignore + public static ROTATION: org.spongepowered.api.text.selector.ArgumentHolder.Limit; + // @ts-ignore + public static ENTITY_TYPE: org.spongepowered.api.text.selector.ArgumentType.Invertible; + /** + * Creates a minimum and maximum {@link ArgumentType} filtering depending on + * the score of the specified objective. + */ + // @ts-ignore + public static score(name: string): org.spongepowered.api.text.selector.ArgumentHolder.Limit; + /** + * Gets the {@link ArgumentType} with the provided name. + */ + // @ts-ignore + public static valueOf(name: string): any; + /** + * Gets a {@link Collection} of all possible {@link ArgumentType}s. + */ + // @ts-ignore + public static values(): any[] /*java.util.Collection*/; + /** + * Creates a custom {@link ArgumentType} with the specified key. + */ + // @ts-ignore + public static create(key: string): org.spongepowered.api.text.selector.ArgumentType; + /** + * Creates a custom {@link ArgumentType} with the specified key and value. + */ + // @ts-ignore + public static create(key: string, type: any): org.spongepowered.api.text.selector.ArgumentType; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.selector.Selector.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.text.selector.Selector.Builder.ts new file mode 100644 index 00000000..e4330043 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.selector.Selector.Builder.ts @@ -0,0 +1,58 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + namespace Selector { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the type of this selector. + */ + // @ts-ignore + type(type: org.spongepowered.api.text.selector.SelectorType): org.spongepowered.api.text.selector.Selector.Builder; + /** + * Adds some arguments to this selector. + */ + // @ts-ignore + add(arguments: org.spongepowered.api.text.selector.Argument): org.spongepowered.api.text.selector.Selector.Builder; + /** + * Adds some arguments to this selector. + */ + // @ts-ignore + add(arguments: any): org.spongepowered.api.text.selector.Selector.Builder; + /** + * Adds a new {@link Argument} with the specified {@link ArgumentType} and + * value to this selector. + */ + // @ts-ignore + add(type: org.spongepowered.api.text.selector.ArgumentType, value: any): org.spongepowered.api.text.selector.Selector.Builder; + /** + * Removes the specified arguments, if they exist. + */ + // @ts-ignore + remove(arguments: org.spongepowered.api.text.selector.Argument): org.spongepowered.api.text.selector.Selector.Builder; + /** + * Removes the specified arguments, if they exist. + */ + // @ts-ignore + remove(arguments: any): org.spongepowered.api.text.selector.Selector.Builder; + /** + * Removes the arguments with the specified {@link ArgumentType}, if they + * exist. + */ + // @ts-ignore + remove(types: org.spongepowered.api.text.selector.ArgumentType): org.spongepowered.api.text.selector.Selector.Builder; + /** + * Builds an immutable instance of the current state of this selector + * builder. + */ + // @ts-ignore + build(): org.spongepowered.api.text.selector.Selector; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.selector.Selector.ts b/packages/sponge/src/typings/org.spongepowered.api.text.selector.Selector.ts new file mode 100644 index 00000000..b2082171 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.selector.Selector.ts @@ -0,0 +1,134 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + // @ts-ignore + interface Selector { + /** + * Creates a {@link Selector.Builder}. + */ + // @ts-ignore + builder(): org.spongepowered.api.text.selector.Selector.Builder; + /** + * Parses a {@link Selector} from the given selector string. + */ + // @ts-ignore + parse(selector: string): org.spongepowered.api.text.selector.Selector; + /** + * Fetch completions for a selector command argument. + */ + // @ts-ignore + complete(selector: string): any[] /*java.util.List*/; + /** + * Returns the type of this {@link Selector}. + */ + // @ts-ignore + getType(): org.spongepowered.api.text.selector.SelectorType; + /** + * Returns the argument value for the specified {@link ArgumentType} in this + * {@link Selector}. May be used for {@link ArgumentType.Invertible}, but + * the inverted state must be checked with + * {@link #isInverted(ArgumentType.Invertible)}. + */ + // @ts-ignore + get(type: org.spongepowered.api.text.selector.ArgumentType): any; + /** + * Returns the {@link Argument} for the specified {@link ArgumentType} in + * this {@link Selector}. + */ + // @ts-ignore + getArgument(type: org.spongepowered.api.text.selector.ArgumentType): any; + /** + * Returns the {@link Argument.Invertible} for the specified + * {@link ArgumentType.Invertible} in this {@link Selector}. + */ + // @ts-ignore + getArgument(type: org.spongepowered.api.text.selector.ArgumentType.Invertible): any; + /** + * Returns the arguments for this {@link Selector}. + */ + // @ts-ignore + getArguments(): any[] /*java.util.List*/; + /** + * Checks for the presence of {@code type} in this {@link Selector}. + */ + // @ts-ignore + has(type: org.spongepowered.api.text.selector.ArgumentType): boolean; + /** + * Checks for the inversion state of {@code type} in this {@link Selector}. + */ + // @ts-ignore + isInverted(type: org.spongepowered.api.text.selector.ArgumentType.Invertible): boolean; + /** + * Resolves this {@link Selector} to a list of entities around the origin. + *The returned set may be ordered based on distance from the origin + * (with the nearest first).
+ */ + // @ts-ignore + resolve(origin: org.spongepowered.api.command.CommandSource): any[] /*java.util.Set*/; + /** + * Resolves this {@link Selector} to a list of entities around (0|0|0) in + * the given {@link Extent Extent(s)}. + *The returned set may be ordered based on distance from the origin + * (with the nearest first).
+ */ + // @ts-ignore + resolve(extent: org.spongepowered.api.world.extent.Extent): any[] /*java.util.Set*/; + /** + * Resolves this {@link Selector} to a list of entities around (0|0|0) in + * the given {@link Extent Extent(s)}. + *The returned set may be ordered based on distance from the origin + * (with the nearest first).
+ */ + // @ts-ignore + resolve(extent: any[] /*java.util.Collection*/): any[] /*java.util.Set*/; + /** + * Resolves this {@link Selector} to a list of entities around the given + * {@link Location}. + *The returned set may be ordered based on distance from the origin + * (with the nearest first).
+ */ + // @ts-ignore + resolve(location: org.spongepowered.api.world.Location): any[] /*java.util.Set*/; + /** + * Resolves this {@link Selector} to a list of entities around the origin. + */ + // @ts-ignore + resolveForce(origin: org.spongepowered.api.command.CommandSource): any[] /*java.util.Set*/; + /** + * Resolves this {@link Selector} to a list of entities around (0|0|0) in + * the given {@link Extent Extent(s)}. + */ + // @ts-ignore + resolveForce(extent: org.spongepowered.api.world.extent.Extent): any[] /*java.util.Set*/; + /** + * Resolves this {@link Selector} to a list of entities around (0|0|0) in + * the given {@link Extent Extent(s)}. + */ + // @ts-ignore + resolveForce(extent: any[] /*java.util.Collection*/): any[] /*java.util.Set*/; + /** + * Resolves this {@link Selector} to a list of entities around the given + * {@link Location}. + */ + // @ts-ignore + resolveForce(location: org.spongepowered.api.world.Location): any[] /*java.util.Set*/; + /** + * Converts this {@link Selector} to a valid selector string. + */ + // @ts-ignore + toPlain(): string; + /** + * Returns a new {@link org.spongepowered.api.text.selector.Selector.Builder} + * with the content of this selector. This can be used to edit an immutable + * {@link Selector} instance. + */ + // @ts-ignore + toBuilder(): org.spongepowered.api.text.selector.Selector.Builder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.selector.SelectorFactory.ts b/packages/sponge/src/typings/org.spongepowered.api.text.selector.SelectorFactory.ts new file mode 100644 index 00000000..60ce4a2d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.selector.SelectorFactory.ts @@ -0,0 +1,78 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + // @ts-ignore + interface SelectorFactory { + /** + * Creates a {@link Selector.Builder}. + */ + // @ts-ignore + createBuilder(): org.spongepowered.api.text.selector.Selector.Builder; + /** + * Parses a {@link Selector} from the given selector string. + */ + // @ts-ignore + parseRawSelector(selector: string): org.spongepowered.api.text.selector.Selector; + /** + * Creates a minimum and maximum {@link ArgumentType} filtering depending on + * the score of the specified objective. + */ + // @ts-ignore + createScoreArgumentType(name: string): org.spongepowered.api.text.selector.ArgumentHolder.Limit; + /** + * Gets the {@link ArgumentType} with the provided name. + */ + // @ts-ignore + getArgumentType(name: string): any; + /** + * Gets a {@link Collection} of all possible {@link ArgumentType}s. + */ + // @ts-ignore + getArgumentTypes(): any[] /*java.util.Collection*/; + /** + * Creates a custom {@link ArgumentType} with the specified key. + */ + // @ts-ignore + createArgumentType(key: string): org.spongepowered.api.text.selector.ArgumentType; + /** + * Creates a custom {@link ArgumentType} with the specified key and value. + */ + // @ts-ignore + createArgumentType(key: string, type: any): org.spongepowered.api.text.selector.ArgumentType; + /** + * Creates a new {@link Argument} using the specified type and value. + */ + // @ts-ignore + createArgument(type: org.spongepowered.api.text.selector.ArgumentType, value: any): org.spongepowered.api.text.selector.Argument; + /** + * Creates a new {@link Argument.Invertible} using the specified type and + * value. The created {@link Argument} will be inverted based on the given + * parameter. + */ + // @ts-ignore + createArgument(type: org.spongepowered.api.text.selector.ArgumentType.Invertible, value: any, inverted: boolean): org.spongepowered.api.text.selector.Argument.Invertible; + /** + * Creates a new set of {@link Argument}s using the specified type and + * value. + */ + // @ts-ignore + createArguments(type: org.spongepowered.api.text.selector.ArgumentHolder, value: any): any[] /*java.util.Set*/; + /** + * Parses an {@link Argument} from the given argument string. + *In Vanilla, it should be formatted like {@code key=value}.
+ */ + // @ts-ignore + parseArgument(argument: string): org.spongepowered.api.text.selector.Argument; + /** + * Fetch completions for a selector command argument. + */ + // @ts-ignore + complete(selector: string): any[] /*java.util.List*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.selector.SelectorType.ts b/packages/sponge/src/typings/org.spongepowered.api.text.selector.SelectorType.ts new file mode 100644 index 00000000..be1ce905 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.selector.SelectorType.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + // @ts-ignore + interface SelectorType extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.selector.SelectorTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.text.selector.SelectorTypes.ts new file mode 100644 index 00000000..3dc18d4c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.selector.SelectorTypes.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + // @ts-ignore + class SelectorTypes { + // @ts-ignore + public static ALL_ENTITIES: org.spongepowered.api.text.selector.SelectorType; + // @ts-ignore + public static ALL_PLAYERS: org.spongepowered.api.text.selector.SelectorType; + // @ts-ignore + public static NEAREST_PLAYER: org.spongepowered.api.text.selector.SelectorType; + // @ts-ignore + public static RANDOM: org.spongepowered.api.text.selector.SelectorType; + // @ts-ignore + public static SOURCE: org.spongepowered.api.text.selector.SelectorType; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.serializer.BookViewDataBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.BookViewDataBuilder.ts new file mode 100644 index 00000000..de002dcd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.BookViewDataBuilder.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + class BookViewDataBuilder extends org.spongepowered.api.data.persistence.AbstractDataBuilder { + /** + * Constructs a new {@link BookViewDataBuilder} to build + * {@link BookView}s. + */ + constructor() + // @ts-ignore + protected buildContent(container: org.spongepowered.api.data.DataView): any; + // @ts-ignore + public deserialize(type: any, value: any /*ConfigurationNode*/): org.spongepowered.api.text.BookView; + // @ts-ignore + public serialize(type: any, bookView: org.spongepowered.api.text.BookView, value: any /*ConfigurationNode*/): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.serializer.FormattingCodeTextSerializer.ts b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.FormattingCodeTextSerializer.ts new file mode 100644 index 00000000..f79942e7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.FormattingCodeTextSerializer.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + interface FormattingCodeTextSerializer extends org.spongepowered.api.text.serializer.SafeTextSerializer { + /** + * Returns the formatting character for this + * {@link FormattingCodeTextSerializer}. + */ + // @ts-ignore + getCharacter(): string; + /** + * Removes the color codes for this {@link FormattingCodeTextSerializer} + * from a string. + */ + // @ts-ignore + stripCodes(text: string): string; + /** + * Replaces the formatting codes in the specified string with a different + * specified character, e.g. {@code &cHello &eSponge! -> $cHello $eSponge!} + */ + // @ts-ignore + replaceCodes(text: string, to: string): string; + /** + * Replaces the formatting codes in the specified string with a different + * character for the specified {@link FormattingCodeTextSerializer}, + * e.g. {@code &cHello &eSponge! -> $cHello $eSponge!} + */ + // @ts-ignore + replaceCodes(text: string, serializer: org.spongepowered.api.text.serializer.FormattingCodeTextSerializer): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.serializer.SafeTextSerializer.ts b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.SafeTextSerializer.ts new file mode 100644 index 00000000..46d7e4af --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.SafeTextSerializer.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + interface SafeTextSerializer extends org.spongepowered.api.text.serializer.TextSerializer { + // @ts-ignore + deserialize(input: string): org.spongepowered.api.text.Text; + // @ts-ignore + deserializeUnchecked(input: string): org.spongepowered.api.text.Text; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextConfigSerializer.ts b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextConfigSerializer.ts new file mode 100644 index 00000000..8c2445ef --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextConfigSerializer.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + class TextConfigSerializer extends org.spongepowered.api.data.persistence.AbstractDataBuilder { + /** + * Creates a new {@link TextConfigSerializer}. Normally this should not + * need to be created more than once. + */ + constructor() + // @ts-ignore + public deserialize(type: any, value: any /*ConfigurationNode*/): org.spongepowered.api.text.Text; + // @ts-ignore + public serialize(type: any, obj: org.spongepowered.api.text.Text, value: any /*ConfigurationNode*/): void; + // @ts-ignore + protected buildContent(container: org.spongepowered.api.data.DataView): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextFormatConfigSerializer.ts b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextFormatConfigSerializer.ts new file mode 100644 index 00000000..0d6ed6b8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextFormatConfigSerializer.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + class TextFormatConfigSerializer { + constructor() + // @ts-ignore + public deserialize(type: any, value: any /*ConfigurationNode*/): org.spongepowered.api.text.format.TextFormat; + // @ts-ignore + public serialize(type: any, obj: org.spongepowered.api.text.format.TextFormat, value: any /*ConfigurationNode*/): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextParseException.ts b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextParseException.ts new file mode 100644 index 00000000..a0c0e82b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextParseException.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + class TextParseException { + /** + * Constructs a new {@link TextParseException}. + */ + constructor() + /** + * Constructs a new {@link TextParseException} with the specified message. + */ + constructor(message: string) + /** + * Constructs a new {@link TextParseException} with the specified message + * and cause. + */ + constructor(message: string, cause: any) + /** + * Constructs a new {@link TextParseException} with the specified cause. + */ + constructor(cause: any) + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextSerializer.ts b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextSerializer.ts new file mode 100644 index 00000000..47f71dcd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextSerializer.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + interface TextSerializer extends org.spongepowered.api.CatalogType { + /** + * Returns a string representation of the provided {@link Text} in a format + * that will be accepted by this {@link TextSerializer}'s + * {@link #deserialize(String)} method. + */ + // @ts-ignore + serialize(text: org.spongepowered.api.text.Text): string; + /** + * Returns a string representation of only the provided {@link Text} + * (without any children) in a format that will be accepted by this + * {@link TextSerializer}'s {@link #deserialize(String)} method. + */ + // @ts-ignore + serializeSingle(text: org.spongepowered.api.text.Text): string; + /** + * Returns a {@link Text} instance from an appropriately formatted string. + */ + // @ts-ignore + deserialize(input: string): org.spongepowered.api.text.Text; + /** + * Tries to return a {@link Text} instance from the provided input string. + * However, if the input string is not of a valid format, the returned + * {@link Text} object will be of the raw input, rather than throwing an + * exception. + */ + // @ts-ignore + deserializeUnchecked(input: string): org.spongepowered.api.text.Text; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextSerializerFactory.ts b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextSerializerFactory.ts new file mode 100644 index 00000000..88cd182a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextSerializerFactory.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + interface TextSerializerFactory { + /** + * Returns a representation that accepts and outputs legacy color codes, + * using the provided legacy character. + */ + // @ts-ignore + getFormattingCodeTextSerializer(legacyChar: string): org.spongepowered.api.text.serializer.FormattingCodeTextSerializer; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextSerializers.ts b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextSerializers.ts new file mode 100644 index 00000000..aa160882 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextSerializers.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + class TextSerializers { + // @ts-ignore + public static PLAIN: org.spongepowered.api.text.serializer.SafeTextSerializer; + // @ts-ignore + public static LEGACY_FORMATTING_CODE: org.spongepowered.api.text.serializer.FormattingCodeTextSerializer; + // @ts-ignore + public static FORMATTING_CODE: org.spongepowered.api.text.serializer.FormattingCodeTextSerializer; + // @ts-ignore + public static JSON: org.spongepowered.api.text.serializer.TextSerializer; + /** + * Returns a representation that accepts and outputs formatting codes, using + * the provided formatting character. + */ + // @ts-ignore + public static formattingCode(formattingChar: string): org.spongepowered.api.text.serializer.FormattingCodeTextSerializer; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextTemplateConfigSerializer.ts b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextTemplateConfigSerializer.ts new file mode 100644 index 00000000..5b6edc8c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.serializer.TextTemplateConfigSerializer.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + class TextTemplateConfigSerializer { + constructor() + // @ts-ignore + public deserialize(type: any, value: any /*ConfigurationNode*/): org.spongepowered.api.text.TextTemplate; + // @ts-ignore + public serialize(type: any, obj: org.spongepowered.api.text.TextTemplate, value: any /*ConfigurationNode*/): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.title.Title.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.text.title.Title.Builder.ts new file mode 100644 index 00000000..fd57cc0a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.title.Title.Builder.ts @@ -0,0 +1,128 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace title { + namespace Title { + // @ts-ignore + class Builder { + /** + * Returns the current title of this builder. + */ + // @ts-ignore + public getTitle(): any; + /** + * Sets the title to send to the player. + */ + // @ts-ignore + public title(title: org.spongepowered.api.text.Text): org.spongepowered.api.text.title.Title.Builder; + /** + * Returns the current subtitle of this builder. + */ + // @ts-ignore + public getSubtitle(): any; + /** + * Sets the subtitle to send to the player. + */ + // @ts-ignore + public subtitle(subtitle: org.spongepowered.api.text.Text): org.spongepowered.api.text.title.Title.Builder; + /** + * Returns the current action bar text of this builder. + */ + // @ts-ignore + public getActionBar(): any; + /** + * Sets the action bar text to send to the player. + */ + // @ts-ignore + public actionBar(actionBar: org.spongepowered.api.text.Text): org.spongepowered.api.text.title.Title.Builder; + /** + * Returns the current fade in effect time of the title. + */ + // @ts-ignore + public getFadeIn(): any; + /** + * Sets the duration in ticks of the fade in effect of the title. Once + * this period of time is over the title will stay for the amount of + * time specified in {@link #stay(Integer)}. + *The default value for Vanilla is 20 (1 second).
+ */ + // @ts-ignore + public fadeIn(fadeIn: any): org.spongepowered.api.text.title.Title.Builder; + /** + * Returns the current stay effect time of the title. + */ + // @ts-ignore + public getStay(): any; + /** + * Sets the duration in ticks how long the title should stay on the + * screen. Once this period of time is over the title will fade out + * using the duration specified in {@link #fadeOut(Integer)}. + *The default value for Vanilla is 60 (3 seconds).
+ */ + // @ts-ignore + public stay(stay: any): org.spongepowered.api.text.title.Title.Builder; + /** + * Returns the current fade out effect time of the title. + */ + // @ts-ignore + public getFadeOut(): any; + /** + * Sets the duration in ticks of the fade out effect of the title. + *The default value for Vanilla is 20 (1 second).
+ */ + // @ts-ignore + public fadeOut(fadeOut: any): org.spongepowered.api.text.title.Title.Builder; + /** + * Returns whether this builder is currently configured to clear. + */ + // @ts-ignore + public isClear(): boolean; + /** + * Removes the currently displayed title from the player's screen. This + * will keep the currently used display times and will only remove the + * title. + */ + // @ts-ignore + public clear(): org.spongepowered.api.text.title.Title.Builder; + /** + * Sets whether the the currently displayed title should be removed from + * the player's screen and will keep the currently used display times. + */ + // @ts-ignore + public clear(clear: boolean): org.spongepowered.api.text.title.Title.Builder; + /** + * Returns whether this builder is currently configured to reset. + */ + // @ts-ignore + public isReset(): boolean; + /** + * Removes the currently displayed title from the player's screen and + * set the configuration back to the default values. + */ + // @ts-ignore + public reset(): org.spongepowered.api.text.title.Title.Builder; + /** + * Sets whether the currently displayed title should be removed from the + * player's screen and the configuration set back to the default values. + */ + // @ts-ignore + public reset(reset: boolean): org.spongepowered.api.text.title.Title.Builder; + /** + * Builds an immutable instance of the current configuration. + */ + // @ts-ignore + public build(): org.spongepowered.api.text.title.Title; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.title.Title.ts b/packages/sponge/src/typings/org.spongepowered.api.text.title.Title.ts new file mode 100644 index 00000000..ff3fa10a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.title.Title.ts @@ -0,0 +1,126 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace title { + // @ts-ignore + class Title { + // @ts-ignore + public static EMPTY: org.spongepowered.api.text.title.Title; + // @ts-ignore + public static CLEAR: org.spongepowered.api.text.title.Title; + // @ts-ignore + public static RESET: org.spongepowered.api.text.title.Title; + /** + * Returns the title of this title configuration. + */ + // @ts-ignore + public getTitle(): any; + /** + * Returns the subtitle of this title configuration. + */ + // @ts-ignore + public getSubtitle(): any; + /** + * Returns the action bar text of this title configuration. + */ + // @ts-ignore + public getActionBar(): any; + /** + * Returns the specified time to fade in the title on the client. Once this + * period of time is over, the title will stay for the amount of time from + * {@link #getStay}. + *The default value for Vanilla is 20 (1 second).
+ */ + // @ts-ignore + public getFadeIn(): any; + /** + * Returns the specified time how long the title should stay on the client. + * Once this period of time is over, the title will fade out using the + * duration specified from {@link #getFadeOut}. + *The default value for Vanilla is 60 (3 second).
+ */ + // @ts-ignore + public getStay(): any; + /** + * Returns the specified time to fade out the title on the client. + *The default value for Vanilla is 20 (1 second).
+ */ + // @ts-ignore + public getFadeOut(): any; + /** + * Returns whether this configuration is clearing the current title from the + * screen. + */ + // @ts-ignore + public isClear(): boolean; + /** + * Returns whether this configuration is clearing the current title from the + * screen and resetting the current configuration to the default values. + *This is recommended when you want to make sure to display a single + * title.
+ */ + // @ts-ignore + public isReset(): boolean; + /** + * Creates a new {@link Builder} using the configuration of this instance. + */ + // @ts-ignore + public toBuilder(): org.spongepowered.api.text.title.Title.Builder; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + /** + * Returns a {@link Title} that will simply do nothing when it is sent to + * the client. + */ + // @ts-ignore + public static of(): org.spongepowered.api.text.title.Title; + /** + * Returns a {@link Title} that will display the given main title on the + * player's screen. + */ + // @ts-ignore + public static of(title: org.spongepowered.api.text.Text): org.spongepowered.api.text.title.Title; + /** + * Returns a {@link Title} that will display the given main and subtitle on + * the player's screen. + */ + // @ts-ignore + public static of(title: org.spongepowered.api.text.Text, subtitle: org.spongepowered.api.text.Text): org.spongepowered.api.text.title.Title; + /** + * Returns a {@link Title} that will clear the currently displayed + * {@link Title} from the player's screen. + */ + // @ts-ignore + public static clear(): org.spongepowered.api.text.title.Title; + /** + * Returns a {@link Title} that will reset the current title back to default + * values on the client. + */ + // @ts-ignore + public static reset(): org.spongepowered.api.text.title.Title; + /** + * Creates a new {@link Title} configuration builder that will reset the + * currently displayed Title on the client before displaying the new + * configured one. + */ + // @ts-ignore + public static builder(): org.spongepowered.api.text.title.Title.Builder; + /** + * Creates a new empty {@link Title} configuration builder. Unlike + * {@link #builder} this won't reset the current Title on the client before + * displaying the current one. This has less use cases but should be used if + * just the previously sent Title should be updated. + */ + // @ts-ignore + public static update(): org.spongepowered.api.text.title.Title.Builder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.transform.DynamicPartitionedTextFormatter.ts b/packages/sponge/src/typings/org.spongepowered.api.text.transform.DynamicPartitionedTextFormatter.ts new file mode 100644 index 00000000..7d696e9d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.transform.DynamicPartitionedTextFormatter.ts @@ -0,0 +1,51 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace transform { + // @ts-ignore + class DynamicPartitionedTextFormatter implements org.spongepowered.api.text.transform.PartitionedTextFormatter { + /** + * Creates a new {@link DynamicPartitionedTextFormatter}. + */ + constructor(initialSize: number) + /** + * creates a new partitioned text formatter. + */ + constructor() + // @ts-ignore + protected partitions: any[] /*java.util.List*/; + // @ts-ignore + public getAll(): any; + // @ts-ignore + public get(i: number): org.spongepowered.api.text.transform.SimpleTextFormatter; + // @ts-ignore + public set(i: number, element: org.spongepowered.api.text.transform.SimpleTextFormatter): org.spongepowered.api.text.transform.SimpleTextFormatter; + // @ts-ignore + public size(): number; + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public contains(element: org.spongepowered.api.text.transform.SimpleTextFormatter): boolean; + // @ts-ignore + public clear(): void; + // @ts-ignore + public add(element: org.spongepowered.api.text.transform.SimpleTextFormatter): boolean; + // @ts-ignore + public add(elements: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public insert(i: number, element: org.spongepowered.api.text.transform.SimpleTextFormatter): void; + // @ts-ignore + public insert(i: number, elements: any[] /*java.util.Collection*/): void; + // @ts-ignore + public remove(element: org.spongepowered.api.text.transform.SimpleTextFormatter): boolean; + // @ts-ignore + public remove(elements: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public retain(elements: any[] /*java.util.Collection*/): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.transform.FixedPartitionedTextFormatter.ts b/packages/sponge/src/typings/org.spongepowered.api.text.transform.FixedPartitionedTextFormatter.ts new file mode 100644 index 00000000..f8f9167f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.transform.FixedPartitionedTextFormatter.ts @@ -0,0 +1,57 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace transform { + // @ts-ignore + class FixedPartitionedTextFormatter implements org.spongepowered.api.text.transform.PartitionedTextFormatter { + /** + * Creates a new {@link FixedPartitionedTextFormatter} with + * the provided size of partitions. + */ + constructor(size: number) + /** + * Creates a new {@link FixedPartitionedTextFormatter} with + * the provided size of partitions. + */ + constructor() + // @ts-ignore + public getAll(): any; + // @ts-ignore + public get(i: number): org.spongepowered.api.text.transform.SimpleTextFormatter; + // @ts-ignore + public set(i: number, element: org.spongepowered.api.text.transform.SimpleTextFormatter): org.spongepowered.api.text.transform.SimpleTextFormatter; + // @ts-ignore + public size(): number; + /** + * Returns true if each partition is empty. + */ + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public contains(element: org.spongepowered.api.text.transform.SimpleTextFormatter): boolean; + /** + * Clears each partition. Retains the actual partitions themselves. + */ + // @ts-ignore + public clear(): void; + // @ts-ignore + public add(element: org.spongepowered.api.text.transform.SimpleTextFormatter): boolean; + // @ts-ignore + public add(elements: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public insert(i: number, element: org.spongepowered.api.text.transform.SimpleTextFormatter): void; + // @ts-ignore + public insert(i: number, elements: any[] /*java.util.Collection*/): void; + // @ts-ignore + public remove(element: org.spongepowered.api.text.transform.SimpleTextFormatter): boolean; + // @ts-ignore + public remove(elements: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public retain(elements: any[] /*java.util.Collection*/): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.transform.PartitionedTextFormatter.ts b/packages/sponge/src/typings/org.spongepowered.api.text.transform.PartitionedTextFormatter.ts new file mode 100644 index 00000000..d3f07716 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.transform.PartitionedTextFormatter.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace transform { + // @ts-ignore + interface PartitionedTextFormatter extends org.spongepowered.api.text.transform.TextFormatter { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.transform.SimpleTextFormatter.ts b/packages/sponge/src/typings/org.spongepowered.api.text.transform.SimpleTextFormatter.ts new file mode 100644 index 00000000..820a7374 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.transform.SimpleTextFormatter.ts @@ -0,0 +1,52 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace transform { + // @ts-ignore + class SimpleTextFormatter implements org.spongepowered.api.text.transform.TextFormatter { + /** + * Constructs a new {@link SimpleTextFormatter} with the specified amount + * of initial {@link TextTemplateApplier}s. + */ + constructor(initialSize: number) + /** + * Constructs an empty text formatter. + */ + constructor() + // @ts-ignore + protected parts: any[] /*java.util.List*/; + // @ts-ignore + public getAll(): any; + // @ts-ignore + public get(i: number): org.spongepowered.api.text.transform.SimpleTextTemplateApplier; + // @ts-ignore + public set(i: number, element: org.spongepowered.api.text.transform.SimpleTextTemplateApplier): org.spongepowered.api.text.transform.SimpleTextTemplateApplier; + // @ts-ignore + public size(): number; + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public contains(element: org.spongepowered.api.text.transform.SimpleTextTemplateApplier): boolean; + // @ts-ignore + public clear(): void; + // @ts-ignore + public add(element: org.spongepowered.api.text.transform.SimpleTextTemplateApplier): boolean; + // @ts-ignore + public add(elements: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public insert(i: number, element: org.spongepowered.api.text.transform.SimpleTextTemplateApplier): void; + // @ts-ignore + public insert(i: number, elements: any[] /*java.util.Collection*/): void; + // @ts-ignore + public remove(element: org.spongepowered.api.text.transform.SimpleTextTemplateApplier): boolean; + // @ts-ignore + public remove(elements: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public retain(elements: any[] /*java.util.Collection*/): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.text.transform.SimpleTextTemplateApplier.ts b/packages/sponge/src/typings/org.spongepowered.api.text.transform.SimpleTextTemplateApplier.ts new file mode 100644 index 00000000..5c561949 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.text.transform.SimpleTextTemplateApplier.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace transform { + // @ts-ignore + class SimpleTextTemplateApplier implements org.spongepowered.api.text.transform.TextTemplateApplier { + /** + * Creates a new {@link SimpleTextTemplateApplier} with the provided + * {@link TextTemplate}. + */ + constructor(template: org.spongepowered.api.text.TextTemplate) + /** + * Creates a new {@link SimpleTextTemplateApplier} with an empty + * {@link TextTemplate}. + */ + constructor() + // @ts-ignore + protected params: Map+ * A positive direction has a value of 1, negative direction -1 and 0 for no + * direction. + *
+ */ + // @ts-ignore + public getSignum(): number; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.CatalogBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.util.CatalogBuilder.ts new file mode 100644 index 00000000..56943aef --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.CatalogBuilder.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + interface CatalogBuilder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the id of the {@link CatalogType} (without the namespace/plugin id). + */ + // @ts-ignore + id(id: string): org.spongepowered.api.util.ResettableBuilder; + /** + * Sets the name of the {@link CatalogType}. Defaults to {@link #id(String)}. + */ + // @ts-ignore + name(name: string): org.spongepowered.api.util.ResettableBuilder; + /** + * Sets the name of the {@link CatalogType} as a {@link Translation}. Defaults to {@link #id}. + */ + // @ts-ignore + name(translation: org.spongepowered.api.text.translation.Translation): org.spongepowered.api.util.ResettableBuilder; + /** + * Builds the {@link CatalogType} of type {@code C}. + *The last {@link PluginContainer} in the cause stack will be used to + * determine which plugin was used to construct the {@link CatalogType}.
+ */ + // @ts-ignore + build(): org.spongepowered.api.CatalogType; + // @ts-ignore + from(value: org.spongepowered.api.CatalogType): org.spongepowered.api.util.ResettableBuilder; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.Coerce.ts b/packages/sponge/src/typings/org.spongepowered.api.util.Coerce.ts new file mode 100644 index 00000000..f6c03fb5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.Coerce.ts @@ -0,0 +1,152 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class Coerce { + /** + * Coerce the supplied object to a string. + */ + // @ts-ignore + public static toString(obj: any): string; + /** + * Gets the given object as a {@link String}. + */ + // @ts-ignore + public static asString(obj: any): any; + /** + * Coerce the supplied object to a list. Accepts lists and all types of 1D + * arrays. Also (naively) supports lists in Strings in a format like + *{1,2,3,I,am,a,list}
+ */
+ // @ts-ignore
+ public static toList(obj: any): any[] /*java.util.List*/;
+ /**
+ * Gets the given object as a {@link List}.
+ */
+ // @ts-ignore
+ public static asList(obj: any): any;
+ /**
+ * Coerce the specified object to a list containing only objects of type
+ * specified by ofClass
. Also coerces list values where
+ * possible.
+ */
+ // @ts-ignore
+ public static toListOf(obj: any, ofClass: any): any[] /*java.util.List*/;
+ /**
+ * Coerce the supplied object to a boolean, matches strings such as "yes" as
+ * well as literal boolean values.
+ */
+ // @ts-ignore
+ public static toBoolean(obj: any): boolean;
+ /**
+ * Gets the given object as a {@link Boolean}.
+ */
+ // @ts-ignore
+ public static asBoolean(obj: any): any;
+ /**
+ * Coerce the supplied object to an integer, parse it if necessary.
+ */
+ // @ts-ignore
+ public static toInteger(obj: any): number;
+ /**
+ * Gets the given object as a {@link Integer}.
+ * Note that this does not translate numbers spelled out as strings.
+ */ + // @ts-ignore + public static asInteger(obj: any): any; + /** + * Coerce the supplied object to a double-precision floating-point number, + * parse it if necessary. + */ + // @ts-ignore + public static toDouble(obj: any): number; + /** + * Gets the given object as a {@link Double}. + *Note that this does not translate numbers spelled out as strings.
+ */ + // @ts-ignore + public static asDouble(obj: any): any; + /** + * Coerce the supplied object to a single-precision floating-point number, + * parse it if necessary. + */ + // @ts-ignore + public static toFloat(obj: any): number; + /** + * Gets the given object as a {@link Float}. + *Note that this does not translate numbers spelled out as strings.
+ */ + // @ts-ignore + public static asFloat(obj: any): any; + /** + * Coerce the supplied object to a short number, parse it if necessary. + */ + // @ts-ignore + public static toShort(obj: any): number; + /** + * Gets the given object as a {@link Short}. + *Note that this does not translate numbers spelled out as strings.
+ */ + // @ts-ignore + public static asShort(obj: any): any; + /** + * Coerce the supplied object to a byte number, parse it if necessary. + */ + // @ts-ignore + public static toByte(obj: any): number; + /** + * Gets the given object as a {@link Byte}. + *Note that this does not translate numbers spelled out as strings.
+ */ + // @ts-ignore + public static asByte(obj: any): any; + /** + * Coerce the supplied object to a long number, parse it if necessary. + */ + // @ts-ignore + public static toLong(obj: any): number; + /** + * Gets the given object as a {@link Long}. + *Note that this does not translate numbers spelled out as strings.
+ */ + // @ts-ignore + public static asLong(obj: any): any; + /** + * Coerce the supplied object to a character, parse it if necessary. + */ + // @ts-ignore + public static toChar(obj: any): string; + /** + * Gets the given object as a {@link Character}. + */ + // @ts-ignore + public static asChar(obj: any): any; + /** + * Coerce the specified object to an enum of the supplied type, returns the + * first enum constant in the enum if parsing fails. + */ + // @ts-ignore + public static toEnum(obj: any, enumClass: any): any; + /** + * Coerce the specified object to an enum of the supplied type, returns the + * specified default value if parsing fails. + */ + // @ts-ignore + public static toEnum(obj: any, enumClass: any, defaultValue: any): any; + /** + * Coerce the specified object to the specified pseudo-enum type using the + * supplied pseudo-enum dictionary class. + */ + // @ts-ignore + public static toPseudoEnum(obj: any, pseudoEnumClass: any, dictionaryClass: any, defaultValue: any): any; + /** + * Coerce the supplied object to a Vector2i. + */ + // @ts-ignore + public static toVector2i(obj: any): any /*Vector2i*/; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.CollectionUtils.ts b/packages/sponge/src/typings/org.spongepowered.api.util.CollectionUtils.ts new file mode 100644 index 00000000..32acad5c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.CollectionUtils.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class CollectionUtils { + /** + * Attempts to use native {@link Object#clone()} methods on available map + * types. If a map cannot be properly cloned, a new {@link HashMap} is + * returned. + */ + // @ts-ignore + public static copyMap(map: MapThis evaluates as false for directions that have a non-zero + * Y-component.
+ */ + // @ts-ignore + public isCardinal(): boolean; + /** + * Return true if the direction is of an ordinal direction (northwest, + * southwest, southeast, northeast). + */ + // @ts-ignore + public isOrdinal(): boolean; + /** + * Return true if the direction is of a secondary ordinal direction + * (north-northwest, north-northeast, south-southwest, etc.). + */ + // @ts-ignore + public isSecondaryOrdinal(): boolean; + /** + * Return whether Y component is non-zero. + */ + // @ts-ignore + public isUpright(): boolean; + /** + * Returns the direction as a unit offset vector. + * This vector is also suitable as a unit direction vector. + */ + // @ts-ignore + public asOffset(): any /*Vector3d*/; + /** + * Returns the direction as a block offset vector. + * For secondary ordinals the results are approximated to the nearest + * block. + *The difference between this offset and {@link #asOffset()} is that + * a block offset has unit components instead of unit length.
+ */ + // @ts-ignore + public asBlockOffset(): any /*Vector3i*/; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.DiscreteTransform2.ts b/packages/sponge/src/typings/org.spongepowered.api.util.DiscreteTransform2.ts new file mode 100644 index 00000000..8a59c365 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.DiscreteTransform2.ts @@ -0,0 +1,203 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class DiscreteTransform2 { + // @ts-ignore + public static IDENTITY: org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns the matrix representation of the transform. It is 3D to allow it + * to include a translation. + */ + // @ts-ignore + public getMatrix(): any /*Matrix3d*/; + /** + * Transforms a vector using this transforms. + */ + // @ts-ignore + public transform(vector: any /*Vector2i*/): any /*Vector2i*/; + /** + * Transform a vector represented as a pair of coordinates using this + * transform. + */ + // @ts-ignore + public transform(x: number, y: number): any /*Vector2i*/; + /** + * Transforms the x coordinate of a vector using this transform. Only + * creates a new object on the first call. + */ + // @ts-ignore + public transformX(vector: any /*Vector2i*/): number; + /** + * Transforms the x coordinate of a vector using this transform. Only + * creates a new object on the first call. + */ + // @ts-ignore + public transformX(x: number, y: number): number; + /** + * Transforms the y coordinate of a vector using this transform. Only + * creates a new object on the first call. + */ + // @ts-ignore + public transformY(vector: any /*Vector2i*/): number; + /** + * Transforms the y coordinate of a vector using this transform. Only + * creates a new object on the first call. + */ + // @ts-ignore + public transformY(x: number, y: number): number; + /** + * Inverts the transform and returns it as a new transform. + */ + // @ts-ignore + public invert(): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a transform that is the composition of this transform and the + * given transform. The result will apply this transformation after the + * given one. + */ + // @ts-ignore + public compose(that: org.spongepowered.api.util.DiscreteTransform2): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a transform that is the composition of the given transform with + * this transform. The result will apply the given transformation after + * this one. + */ + // @ts-ignore + public andThen(that: org.spongepowered.api.util.DiscreteTransform2): org.spongepowered.api.util.DiscreteTransform2; + /** + * Adds a translation to this transform and returns it as a new transform. + */ + // @ts-ignore + public withTranslation(vector: any /*Vector2i*/): org.spongepowered.api.util.DiscreteTransform2; + /** + * Adds a translation to this transform and returns it as a new transform. + */ + // @ts-ignore + public withTranslation(x: number, y: number): org.spongepowered.api.util.DiscreteTransform2; + /** + * Adds a scale factor to this transform and returns it as a new transform. + * This factor must be non-zero. + */ + // @ts-ignore + public withScale(a: number): org.spongepowered.api.util.DiscreteTransform2; + /** + * Adds a scale factor for each axis to this transform and returns it as a + * new transform. The factors must be non-zero. + */ + // @ts-ignore + public withScale(vector: any /*Vector2i*/): org.spongepowered.api.util.DiscreteTransform2; + /** + * Adds a scale factor for each axis to this transform and returns it as a + * new transform. The factors must be non-zero. + */ + // @ts-ignore + public withScale(x: number, y: number): org.spongepowered.api.util.DiscreteTransform2; + /** + * Adds a rotation to this transform, in the xy plane, around the origin and + * returns it as a new transform. The rotation is given is quarter turns. + * The actual rotation is {@code quarterTurns * 90}. The rotation is around + * the block center, not the corner. + */ + // @ts-ignore + public withRotation(quarterTurns: number): org.spongepowered.api.util.DiscreteTransform2; + /** + * Adds a a rotation to this transform, in the xy plane, around a given + * point, and returns it as a new transform. The rotation is given is + * quarter turns. The actual rotation is {@code quarterTurns * 90}. The tile + * corner flag changes the point to be the tile upper corner instead of the + * center. + */ + // @ts-ignore + public withRotation(quarterTurns: number, point: any /*Vector2i*/, tileCorner: boolean): org.spongepowered.api.util.DiscreteTransform2; + /** + * Adds a a rotation to this transform, in the xy plane, around a given + * point, and returns it as a new transform. The rotation is given is half + * turns. The actual rotation is {@code halfTurns * 180}. The tile corner + * flags change the point to be the tile corner or edge instead of the + * center. When both flags are false, the center is used. When only one is + * true the edge on the opposite axis to the flag is used. When both are + * true the upper corner is used. + */ + // @ts-ignore + public withRotation(halfTurns: number, point: any /*Vector2i*/, tileCornerX: boolean, tileCornerY: boolean): org.spongepowered.api.util.DiscreteTransform2; + /** + * Adds another transformation to this transformation and returns int as a + * new transform. + */ + // @ts-ignore + public withTransformation(transform: org.spongepowered.api.util.DiscreteTransform2): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a new transform from the given transformation matrix, if the + * resulting transform would be discrete. + */ + // @ts-ignore + public static of(matrix: any /*Matrix3d*/): any; + /** + * Returns a new transform representing a translation. + */ + // @ts-ignore + public static fromTranslation(vector: any /*Vector2i*/): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a new transform representing a translation. + */ + // @ts-ignore + public static fromTranslation(x: number, y: number): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a new transform representing a scaling. + * The scale factor must be non-zero. + */ + // @ts-ignore + public static fromScale(a: number): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a new transform representing a scaling on each axis. The scale + * factors must be non-zero. + */ + // @ts-ignore + public static fromScale(vector: any /*Vector2i*/): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a new transform representing a scaling on each axis. The scale + * factors must be non-zero. + */ + // @ts-ignore + public static fromScale(x: number, y: number): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a new transform representing a rotation in the xy plane around + * the origin. The rotation is given is quarter turns. The actual rotation + * is {@code quarterTurns * 90}. The rotation is around the block center, + * not the corner. + */ + // @ts-ignore + public static fromRotation(quarterTurns: number): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a new transform representing a rotation in the xy plane, around a + * given point. The rotation is given is quarter turns. The actual rotation + * is {@code quarterTurns * 90}. The tile corner flag change the point to be + * the tile corner instead of the center. + */ + // @ts-ignore + public static fromRotation(quarterTurns: number, point: any /*Vector2i*/, tileCorner: boolean): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a new transform representing a rotation in the xy plane, around a + * given point. The rotation is given is half turns. The actual rotation is + * {@code halfTurns * 180}. The tile corner flags change the point to be the + * tile corner or edge instead of the center. When both flags are false, the + * center is used. When only one is true the edge on the opposite axis to + * the flag is used. When both are true the upper corner is used. + */ + // @ts-ignore + public static fromRotation(halfTurns: number, point: any /*Vector2i*/, tileCornerX: boolean, tileCornerY: boolean): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a new transform representing a centered rotation of an area of + * tiles. The rotation is given is quarter turns. The actual rotation is + * {@code quarterTurns * 90}. Areas with differing parities on the axes can + * only be rotated by multiples of 180 degrees. + */ + // @ts-ignore + public static rotationAroundCenter(quarterTurns: number, size: any /*Vector2i*/): org.spongepowered.api.util.DiscreteTransform2; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.DiscreteTransform3.ts b/packages/sponge/src/typings/org.spongepowered.api.util.DiscreteTransform3.ts new file mode 100644 index 00000000..c1840e4c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.DiscreteTransform3.ts @@ -0,0 +1,228 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class DiscreteTransform3 { + // @ts-ignore + public static IDENTITY: org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns the matrix representation of the transform. + * It is 4D to allow it to include a translation. + */ + // @ts-ignore + public getMatrix(): any /*Matrix4d*/; + /** + * Transforms a vector using this transforms. + */ + // @ts-ignore + public transform(vector: any /*Vector3i*/): any /*Vector3i*/; + /** + * Transform a vector represented as a pair of + * coordinates using this transform. + */ + // @ts-ignore + public transform(x: number, y: number, z: number): any /*Vector3i*/; + /** + * Transforms the x coordinate of a vector + * using this transform. Only creates a new + * object on the first call. + */ + // @ts-ignore + public transformX(vector: any /*Vector3i*/): number; + /** + * Transforms the x coordinate of a vector + * using this transform. Only creates a new + * object on the first call. + */ + // @ts-ignore + public transformX(x: number, y: number, z: number): number; + /** + * Transforms the y coordinate of a vector + * using this transform. Only creates a new + * object on the first call. + */ + // @ts-ignore + public transformY(vector: any /*Vector3i*/): number; + /** + * Transforms the y coordinate of a vector + * using this transform. Only creates a new + * object on the first call. + */ + // @ts-ignore + public transformY(x: number, y: number, z: number): number; + /** + * Transforms the z coordinate of a vector + * using this transform. Only creates a new + * object on the first call. + */ + // @ts-ignore + public transformZ(vector: any /*Vector3i*/): number; + /** + * Transforms the z coordinate of a vector + * using this transform. Only creates a new + * object on the first call. + */ + // @ts-ignore + public transformZ(x: number, y: number, z: number): number; + /** + * Inverts the transform and returns it as a new transform. + */ + // @ts-ignore + public invert(): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a transform that is the composition of this transform and the + * given transform. The result will apply this transformation after the + * given one. + */ + // @ts-ignore + public compose(that: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a transform that is the composition of the given transform with + * this transform. The result will apply the given transformation after this + * one. + */ + // @ts-ignore + public andThen(that: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.util.DiscreteTransform3; + /** + * Adds a translation to this transform and returns + * it as a new transform. + */ + // @ts-ignore + public withTranslation(vector: any /*Vector3i*/): org.spongepowered.api.util.DiscreteTransform3; + /** + * Adds a translation to this transform and returns + * it as a new transform. + */ + // @ts-ignore + public withTranslation(x: number, y: number, z: number): org.spongepowered.api.util.DiscreteTransform3; + /** + * Adds a scale factor to this transform and returns + * it as a new transform. This factor must be non-zero. + */ + // @ts-ignore + public withScale(a: number): org.spongepowered.api.util.DiscreteTransform3; + /** + * Adds a scale factor for each axis to this transform + * and returns it as a new transform. The factors must + * be non-zero. + */ + // @ts-ignore + public withScale(vector: any /*Vector3i*/): org.spongepowered.api.util.DiscreteTransform3; + /** + * Adds a scale factor for each axis to this transform + * and returns it as a new transform. The factors must + * be non-zero. + */ + // @ts-ignore + public withScale(x: number, y: number, z: number): org.spongepowered.api.util.DiscreteTransform3; + /** + * Adds a rotation to this transform, around an axis, + * around the origin and returns it as a new transform. + * The rotation is given is quarter turns. + * The actual rotation is {@code quarterTurns * 90}. + * The rotation is around the block center, not the corner. + */ + // @ts-ignore + public withRotation(quarterTurns: number, axis: org.spongepowered.api.util.Axis): org.spongepowered.api.util.DiscreteTransform3; + /** + * Adds a a rotation to this transform, around an axis, + * around a given point, and returns it as a new transform. + * The rotation is given is quarter turns. The actual rotation + * is {@code quarterTurns * 90}. The block corner flag changes + * the point to be the block upper corner instead of the center. + */ + // @ts-ignore + public withRotation(quarterTurns: number, axis: org.spongepowered.api.util.Axis, point: any /*Vector3i*/, blockCorner: boolean): org.spongepowered.api.util.DiscreteTransform3; + /** + * Adds a a rotation to this transform, around an axis, + * around a given point. The rotation is given is half turns. + * The actual rotation is {@code halfTurns * 180}. The block corner + * flags change the point to be the block corner or edge instead + * of the center. When all flags are false, the center is used. + * When only one is true the face traversed by the axis of flag is used. + * When two are true the edge in the direction of the remaining flag + * is used. When all are true the upper corner is used. + */ + // @ts-ignore + public withRotation(halfTurns: number, axis: org.spongepowered.api.util.Axis, point: any /*Vector3i*/, blockCornerX: boolean, blockCornerY: boolean, blockCornerZ: boolean): org.spongepowered.api.util.DiscreteTransform3; + /** + * Adds another transformation to this transformation and + * returns int as a new transform. + */ + // @ts-ignore + public withTransformation(transform: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a new transform from the given transformation matrix, if the + * resulting transform would be discrete. + */ + // @ts-ignore + public static of(matrix: any /*Matrix4d*/): any; + /** + * Returns a new transform representing a translation. + */ + // @ts-ignore + public static fromTranslation(vector: any /*Vector3i*/): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a new transform representing a translation. + */ + // @ts-ignore + public static fromTranslation(x: number, y: number, z: number): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a new transform representing a scaling. + * The scale factor must be non-zero. + */ + // @ts-ignore + public static fromScale(a: number): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a new transform representing a scaling on each axis. + * The scale factors must be non-zero. + */ + // @ts-ignore + public static fromScale(vector: any /*Vector3i*/): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a new transform representing a scaling on each axis. + * The scale factors must be non-zero. + */ + // @ts-ignore + public static fromScale(x: number, y: number, z: number): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a new transform representing a rotation around an + * axis around the origin. The rotation is given is quarter turns. + * The actual rotation is {@code quarterTurns * 90}. + * The rotation is around the block center, not the corner. + */ + // @ts-ignore + public static fromRotation(quarterTurns: number, axis: org.spongepowered.api.util.Axis): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a new transform representing a rotation around an axis, + * around a given point. The rotation is given is quarter turns. + * The actual rotation is {@code quarterTurns * 90}. The block corner + * flag change the point to be the block corner instead of the center. + */ + // @ts-ignore + public static fromRotation(quarterTurns: number, axis: org.spongepowered.api.util.Axis, point: any /*Vector3i*/, blockCorner: boolean): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a new transform representing a rotation around an axis, + * around a given point. The rotation is given in half turns. + * The actual rotation is {@code halfTurns * 180}. When all flags are + * false, the center is used. When only one is true the face traversed + * by the axis of flag is used. When two are true the edge in the + * direction of the remaining flag is used. When all are true the + * upper corner is used. + */ + // @ts-ignore + public static fromRotation(halfTurns: number, axis: org.spongepowered.api.util.Axis, point: any /*Vector3i*/, blockCornerX: boolean, blockCornerY: boolean, blockCornerZ: boolean): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a new transform representing a centered rotation of an volume + * of blocks. The rotation is given is quarter turns. The actual rotation + * is {@code quarterTurns * 90}. Volumes with differing parities on the + * axes can only be rotated by multiples of 180 degrees. + */ + // @ts-ignore + public static rotationAroundCenter(quarterTurns: number, axis: org.spongepowered.api.util.Axis, size: any /*Vector3i*/): org.spongepowered.api.util.DiscreteTransform3; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.Functional.ts b/packages/sponge/src/typings/org.spongepowered.api.util.Functional.ts new file mode 100644 index 00000000..703a31e1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.Functional.ts @@ -0,0 +1,68 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class Functional { + /** + * Perform an AND using an array of predicates. + */ + // @ts-ignore + public static predicateAnd(predicates: any): any; + /** + * Perform an AND using an iterable of predicates. + */ + // @ts-ignore + public static predicateAnd(predicates: any): any; + /** + * Perform an AND using an array of bi-predicates. + */ + // @ts-ignore + public static biPredicateAnd(predicates: any): any; + /** + * Perform an AND using an iterable of bi-predicates. + */ + // @ts-ignore + public static biPredicateAnd(predicates: any): any; + /** + * Creates a new {@link Predicate} defining whether an {@link Object} + * is contained within the provided {@link Collection}. + */ + // @ts-ignore + public static predicateIn(collection: any[] /*java.util.Collection*/): any; + /** + * Creates a {@link com.google.common.base.Predicate} based on the provided {@link Predicate}, used + * to transform between Java 8 specific code to those from the guava + * library. + */ + // @ts-ignore + public static java8ToGuava(predicate: any): any; + /** + * Creates a new {@link Predicate} based on the provided {@link com.google.common.base.Predicate}, + * used to transform between Java 8 specific code to those from the guava + * library. + */ + // @ts-ignore + public static guavaToJava8(p: any): any; + /** + * Gets the value of an {@link Optional} as either a zero- or one-element immutable set. + */ + // @ts-ignore + public static optionalAsSet(value: any): any[] /*java.util.Set*/; + /** + * Execute a callable on the current thread, capturing the result or any exceptions that may be thrown into a {@link + * CompletableFuture}. + */ + // @ts-ignore + public static failableFuture(call: any): any; + /** + * Execute a callable on the provided executor, capturing the result or any exceptions that may be thrown into a {@link + * CompletableFuture}. + */ + // @ts-ignore + public static asyncFailableFuture(call: any, exec: any): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.GuavaCollectors.ts b/packages/sponge/src/typings/org.spongepowered.api.util.GuavaCollectors.ts new file mode 100644 index 00000000..a2550368 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.GuavaCollectors.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class GuavaCollectors { + /** + * Collect the values from a stream to an {@link ImmutableList}. + */ + // @ts-ignore + public static toImmutableList(): any; + /** + * Collect the values from a stream to an {@link ImmutableSet}. + */ + // @ts-ignore + public static toImmutableSet(): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.Identifiable.ts b/packages/sponge/src/typings/org.spongepowered.api.util.Identifiable.ts new file mode 100644 index 00000000..e3666cdf --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.Identifiable.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + interface Identifiable { + /** + * Gets the unique ID for this object. + */ + // @ts-ignore + getUniqueId(): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.InformativeMain.ts b/packages/sponge/src/typings/org.spongepowered.api.util.InformativeMain.ts new file mode 100644 index 00000000..aff12ccc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.InformativeMain.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class InformativeMain { + constructor() + /** + * The main method which throws a {@link PEBKACException} with some basic + * information on how sponge works. + */ + // @ts-ignore + public static main(args: string): void; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.OptBool.ts b/packages/sponge/src/typings/org.spongepowered.api.util.OptBool.ts new file mode 100644 index 00000000..679341a4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.OptBool.ts @@ -0,0 +1,33 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class OptBool { + // @ts-ignore + public static TRUE: any; + // @ts-ignore + public static FALSE: any; + // @ts-ignore + public static ABSENT: any; + /** + * Constructs a new {@code Optional<Boolean>} from the given boolean. + */ + // @ts-ignore + public static of(bool: boolean): any; + /** + * Constructs a new {@code Optional<Boolean>} from the given {@link Boolean}. + */ + // @ts-ignore + public static of(bool: any): any; + /** + * Coerces the given {@code Optional<Boolean>} into one of the three + * stored states. + */ + // @ts-ignore + public static of(bool: any): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.PEBKACException.ts b/packages/sponge/src/typings/org.spongepowered.api.util.PEBKACException.ts new file mode 100644 index 00000000..87934bb1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.PEBKACException.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class PEBKACException { + /** + * Constructs a new {@link PEBKACException}. + */ + constructor() + /** + * Constructs a new {@link PEBKACException} with the given message. + */ + constructor(msg: string) + /** + * Constructs a new {@link PEBKACException} with the given message and + * cause. + */ + constructor(msg: string, cause: any) + /** + * Constructs a new {@link PEBKACException} with the given cause. + */ + constructor(cause: any) + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.PositionOutOfBoundsException.ts b/packages/sponge/src/typings/org.spongepowered.api.util.PositionOutOfBoundsException.ts new file mode 100644 index 00000000..b4a2522b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.PositionOutOfBoundsException.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class PositionOutOfBoundsException { + /** + * Constructs the exception from int coordinate vectors. + */ + constructor(position: any /*Vector3i*/, min: any /*Vector3i*/, max: any /*Vector3i*/) + /** + * Constructs the exception from float coordinate vectors. + */ + constructor(position: any /*Vector3f*/, min: any /*Vector3f*/, max: any /*Vector3f*/) + /** + * Constructs the exception from double coordinate vectors. + */ + constructor(position: any /*Vector3d*/, min: any /*Vector3d*/, max: any /*Vector3d*/) + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.RelativePositions.ts b/packages/sponge/src/typings/org.spongepowered.api.util.RelativePositions.ts new file mode 100644 index 00000000..8872e0e3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.RelativePositions.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class RelativePositions { + // @ts-ignore + public static X: org.spongepowered.api.util.RelativePositions; + // @ts-ignore + public static Y: org.spongepowered.api.util.RelativePositions; + // @ts-ignore + public static Z: org.spongepowered.api.util.RelativePositions; + // @ts-ignore + public static PITCH: org.spongepowered.api.util.RelativePositions; + // @ts-ignore + public static YAW: org.spongepowered.api.util.RelativePositions; + // @ts-ignore + public static values(): org.spongepowered.api.util.RelativePositions[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.util.RelativePositions; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.ResettableBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.util.ResettableBuilder.ts new file mode 100644 index 00000000..be6e6de0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.ResettableBuilder.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + interface ResettableBuilder { + /** + * Resets this builder to the values of the given built object. + */ + // @ts-ignore + from(value: any): org.spongepowered.api.util.ResettableBuilder; + /** + * Resets this builder to a "default" state such that there is no + * remaining data to set. This is to be the presumed "default" + * state. + */ + // @ts-ignore + reset(): org.spongepowered.api.util.ResettableBuilder; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.RespawnLocation.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.util.RespawnLocation.Builder.ts new file mode 100644 index 00000000..414480ab --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.RespawnLocation.Builder.ts @@ -0,0 +1,58 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace RespawnLocation { + // @ts-ignore + class Builder extends org.spongepowered.api.data.persistence.AbstractDataBuilder { + /** + * Creates a new {@link Builder}. + */ + constructor() + /** + * Sets the {@link UUID} of the provided {@link World} into this + * builder. + */ + // @ts-ignore + public world(world: org.spongepowered.api.world.World): org.spongepowered.api.util.RespawnLocation.Builder; + /** + * Sets the {@link UUID} of the desired {@link World}. There are no + * validation checks to whether a world exists with the provided uuid, + * mainly for reasons when multiple worlds are loaded and unloaded. + */ + // @ts-ignore + public world(worldId: any): org.spongepowered.api.util.RespawnLocation.Builder; + /** + * Sets the {@link UUID} of the {@link Location} provided {@link World}, + * and the {@link Vector3d} position to respawn at. + */ + // @ts-ignore + public location(location: org.spongepowered.api.world.Location): org.spongepowered.api.util.RespawnLocation.Builder; + /** + * Sets the {@link Vector3d} position of where to respawn at. + */ + // @ts-ignore + public position(position: any /*Vector3d*/): org.spongepowered.api.util.RespawnLocation.Builder; + /** + * Sets whether the position to respawn at is forced or can be varied + * for safety. + */ + // @ts-ignore + public forceSpawn(isForced: boolean): org.spongepowered.api.util.RespawnLocation.Builder; + // @ts-ignore + protected buildContent(container: org.spongepowered.api.data.DataView): any; + // @ts-ignore + public reset(): org.spongepowered.api.util.RespawnLocation.Builder; + // @ts-ignore + public from(value: org.spongepowered.api.util.RespawnLocation): org.spongepowered.api.util.RespawnLocation.Builder; + /** + * Creates a new {@link RespawnLocation} from this builder. + */ + // @ts-ignore + public build(): org.spongepowered.api.util.RespawnLocation; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.RespawnLocation.ts b/packages/sponge/src/typings/org.spongepowered.api.util.RespawnLocation.ts new file mode 100644 index 00000000..3981ac76 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.RespawnLocation.ts @@ -0,0 +1,49 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class RespawnLocation implements org.spongepowered.api.data.DataSerializable { + /** + * Creates a new {@link Builder} to build a {@link RespawnLocation}. + */ + // @ts-ignore + public static builder(): org.spongepowered.api.util.RespawnLocation.Builder; + /** + * Gets the {@link UUID} of the world this position refers to. + */ + // @ts-ignore + public getWorldUniqueId(): any; + /** + * Gets the position within the world of this spawn point. + */ + // @ts-ignore + public getPosition(): any /*Vector3d*/; + /** + * Gets whether the spawn position is forced in the given world, if + * available. A forced position will spawn the player there even if a bed is + * missing or obstructed. + */ + // @ts-ignore + public isForced(): boolean; + /** + * Gets this spawn position as a {@link Location} object, if the world is + * available. + */ + // @ts-ignore + public asLocation(): any; + // @ts-ignore + public getContentVersion(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.SpongeApiTranslationHelper.ts b/packages/sponge/src/typings/org.spongepowered.api.util.SpongeApiTranslationHelper.ts new file mode 100644 index 00000000..46b6b6b4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.SpongeApiTranslationHelper.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class SpongeApiTranslationHelper { + /** + * Gets the translated text for a given string. + */ + // @ts-ignore + public static t(key: string, args: any): org.spongepowered.api.text.Text; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.StartsWithPredicate.ts b/packages/sponge/src/typings/org.spongepowered.api.util.StartsWithPredicate.ts new file mode 100644 index 00000000..d1bc46c0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.StartsWithPredicate.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class StartsWithPredicate { + /** + * Create an new predicate. + */ + constructor(test: string) + // @ts-ignore + public test(input: string): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.TextMessageException.ts b/packages/sponge/src/typings/org.spongepowered.api.util.TextMessageException.ts new file mode 100644 index 00000000..8cf1179e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.TextMessageException.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class TextMessageException { + /** + * Constructs a new {@link TextMessageException}. + */ + constructor() + /** + * Constructs a new {@link TextMessageException} with the given message. + */ + constructor(message: org.spongepowered.api.text.Text) + /** + * Constructs a new {@link TextMessageException} with the given message and + * cause. + */ + constructor(message: org.spongepowered.api.text.Text, throwable: any) + /** + * Constructs a new {@link TextMessageException} with the given cause. + */ + constructor(throwable: any) + // @ts-ignore + public getMessage(): string; + /** + * Returns the text message for this exception, or null if nothing is + * present. + */ + // @ts-ignore + public getText(): org.spongepowered.api.text.Text; + // @ts-ignore + public getLocalizedMessage(): string; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.Tristate.ts b/packages/sponge/src/typings/org.spongepowered.api.util.Tristate.ts new file mode 100644 index 00000000..34ee949c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.Tristate.ts @@ -0,0 +1,41 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class Tristate { + // @ts-ignore + public static TRUE: org.spongepowered.api.util.Tristate; + // @ts-ignore + public static FALSE: org.spongepowered.api.util.Tristate; + // @ts-ignore + public static UNDEFINED: org.spongepowered.api.util.Tristate; + // @ts-ignore + public static values(): org.spongepowered.api.util.Tristate[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.util.Tristate; + /** + * Return the appropriate tristate for a given boolean value. + */ + // @ts-ignore + public static fromBoolean(val: boolean): org.spongepowered.api.util.Tristate; + /** + * ANDs this tristate with another tristate. + */ + // @ts-ignore + public and(other: org.spongepowered.api.util.Tristate): org.spongepowered.api.util.Tristate; + /** + * ORs this tristate with another tristate. + */ + // @ts-ignore + public or(other: org.spongepowered.api.util.Tristate): org.spongepowered.api.util.Tristate; + /** + * Returns the boolean representation of this tristate. + */ + // @ts-ignore + public asBoolean(): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.Tuple.ts b/packages/sponge/src/typings/org.spongepowered.api.util.Tuple.ts new file mode 100644 index 00000000..8efdf07a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.Tuple.ts @@ -0,0 +1,37 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class Tuple { + /** + * Creates a new {@link Tuple}. + */ + constructor(first: any, second: any) + /** + * Creates a new {@link Tuple} with the desired {@code first} and + * {@code second} objects. + */ + // @ts-ignore + public static of(first: any, second: any): org.spongepowered.api.util.Tuple; + /** + * Gets the first object, otherwise known as "key". + */ + // @ts-ignore + public getFirst(): any; + /** + * Gets the second object, otherwise known as "value". + */ + // @ts-ignore + public getSecond(): any; + // @ts-ignore + public toString(): string; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: any): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.TypeTokens.ts b/packages/sponge/src/typings/org.spongepowered.api.util.TypeTokens.ts new file mode 100644 index 00000000..1a64951b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.TypeTokens.ts @@ -0,0 +1,385 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class TypeTokens { + // @ts-ignore + public static ART_TOKEN: any; + // @ts-ignore + public static ART_VALUE_TOKEN: any; + // @ts-ignore + public static AXIS_TOKEN: any; + // @ts-ignore + public static AXIS_VALUE_TOKEN: any; + // @ts-ignore + public static BLOCK_TOKEN: any; + // @ts-ignore + public static BLOCK_VALUE_TOKEN: any; + // @ts-ignore + public static BOOLEAN_TOKEN: any; + // @ts-ignore + public static BOOLEAN_VALUE_TOKEN: any; + // @ts-ignore + public static BOUNDED_DOUBLE_VALUE_TOKEN: any; + // @ts-ignore + public static BOUNDED_INTEGER_VALUE_TOKEN: any; + // @ts-ignore + public static BOUNDED_SHORT_VALUE_TOKEN: any; + // @ts-ignore + public static BRICK_TOKEN: any; + // @ts-ignore + public static BRICK_VALUE_TOKEN: any; + // @ts-ignore + public static CAREER_TOKEN: any; + // @ts-ignore + public static CAREER_VALUE_TOKEN: any; + // @ts-ignore + public static COAL_TOKEN: any; + // @ts-ignore + public static COAL_VALUE_TOKEN: any; + // @ts-ignore + public static COLOR_TOKEN: any; + // @ts-ignore + public static COLOR_VALUE_TOKEN: any; + // @ts-ignore + public static COMPARATOR_TOKEN: any; + // @ts-ignore + public static COMPARATOR_VALUE_TOKEN: any; + // @ts-ignore + public static COOKED_FISH_TOKEN: any; + // @ts-ignore + public static COOKED_FISH_VALUE_TOKEN: any; + // @ts-ignore + public static DIRECTION_TOKEN: any; + // @ts-ignore + public static DIRECTION_VALUE_TOKEN: any; + // @ts-ignore + public static DIRT_TOKEN: any; + // @ts-ignore + public static DIRT_VALUE_TOKEN: any; + // @ts-ignore + public static DISGUISED_BLOCK_TOKEN: any; + // @ts-ignore + public static DISGUISED_BLOCK_VALUE_TOKEN: any; + // @ts-ignore + public static DOUBLE_PLANT_TOKEN: any; + // @ts-ignore + public static DOUBLE_PLANT_VALUE_TOKEN: any; + // @ts-ignore + public static DOUBLE_TOKEN: any; + // @ts-ignore + public static DOUBLE_VALUE_TOKEN: any; + // @ts-ignore + public static DYE_COLOR_TOKEN: any; + // @ts-ignore + public static DYE_COLOR_VALUE_TOKEN: any; + // @ts-ignore + public static ENTITY_TOKEN: any; + // @ts-ignore + public static ENTITY_TYPE_DOUBLE_MAP_TOKEN: any; + // @ts-ignore + public static ENTITY_TYPE_DOUBLE_MAP_VALUE_TOKEN: any; + // @ts-ignore + public static ENTITY_TYPE_TOKEN: any; + // @ts-ignore + public static ENTITY_TYPE_VALUE_TOKEN: any; + // @ts-ignore + public static ENTITY_VALUE_TOKEN: any; + // @ts-ignore + public static FISH_TOKEN: any; + // @ts-ignore + public static FISH_VALUE_TOKEN: any; + // @ts-ignore + public static FLOAT_TOKEN: any; + // @ts-ignore + public static FLOAT_VALUE_TOKEN: any; + // @ts-ignore + public static FLUID_TOKEN: any; + // @ts-ignore + public static FLUID_VALUE_TOKEN: any; + // @ts-ignore + public static GAME_MODE_TOKEN: any; + // @ts-ignore + public static GAME_MODE_VALUE_TOKEN: any; + // @ts-ignore + public static GAME_PROFILE_TOKEN: any; + // @ts-ignore + public static GAME_PROFILE_VALUE_TOKEN: any; + // @ts-ignore + public static GOLDEN_APPLE_TOKEN: any; + // @ts-ignore + public static GOLDEN_APPLE_VALUE_TOKEN: any; + // @ts-ignore + public static HAND_PREFERENCE_TYPE_TOKEN: any; + // @ts-ignore + public static HAND_PREFERENCE_VALUE_TOKEN: any; + // @ts-ignore + public static HINGE_TOKEN: any; + // @ts-ignore + public static HINGE_VALUE_TOKEN: any; + // @ts-ignore + public static HORSE_COLOR_TOKEN: any; + // @ts-ignore + public static HORSE_COLOR_VALUE_TOKEN: any; + // @ts-ignore + public static HORSE_STYLE_TOKEN: any; + // @ts-ignore + public static HORSE_STYLE_VALUE_TOKEN: any; + // @ts-ignore + public static INSTANT_TOKEN: any; + // @ts-ignore + public static INSTANT_VALUE_TOKEN: any; + // @ts-ignore + public static INTEGER_TOKEN: any; + // @ts-ignore + public static INTEGER_VALUE_TOKEN: any; + // @ts-ignore + public static ITEM_SNAPSHOT_TOKEN: any; + // @ts-ignore + public static ITEM_SNAPSHOT_VALUE_TOKEN: any; + // @ts-ignore + public static LAST_ATTACKER_TOKEN: any; + // @ts-ignore + public static LAST_ATTACKER_VALUE_TOKEN: any; + // @ts-ignore + public static LIST_DATA_SERIALIZEABLE_TOKEN: any; + // @ts-ignore + public static LIST_DYE_COLOR_TOKEN: any; + // @ts-ignore + public static LIST_DYE_COLOR_VALUE_TOKEN: any; + // @ts-ignore + public static LIST_ENCHANTMENT_TOKEN: any; + // @ts-ignore + public static LIST_ENCHANTMENT_VALUE_TOKEN: any; + // @ts-ignore + public static LIST_FIREWORK_TOKEN: any; + // @ts-ignore + public static LIST_PATTERN_TOKEN: any; + // @ts-ignore + public static LIST_PATTERN_VALUE_TOKEN: any; + // @ts-ignore + public static LIST_POTION_TOKEN: any; + // @ts-ignore + public static LIST_POTION_VALUE_TOKEN: any; + // @ts-ignore + public static LIST_STRING_VALUE_TOKEN: any; + // @ts-ignore + public static LIST_TEXT_TOKEN: any; + // @ts-ignore + public static LIST_TEXT_VALUE_TOKEN: any; + // @ts-ignore + public static LIST_TRADE_OFFER_TOKEN: any; + // @ts-ignore + public static LIST_VALUE_FIREWORK_TOKEN: any; + // @ts-ignore + public static LIST_VALUE_TRADE_OFFER_TOKEN: any; + // @ts-ignore + public static LLAMA_VARIANT_TOKEN: any; + // @ts-ignore + public static LLAMA_VARIANT_VALUE_TOKEN: any; + // @ts-ignore + public static LOG_AXIS_TOKEN: any; + // @ts-ignore + public static LOG_AXIS_VALUE_TOKEN: any; + // @ts-ignore + public static LONG_TOKEN: any; + // @ts-ignore + public static LONG_VALUE_TOKEN: any; + // @ts-ignore + public static MAP_BODY_VECTOR3D_TOKEN: any; + // @ts-ignore + public static MAP_BODY_VECTOR3D_VALUE_TOKEN: any; + // @ts-ignore + public static MAP_DIRECTION_FLUID_TOKEN: any; + // @ts-ignore + public static MAP_DIRECTION_FLUID_VALUE_TOKEN: any; + // @ts-ignore + public static MAP_UUID_VECTOR3D_TOKEN: any; + // @ts-ignore + public static MAP_UUID_VECTOR3D_VALUE_TOKEN: any; + // @ts-ignore + public static MUSHROOM_TOKEN: any; + // @ts-ignore + public static MUSHROOM_VALUE_TOKEN: any; + // @ts-ignore + public static NOTE_TOKEN: any; + // @ts-ignore + public static NOTE_VALUE_TOKEN: any; + // @ts-ignore + public static OCELOT_TOKEN: any; + // @ts-ignore + public static OCELOT_VALUE_TOKEN: any; + // @ts-ignore + public static OPTIONAL_DOUBLE_TOKEN: any; + // @ts-ignore + public static OPTIONAL_DOUBLE_VALUE_TOKEN: any; + // @ts-ignore + public static OPTIONAL_ENTITY_SNAPSHOT_TOKEN: any; + // @ts-ignore + public static OPTIONAL_ENTITY_SNAPSHOT_VALUE_TOKEN: any; + // @ts-ignore + public static OPTIONAL_ENTITY_VALUE_TOKEN: any; + // @ts-ignore + public static OPTIONAL_POTION_TOKEN: any; + // @ts-ignore + public static OPTIONAL_POTION_VALUE_TOKEN: any; + // @ts-ignore + public static OPTIONAL_PROFESSION_TOKEN: any; + // @ts-ignore + public static OPTIONAL_PROFESSION_VALUE_TOKEN: any; + // @ts-ignore + public static OPTIONAL_TEXT_TOKEN: any; + // @ts-ignore + public static OPTIONAL_TEXT_VALUE_TOKEN: any; + // @ts-ignore + public static OPTIONAL_UUID_TOKEN: any; + // @ts-ignore + public static OPTIONAL_UUID_VALUE_TOKEN: any; + // @ts-ignore + public static PARROT_VARIANT_TOKEN: any; + // @ts-ignore + public static PARROT_VARIANT_VALUE_TOKEN: any; + // @ts-ignore + public static PARTICLE_TYPE_TOKEN: any; + // @ts-ignore + public static PARTICLE_TYPE_VALUE_TOKEN: any; + // @ts-ignore + public static PATTERN_LIST_VALUE_TOKEN: any; + // @ts-ignore + public static PICKUP_TOKEN: any; + // @ts-ignore + public static PICKUP_VALUE_TOKEN: any; + // @ts-ignore + public static PISTON_TOKEN: any; + // @ts-ignore + public static PISTON_VALUE_TOKEN: any; + // @ts-ignore + public static PLANT_TOKEN: any; + // @ts-ignore + public static PLANT_VALUE_TOKEN: any; + // @ts-ignore + public static PORTION_TOKEN: any; + // @ts-ignore + public static PORTION_VALUE_TOKEN: any; + // @ts-ignore + public static POTION_TOKEN: any; + // @ts-ignore + public static POTION_VALUE_TOKEN: any; + // @ts-ignore + public static PRISMARINE_TOKEN: any; + // @ts-ignore + public static PRISMARINE_VALUE_TOKEN: any; + // @ts-ignore + public static QUARTZ_TOKEN: any; + // @ts-ignore + public static QUARTZ_VALUE_TOKEN: any; + // @ts-ignore + public static RABBIT_TOKEN: any; + // @ts-ignore + public static RABBIT_VALUE_TOKEN: any; + // @ts-ignore + public static RAIL_TOKEN: any; + // @ts-ignore + public static RAIL_VALUE_TOKEN: any; + // @ts-ignore + public static ROTATION_TOKEN: any; + // @ts-ignore + public static ROTATION_VALUE_TOKEN: any; + // @ts-ignore + public static SAND_STONE_TOKEN: any; + // @ts-ignore + public static SAND_STONE_VALUE_TOKEN: any; + // @ts-ignore + public static SAND_TOKEN: any; + // @ts-ignore + public static SAND_VALUE_TOKEN: any; + // @ts-ignore + public static SET_BLOCK_TOKEN: any; + // @ts-ignore + public static SET_BLOCK_VALUE_TOKEN: any; + // @ts-ignore + public static SET_DIRECTION_TOKEN: any; + // @ts-ignore + public static SET_DIRECTION_VALUE_TOKEN: any; + // @ts-ignore + public static SET_EQUIPMENT_TYPE_TOKEN: any; + // @ts-ignore + public static SHORT_TOKEN: any; + // @ts-ignore + public static SHRUB_TOKEN: any; + // @ts-ignore + public static SHRUB_VALUE_TOKEN: any; + // @ts-ignore + public static SKULL_TOKEN: any; + // @ts-ignore + public static SKULL_VALUE_TOKEN: any; + // @ts-ignore + public static SLAB_TOKEN: any; + // @ts-ignore + public static SLAB_VALUE_TOKEN: any; + // @ts-ignore + public static STAIR_TOKEN: any; + // @ts-ignore + public static STAIR_VALUE_TOKEN: any; + // @ts-ignore + public static STATISTIC_MAP_TOKEN: any; + // @ts-ignore + public static STATISTIC_MAP_VALUE_TOKEN: any; + // @ts-ignore + public static STONE_TOKEN: any; + // @ts-ignore + public static STONE_VALUE_TOKEN: any; + // @ts-ignore + public static STRING_TOKEN: any; + // @ts-ignore + public static STRING_VALUE_TOKEN: any; + // @ts-ignore + public static STRUCTURE_MODE_TOKEN: any; + // @ts-ignore + public static STRUCTURE_MODE_VALUE_TOKEN: any; + // @ts-ignore + public static TEXT_TOKEN: any; + // @ts-ignore + public static TEXT_VALUE_TOKEN: any; + // @ts-ignore + public static TREE_TOKEN: any; + // @ts-ignore + public static TREE_VALUE_TOKEN: any; + // @ts-ignore + public static UUID_TOKEN: any; + // @ts-ignore + public static UUID_VALUE_TOKEN: any; + // @ts-ignore + public static VECTOR_3D_TOKEN: any; + // @ts-ignore + public static VECTOR_3D_VALUE_TOKEN: any; + // @ts-ignore + public static VECTOR_3I_TOKEN: any; + // @ts-ignore + public static VECTOR_3I_VALUE_TOKEN: any; + // @ts-ignore + public static WALL_TOKEN: any; + // @ts-ignore + public static WALL_VALUE_TOKEN: any; + // @ts-ignore + public static WEIGHTED_ENTITY_ARCHETYPE_COLLECTION_VALUE_TOKEN: any; + // @ts-ignore + public static WEIGHTED_ENTITY_ARCHETYPE_TABLE_TOKEN: any; + // @ts-ignore + public static WEIGHTED_ENTITY_ARCHETYPE_TOKEN: any; + // @ts-ignore + public static WEIGHTED_ENTITY_ARCHETYPE_VALUE_TOKEN: any; + // @ts-ignore + public static WIRE_ATTACHMENT_MAP_TOKEN: any; + // @ts-ignore + public static WIRE_ATTACHMENT_MAP_VALUE_TOKEN: any; + // @ts-ignore + public static WIRE_ATTACHMENT_TYPE_TOKEN: any; + // @ts-ignore + public static WIRE_ATTACHMENT_TYPE_VALUE_TOKEN: any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.Updater.ts b/packages/sponge/src/typings/org.spongepowered.api.util.Updater.ts new file mode 100644 index 00000000..5b1f3463 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.Updater.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + interface Updater { + /** + * Gets the numerical {@code version} that this {@link Updater} + * can accept. + */ + // @ts-ignore + getInputVersion(): number; + /** + * The outputted {@code version} that this {@link Updater} will + * output to. Note that it is possible multiple updaters are able to + * cross between different versions. + */ + // @ts-ignore + getOutputVersion(): number; + /** + * Attempts to update the content of {@code C} as long as the content + * version itself has been abided by. + */ + // @ts-ignore + update(content: any): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.annotation.CatalogedBy.ts b/packages/sponge/src/typings/org.spongepowered.api.util.annotation.CatalogedBy.ts new file mode 100644 index 00000000..9a7c2fc8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.annotation.CatalogedBy.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + // @ts-ignore + interface CatalogedBy { + /** + * Gets the class that is the catalog for this {@link CatalogedBy} type. + * Since the type class annotated with {@link CatalogedBy} knows what the + * catalog class is, we can safely rely on the value to get all known + * instances of the {@link CatalogedBy}. + *This is similar to knowing at runtime that all available + * "EntityType"(s) are cataloged in the "EntityTypes" class.
+ */ + // @ts-ignore + value(): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.annotation.NonnullByDefault.ts b/packages/sponge/src/typings/org.spongepowered.api.util.annotation.NonnullByDefault.ts new file mode 100644 index 00000000..20bd3094 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.annotation.NonnullByDefault.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + // @ts-ignore + interface NonnullByDefault { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.AbsoluteSortPosition.ts b/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.AbsoluteSortPosition.ts new file mode 100644 index 00000000..d5abf107 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.AbsoluteSortPosition.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + namespace eventgen { + // @ts-ignore + interface AbsoluteSortPosition { + /** + * Gets the absolute position for the annotated property. + */ + // @ts-ignore + value(): number; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.FactoryMethod.ts b/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.FactoryMethod.ts new file mode 100644 index 00000000..20188986 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.FactoryMethod.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + namespace eventgen { + // @ts-ignore + interface FactoryMethod { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.GenerateFactoryMethod.ts b/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.GenerateFactoryMethod.ts new file mode 100644 index 00000000..c2a3eb2a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.GenerateFactoryMethod.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + namespace eventgen { + // @ts-ignore + interface GenerateFactoryMethod { + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.ImplementedBy.ts b/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.ImplementedBy.ts new file mode 100644 index 00000000..f8e1048e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.ImplementedBy.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + namespace eventgen { + // @ts-ignore + interface ImplementedBy { + /** + * Gets the class which serves as the base class which the generated class + * for this event interface will extend. + */ + // @ts-ignore + value(): any; + /** + * Gets the priority for this annotation, relative to other annotations in + * the same hierarchy of the event interface. + *The annotation with the highest priority will be used.
+ */ + // @ts-ignore + priority(): number; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.PropertySettings.ts b/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.PropertySettings.ts new file mode 100644 index 00000000..04f3d1a0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.PropertySettings.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + namespace eventgen { + // @ts-ignore + interface PropertySettings { + /** + * Indicates whether the annotated property is required to be passed in + * to the generated constructor. + */ + // @ts-ignore + requiredParameter(): boolean; + /** + * Indicates whether the annotated property should have methods generated + * for it. + *If this value is set to true
,
+ * {@link #requiredParameter()} can only be set to false
if
+ * the annotated property is a primitive.
Changing this is only necessary when multiple {@link TransformWith} + * annotations are present in the annotated method's return type's class. + *
+ */ + // @ts-ignore + value(): string; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.TransformWith.ts b/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.TransformWith.ts new file mode 100644 index 00000000..4994b278 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.TransformWith.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + namespace eventgen { + // @ts-ignore + interface TransformWith { + /** + * Gets the name used to match this annotation to a {@link TransformResult} + * annotation. + *Changing this is only necessary when this annotation is present on + * multiple methods in a class, or its superinterfaces/superclass.
+ */ + // @ts-ignore + value(): string; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.UseField.ts b/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.UseField.ts new file mode 100644 index 00000000..47f5c827 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.annotation.eventgen.UseField.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + namespace eventgen { + // @ts-ignore + interface UseField { + /** + * Indicates whether to use the annotated field directly in the + * generated '{@link #toString()}' method, rather than calling the + * normal accessor method. + *This should only be used when there are special restrictions + * on calling the accessor (for example, + * {@link AffectEntityEvent#getEntitySnapshots()}).
+ */ + // @ts-ignore + overrideToString(): boolean; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.ban.Ban.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.util.ban.Ban.Builder.ts new file mode 100644 index 00000000..43b4075b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.ban.Ban.Builder.ts @@ -0,0 +1,66 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace ban { + namespace Ban { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the profile to be banned. + *This can only be done if the {@link BanType} has been set to {@link BanTypes#PROFILE}.
+ */ + // @ts-ignore + profile(profile: org.spongepowered.api.profile.GameProfile): org.spongepowered.api.util.ban.Ban.Builder; + /** + * Sets the IP address to be banned. + *This can only be done if the {@link BanType} has been set to {@link BanTypes#IP}.
+ */ + // @ts-ignore + address(address: any): org.spongepowered.api.util.ban.Ban.Builder; + /** + * Sets the type of the ban. + */ + // @ts-ignore + type(type: org.spongepowered.api.util.ban.BanType): org.spongepowered.api.util.ban.Ban.Builder; + /** + * Sets the reason for the ban. + *If the specified reason is null
, or not provided,
+ * then the reason will be be available on the created ban.
Note that this {@link Instant} has no effect on whether or not a ban is
+ * active. Any ban for which {@link BanService#hasBan(Ban)} returns
+ * true
will be used (when checking if a player can join,
+ * for example), regardless of its creation date.
Depending on the implementation, the returned {@link Text} + * may represent a {@link CommandSource}. {@link #getBanCommandSource()} can be + * used to attempt to convert the source to a {@link CommandSource}.
+ */ + // @ts-ignore + getBanSource(): any; + /** + * Gets the source that created this ban in {@link CommandSource} form, + * if available. + *Depending on the implementation, it may not be possible to determine + * the {@link CommandSource} responsible for this ban. Because of this, + * it is recommended to check {@link #getBanSource()} if this method + * returns {@link Optional#empty()}.
+ */ + // @ts-ignore + getBanCommandSource(): any; + /** + * Gets the expiration date of this ban, if available. + */ + // @ts-ignore + getExpirationDate(): any; + /** + * Gets whether this ban is indefinitely long, e.g. has no expiration date. + */ + // @ts-ignore + isIndefinite(): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.ban.BanType.ts b/packages/sponge/src/typings/org.spongepowered.api.util.ban.BanType.ts new file mode 100644 index 00000000..060ea49f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.ban.BanType.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace ban { + // @ts-ignore + interface BanType extends org.spongepowered.api.CatalogType { + /** + * Gets the {@link Ban} class that this type represents. + */ + // @ts-ignore + getBanClass(): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.ban.BanTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.util.ban.BanTypes.ts new file mode 100644 index 00000000..04a57780 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.ban.BanTypes.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace ban { + // @ts-ignore + class BanTypes { + // @ts-ignore + public static IP: org.spongepowered.api.util.ban.BanType; + // @ts-ignore + public static PROFILE: org.spongepowered.api.util.ban.BanType; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder.ts b/packages/sponge/src/typings/org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder.ts new file mode 100644 index 00000000..b1f9b02b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder.ts @@ -0,0 +1,95 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace blockray { + namespace BlockRay { + // @ts-ignore + class BlockRayBuilder { + /** + * Adds the filter to the block ray. + * The block ray will skip over blocks that do not pass this predicate. + * This is optional. + * Multiple filters will be ANDed together. + */ + // @ts-ignore + public skipFilter(skipFilter: any): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Adds filters to the block ray. + * The block ray will skip over blocks that do not pass this predicate. + * This is optional. + * Multiple filters will be ANDed together. + */ + // @ts-ignore + public skipFilter(skipFilters: any): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Adds the filter to the block ray. + * The block ray will end if a block does not pass this predicate. + * This is optional. + * Multiple filters will be ANDed together. + */ + // @ts-ignore + public stopFilter(stopFilter: any): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Adds filters to the block ray. + * The block ray will end if a block does not pass this predicate. + * This is optional. + * Multiple filters will be ANDed together. + */ + // @ts-ignore + public stopFilter(stopFilters: any): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Sets the direction and ending location. This or setting the direction + * is required and can only be done once. + */ + // @ts-ignore + public to(end: any /*Vector3d*/): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Sets the direction. This or setting the ending location is required + * and can only be done once. + */ + // @ts-ignore + public direction(direction: any /*Vector3d*/): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Sets the maximum distance before stopping. + * This is a safeguard to prevent infinite iteration. + * Default value is 1000. Use a negative value to disable this. + */ + // @ts-ignore + public distanceLimit(distanceLimit: number): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Sets whether or not to perform narrow phase intersections. The + * narrow phase performs intersections with the block selection boxes + * if they are smaller than a voxel. This is necessary to obtain + * correct intersections with small blocks like: signs, buttons, + * fences, etc. This is enabled by default. + */ + // @ts-ignore + public narrowPhase(enable: boolean): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Gets the starting position of the block ray. Given here since some + * filters might require it. + */ + // @ts-ignore + public position(): any /*Vector3d*/; + /** + * Returns a block ray build from the settings. An ending location or + * direction needs to have been set. + */ + // @ts-ignore + public build(): org.spongepowered.api.util.blockray.BlockRay; + // @ts-ignore + public iterator(): any; + /** + * Iterates the built block ray until the end + * and returns the last hit, if any. + */ + // @ts-ignore + public end(): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.blockray.BlockRay.ts b/packages/sponge/src/typings/org.spongepowered.api.util.blockray.BlockRay.ts new file mode 100644 index 00000000..861d96de --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.blockray.BlockRay.ts @@ -0,0 +1,72 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace blockray { + // @ts-ignore + class BlockRay { + /** + * Resets the iterator; it will iterate from the starting location again. + */ + // @ts-ignore + public reset(): void; + // @ts-ignore + public hasNext(): boolean; + // @ts-ignore + public next(): org.spongepowered.api.util.blockray.BlockRayHit; + /** + * Traces the block ray to the end and returns the last block + * accepted by the filter, or none if the extent or block limit was reached. + * This advances the iterator. + */ + // @ts-ignore + public end(): any; + /** + * Initializes a block ray builder with the given starting location. + */ + // @ts-ignore + public static from(start: org.spongepowered.api.world.Location): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Initializes a block ray builder with the given starting location. + */ + // @ts-ignore + public static from(extent: org.spongepowered.api.world.extent.Extent, start: any /*Vector3d*/): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Initializes a block ray builder for the entity's eye. + * If the eye location isn't defined for the entity, the + * regular location is used. This sets both the starting + * point and direction. + */ + // @ts-ignore + public static from(entity: org.spongepowered.api.entity.Entity): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * A filter that accepts all blocks. A {@link BlockRay} combined with no + * other filter than this one could run endlessly. + */ + // @ts-ignore + public static allFilter(): any; + /** + * A block type filter that only permits air as a transparent block. + *This is provided for convenience, as the default behavior in previous + * systems was to pass through air blocks only until a non-air block was + * hit.
+ */ + // @ts-ignore + public static onlyAirFilter(): any; + /** + * A filter that only allows blocks of a certain type. + */ + // @ts-ignore + public static blockTypeFilter(type: org.spongepowered.api.block.BlockType): any; + /** + * Extends a filter by a number of blocks, regardless of what the extended + * filter does. + */ + // @ts-ignore + public static continueAfterFilter(filter: any, numberOfBlocks: number): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.blockray.BlockRayHit.ts b/packages/sponge/src/typings/org.spongepowered.api.util.blockray.BlockRayHit.ts new file mode 100644 index 00000000..d3445859 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.blockray.BlockRayHit.ts @@ -0,0 +1,99 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace blockray { + // @ts-ignore + class BlockRayHit { + /** + * Constructs a new block ray hit from the extent that contains it, the + * coordinates and the face that was entered. + */ + constructor(extent: org.spongepowered.api.world.extent.Extent, x: number, y: number, z: number, direction: any /*Vector3d*/, normal: any /*Vector3d*/) + /** + * Returns the extent that contains the block. + */ + // @ts-ignore + public getExtent(): org.spongepowered.api.world.extent.Extent; + /** + * Returns the x coordinate of the intersection. + */ + // @ts-ignore + public getX(): number; + /** + * Returns the y coordinate of the intersection. + */ + // @ts-ignore + public getY(): number; + /** + * Returns the z coordinate of the intersection. + */ + // @ts-ignore + public getZ(): number; + /** + * Returns the position of the intersection. + */ + // @ts-ignore + public getPosition(): any /*Vector3d*/; + /** + * Returns the x coordinate of the block that was hit. + */ + // @ts-ignore + public getBlockX(): number; + /** + * Returns the y coordinate of the block that was hit. + */ + // @ts-ignore + public getBlockY(): number; + /** + * Returns the z coordinate of the block that was hit. + */ + // @ts-ignore + public getBlockZ(): number; + /** + * Returns the position of the block that was hit. + */ + // @ts-ignore + public getBlockPosition(): any /*Vector3i*/; + /** + * Returns the location of the hit block, not the intersection + * location. + */ + // @ts-ignore + public getLocation(): org.spongepowered.api.world.Location; + /** + * Returns the direction of the ray as a normalized vector. + */ + // @ts-ignore + public getDirection(): any /*Vector3d*/; + /** + * Returns the normal of the entered face, edge or corner. + * Edges and corners use the average of the surrounding faces. + */ + // @ts-ignore + public getNormal(): any /*Vector3d*/; + /** + * Returns all the intersected faces. In most cases, this is only one face, + * but if the ray enters an edge, two faces are returned (the ones + * that form it). Similarly for corners, but three faces. + */ + // @ts-ignore + public getFaces(): org.spongepowered.api.util.Direction[]; + /** + * Calls the mapper function on the extent and position. + */ + // @ts-ignore + public map(mapper: any): any; + /** + * Calls the mapper function on the extent and block position. + */ + // @ts-ignore + public mapBlock(mapper: any): any; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.file.CopyFileVisitor.ts b/packages/sponge/src/typings/org.spongepowered.api.util.file.CopyFileVisitor.ts new file mode 100644 index 00000000..f38d06f1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.file.CopyFileVisitor.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace file { + // @ts-ignore + class CopyFileVisitor { + /** + * Constructs a new {@link CopyFileVisitor} which will copy the visited + * file paths to the specified target directory. + *Note: The target directory must not exist since the visitor + * will also copy the root directory to the specified location.
+ */ + constructor(target: any, options: any) + // @ts-ignore + public preVisitDirectory(dir: any, attrs: any): any; + // @ts-ignore + public visitFile(file: any, attrs: any): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.file.DeleteFileVisitor.ts b/packages/sponge/src/typings/org.spongepowered.api.util.file.DeleteFileVisitor.ts new file mode 100644 index 00000000..b09a3a35 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.file.DeleteFileVisitor.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace file { + // @ts-ignore + class DeleteFileVisitor { + constructor() + // @ts-ignore + public static INSTANCE: org.spongepowered.api.util.file.DeleteFileVisitor; + // @ts-ignore + public visitFile(file: any, attrs: any): any; + // @ts-ignore + public postVisitDirectory(dir: any, exc: any): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.file.ForwardingFileVisitor.ts b/packages/sponge/src/typings/org.spongepowered.api.util.file.ForwardingFileVisitor.ts new file mode 100644 index 00000000..6cc4c21d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.file.ForwardingFileVisitor.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace file { + // @ts-ignore + abstract class ForwardingFileVisitor { + constructor(visitor: any) + // @ts-ignore + public preVisitDirectory(dir: any, attrs: any): any; + // @ts-ignore + public visitFile(file: any, attrs: any): any; + // @ts-ignore + public visitFileFailed(file: any, exc: any): any; + // @ts-ignore + public postVisitDirectory(dir: any, exc: any): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.generator.GeneratorUtils.LocalClassLoader.ts b/packages/sponge/src/typings/org.spongepowered.api.util.generator.GeneratorUtils.LocalClassLoader.ts new file mode 100644 index 00000000..a231f31e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.generator.GeneratorUtils.LocalClassLoader.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace generator { + namespace GeneratorUtils { + // @ts-ignore + class LocalClassLoader { + /** + * Creates a new {@link LocalClassLoader}. + */ + constructor(parent: any) + /** + * Defines the class by name and bytecode array. + */ + // @ts-ignore + public defineClass(name: string, b: number): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.generator.GeneratorUtils.ts b/packages/sponge/src/typings/org.spongepowered.api.util.generator.GeneratorUtils.ts new file mode 100644 index 00000000..22726c19 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.generator.GeneratorUtils.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace generator { + // @ts-ignore + class GeneratorUtils { + /** + * Gets a class name with the provided classifier. + */ + // @ts-ignore + public static getClassName(targetPackage: string, clazz: any, classifier: string): string; + /** + * Insert the necessary methods to box a primitive type (if the given type + * is a primitive object). + */ + // @ts-ignore + public static visitBoxingMethod(mv: any /*MethodVisitor*/, type: any /*Type*/): void; + /** + * Insert the necessary methods to unbox a primitive type (if the given type + * is a primitive). + */ + // @ts-ignore + public static visitUnboxingMethod(mv: any /*MethodVisitor*/, type: any /*Type*/): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.generator.dummy.DummyClassGenerator.ts b/packages/sponge/src/typings/org.spongepowered.api.util.generator.dummy.DummyClassGenerator.ts new file mode 100644 index 00000000..173e2811 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.generator.dummy.DummyClassGenerator.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace generator { + namespace dummy { + // @ts-ignore + class DummyClassGenerator { + constructor() + /** + * Creates a new class prepared to be loaded into the {@link ClassLoader}. + */ + // @ts-ignore + public createClass(type: any, name: string, exceptionType: any): number[]; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.generator.dummy.DummyClassGeneratorProvider.ts b/packages/sponge/src/typings/org.spongepowered.api.util.generator.dummy.DummyClassGeneratorProvider.ts new file mode 100644 index 00000000..6eee2939 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.generator.dummy.DummyClassGeneratorProvider.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace generator { + namespace dummy { + // @ts-ignore + class DummyClassGeneratorProvider { + /** + * Creates a new dummy class provider. + */ + constructor(targetPackage: string) + /** + * Creates a new class extended based on the provided {@code type} with the + * provided {@code exceptionType} to throw for all methods provided by the + * target class. + */ + // @ts-ignore + public create(type: any, exceptionType: any): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.generator.dummy.DummyObjectProvider.ts b/packages/sponge/src/typings/org.spongepowered.api.util.generator.dummy.DummyObjectProvider.ts new file mode 100644 index 00000000..c097735e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.generator.dummy.DummyObjectProvider.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace generator { + namespace dummy { + // @ts-ignore + class DummyObjectProvider { + constructor() + /** + * Creates a new dummy class implementing the specified interface. + */ + // @ts-ignore + public static createFor(type: any, fieldName: string): any; + /** + * Creates a new dummy class implementing the specified interface. + */ + // @ts-ignore + public static createExtendedFor(type: any, fieldName: string): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.metric.MetricsConfigManager.ts b/packages/sponge/src/typings/org.spongepowered.api.util.metric.MetricsConfigManager.ts new file mode 100644 index 00000000..622d7e59 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.metric.MetricsConfigManager.ts @@ -0,0 +1,53 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace metric { + // @ts-ignore + interface MetricsConfigManager { + /** + * Gets whether permission for third-party metrics gathering has been + * granted for a specific plugin (or the global permission if the plugin + * has not got a specific permission or lack thereof). + *The value returned from this should not be stored. As the + * configuration/permission can be updated at any time, it is best to + * check this each time metrics collection is due to occur.
+ */ + // @ts-ignore + areMetricsEnabled(container: org.spongepowered.api.plugin.PluginContainer): boolean; + /** + * Gets whether permission for third-party metrics gathering has been + * granted for a specific plugin (or the global permission if the plugin + * has not got a specific permission or lack thereof). + *The value returned from this should not be stored. As the + * configuration/permission can be updated at any time, it is best to + * check this each time server metric collection is due to occur.
+ */ + // @ts-ignore + areMetricsEnabled(plugin: any): boolean; + /** + * Gets the current global state of collection. The collection state determines + * how data collection should be handled. + * Global state determines how an undefined state for a specific plugin should be handled. + * If a plugin has a state specified then it will override the global state. + * {@link Tristate#TRUE} Permits data collection + * {@link Tristate#FALSE} Disallows data collection, this has been explicitly set + * {@link Tristate#UNDEFINED} Disallows data collection, this is set by default + */ + // @ts-ignore + getGlobalCollectionState(): org.spongepowered.api.util.Tristate; + /** + * Gets the current state of collection for the specified plugin. The collection state + * determines how data collection should be handled. + * {@link Tristate#TRUE} Permits data collection + * {@link Tristate#FALSE} Disallows data collection, this has been explicitly set + * {@link Tristate#UNDEFINED} Inherit from {@link MetricsConfigManager#getGlobalCollectionState()}, this is set by default + */ + // @ts-ignore + getCollectionState(container: org.spongepowered.api.plugin.PluginContainer): org.spongepowered.api.util.Tristate; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.rotation.Rotation.ts b/packages/sponge/src/typings/org.spongepowered.api.util.rotation.Rotation.ts new file mode 100644 index 00000000..610a0301 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.rotation.Rotation.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace rotation { + // @ts-ignore + interface Rotation extends org.spongepowered.api.CatalogType { + /** + * The angle in degrees. + */ + // @ts-ignore + getAngle(): number; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.rotation.Rotations.ts b/packages/sponge/src/typings/org.spongepowered.api.util.rotation.Rotations.ts new file mode 100644 index 00000000..63ec0928 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.rotation.Rotations.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace rotation { + // @ts-ignore + class Rotations { + // @ts-ignore + public static BOTTOM: org.spongepowered.api.util.rotation.Rotation; + // @ts-ignore + public static BOTTOM_LEFT: org.spongepowered.api.util.rotation.Rotation; + // @ts-ignore + public static BOTTOM_RIGHT: org.spongepowered.api.util.rotation.Rotation; + // @ts-ignore + public static LEFT: org.spongepowered.api.util.rotation.Rotation; + // @ts-ignore + public static RIGHT: org.spongepowered.api.util.rotation.Rotation; + // @ts-ignore + public static TOP: org.spongepowered.api.util.rotation.Rotation; + // @ts-ignore + public static TOP_LEFT: org.spongepowered.api.util.rotation.Rotation; + // @ts-ignore + public static TOP_RIGHT: org.spongepowered.api.util.rotation.Rotation; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.weighted.ChanceTable.ts b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.ChanceTable.ts new file mode 100644 index 00000000..2d7b142a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.ChanceTable.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + class ChanceTable extends org.spongepowered.api.util.weighted.RandomObjectTable { + /** + * Creates a new {@link ChanceTable} with a default roll count of 1. + */ + constructor() + /** + * Creates a new {@link ChanceTable}. + */ + constructor(rolls: number) + // @ts-ignore + public get(rand: any): any[] /*java.util.List*/; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.weighted.EmptyObject.ts b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.EmptyObject.ts new file mode 100644 index 00000000..2a6c20d1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.EmptyObject.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + class EmptyObject extends org.spongepowered.api.util.weighted.TableEntry implements org.spongepowered.api.data.DataSerializable { + /** + * Creates a new {@link EmptyObject} with the given weight. + */ + constructor(weight: number) + // @ts-ignore + public getContentVersion(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.weighted.LootTable.ts b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.LootTable.ts new file mode 100644 index 00000000..d5afe00f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.LootTable.ts @@ -0,0 +1,53 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + class LootTable { + /** + * Creates a new {@link LootTable}. + */ + constructor() + /** + * Adds a table to the pool. + */ + // @ts-ignore + public addTable(table: org.spongepowered.api.util.weighted.RandomObjectTable): void; + /** + * Adds all tables from the given {@link LootTable} to this LootTable's pool. + */ + // @ts-ignore + public addAll(other: org.spongepowered.api.util.weighted.LootTable): void; + /** + * Removes a table from the pool. + */ + // @ts-ignore + public removeTable(table: org.spongepowered.api.util.weighted.RandomObjectTable): boolean; + /** + * Gets all tables in the pool. + */ + // @ts-ignore + public getTables(): any[] /*java.util.List*/; + /** + * Clears all tables from the pool. + */ + // @ts-ignore + public clearPool(): void; + /** + * Gets a List of objects as retrieved from all pools. + */ + // @ts-ignore + public get(rand: any): any[] /*java.util.List*/; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.weighted.NestedTableEntry.ts b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.NestedTableEntry.ts new file mode 100644 index 00000000..7eec71bb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.NestedTableEntry.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + class NestedTableEntry extends org.spongepowered.api.util.weighted.TableEntry { + /** + * Creates a new {@link NestedTableEntry} with the provided + * {@code weight} and {@link RandomObjectTable table}. + */ + constructor(weight: number, table: org.spongepowered.api.util.weighted.RandomObjectTable) + /** + * Retrieves entries from the nested table. + */ + // @ts-ignore + public get(rand: any): any[] /*java.util.List*/; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.weighted.RandomObjectTable.ts b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.RandomObjectTable.ts new file mode 100644 index 00000000..55e3be6d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.RandomObjectTable.ts @@ -0,0 +1,100 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + abstract class RandomObjectTable { + /** + * Creates a new {@link RandomObjectTable} with the provided number of rolls. + */ + constructor(rolls: number) + /** + * Creates a new {@link RandomObjectTable} with the provided number of rolls. + */ + constructor(rolls: org.spongepowered.api.util.weighted.VariableAmount) + /** + * Gets the number of times this table will roll while retrieving items. For + * each roll a complete pass through of the table will occur. + */ + // @ts-ignore + public getRolls(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of times this table will roll while retrieving items. + */ + // @ts-ignore + public setRolls(rolls: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of times this table will roll while retrieving items. + */ + // @ts-ignore + public setRolls(rolls: number): void; + // @ts-ignore + public add(entry: org.spongepowered.api.util.weighted.TableEntry): boolean; + /** + * Adds the given object to the table with the given weight. + */ + // @ts-ignore + public add(object: any, weight: number): boolean; + // @ts-ignore + public addAll(c: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public contains(o: any): boolean; + /** + * Gets if this table contains the given object, the object may either be a + * {@link TableEntry} or the object contained within. + */ + // @ts-ignore + public containsObject(obj: any): boolean; + // @ts-ignore + public containsAll(c: any[] /*java.util.Collection*/): boolean; + /** + * Gets if this table contains all of the given objects, the objects may + * either be {@link TableEntry}s or the objects contained within the + * entries. + */ + // @ts-ignore + public containsAllObjects(c: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public remove(entry: any): boolean; + /** + * Removes the first instance of an entry in this table which is a + * {@link WeightedObject} entry and contains the given object. + */ + // @ts-ignore + public removeObject(object: any): boolean; + // @ts-ignore + public removeAll(c: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public retainAll(c: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public clear(): void; + // @ts-ignore + public size(): number; + /** + * Performs a number of rolls according to the number of rolls defined by + * {@link #getRolls()} and returns items from the table for each roll. + */ + // @ts-ignore + public abstract get(rand: any): any[] /*java.util.List*/; + /** + * Gets the entries in the table. Note that the specific sub class of this + * abstract table will determine the context that the entry weights should + * be interpreted in (either weights or chances). + */ + // @ts-ignore + public getEntries(): any[] /*java.util.List*/; + // @ts-ignore + public iterator(): any; + // @ts-ignore + public toArray(): any; + // @ts-ignore + public toArray(a: any): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.weighted.SeededVariableAmount.WrappedVariableAmount.ts b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.SeededVariableAmount.WrappedVariableAmount.ts new file mode 100644 index 00000000..8a2b3eeb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.SeededVariableAmount.WrappedVariableAmount.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + namespace SeededVariableAmount { + // @ts-ignore + class WrappedVariableAmount implements org.spongepowered.api.util.weighted.SeededVariableAmount { + /** + * Creates a new WrappedVariableAmount wrapping the given + * {@link VariableAmount}. + */ + constructor(inner: org.spongepowered.api.util.weighted.VariableAmount) + // @ts-ignore + public getAmount(rand: any, seed: any): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: any): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.weighted.SeededVariableAmount.ts b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.SeededVariableAmount.ts new file mode 100644 index 00000000..ae7ba965 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.SeededVariableAmount.ts @@ -0,0 +1,37 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + interface SeededVariableAmount { + /** + * Creates a new 'fixed' variable amount, calls to {@link #getAmount} will + * always return the fixed value. + */ + // @ts-ignore + fixed(value: number): org.spongepowered.api.util.weighted.SeededVariableAmount; + /** + * Creates a new variable amount wrapping the given {@link VariableAmount}, + * calls to {@link #getAmount} will always return wrapped amounts value. + */ + // @ts-ignore + wrapped(value: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.util.weighted.SeededVariableAmount; + /** + * Gets an instance of the variable amount depending on the given random + * object and the seed object. + */ + // @ts-ignore + getAmount(rand: any, seed: any): number; + /** + * Gets the amount as if from {@link #getAmount(Random, Object)} but floored + * to the nearest integer equivalent. + */ + // @ts-ignore + getFlooredAmount(rand: any, seed: any): number; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.weighted.TableEntry.ts b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.TableEntry.ts new file mode 100644 index 00000000..6d58afd4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.TableEntry.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + abstract class TableEntry { + /** + * Creates a new {@link TableEntry} with the desired {@code weight}. + */ + constructor(weight: number) + /** + * Gets the weight of this entry. + */ + // @ts-ignore + public getWeight(): number; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.weighted.UnmodifiableWeightedTable.ts b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.UnmodifiableWeightedTable.ts new file mode 100644 index 00000000..794ab6e8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.UnmodifiableWeightedTable.ts @@ -0,0 +1,88 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + class UnmodifiableWeightedTable extends org.spongepowered.api.util.weighted.WeightedTable { + /** + * Creates a new {@link UnmodifiableWeightedTable} with the provided + * {@link WeightedTable}. + */ + constructor(table: org.spongepowered.api.util.weighted.WeightedTable) + /** + * Creates a new {@link UnmodifiableWeightedTable} with the provided + * {@link WeightedTable} and {@code rolls}. + */ + constructor(table: org.spongepowered.api.util.weighted.WeightedTable, rolls: number) + /** + * Creates a new {@link UnmodifiableWeightedTable} with the provided + * {@link WeightedTable} and {@link VariableAmount rolls}. + */ + constructor(table: org.spongepowered.api.util.weighted.WeightedTable, rolls: org.spongepowered.api.util.weighted.VariableAmount) + // @ts-ignore + public add(entry: org.spongepowered.api.util.weighted.TableEntry): boolean; + // @ts-ignore + public add(object: any, weight: number): boolean; + // @ts-ignore + public addAll(c: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public setRolls(rolls: org.spongepowered.api.util.weighted.VariableAmount): void; + // @ts-ignore + public setRolls(rolls: number): void; + // @ts-ignore + public remove(entry: any): boolean; + // @ts-ignore + public removeObject(entry: any): boolean; + // @ts-ignore + public removeAll(c: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public removeIf(filter: any): boolean; + // @ts-ignore + public retainAll(c: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public clear(): void; + // @ts-ignore + public iterator(): any; + // @ts-ignore + public contains(o: any): boolean; + // @ts-ignore + public getRolls(): org.spongepowered.api.util.weighted.VariableAmount; + // @ts-ignore + public get(rand: any): any[] /*java.util.List*/; + // @ts-ignore + public containsObject(obj: any): boolean; + // @ts-ignore + public containsAll(c: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public containsAllObjects(c: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public size(): number; + // @ts-ignore + public getEntries(): any[] /*java.util.List*/; + // @ts-ignore + public toArray(): any; + // @ts-ignore + public toArray(a: any): any; + // @ts-ignore + public spliterator(): any; + // @ts-ignore + public stream(): any; + // @ts-ignore + public parallelStream(): any; + // @ts-ignore + public forEach(action: any): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(o: any): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.weighted.VariableAmount.BaseAndAddition.ts b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.VariableAmount.BaseAndAddition.ts new file mode 100644 index 00000000..90d87071 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.VariableAmount.BaseAndAddition.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + namespace VariableAmount { + // @ts-ignore + class BaseAndAddition implements org.spongepowered.api.util.weighted.VariableAmount { + // @ts-ignore + public getAmount(rand: any): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public getContentVersion(): number; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.weighted.VariableAmount.BaseAndVariance.ts b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.VariableAmount.BaseAndVariance.ts new file mode 100644 index 00000000..98bd345e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.VariableAmount.BaseAndVariance.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + namespace VariableAmount { + // @ts-ignore + class BaseAndVariance implements org.spongepowered.api.util.weighted.VariableAmount { + // @ts-ignore + public getAmount(rand: any): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public getContentVersion(): number; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.weighted.VariableAmount.Fixed.ts b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.VariableAmount.Fixed.ts new file mode 100644 index 00000000..d75e7710 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.VariableAmount.Fixed.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + namespace VariableAmount { + // @ts-ignore + class Fixed implements org.spongepowered.api.util.weighted.VariableAmount { + // @ts-ignore + public getAmount(rand: any): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public getContentVersion(): number; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.weighted.VariableAmount.OptionalAmount.ts b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.VariableAmount.OptionalAmount.ts new file mode 100644 index 00000000..3395dd82 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.VariableAmount.OptionalAmount.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + namespace VariableAmount { + // @ts-ignore + class OptionalAmount implements org.spongepowered.api.util.weighted.VariableAmount { + // @ts-ignore + public getAmount(rand: any): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public getContentVersion(): number; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.weighted.VariableAmount.ts b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.VariableAmount.ts new file mode 100644 index 00000000..0b25d608 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.VariableAmount.ts @@ -0,0 +1,111 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + interface VariableAmount extends org.spongepowered.api.data.DataSerializable { + /** + * Creates a new 'fixed' variable amount, calls to {@link #getAmount} will + * always return the fixed value. + */ + // @ts-ignore + fixed(value: number): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Creates a new variable amount which return values between the given min + * (inclusive) and max (exclusive). + */ + // @ts-ignore + range(min: number, max: number): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Creates a new variable about which has a base and variance. The final + * amount will be the base amount plus or minus a random amount between zero + * (inclusive) and the variance (exclusive). + */ + // @ts-ignore + baseWithVariance(base: number, variance: number): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Creates a new variable about which has a base and variance. The final + * amount will be the base amount plus or minus a random amount between zero + * (inclusive) and the variance (exclusive). + */ + // @ts-ignore + baseWithVariance(base: number, variance: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Creates a new variable amount which has a base and an additional amount. + * The final amount will be the base amount plus a random amount between + * zero (inclusive) and the additional amount (exclusive). + */ + // @ts-ignore + baseWithRandomAddition(base: number, addition: number): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Creates a new variable amount which has a base and an additional amount. + * The final amount will be the base amount plus a random amount between + * zero (inclusive) and the additional amount (exclusive). + */ + // @ts-ignore + baseWithRandomAddition(base: number, addition: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Creates a new variable about which has a base and a chance to apply a + * random variance. The chance should be between zero and one with a chance + * of one signifying that the variance will always be applied. If the chance + * succeeds then the final amount will be the base amount plus or minus a + * random amount between zero (inclusive) and the variance (exclusive). If + * the chance fails then the final amount will just be the base value. + */ + // @ts-ignore + baseWithOptionalVariance(base: number, variance: number, chance: number): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Creates a new variable about which has a base and a chance to apply a + * random variance. The chance should be between zero and one with a chance + * of one signifying that the variance will always be applied. If the chance + * succeeds then the final amount will be the base amount plus or minus a + * random amount between zero (inclusive) and the variance (exclusive). If + * the chance fails then the final amount will just be the base value. + */ + // @ts-ignore + baseWithOptionalVariance(base: number, variance: org.spongepowered.api.util.weighted.VariableAmount, chance: number): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Creates a new variable about which has a base and a chance to apply a + * random additional amount. The chance should be between zero and one with + * a chance of one signifying that the additional amount will always be + * applied. If the chance succeeds then the final amount will be the base + * amount plus a random amount between zero (inclusive) and the additional + * amount (exclusive). If the chance fails then the final amount will just + * be the base value. + */ + // @ts-ignore + baseWithOptionalAddition(base: number, addition: number, chance: number): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Creates a new variable about which has a base and a chance to apply a + * random additional amount. The chance should be between zero and one with + * a chance of one signifying that the additional amount will always be + * applied. If the chance succeeds then the final amount will be the base + * amount plus a random amount between zero (inclusive) and the additional + * amount (exclusive). If the chance fails then the final amount will just + * be the base value. + */ + // @ts-ignore + baseWithOptionalAddition(base: number, addition: org.spongepowered.api.util.weighted.VariableAmount, chance: number): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Gets an instance of the variable amount depending on the given random + * object. + */ + // @ts-ignore + getAmount(rand: any): number; + /** + * Gets the amount as if from {@link #getAmount(Random)} but floored to the + * nearest integer equivalent. + */ + // @ts-ignore + getFlooredAmount(rand: any): number; + // @ts-ignore + toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + getContentVersion(): number; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.weighted.WeightedObject.ts b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.WeightedObject.ts new file mode 100644 index 00000000..c30fb271 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.WeightedObject.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + class WeightedObject extends org.spongepowered.api.util.weighted.TableEntry { + /** + * Creates a new {@link WeightedObject} of the provided + * {@code object} and {@code weight}. + */ + constructor(obj: any, weight: number) + /** + * Gets the entry contained in this entry. + */ + // @ts-ignore + public get(): any; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.weighted.WeightedSerializableObject.ts b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.WeightedSerializableObject.ts new file mode 100644 index 00000000..ff7c5e72 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.WeightedSerializableObject.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + class WeightedSerializableObject extends org.spongepowered.api.util.weighted.WeightedObject implements org.spongepowered.api.data.DataSerializable { + /** + * Creates a new {@link WeightedSerializableObject} with the provided + * {@link DataSerializable}. + */ + constructor(object: org.spongepowered.api.data.DataSerializable, weight: number) + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public getContentVersion(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.util.weighted.WeightedTable.ts b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.WeightedTable.ts new file mode 100644 index 00000000..d4295e43 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.util.weighted.WeightedTable.ts @@ -0,0 +1,59 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + class WeightedTable extends org.spongepowered.api.util.weighted.RandomObjectTable { + /** + * Creates a new {@link WeightedTable} with a default roll + * count of {@code 1}. + */ + constructor() + /** + * Creates a new {@link WeightedTable} with the provided + * number of {@code rolls}. + */ + constructor(rolls: number) + /** + * Creates a new {@link WeightedTable} with the provided + * {@link VariableAmount} for the amount of rolls and variance. + */ + constructor(rolls: org.spongepowered.api.util.weighted.VariableAmount) + // @ts-ignore + public add(entry: org.spongepowered.api.util.weighted.TableEntry): boolean; + // @ts-ignore + public add(object: any, weight: number): boolean; + // @ts-ignore + public addAll(c: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public remove(entry: any): boolean; + // @ts-ignore + public removeObject(entry: any): boolean; + // @ts-ignore + public removeAll(c: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public retainAll(c: any[] /*java.util.Collection*/): boolean; + // @ts-ignore + public clear(): void; + /** + * Recalculates the total weight of all entries in this table. + */ + // @ts-ignore + protected recalculateWeight(): void; + // @ts-ignore + public get(rand: any): any[] /*java.util.List*/; + // @ts-ignore + public iterator(): any; + // @ts-ignore + public equals(o: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.BlockChangeFlag.ts b/packages/sponge/src/typings/org.spongepowered.api.world.BlockChangeFlag.ts new file mode 100644 index 00000000..733137b8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.BlockChangeFlag.ts @@ -0,0 +1,94 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface BlockChangeFlag { + /** + * Gets whether this flag defines that a block change should + * notify neighboring blocks. + */ + // @ts-ignore + updateNeighbors(): boolean; + /** + * Gets whether this flag defines that a block change should + * perform block physics checks or not. If not, no checks + * are performed. + */ + // @ts-ignore + performBlockPhysics(): boolean; + /** + * Gets whether this flag will update observer blocks, different + * from notifying neighbors in that neighbor notifications + * can cause further block notification loops (like redstone), + * whereas this focuses on {@link BlockTypes#OBSERVER} blocks + * being told of updates. + */ + // @ts-ignore + notifyObservers(): boolean; + /** + * Gets the equivalent {@link BlockChangeFlag} of this flag with all + * other flags while having the desired {@code updateNeighbors} + * as defined by the parameter. + */ + // @ts-ignore + withUpdateNeighbors(updateNeighbors: boolean): org.spongepowered.api.world.BlockChangeFlag; + /** + * Gets the equivalent {@link BlockChangeFlag} of this flag + * with all other flags while having the desired {@code performBlockPhysics} + * as defined by the parameter. + */ + // @ts-ignore + withPhysics(performBlockPhysics: boolean): org.spongepowered.api.world.BlockChangeFlag; + /** + * Gets the equivalent {@link BlockChangeFlag} of this flag with all + * other flags while having the desired {@code notifyObservers} + * as defined by the parameter. + */ + // @ts-ignore + withNotifyObservers(notifyObservers: boolean): org.spongepowered.api.world.BlockChangeFlag; + /** + * Gets the inverted {@link BlockChangeFlag} of this flag. + * Normally, this may cancel out certain interactions, such + * as physics, neighbor notifications, or even observer + * notifications. In certain circumstances, some flags may + * even require clients to rejoin the world or restart their + * connections to the server. + */ + // @ts-ignore + inverse(): org.spongepowered.api.world.BlockChangeFlag; + /** + * Gets the equivalent {@link BlockChangeFlag} of this flag + * with the {@code true}s set for this flag and the provided + * {@code flag}, such that only if both flags have the same + * {@code true} flags set will persist. + *For example, if this flag has {@link #notifyObservers()} + * and the incoming flag has {@link #notifyObservers()} returning + * {@code true}, the resulting flag will have + * {@link #notifyObservers()} return {@code true} as well. The + * inverse is also true. If either has differing flags for any + * of the above methods, the resulting flag will have a + * {@code false} value.
+ */ + // @ts-ignore + andFlag(flag: org.spongepowered.api.world.BlockChangeFlag): org.spongepowered.api.world.BlockChangeFlag; + /** + * Gets the equivalent {@link BlockChangeFlag} of this flag + * with the {@code true}s set for this flag and the provided + * {@code flag}, such that only if both flags have the same + * {@code true} flags set will persist. + *For example, if this flag has {@link #notifyObservers()} + * and the incoming flag has {@link #notifyObservers()} returning + * {@code true}, the resulting flag will have + * {@link #notifyObservers()} return {@code true} as well. The + * inverse is also true. If either has differing flags for any + * of the above methods, the resulting flag will have a + * {@code false} value.
+ */ + // @ts-ignore + andNotFlag(flag: org.spongepowered.api.world.BlockChangeFlag): org.spongepowered.api.world.BlockChangeFlag; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.BlockChangeFlags.ts b/packages/sponge/src/typings/org.spongepowered.api.world.BlockChangeFlags.ts new file mode 100644 index 00000000..cc539f0a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.BlockChangeFlags.ts @@ -0,0 +1,29 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + class BlockChangeFlags { + // @ts-ignore + public static ALL: org.spongepowered.api.world.BlockChangeFlag; + // @ts-ignore + public static NEIGHBOR: org.spongepowered.api.world.BlockChangeFlag; + // @ts-ignore + public static NEIGHBOR_OBSERVER: org.spongepowered.api.world.BlockChangeFlag; + // @ts-ignore + public static NEIGHBOR_PHYSICS: org.spongepowered.api.world.BlockChangeFlag; + // @ts-ignore + public static NEIGHBOR_PHYSICS_OBSERVER: org.spongepowered.api.world.BlockChangeFlag; + // @ts-ignore + public static NONE: org.spongepowered.api.world.BlockChangeFlag; + // @ts-ignore + public static OBSERVER: org.spongepowered.api.world.BlockChangeFlag; + // @ts-ignore + public static PHYSICS: org.spongepowered.api.world.BlockChangeFlag; + // @ts-ignore + public static PHYSICS_OBSERVER: org.spongepowered.api.world.BlockChangeFlag; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.Chunk.ts b/packages/sponge/src/typings/org.spongepowered.api.world.Chunk.ts new file mode 100644 index 00000000..9276bd63 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.Chunk.ts @@ -0,0 +1,98 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface Chunk extends org.spongepowered.api.world.extent.Extent { + // @ts-ignore + getLocation(position: any /*Vector3i*/): org.spongepowered.api.world.Location; + // @ts-ignore + getLocation(x: number, y: number, z: number): org.spongepowered.api.world.Location; + // @ts-ignore + getLocation(position: any /*Vector3d*/): org.spongepowered.api.world.Location; + // @ts-ignore + getLocation(x: number, y: number, z: number): org.spongepowered.api.world.Location; + /** + * Gets the position of the chunk. + *The returned position is 3-dimensional with the Y-coordinate set to be + * the base (lowest) Y-position of the chunk. As 3-dimensional chunks do not + * yet exist in Minecraft, the returned position will always have a + * {@code y} set to 0.
+ */ + // @ts-ignore + getPosition(): any /*Vector3i*/; + /** + * Gets the world the chunk is in. + */ + // @ts-ignore + getWorld(): org.spongepowered.api.world.World; + /** + * Gets if the chunk has been populated by the generator. + */ + // @ts-ignore + isPopulated(): boolean; + /** + * Loads this chunk, and generates if specified and required. + */ + // @ts-ignore + loadChunk(generate: boolean): boolean; + /** + * Unloads this chunk, if possible. + */ + // @ts-ignore + unloadChunk(): boolean; + /** + * Gets the number of ticks players have been present in this chunk, used + * for calculation of the regional difficulty factor. In vanilla, it is + * increased by the number of players in the chunk every tick, and is capped + * at 3,600,000 ticks (50 hours). + */ + // @ts-ignore + getInhabittedTime(): number; + /** + * Gets the number of ticks players have been present in this chunk, used + * for calculation of the regional difficulty factor. In vanilla, it is + * increased by the number of players in the chunk every tick, and is capped + * at 3,600,000 ticks (50 hours). + */ + // @ts-ignore + getInhabitedTime(): number; + /** + * Gets the regional difficulty factor for this chunk. In vanilla, it is + * dependent on the playtime of the world, inhabited time of the chunk, the + * phase of the moon, and the current difficulty setting. This number ranges + * from 0.75-1.5 on easy, 1.5-4.0 on normal, and 2.25-6.75 on hard. + *This value is used for display only in vanilla.
+ */ + // @ts-ignore + getRegionalDifficultyFactor(): number; + /** + * Gets the regional difficulty percentage for this chunk. It is calculated + * by taking the regional difficulty factor and using the following rules: + * If the factor is less than 2.0, the percentage is 0%. If the factor is + * greater than 4.0, the percentage is 100%. Otherwise, the percentage is + * the factor minus 2.0, divided by 2.0. + *This is the value that is used in vanilla to find which effects are + * caused by the regional difficulty.
+ */ + // @ts-ignore + getRegionalDifficultyPercentage(): number; + /** + * Gets the chunk in the given direction from this chunk, if it exists. + */ + // @ts-ignore + getNeighbor(direction: org.spongepowered.api.util.Direction): any; + /** + * Gets the chunk in the given direction from this chunk. + */ + // @ts-ignore + getNeighbor(direction: org.spongepowered.api.util.Direction, shouldLoad: boolean): any; + // @ts-ignore + getBiomeWorker(): org.spongepowered.api.world.extent.worker.MutableBiomeVolumeWorker; + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.ChunkPreGenerate.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkPreGenerate.Builder.ts new file mode 100644 index 00000000..51dcfee3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkPreGenerate.Builder.ts @@ -0,0 +1,67 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace ChunkPreGenerate { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the owner of the resulting task. + *Mandatory.
+ */ + // @ts-ignore + owner(plugin: any): org.spongepowered.api.world.ChunkPreGenerate.Builder; + /** + * Adds a logger for logging generator efforts. + *Optional. No effect if null is passed.
+ */ + // @ts-ignore + logger(logger: any /*Logger*/): org.spongepowered.api.world.ChunkPreGenerate.Builder; + /** + * Sets the number of ticks between generation runs. + *Must be greater than 0.
+ *Optional.
+ *Default is 4.
+ */ + // @ts-ignore + tickInterval(tickInterval: number): org.spongepowered.api.world.ChunkPreGenerate.Builder; + /** + * Sets maximum number of chunks per tick to generate. + *Use a value smaller or equal to 0 to disable.
+ *Optional if {@link #tickPercentLimit(float)} is used.
+ *Default is disabled.
+ */ + // @ts-ignore + chunksPerTick(chunkCount: number): org.spongepowered.api.world.ChunkPreGenerate.Builder; + /** + * Sets the limit of tick time that can be used to generate chunks as a + * percentage of {@link Scheduler#getPreferredTickInterval()}. The + * percentage must be a value in the range (0, 1]. No estimation is + * used to decide when to stop so the actual value will always be + * somewhere above the given percentage. + *Use a value smaller or equal to 0 to disable.
+ *Optional if {@link #chunksPerTick(int)} is used.
+ *Default is 80%.
+ */ + // @ts-ignore + tickPercentLimit(tickPercent: number): org.spongepowered.api.world.ChunkPreGenerate.Builder; + /** + * Adds a {@link ChunkPreGenerationEvent} listener callback that will be + * called for this, and only this, pre-generation routine. Note that + * this does not change whether the various {@link ChunkPreGenerationEvent} + * events will be called, this is a convenience method to simply setup + * a listener bound to this pre-generation. + */ + // @ts-ignore + addListener(listener: any): org.spongepowered.api.world.ChunkPreGenerate.Builder; + /** + * Schedules the task with the {@link Game#getScheduler()}. + */ + // @ts-ignore + start(): org.spongepowered.api.world.ChunkPreGenerate; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.ChunkPreGenerate.ts b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkPreGenerate.ts new file mode 100644 index 00000000..12f1d11a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkPreGenerate.ts @@ -0,0 +1,50 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface ChunkPreGenerate { + /** + * The {@link WorldProperties} of the world that this task is operating on. + */ + // @ts-ignore + getWorldProperties(): org.spongepowered.api.world.storage.WorldProperties; + /** + * The total number of chunks generated during this generation. + */ + // @ts-ignore + getTotalGeneratedChunks(): number; + /** + * The total number of chunks skipped during this generation. + */ + // @ts-ignore + getTotalSkippedChunks(): number; + /** + * The target number of chunks that will be generated or skipped + * during this generation. This includes chunks already generated + * or skipped. + */ + // @ts-ignore + getTargetTotalChunks(): number; + /** + * Gets the total wall clock time it has taken (so far) to generate + * chunks. + */ + // @ts-ignore + getTotalTime(): any; + /** + * Gets whether the task for this world has been cancelled + * (or completed). + */ + // @ts-ignore + isCancelled(): boolean; + /** + * Cancels this pre-generation if it is still running. + */ + // @ts-ignore + cancel(): void; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.ChunkRegenerateFlag.ts b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkRegenerateFlag.ts new file mode 100644 index 00000000..8eb72761 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkRegenerateFlag.ts @@ -0,0 +1,63 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface ChunkRegenerateFlag { + /** + * Gets whether this flag defines that a chunk should be created if it does + * not exist. + */ + // @ts-ignore + create(): boolean; + /** + * Gets whether this flag will preserve entities in chunks that are + * regenerated. + * Note: It is up to the implementation to decide whether this will + * include moving entities to safe locations. + */ + // @ts-ignore + entities(): boolean; + /** + * Gets the equivalent {@link ChunkRegenerateFlag} of this flag with all + * other flags while having the desired {@code create} as defined by the + * parameter. + */ + // @ts-ignore + withCreate(create: boolean): org.spongepowered.api.world.ChunkRegenerateFlag; + /** + * Gets the equivalent {@link ChunkRegenerateFlag} of this flag with all + * other flags while having the desired {@code entities} as defined by the + * parameter. + */ + // @ts-ignore + withEntities(entities: boolean): org.spongepowered.api.world.ChunkRegenerateFlag; + /** + * Gets the equivalent {@link ChunkRegenerateFlag} of this flag with the + * {@code true}s set for this flag and the provided {@code flag}, such that + * only if both flags have the same {@code true} flags set will persist. + *For example, if this flag has {@link #create()} and the incoming flag + * has {@link #create()} returning {@code true}, the resulting flag will + * have {@link #create()} return {@code true} as well. The inverse is also + * true. If either has differing flags for any of the above methods, the + * resulting flag will have a {@code false} value.
+ */ + // @ts-ignore + andFlag(flag: org.spongepowered.api.world.ChunkRegenerateFlag): org.spongepowered.api.world.ChunkRegenerateFlag; + /** + * Gets the equivalent {@link ChunkRegenerateFlag} of this flag with the + * {@code true}s set for this flag and the provided {@code flag}, such that + * only if both flags have the same {@code true} flags set will persist. + *For example, if this flag has {@link #create()} and the incoming flag + * has {@link #create()} returning {@code true}, the resulting flag will + * have {@link #create()} return {@code true} as well. The inverse is also + * true. If either has differing flags for any of the above methods, the + * resulting flag will have a {@code false} value.
+ */ + // @ts-ignore + andNotFlag(flag: org.spongepowered.api.world.ChunkRegenerateFlag): org.spongepowered.api.world.ChunkRegenerateFlag; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.ChunkRegenerateFlags.ts b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkRegenerateFlags.ts new file mode 100644 index 00000000..22b2c8d7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkRegenerateFlags.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + class ChunkRegenerateFlags { + // @ts-ignore + public static ALL: org.spongepowered.api.world.ChunkRegenerateFlag; + // @ts-ignore + public static CREATE: org.spongepowered.api.world.ChunkRegenerateFlag; + // @ts-ignore + public static ENTITIES: org.spongepowered.api.world.ChunkRegenerateFlag; + // @ts-ignore + public static NONE: org.spongepowered.api.world.ChunkRegenerateFlag; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.ChunkState.ts b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkState.ts new file mode 100644 index 00000000..9dff0563 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkState.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + class ChunkState { + // @ts-ignore + public static UNLOADED: org.spongepowered.api.world.ChunkState; + // @ts-ignore + public static NOT_GENERATED: org.spongepowered.api.world.ChunkState; + // @ts-ignore + public static NOT_POPULATED: org.spongepowered.api.world.ChunkState; + // @ts-ignore + public static LOADED: org.spongepowered.api.world.ChunkState; + // @ts-ignore + public static values(): org.spongepowered.api.world.ChunkState[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.world.ChunkState; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.Callback.ts b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.Callback.ts new file mode 100644 index 00000000..95e01d15 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.Callback.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace ChunkTicketManager { + // @ts-ignore + interface Callback { + /** + * Callback for loading Tickets during world load. + *The list of forced chunks is not saved with Tickets, this callback + * is your place to reassociate chunks to Tickets, using the extra + * information saved with the ticket or your own external configuration. + * Any unneeded tickets must be manually released.
+ *The list of tickets contains both standard plugin and + * player-associated tickets that were registered by this plugin.
+ *The list of tickets has been truncated to the maximum allowed for + * your plugin, so may not be all saved tickets in the event that the + * maximum tickets for your plugin was decreased.
+ */ + // @ts-ignore + onLoaded(tickets: any, world: org.spongepowered.api.world.World): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.EntityLoadingTicket.ts b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.EntityLoadingTicket.ts new file mode 100644 index 00000000..35b73c07 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.EntityLoadingTicket.ts @@ -0,0 +1,25 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace ChunkTicketManager { + // @ts-ignore + interface EntityLoadingTicket extends org.spongepowered.api.world.ChunkTicketManager.LoadingTicket { + /** + * Binds an Entity to this Ticket, causing the chunk the Entity is in to + * be initially loaded with the World. This makes the Entity available + * during callbacks. + */ + // @ts-ignore + bindToEntity(entity: org.spongepowered.api.entity.Entity): void; + /** + * Gets the Entity bound to this ticket. + */ + // @ts-ignore + getBoundEntity(): org.spongepowered.api.entity.Entity; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.LoadingTicket.ts b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.LoadingTicket.ts new file mode 100644 index 00000000..1630ee5f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.LoadingTicket.ts @@ -0,0 +1,96 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace ChunkTicketManager { + // @ts-ignore + interface LoadingTicket { + /** + * Sets the number of chunks this ticket will load at once. + */ + // @ts-ignore + setNumChunks(numChunks: number): boolean; + /** + * Gets the number of chunks this ticket can load at once. + */ + // @ts-ignore + getNumChunks(): number; + /** + * Gets the maximum limit on the number of concurrently loaded chunks + * this ticket can have. + */ + // @ts-ignore + getMaxNumChunks(): number; + /** + * Gets the {@link World} passed when creating this ticket. + */ + // @ts-ignore + getWorld(): org.spongepowered.api.world.World; + /** + * Gets the companion data stored in a {@link DataContainer}. Note that + * the provided {@link DataContainer} is modifiable, but a copy of the + * internal container, and as such may need to be + * {@link #setCompanionData(DataContainer)} before modifications can + * be handled. + *The sort of data stored in the container is plugin/mod dependent + * and is based on the original creator of this {@link LoadingTicket}. + * As such, the structure and particular data stored in the container + * is not concrete or defined in any specific way.
+ */ + // @ts-ignore + getCompanionData(): org.spongepowered.api.data.DataContainer; + /** + * Sets the companion data for this loading ticket. + *The sort of data stored in the container is plugin/mod dependent + * and is based on the original creator of this {@link LoadingTicket}. + * As such, the structure and particular data stored in the container + * is not concrete or defined in any specific way.
+ */ + // @ts-ignore + setCompanionData(container: org.spongepowered.api.data.DataContainer): void; + /** + * Gets the ID of the plugin that this ticket belongs to. + */ + // @ts-ignore + getPlugin(): string; + /** + * Gets the set of chunks that are being force-loaded by this ticket. + */ + // @ts-ignore + getChunkList(): any; + /** + * Force-loads a chunk using this ticket. If the configured concurrently + * loaded chunk limit is reached, the oldest loaded chunk will be + * removed. + *This does not cause an immediate load of the chunk. Forced chunks + * will be loaded eventually, but may not be available for a few ticks. + * Forced chunk loading is equivalent to the loading caused by a + * player.
+ */ + // @ts-ignore + forceChunk(chunk: any /*Vector3i*/): void; + /** + * Removes a chunk from the force-loaded set of this ticket. + */ + // @ts-ignore + unforceChunk(chunk: any /*Vector3i*/): void; + /** + * Reorders a chunk to count as the 'newest' loaded chunk, making it the + * last chunk to be removed when adding more chunks for force-loading. + */ + // @ts-ignore + prioritizeChunk(chunk: any /*Vector3i*/): void; + /** + * Releases this ticket, removing all associated chunks and freeing up + * the ticket slot for later use by a new ticket. + *After this operation the ticket is invalid and cannot be used to + * force-load chunks.
+ */ + // @ts-ignore + release(): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.OrderedCallback.ts b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.OrderedCallback.ts new file mode 100644 index 00000000..0785db40 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.OrderedCallback.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace ChunkTicketManager { + // @ts-ignore + interface OrderedCallback extends org.spongepowered.api.world.ChunkTicketManager.Callback { + /** + * Callback for loading Tickets during world load. + *During this callback you cannot associate chunks to tickets. This + * callback gets all loaded non-player tickets. The returned list will + * be truncated to maxTickets after this callback is called, and and + * tickets absent from the list will be released.
+ */ + // @ts-ignore + onLoaded(tickets: any, world: org.spongepowered.api.world.World, maxTickets: number): any[] /*java.util.List*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.PlayerEntityLoadingTicket.ts b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.PlayerEntityLoadingTicket.ts new file mode 100644 index 00000000..004ccdd8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.PlayerEntityLoadingTicket.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace ChunkTicketManager { + // @ts-ignore + interface PlayerEntityLoadingTicket extends org.spongepowered.api.world.ChunkTicketManager.PlayerLoadingTicket, org.spongepowered.api.world.ChunkTicketManager.EntityLoadingTicket { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.PlayerLoadingTicket.ts b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.PlayerLoadingTicket.ts new file mode 100644 index 00000000..9f8636d9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.PlayerLoadingTicket.ts @@ -0,0 +1,18 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace ChunkTicketManager { + // @ts-ignore + interface PlayerLoadingTicket extends org.spongepowered.api.world.ChunkTicketManager.LoadingTicket { + /** + * Gets the UUID of the player associated with this ticket. + */ + // @ts-ignore + getPlayerUniqueId(): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.PlayerOrderedCallback.ts b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.PlayerOrderedCallback.ts new file mode 100644 index 00000000..e2c44368 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.PlayerOrderedCallback.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace ChunkTicketManager { + // @ts-ignore + interface PlayerOrderedCallback extends org.spongepowered.api.world.ChunkTicketManager.Callback { + /** + * Callback for loading player Tickets during world load. + *During this callback you cannot associate chunks to tickets. This + * callback gets all player-associated tickets registered by the plugin. + * Tickets absent from the returned Multimap will be released.
+ */ + // @ts-ignore + onPlayerLoaded(tickets: any, world: org.spongepowered.api.world.World): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.ts b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.ts new file mode 100644 index 00000000..65b70c22 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.ChunkTicketManager.ts @@ -0,0 +1,78 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface ChunkTicketManager { + /** + * Sets the callback for handling loading forced chunk tickets on world + * load. + *Required for any plugin that wants to force-load chunks. Any + * plugin that does not have a registered callback will have all saved + * tickets dropped on world load.
+ */ + // @ts-ignore + registerCallback(plugin: any, callback: org.spongepowered.api.world.ChunkTicketManager.Callback): void; + /** + * Attempts to create a new loading ticket for a plugin to load chunks in a + * world. + *Plugins can be limited in the number of tickets they can create per + * world.
+ */ + // @ts-ignore + createTicket(plugin: any, world: org.spongepowered.api.world.World): any; + /** + * Attempts to create a new loading ticket for a plugin to load chunks in a + * world. + *This version is to create tickets that are bound to the existence of + * an Entity. For instance, a ticket to load the chunks a minecart is + * travelling through.
+ *Plugins can be limited in the number of tickets they can create per + * world.
+ */ + // @ts-ignore + createEntityTicket(plugin: any, world: org.spongepowered.api.world.World): any; + /** + * Attempts to create a new loading ticket for a plugin to load chunks in a + * world. The returned ticket will be associated with the given player. + *.
+ */ + // @ts-ignore + createPlayerTicket(plugin: any, world: org.spongepowered.api.world.World, player: any): any; + /** + * Attempts to create a new loading ticket for a plugin to load chunks in a + * world. The returned ticket will be associated with the given player. + *This version is to create tickets that are bound to the existence of + * an Entity. For instance, a ticket to load the chunks a minecart is + * travelling through.
+ *Plugins can be limited in the number of tickets they can create per + * world.
+ */ + // @ts-ignore + createPlayerEntityTicket(plugin: any, world: org.spongepowered.api.world.World, player: any): any; + /** + * Gets the maximum allowed per-world tickets for a plugin. + */ + // @ts-ignore + getMaxTickets(plugin: any): number; + /** + * Gets the amount of remaining tickets a plugin can have in the world + * before hitting the maximum. + */ + // @ts-ignore + getAvailableTickets(plugin: any, world: org.spongepowered.api.world.World): number; + /** + * Gets the amount of tickets remaining available for a player. + */ + // @ts-ignore + getAvailableTickets(player: any): number; + /** + * Gets the set of currently force-loaded chunks in a world. + */ + // @ts-ignore + getForcedChunks(world: org.spongepowered.api.world.World): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.Dimension.ts b/packages/sponge/src/typings/org.spongepowered.api.world.Dimension.ts new file mode 100644 index 00000000..abee2a4d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.Dimension.ts @@ -0,0 +1,53 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface Dimension extends org.spongepowered.api.service.context.ContextSource { + /** + * Gets the type of dimension. + */ + // @ts-ignore + getType(): org.spongepowered.api.world.DimensionType; + /** + * Gets the generator type of dimension. + */ + // @ts-ignore + getGeneratorType(): org.spongepowered.api.world.GeneratorType; + /** + * Returns whether players can respawn within {@link Dimension} after death. + */ + // @ts-ignore + allowsPlayerRespawns(): boolean; + /** + * Returns the minimum spawn height for {@link Dimension}. + */ + // @ts-ignore + getMinimumSpawnHeight(): number; + /** + * Returns whether water evaporates for {@link Dimension}. + */ + // @ts-ignore + doesWaterEvaporate(): boolean; + /** + * Returns whether this {@link Dimension} has a sky (lack of bedrock). + */ + // @ts-ignore + hasSky(): boolean; + /** + * Gets the highest naturally generated y-coordinate of {@link World}s in + * this dimension. Usually 128 (no sky) or 256 (sky). + */ + // @ts-ignore + getHeight(): number; + /** + * Gets the maximum y-coordinate a non-air cuboid can exist at of + * {@link World}s in this dimension. Usually 256. + */ + // @ts-ignore + getBuildHeight(): number; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.DimensionType.ts b/packages/sponge/src/typings/org.spongepowered.api.world.DimensionType.ts new file mode 100644 index 00000000..efff0f34 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.DimensionType.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface DimensionType extends org.spongepowered.api.CatalogType { + /** + * Returns the dimension class for this type. + */ + // @ts-ignore + getDimensionClass(): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.DimensionTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.world.DimensionTypes.ts new file mode 100644 index 00000000..c0e7f427 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.DimensionTypes.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + class DimensionTypes { + // @ts-ignore + public static NETHER: org.spongepowered.api.world.DimensionType; + // @ts-ignore + public static OVERWORLD: org.spongepowered.api.world.DimensionType; + // @ts-ignore + public static THE_END: org.spongepowered.api.world.DimensionType; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.GeneratorType.ts b/packages/sponge/src/typings/org.spongepowered.api.world.GeneratorType.ts new file mode 100644 index 00000000..4a6998d4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.GeneratorType.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface GeneratorType extends org.spongepowered.api.CatalogType { + /** + * Gets a copy of the default settings for this generator type. + */ + // @ts-ignore + getGeneratorSettings(): org.spongepowered.api.data.DataContainer; + /** + * Creates a new {@link WorldGenerator} for this generator type. + *This will use the default settings of this generator type.
+ */ + // @ts-ignore + createGenerator(world: org.spongepowered.api.world.World): org.spongepowered.api.world.gen.WorldGenerator; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.GeneratorTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.world.GeneratorTypes.ts new file mode 100644 index 00000000..168df1ba --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.GeneratorTypes.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + class GeneratorTypes { + // @ts-ignore + public static AMPLIFIED: org.spongepowered.api.world.GeneratorType; + // @ts-ignore + public static DEBUG: org.spongepowered.api.world.GeneratorType; + // @ts-ignore + public static DEFAULT: org.spongepowered.api.world.GeneratorType; + // @ts-ignore + public static FLAT: org.spongepowered.api.world.GeneratorType; + // @ts-ignore + public static LARGE_BIOMES: org.spongepowered.api.world.GeneratorType; + // @ts-ignore + public static NETHER: org.spongepowered.api.world.GeneratorType; + // @ts-ignore + public static OVERWORLD: org.spongepowered.api.world.GeneratorType; + // @ts-ignore + public static THE_END: org.spongepowered.api.world.GeneratorType; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.Locatable.ts b/packages/sponge/src/typings/org.spongepowered.api.world.Locatable.ts new file mode 100644 index 00000000..7111f38a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.Locatable.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface Locatable { + /** + * Gets the location of the source. + */ + // @ts-ignore + getLocation(): org.spongepowered.api.world.Location; + /** + * Gets the world that this source resides in. + */ + // @ts-ignore + getWorld(): org.spongepowered.api.world.World; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.LocatableBlock.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.LocatableBlock.Builder.ts new file mode 100644 index 00000000..c8c6e496 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.LocatableBlock.Builder.ts @@ -0,0 +1,49 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace LocatableBlock { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.persistence.DataBuilder { + /** + * Sets the {@link BlockState} for this builder. + */ + // @ts-ignore + state(blockState: org.spongepowered.api.block.BlockState): org.spongepowered.api.world.LocatableBlock.Builder; + /** + * Sets the {@link BlockState} and {@link Vector3i position} for this + * builder. + */ + // @ts-ignore + location(location: org.spongepowered.api.world.Location): org.spongepowered.api.world.LocatableBlock.Builder; + /** + * Sets the {@link Vector3i position} for this builder. + */ + // @ts-ignore + position(position: any /*Vector3i*/): org.spongepowered.api.world.LocatableBlock.Builder; + /** + * Sets the {@code x} {@code y} {@code z} positions for this builder. + */ + // @ts-ignore + position(x: number, y: number, z: number): org.spongepowered.api.world.LocatableBlock.Builder; + /** + * Sets the {@link World} for this builder, used to get the {@link BlockState} + * for a desired position. + */ + // @ts-ignore + world(world: org.spongepowered.api.world.World): org.spongepowered.api.world.LocatableBlock.Builder; + // @ts-ignore + reset(): org.spongepowered.api.world.LocatableBlock.Builder; + // @ts-ignore + from(value: org.spongepowered.api.world.LocatableBlock): org.spongepowered.api.world.LocatableBlock.Builder; + /** + * Creates a new {@link LocatableBlock}. + */ + // @ts-ignore + build(): org.spongepowered.api.world.LocatableBlock; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.LocatableBlock.ts b/packages/sponge/src/typings/org.spongepowered.api.world.LocatableBlock.ts new file mode 100644 index 00000000..8aec0dea --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.LocatableBlock.ts @@ -0,0 +1,26 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface LocatableBlock extends org.spongepowered.api.data.ImmutableDataHolder, org.spongepowered.api.world.Locatable { + /** + * Creates a new {@link Builder} for creating new {@link LocatableBlock}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.LocatableBlock.Builder; + /** + * Gets the {@link BlockState} for this locatable block. + */ + // @ts-ignore + getBlockState(): org.spongepowered.api.block.BlockState; + /** + * Gets the {@link Vector3i position} for this locatable block. + */ + // @ts-ignore + getPosition(): any /*Vector3i*/; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.Location.ts b/packages/sponge/src/typings/org.spongepowered.api.world.Location.ts new file mode 100644 index 00000000..b3788f29 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.Location.ts @@ -0,0 +1,387 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + class Location implements org.spongepowered.api.data.DataHolder { + /** + * Create a new instance. + */ + constructor(extent: org.spongepowered.api.world.extent.Extent, position: any /*Vector3d*/) + /** + * Create a new instance. + */ + constructor(extent: org.spongepowered.api.world.extent.Extent, x: number, y: number, z: number) + /** + * Create a new instance. + */ + constructor(extent: org.spongepowered.api.world.extent.Extent, blockPosition: any /*Vector3i*/) + /** + * Create a new instance. + */ + constructor(extent: org.spongepowered.api.world.extent.Extent, x: number, y: number, z: number) + /** + * Gets the underlying extent. + *Note: This can be null if the {@link Extent} is unloaded and garbage + * collected.
+ */ + // @ts-ignore + public getExtent(): org.spongepowered.api.world.extent.Extent; + /** + * Gets the underlying position. + */ + // @ts-ignore + public getPosition(): any /*Vector3d*/; + /** + * Gets the underlying block position. + */ + // @ts-ignore + public getBlockPosition(): any /*Vector3i*/; + /** + * Gets the underlying chunk position. + */ + // @ts-ignore + public getChunkPosition(): any /*Vector3i*/; + /** + * Gets the underlying biome position. + */ + // @ts-ignore + public getBiomePosition(): any /*Vector3i*/; + /** + * Gets the X component of this instance's position. + */ + // @ts-ignore + public getX(): number; + /** + * Gets the Y component of this instance's position. + */ + // @ts-ignore + public getY(): number; + /** + * Gets the Z component of this instance's position. + */ + // @ts-ignore + public getZ(): number; + /** + * Gets the floored X component of this instance's position. + */ + // @ts-ignore + public getBlockX(): number; + /** + * Gets the floored Y component of this instance's position. + */ + // @ts-ignore + public getBlockY(): number; + /** + * Gets the floored Z component of this instance's position. + */ + // @ts-ignore + public getBlockZ(): number; + /** + * Returns true if this location is in the given extent. This is implemented + * as an {@link Object#equals(Object)} check. + */ + // @ts-ignore + public inExtent(extent: org.spongepowered.api.world.extent.Extent): boolean; + /** + * Returns true if this location has a biome at its + * {@link #getBiomePosition()}. + */ + // @ts-ignore + public hasBiome(): boolean; + /** + * Returns true if this location has a block at its + * {@link #getBlockPosition()} ()}. + */ + // @ts-ignore + public hasBlock(): boolean; + /** + * Gets a {@link LocatableBlock} if the parent {@link Extent} of this + * {@link Location} is a {@link World}. + */ + // @ts-ignore + public getLocatableBlock(): any; + /** + * Create a new instance with a new extent. + */ + // @ts-ignore + public setExtent(extent: org.spongepowered.api.world.extent.Extent): org.spongepowered.api.world.Location; + /** + * Create a new instance with a new position. + */ + // @ts-ignore + public setPosition(position: any /*Vector3d*/): org.spongepowered.api.world.Location; + /** + * Create a new instance with a new block position. + */ + // @ts-ignore + public setBlockPosition(position: any /*Vector3i*/): org.spongepowered.api.world.Location; + /** + * Subtract another Vector3d to the position on this instance, returning + * a new Location instance. + */ + // @ts-ignore + public sub(v: any /*Vector3d*/): org.spongepowered.api.world.Location; + /** + * Subtract another Vector3i to the position on this instance, returning + * a new Location instance. + */ + // @ts-ignore + public sub(v: any /*Vector3i*/): org.spongepowered.api.world.Location; + /** + * Subtract vector components to the position on this instance, returning a + * new Location instance. + */ + // @ts-ignore + public sub(x: number, y: number, z: number): org.spongepowered.api.world.Location; + /** + * Add another Vector3d to the position on this instance, returning a new + * Location instance. + */ + // @ts-ignore + public add(v: any /*Vector3d*/): org.spongepowered.api.world.Location; + /** + * Add another Vector3i to the position on this instance, returning a new + * Location instance. + */ + // @ts-ignore + public add(v: any /*Vector3i*/): org.spongepowered.api.world.Location; + /** + * Add vector components to the position on this instance, returning a new + * Location instance. + */ + // @ts-ignore + public add(x: number, y: number, z: number): org.spongepowered.api.world.Location; + /** + * Calls the mapper function on the extent and position. + */ + // @ts-ignore + public map(mapper: any): any; + /** + * Calls the mapper function on the extent and block position. + */ + // @ts-ignore + public mapBlock(mapper: any): any; + /** + * Calls the mapper function on the extent and chunk position. + */ + // @ts-ignore + public mapChunk(mapper: any): any; + /** + * Calls the mapper function on the extent and biome position. + */ + // @ts-ignore + public mapBiome(mapper: any): any; + /** + * Gets the location next to this one in the given direction. + * Always moves by a unit amount, even diagonally. + */ + // @ts-ignore + public getRelative(direction: org.spongepowered.api.util.Direction): org.spongepowered.api.world.Location; + /** + * Gets the location next to this one in the given direction. + * Always moves by a block amount, even diagonally. + *{@link org.spongepowered.api.util.Direction.Division#SECONDARY_ORDINAL} + * directions are not a valid argument. These will throw an exception. + *
+ */ + // @ts-ignore + public getBlockRelative(direction: org.spongepowered.api.util.Direction): org.spongepowered.api.world.Location; + /** + * Gets the block at this location. + */ + // @ts-ignore + public getBiome(): org.spongepowered.api.world.biome.BiomeType; + /** + * Gets the base type of block. + *The type does not include block data such as the contents of + * inventories.
+ */ + // @ts-ignore + public getBlockType(): org.spongepowered.api.block.BlockType; + /** + * Gets the {@link BlockState} for this position. + */ + // @ts-ignore + public getBlock(): org.spongepowered.api.block.BlockState; + /** + * Checks for whether the block at this position contains tile entity data. + */ + // @ts-ignore + public hasTileEntity(): boolean; + /** + * Gets the associated {@link TileEntity} on this block. + */ + // @ts-ignore + public getTileEntity(): any; + /** + * Replace the block at this position with a new state. + *This will remove any extended block data at the given position.
+ */ + // @ts-ignore + public setBlock(state: org.spongepowered.api.block.BlockState): boolean; + /** + * Replace the block at this position with a new state. + *This will remove any extended block data at the given position.
+ */ + // @ts-ignore + public setBlock(state: org.spongepowered.api.block.BlockState, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Replace the block type at this position by a new type. + *This will remove any extended block data at the given position.
+ */ + // @ts-ignore + public setBlockType(type: org.spongepowered.api.block.BlockType): boolean; + /** + * Replace the block type at this position by a new type. + *This will remove any extended block data at the given position.
+ */ + // @ts-ignore + public setBlockType(type: org.spongepowered.api.block.BlockType, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Replace the block at this position with a copy of the given snapshot. + *Changing the snapshot afterwards will not affect the block that has + * been placed at this location.
+ */ + // @ts-ignore + public restoreSnapshot(snapshot: org.spongepowered.api.block.BlockSnapshot, force: boolean, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Remove the block at this position by replacing it with + * {@link BlockTypes#AIR}. + *This will remove any extended block data at the given position.
+ */ + // @ts-ignore + public removeBlock(): boolean; + /** + * Create an entity instance at the given position. + *Creating an entity does not spawn the entity into the world. An entity + * created means the entity can be spawned at the given location. If + * {@link Optional#empty()} was returned, the entity is not able to spawn at + * the given location. Furthermore, this allows for the {@link Entity} to be + * customized further prior to traditional "ticking" and processing by core + * systems.
+ */ + // @ts-ignore + public createEntity(type: org.spongepowered.api.entity.EntityType): org.spongepowered.api.entity.Entity; + /** + * Spawns an {@link Entity} using the already set properties (extent, + * position, rotation) and applicable {@link DataManipulator}s with the + * specified {@link Cause} for spawning the entity. + *Note that for the {@link Cause} to be useful in the expected + * {@link SpawnEntityEvent}, a {@link SpawnType} should be provided in the + * {@link EventContext} for other plugins to understand and have finer + * control over the event.
+ *The requirements involve that all necessary setup of states and data + * is already preformed on the entity retrieved from the various + * {@link EntityUniverse#createEntity(EntityType,Vector3d)} methods. Calling + * this will make the now-spawned entity able to be processed by various + * systems.
+ *If the entity was unable to spawn, the entity is not removed, but it + * should be taken note that there can be many reasons for a failure.
+ */ + // @ts-ignore + public spawnEntity(entity: org.spongepowered.api.entity.Entity): boolean; + /** + * Similar to {@link #spawnEntity(Entity)} except where multiple + * entities can be attempted to be spawned with a customary {@link Cause}. + * The recommended use is to easily process the entity spawns without + * interference with the cause tracking system. + */ + // @ts-ignore + public spawnEntities(entities: any): any[] /*java.util.Collection*/; + /** + * Gets the highest {@link Location} at this location. + */ + // @ts-ignore + public asHighestLocation(): org.spongepowered.api.world.Location; + // @ts-ignore + public remove(containerClass: any): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public remove(value: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public remove(key: org.spongepowered.api.data.key.Key): org.spongepowered.api.data.DataTransactionResult; + /** + * Gets a snapshot of this block at the current point in time. + *A snapshot is disconnected from the {@link Extent} that it was taken + * from so changes to the original block do not affect the snapshot.
+ */ + // @ts-ignore + public createSnapshot(): org.spongepowered.api.block.BlockSnapshot; + /** + * Gets a list of {@link ScheduledBlockUpdate}s on this block. + */ + // @ts-ignore + public getScheduledUpdates(): any[] /*java.util.Collection*/; + /** + * Adds a new {@link ScheduledBlockUpdate} to this block. + */ + // @ts-ignore + public addScheduledUpdate(priority: number, ticks: number): org.spongepowered.api.block.ScheduledBlockUpdate; + /** + * Removes a {@link ScheduledBlockUpdate} from this block. + */ + // @ts-ignore + public removeScheduledUpdate(update: org.spongepowered.api.block.ScheduledBlockUpdate): void; + // @ts-ignore + public getProperty(propertyClass: any): any; + // @ts-ignore + public getApplicableProperties(): any[] /*java.util.Collection*/; + // @ts-ignore + public validateRawData(container: org.spongepowered.api.data.DataView): boolean; + // @ts-ignore + public setRawData(container: org.spongepowered.api.data.DataView): void; + // @ts-ignore + public getContentVersion(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public get(containerClass: any): any; + // @ts-ignore + public get(key: org.spongepowered.api.data.key.Key): any; + // @ts-ignore + public getOrCreate(containerClass: any): any; + // @ts-ignore + public offer(key: org.spongepowered.api.data.key.Key, value: any): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public offer(valueHolders: any): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public offer(values: any, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public offer(value: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public offer(valueContainer: org.spongepowered.api.data.manipulator.DataManipulator): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public offer(valueContainer: org.spongepowered.api.data.manipulator.DataManipulator, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public undo(result: org.spongepowered.api.data.DataTransactionResult): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public supports(holderClass: any): boolean; + // @ts-ignore + public supports(key: org.spongepowered.api.data.key.Key): boolean; + // @ts-ignore + public transform(key: org.spongepowered.api.data.key.Key, func: any): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public copyFrom(that: org.spongepowered.api.data.DataHolder): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public copyFrom(that: org.spongepowered.api.data.DataHolder, strategy: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public getContainers(): any[] /*java.util.Collection*/; + // @ts-ignore + public getValue(key: org.spongepowered.api.data.key.Key): any; + // @ts-ignore + public copy(): org.spongepowered.api.world.Location; + // @ts-ignore + public getKeys(): any[] /*java.util.Set*/; + // @ts-ignore + public getValues(): any[] /*java.util.Set*/; + // @ts-ignore + public toString(): string; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(other: any): boolean; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.PortalAgent.ts b/packages/sponge/src/typings/org.spongepowered.api.world.PortalAgent.ts new file mode 100644 index 00000000..ef8a0a04 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.PortalAgent.ts @@ -0,0 +1,62 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface PortalAgent { + /** + * Gets the search radius before a new acceptable "portal" location is + * created. + */ + // @ts-ignore + getSearchRadius(): number; + /** + * Sets the search radius before a new acceptable "portal" location is + * created. + */ + // @ts-ignore + setSearchRadius(radius: number): org.spongepowered.api.world.PortalAgent; + /** + * Gets the radius of where a "portal" can be created. + */ + // @ts-ignore + getCreationRadius(): number; + /** + * Sets the creation radius of where a portal may be created. + */ + // @ts-ignore + setCreationRadius(radius: number): org.spongepowered.api.world.PortalAgent; + /** + * Attempts to find a "portal" location, or if none are available, creates + * one. Returns {@link Optional#empty()} if none are found. + */ + // @ts-ignore + findOrCreatePortal(targetLocation: org.spongepowered.api.world.Location): any; + /** + * Attempts to find a "portal" location. Returns {@link Optional#empty()} if + * none are found. + */ + // @ts-ignore + findPortal(targetLocation: org.spongepowered.api.world.Location): any; + /** + * Tells this agent to create a new "portal" location at the suggested + * {@link Location}. + * If {@link org.spongepowered.api.event.block.ChangeBlockEvent.Place} + * is cancelled, {@link Optional#empty()} is returned. + * Note: In order to adjust or prevent the {@link Location}'s of each + * {@link BlockState} set, listen to + * {@link org.spongepowered.api.event.block.ChangeBlockEvent.Place} and + * check for the root cause of this portal agent. + */ + // @ts-ignore + createPortal(targetLocation: org.spongepowered.api.world.Location): any; + /** + * Gets the type of {@link PortalAgent}. + */ + // @ts-ignore + getType(): org.spongepowered.api.world.PortalAgentType; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.PortalAgentType.ts b/packages/sponge/src/typings/org.spongepowered.api.world.PortalAgentType.ts new file mode 100644 index 00000000..129e3637 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.PortalAgentType.ts @@ -0,0 +1,16 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface PortalAgentType extends org.spongepowered.api.CatalogType { + /** + * Returns the {@link PortalAgent} class for this type. + */ + // @ts-ignore + getPortalAgentClass(): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.PortalAgentTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.world.PortalAgentTypes.ts new file mode 100644 index 00000000..601ed894 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.PortalAgentTypes.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + class PortalAgentTypes { + // @ts-ignore + public static DEFAULT: org.spongepowered.api.world.PortalAgentType; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.SerializationBehavior.ts b/packages/sponge/src/typings/org.spongepowered.api.world.SerializationBehavior.ts new file mode 100644 index 00000000..312c4b1f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.SerializationBehavior.ts @@ -0,0 +1,11 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface SerializationBehavior extends org.spongepowered.api.CatalogType { + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.SerializationBehaviors.ts b/packages/sponge/src/typings/org.spongepowered.api.world.SerializationBehaviors.ts new file mode 100644 index 00000000..46872846 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.SerializationBehaviors.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + class SerializationBehaviors { + /** + * You should not be using this constructor, it will be made private in + * API 8. + */ + constructor() + // @ts-ignore + public static AUTOMATIC: org.spongepowered.api.world.SerializationBehavior; + // @ts-ignore + public static MANUAL: org.spongepowered.api.world.SerializationBehavior; + // @ts-ignore + public static NONE: org.spongepowered.api.world.SerializationBehavior; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.TeleportHelper.ts b/packages/sponge/src/typings/org.spongepowered.api.world.TeleportHelper.ts new file mode 100644 index 00000000..d6e3d4b5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.TeleportHelper.ts @@ -0,0 +1,75 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface TeleportHelper { + // @ts-ignore + DEFAULT_HEIGHT: number; + // @ts-ignore + DEFAULT_WIDTH: number; + // @ts-ignore + DEFAULT_FLOOR_CHECK_DISTANCE: number; + /** + * Gets the next safe {@link Location} around the given location. + *Safe entails that the returned location will not be somewhere that + * would harm an {@link Entity}. This method will use the default height and + * width for a search area, and will check for a suitable floor up to two + * blocks below any selected block.
+ *It's possible the same location will be returned that was passed in. + * This means it was safe.
+ */ + // @ts-ignore + getSafeLocation(location: org.spongepowered.api.world.Location): any; + /** + * Gets the next safe {@link Location} around the given location with a + * given tolerance and search radius. + *Safe entails that the returned location will not be somewhere that + * would harm an {@link Entity}.
+ *It's possible the same location will be returned that was passed in. + * This means it was safe.
+ *This method will check for a suitable floor up to two blocks below + * any selected block.
+ *This method will use the default {@link TeleportHelperFilter}
+ */ + // @ts-ignore + getSafeLocation(location: org.spongepowered.api.world.Location, height: number, width: number): any; + /** + * Gets the next safe {@link Location} around the given location with a + * given tolerance and search radius. + *Safe entails that the returned location will not be somewhere that + * would harm an {@link Entity}.
+ *It's possible the same location will be returned that was passed in. + * This means it was safe.
+ *This method will use the default {@link TeleportHelperFilter} and will + * respect the blacklist.
+ */ + // @ts-ignore + getSafeLocation(location: org.spongepowered.api.world.Location, height: number, width: number, floorDistance: number): any; + /** + * Gets the next safe {@link Location} around the given location with a + * given tolerance and search radius. + *Safe entails that the returned location will not be somewhere that + * would harm an {@link Entity}.
+ *It's possible the same location will be returned that was passed in. + * This means it was safe.
+ */ + // @ts-ignore + getSafeLocation(location: org.spongepowered.api.world.Location, height: number, width: number, floorDistance: number, filter: org.spongepowered.api.world.teleport.TeleportHelperFilter, additionalFilters: org.spongepowered.api.world.teleport.TeleportHelperFilter): any; + /** + * Gets the next safe {@link Location} around the given location with a + * given tolerance and search radius. + *Safe entails that the returned location will not be somewhere that + * would harm an {@link Entity}.
+ *It's possible the same location will be returned that was passed in. + * This means it was safe.
+ *This method will use the defined blacklist, effectively an equivalent + * to adding {@link TeleportHelperFilters#CONFIG} to the filter set.
+ */ + // @ts-ignore + getSafeLocationWithBlacklist(location: org.spongepowered.api.world.Location, height: number, width: number, floorDistance: number, filters: org.spongepowered.api.world.teleport.TeleportHelperFilter): any; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.World.ts b/packages/sponge/src/typings/org.spongepowered.api.world.World.ts new file mode 100644 index 00000000..3c5042cd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.World.ts @@ -0,0 +1,266 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface World extends org.spongepowered.api.world.extent.Extent, org.spongepowered.api.world.weather.WeatherUniverse, org.spongepowered.api.effect.Viewer, org.spongepowered.api.service.context.ContextSource, org.spongepowered.api.text.channel.MessageReceiver, org.spongepowered.api.text.channel.ChatTypeMessageReceiver { + /** + * Gets an unmodifiable collection of {@link Player}s currently in this world. + */ + // @ts-ignore + getPlayers(): any[] /*java.util.Collection*/; + // @ts-ignore + getLocation(position: any /*Vector3i*/): org.spongepowered.api.world.Location; + // @ts-ignore + getLocation(x: number, y: number, z: number): org.spongepowered.api.world.Location; + // @ts-ignore + getLocation(position: any /*Vector3d*/): org.spongepowered.api.world.Location; + // @ts-ignore + getLocation(x: number, y: number, z: number): org.spongepowered.api.world.Location; + /** + * Gets a {@link LocatableBlock} for the desired {@link Vector3i} position. + */ + // @ts-ignore + getLocatableBlock(position: any /*Vector3i*/): org.spongepowered.api.world.LocatableBlock; + /** + * Gets a {@link LocatableBlock} for the desired {@code x, y, z} coordinates. + */ + // @ts-ignore + getLocatableBlock(x: number, y: number, z: number): org.spongepowered.api.world.LocatableBlock; + /** + * Gets the loaded chunk at the given block coordinate position. + */ + // @ts-ignore + getChunkAtBlock(blockPosition: any /*Vector3i*/): any; + /** + * Gets the loaded chunk at the given block coordinate position. + */ + // @ts-ignore + getChunkAtBlock(bx: number, by: number, bz: number): any; + /** + * Gets the loaded chunk at the given chunk coordinate position. + */ + // @ts-ignore + getChunk(chunkPosition: any /*Vector3i*/): any; + /** + * Gets the loaded chunk at the given chunk coordinate position. + *In Vanilla, the y coordinate will always be 0.
+ */ + // @ts-ignore + getChunk(cx: number, cy: number, cz: number): any; + /** + * Gets the chunk at the given chunk coordinate position if it exists or if + * {@code shouldGenerate} is true and the chunk is generated. + */ + // @ts-ignore + loadChunk(chunkPosition: any /*Vector3i*/, shouldGenerate: boolean): any; + /** + * Gets the chunk at the given chunk coordinate position if it exists or if + * {@code shouldGenerate} is true and the chunk is generated. + *In Vanilla, the y coordinate will always be 0.
+ */ + // @ts-ignore + loadChunk(cx: number, cy: number, cz: number, shouldGenerate: boolean): any; + /** + * Gets the chunk at the given chunk coordinate position if it exists or if + * {@code shouldGenerate} is true and the chunk is generated. + *Unlike {@link #loadChunk(Vector3i, boolean)} this method allows the + * implementation to load the chunk asynchronously without blocking the + * main server thread. The {@link Future} will be called with the chunk once + * the operation was completed.
+ *Note: If asynchronous chunk loading is not supported by + * the implementation, the chunk will be loaded synchronously and the + * {@link Future} will be called immediately.
+ */ + // @ts-ignore + loadChunkAsync(chunkPosition: any /*Vector3i*/, shouldGenerate: boolean): any; + /** + * Gets the chunk at the given chunk coordinate position if it exists or if + * {@code shouldGenerate} is true and the chunk is generated. + *Unlike {@link #loadChunk(Vector3i, boolean)} this method allows the + * implementation to load the chunk asynchronously without blocking the + * main server thread. The {@link Future} will be called with the chunk once + * the operation was completed.
+ *Note: If asynchronous chunk loading is not supported by + * the implementation, the chunk will be loaded synchronously and the + * {@link Future} will be called immediately.
+ */ + // @ts-ignore + loadChunkAsync(cx: number, cy: number, cz: number, shouldGenerate: boolean): any; + /** + * Regenerates a chunk at the given chunk coordinate position. + */ + // @ts-ignore + regenerateChunk(chunkPosition: any /*Vector3i*/): any; + /** + * Regenerates a chunk at the given chunk coordinates. + */ + // @ts-ignore + regenerateChunk(cx: number, cy: number, cz: number): any; + /** + * Regenerates a chunk at the given chunk coordinate position. + */ + // @ts-ignore + regenerateChunk(chunkPosition: any /*Vector3i*/, flag: org.spongepowered.api.world.ChunkRegenerateFlag): any; + /** + * Regenerates a chunk at the given chunk coordinates. + */ + // @ts-ignore + regenerateChunk(cx: number, cy: number, cz: number, flag: org.spongepowered.api.world.ChunkRegenerateFlag): any; + /** + * Unloads the given chunk from the world. Returns a {@code boolean} flag + * for whether the operation was successful. + */ + // @ts-ignore + unloadChunk(chunk: org.spongepowered.api.world.Chunk): boolean; + /** + * Returns a Collection of all actively loaded chunks in this world. + *The ordering of the returned chunks is undefined.
+ */ + // @ts-ignore + getLoadedChunks(): any; + /** + * Gets the entity whose {@link UUID} matches the provided id, possibly + * returning no entity if the entity is not loaded or non-existent. + *For world implementations, only some parts of the world is usually + * loaded, so this method may return no entity if the entity is not + * loaded.
+ */ + // @ts-ignore + getEntity(uuid: any): any; + /** + * Gets the world border for the world. + */ + // @ts-ignore + getWorldBorder(): org.spongepowered.api.world.WorldBorder; + /** + * Returns a new builder for creating a task to pre-generate the chunks + * inside a square border with a given center and diameter. + */ + // @ts-ignore + newChunkPreGenerate(center: any /*Vector3d*/, diameter: number): org.spongepowered.api.world.ChunkPreGenerate.Builder; + /** + * Returns the {@link Dimension} of this world. + */ + // @ts-ignore + getDimension(): org.spongepowered.api.world.Dimension; + /** + * Gets the {@link WorldGenerator} for this world. + *Any changes made to the world generator will only affect newly + * generated chunks.
+ */ + // @ts-ignore + getWorldGenerator(): org.spongepowered.api.world.gen.WorldGenerator; + /** + * Gets the properties for this world. + */ + // @ts-ignore + getProperties(): org.spongepowered.api.world.storage.WorldProperties; + /** + * Gets the {@link Path} pointing to the root of where the world's data + * is being stored. + */ + // @ts-ignore + getDirectory(): any; + /** + * Gets this {@link World}'s {@link UUID}. + */ + // @ts-ignore + getUniqueId(): any; + /** + * Gets the name of this {@link World world}. + */ + // @ts-ignore + getName(): string; + /** + * Gets the current {@link Difficulty}. + */ + // @ts-ignore + getDifficulty(): org.spongepowered.api.world.difficulty.Difficulty; + /** + * Gets a set game rule's current value, if available and set. + */ + // @ts-ignore + getGameRule(gameRule: string): any; + /** + * Gets the current {@link Map map} of game rules and their + * values. Most game rules can be found in {@link DefaultGameRules}. + */ + // @ts-ignore + getGameRules(): MapThe view distance must be greater than or equal to 3, + * and less than or equal to 32.
+ */ + // @ts-ignore + setViewDistance(viewDistance: number): void; + /** + * Resets the view distance to the default value for this world. + */ + // @ts-ignore + resetViewDistance(): void; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.WorldArchetype.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.WorldArchetype.Builder.ts new file mode 100644 index 00000000..81c9ee02 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.WorldArchetype.Builder.ts @@ -0,0 +1,133 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace WorldArchetype { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets enabled status. Built worlds who are enabled but unloaded may + * be loaded automatically if an attempt is made to transfer an entity + * to the world using {@link Entity#transferToWorld} . + */ + // @ts-ignore + enabled(state: boolean): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets whether to load when the server starts. + */ + // @ts-ignore + loadsOnStartup(state: boolean): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets whether the spawn chunks should remain loaded when + * no players are present. + */ + // @ts-ignore + keepsSpawnLoaded(state: boolean): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets whether the spawn chunks generate on load. + */ + // @ts-ignore + generateSpawnOnLoad(state: boolean): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets the seed. See {@link #randomSeed()} if a random seed is desired. + */ + // @ts-ignore + seed(seed: number): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets the seed to be randomized for each world created. + */ + // @ts-ignore + randomSeed(): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets the default {@link GameMode}. If not specified this + * will default to {@link GameModes#SURVIVAL}. + */ + // @ts-ignore + gameMode(gameMode: org.spongepowered.api.entity.living.player.gamemode.GameMode): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets the generator type. If not specified this will default + * to {@link GeneratorTypes#DEFAULT} + */ + // @ts-ignore + generator(type: org.spongepowered.api.world.GeneratorType): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets the generator modifiers. + */ + // @ts-ignore + generatorModifiers(modifier: org.spongepowered.api.world.gen.WorldGeneratorModifier): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets the dimension type. + */ + // @ts-ignore + dimension(type: org.spongepowered.api.world.DimensionType): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets the difficulty. + */ + // @ts-ignore + difficulty(difficulty: org.spongepowered.api.world.difficulty.Difficulty): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets whether this should generate map features such as villages + * and strongholds. If not specified this will default to true. + */ + // @ts-ignore + usesMapFeatures(state: boolean): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets whether hardcore mode is enabled. On servers this will cause + * players to be banned upon death, on clients the world will be + * deleted! If not specified this will default to false. + */ + // @ts-ignore + hardcore(state: boolean): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets any extra settings required by the {@link GeneratorType} or by + * the {@link WorldGeneratorModifier}s. If not specified these will + * default to the settings within {@link GeneratorType#getGeneratorSettings()}. + */ + // @ts-ignore + generatorSettings(settings: org.spongepowered.api.data.DataContainer): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets the desired {@link PortalAgentType} for the world. + */ + // @ts-ignore + portalAgent(type: org.spongepowered.api.world.PortalAgentType): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets whether PVP combat is enabled in this world. + */ + // @ts-ignore + pvp(state: boolean): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets whether commands are allowed to be executed. + */ + // @ts-ignore + commandsAllowed(state: boolean): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets whether the bonus chest should be created. + */ + // @ts-ignore + generateBonusChest(state: boolean): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets the serialization behavior that will be used when saving. + */ + // @ts-ignore + serializationBehavior(behavior: org.spongepowered.api.world.SerializationBehavior): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Fills this {@link Builder} for creating {@link WorldArchetype}s, + * the builder is then seeded with the values from the given + * {@link WorldProperties} object. + */ + // @ts-ignore + from(properties: org.spongepowered.api.world.storage.WorldProperties): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Builds the {@link WorldArchetype} which can be used to create + * a {@link World} in {@link Server#createWorldProperties(String, WorldArchetype)}. + *This will also register the settings as a new type in the + * {@link GameRegistry}.
+ */ + // @ts-ignore + build(id: string, name: string): org.spongepowered.api.world.WorldArchetype; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.WorldArchetype.ts b/packages/sponge/src/typings/org.spongepowered.api.world.WorldArchetype.ts new file mode 100644 index 00000000..0448f905 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.WorldArchetype.ts @@ -0,0 +1,117 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface WorldArchetype extends org.spongepowered.api.CatalogType { + /** + * Gets a new Builder instance for {@link WorldArchetype}. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Gets enabled status. Built worlds who are enabled but unloaded may + * be loaded automatically if an attempt is made to transfer an entity + * to the world using {@link Entity#transferToWorld} . + */ + // @ts-ignore + isEnabled(): boolean; + /** + * Gets whether to load when the server starts. + */ + // @ts-ignore + loadOnStartup(): boolean; + /** + * Gets whether spawn chunks remain loaded when no players are present. + */ + // @ts-ignore + doesKeepSpawnLoaded(): boolean; + /** + * Gets whether spawn chunks will generate on load. + */ + // @ts-ignore + doesGenerateSpawnOnLoad(): boolean; + /** + * Gets the seed. + */ + // @ts-ignore + getSeed(): number; + /** + * Gets if the seed will be randomized for each world generated. + */ + // @ts-ignore + isSeedRandomized(): boolean; + /** + * Gets the gamemode. + */ + // @ts-ignore + getGameMode(): org.spongepowered.api.entity.living.player.gamemode.GameMode; + /** + * Gets the generator type. + */ + // @ts-ignore + getGeneratorType(): org.spongepowered.api.world.GeneratorType; + /** + * Gets an immutable collection of the world generator modifiers. + */ + // @ts-ignore + getGeneratorModifiers(): any[] /*java.util.Collection*/; + /** + * Gets whether map features are enabled. + *Examples include Villages, Temples, etc.
+ */ + // @ts-ignore + usesMapFeatures(): boolean; + /** + * Gets whether hardcore mode is enabled. + */ + // @ts-ignore + isHardcore(): boolean; + /** + * Gets whether commands are allowed. + */ + // @ts-ignore + areCommandsAllowed(): boolean; + /** + * Gets whether the bonus chest should be generated. + *This only applies on the initial load of the {@link World} + * created via the {@link WorldProperties} created from this settings.
+ */ + // @ts-ignore + doesGenerateBonusChest(): boolean; + /** + * Gets the dimension type. + */ + // @ts-ignore + getDimensionType(): org.spongepowered.api.world.DimensionType; + /** + * Gets the {@link PortalAgentType} for the world. + */ + // @ts-ignore + getPortalAgentType(): org.spongepowered.api.world.PortalAgentType; + /** + * Gets the difficulty. + */ + // @ts-ignore + getDifficulty(): org.spongepowered.api.world.difficulty.Difficulty; + /** + * Gets whether PVP combat is enabled. + */ + // @ts-ignore + isPVPEnabled(): boolean; + /** + * Gets a {@link DataContainer} of any extra settings required by the + * generator. + */ + // @ts-ignore + getGeneratorSettings(): org.spongepowered.api.data.DataContainer; + /** + * Gets the {@link SerializationBehavior} that worlds built from this will use. + */ + // @ts-ignore + getSerializationBehavior(): org.spongepowered.api.world.SerializationBehavior; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.WorldArchetypes.ts b/packages/sponge/src/typings/org.spongepowered.api.world.WorldArchetypes.ts new file mode 100644 index 00000000..93f38cae --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.WorldArchetypes.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + class WorldArchetypes { + // @ts-ignore + public static OVERWORLD: org.spongepowered.api.world.WorldArchetype; + // @ts-ignore + public static THE_NETHER: org.spongepowered.api.world.WorldArchetype; + // @ts-ignore + public static THE_END: org.spongepowered.api.world.WorldArchetype; + // @ts-ignore + public static THE_SKYLANDS: org.spongepowered.api.world.WorldArchetype; + // @ts-ignore + public static THE_VOID: org.spongepowered.api.world.WorldArchetype; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.WorldBorder.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.WorldBorder.Builder.ts new file mode 100644 index 00000000..7e1fa8bb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.WorldBorder.Builder.ts @@ -0,0 +1,54 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace WorldBorder { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Copies the required data from the passed {@code WorldBorder}. + */ + // @ts-ignore + from(border: org.spongepowered.api.world.WorldBorder): org.spongepowered.api.world.WorldBorder.Builder; + /** + * Sets the diameter of this world border. + */ + // @ts-ignore + diameter(diameter: number): org.spongepowered.api.world.WorldBorder.Builder; + /** + * Sets the centre of this world border. + */ + // @ts-ignore + center(x: number, z: number): org.spongepowered.api.world.WorldBorder.Builder; + /** + * Sets the warning time of this world border. + */ + // @ts-ignore + warningTime(time: number): org.spongepowered.api.world.WorldBorder.Builder; + /** + * Sets the warning distance of this world border. + */ + // @ts-ignore + warningDistance(distance: number): org.spongepowered.api.world.WorldBorder.Builder; + /** + * Sets the damage threshold of this world border. + */ + // @ts-ignore + damageThreshold(distance: number): org.spongepowered.api.world.WorldBorder.Builder; + /** + * Sets the damage amount of this world border. + */ + // @ts-ignore + damageAmount(damage: number): org.spongepowered.api.world.WorldBorder.Builder; + /** + * Builds the world border from the information given. If no information + * is given, a {@code WorldBorder} with default properties is built. + */ + // @ts-ignore + build(): org.spongepowered.api.world.WorldBorder; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.WorldBorder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.WorldBorder.ts new file mode 100644 index 00000000..0982984f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.WorldBorder.ts @@ -0,0 +1,142 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface WorldBorder { + /** + * Creates a new {@link Builder} instance for making {@link WorldBorder}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.WorldBorder.Builder; + /** + * Gets the diameter the world border is expanding or contracting to. + *This will return the same value as {@link #getDiameter} unless + * {@link #getTimeRemaining} is greater than 0.
+ */ + // @ts-ignore + getNewDiameter(): number; + /** + * Gets the diameter of the world border. + *The returned diameter applies to the x and z axis. The world border + * extends over the entire y-axis.
+ */ + // @ts-ignore + getDiameter(): number; + /** + * Sets the diameter of the world border. + *The specified diameter applies to the x and z axis. The world border + * extends over the entire y-axis.
+ */ + // @ts-ignore + setDiameter(diameter: number): void; + /** + * Sets the diameter of the world border, over the given period of time. + *The world border diameter increases/decrease linearly over the + * specified time. The specified diameter applies to the x and z axis. The + * world border extends over the entire y-axis.
+ */ + // @ts-ignore + setDiameter(diameter: number, time: number): void; + /** + * Sets the starting diameter and the ending diameter of the world border, + * over the given period of time. + *The world border diameter increases/diameter linearly over the + * specified time. The specified diameter applies to the x and z axis. The + * world border extends over the entire y-axis.
+ */ + // @ts-ignore + setDiameter(startDiameter: number, endDiameter: number, time: number): void; + /** + * Gets the time remaining until the world border stops expanding or + * contracting. + */ + // @ts-ignore + getTimeRemaining(): number; + /** + * Sets the center of the world border. + */ + // @ts-ignore + setCenter(x: number, z: number): void; + /** + * Gets the center of the world border. + *The returned position is three-dimensional. As the world border + * extends over the entire y-axis, the returned position will always have a + * {@code y} set to 0.
+ */ + // @ts-ignore + getCenter(): any /*Vector3d*/; + /** + * Gets the time when a contracting world border will warn a player for whom + * the world border will reach in {@code time} seconds. + *In Minecraft, the warning is displayed in the form of a reddish + * tint.
+ */ + // @ts-ignore + getWarningTime(): number; + /** + * Sets the time when a contracting world border will warn a player for whom + * the world border will reach in {@code time} seconds. + *In Minecraft, the warning is displayed in the form of a reddish + * tint.
+ */ + // @ts-ignore + setWarningTime(time: number): void; + /** + * Gets the distance when a contracting world border will warn a player for + * whom the world border is {@code distance} blocks away. + *In Minecraft, the warning is displayed in the form of a reddish + * tint.
+ */ + // @ts-ignore + getWarningDistance(): number; + /** + * Sets the distance when a contracting world border will warn a player for + * whom the world border is {@code distance} blocks away. + *In Minecraft, the warning is displayed in the form of a reddish + * tint.
+ */ + // @ts-ignore + setWarningDistance(distance: number): void; + /** + * Gets the distance a player may be outside the world border before taking + * damage. + */ + // @ts-ignore + getDamageThreshold(): number; + /** + * Sets the distance a player may be be outside the world border before + * taking damage. + */ + // @ts-ignore + setDamageThreshold(distance: number): void; + /** + * Gets the damage done to a player per block per tick when outside the + * buffer. + */ + // @ts-ignore + getDamageAmount(): number; + /** + * Sets the damage done to a player per block per tick when outside the + * buffer. + */ + // @ts-ignore + setDamageAmount(damage: number): void; + /** + * Returns a new builder for creating a task to pre-generate the chunks + * inside the border. The current state of the border is "snapshotted" for + * the builder. It is not backed by this instance. If the border size is + * changing then the target size is used. + */ + // @ts-ignore + newChunkPreGenerate(world: org.spongepowered.api.world.World): org.spongepowered.api.world.ChunkPreGenerate.Builder; + /** + * Copies the properties of the passed border onto this border. + */ + // @ts-ignore + copyPropertiesFrom(border: org.spongepowered.api.world.WorldBorder): void; + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder.ts new file mode 100644 index 00000000..6f91ddc5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder.ts @@ -0,0 +1,60 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace biome { + namespace BiomeGenerationSettings { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the min height for the biome. + */ + // @ts-ignore + minHeight(height: number): org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder; + /** + * Sets the max height for the biome. + */ + // @ts-ignore + maxHeight(height: number): org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder; + /** + * Sets the ground cover layers. + */ + // @ts-ignore + groundCover(coverLayers: org.spongepowered.api.world.biome.GroundCoverLayer): org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder; + /** + * Sets the ground cover layers. + */ + // @ts-ignore + groundCover(coverLayers: any): org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder; + /** + * Sets the generation populators. + */ + // @ts-ignore + generationPopulators(genpop: org.spongepowered.api.world.gen.GenerationPopulator): org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder; + /** + * Sets the generation populators. + */ + // @ts-ignore + generationPopulators(genpop: any): org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder; + /** + * Sets the populators. + */ + // @ts-ignore + populators(populators: org.spongepowered.api.world.gen.Populator): org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder; + /** + * Sets the populators. + */ + // @ts-ignore + populators(populators: any): org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder; + /** + * Creates a new set of {@link BiomeGenerationSettings}s. + */ + // @ts-ignore + build(): org.spongepowered.api.world.biome.BiomeGenerationSettings; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.biome.BiomeGenerationSettings.ts b/packages/sponge/src/typings/org.spongepowered.api.world.biome.BiomeGenerationSettings.ts new file mode 100644 index 00000000..53970ef6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.biome.BiomeGenerationSettings.ts @@ -0,0 +1,78 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace biome { + // @ts-ignore + interface BiomeGenerationSettings { + /** + * Gets a new builder for creating new BiomeGenerationSettings. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder; + /** + * Gets the minimum terrain height of this biome. + */ + // @ts-ignore + getMinHeight(): number; + /** + * Sets the minimum terrain height of this biome. + */ + // @ts-ignore + setMinHeight(height: number): void; + /** + * Gets the maximum terrain height of this biome. + */ + // @ts-ignore + getMaxHeight(): number; + /** + * Sets the maximum terrain height of this biome. + */ + // @ts-ignore + setMaxHeight(height: number): void; + /** + * Gets a mutable ordered list of {@link GroundCoverLayer}s. These layers + * will be applied to the base terrain during the generation phase starting + * at the topmost stone block in each column. + */ + // @ts-ignore + getGroundCoverLayers(): any[] /*java.util.List*/; + /** + * Gets a mutable list of {@link GenerationPopulator}s. These populators + * work strictly on a single chunk. They will be executed directly after the + * {@link #getGroundCoverLayers() ground cover layers} are applied. These + * generation populators are typically used to generate large terrain + * features, like caves and ravines. + */ + // @ts-ignore + getGenerationPopulators(): any[] /*java.util.List*/; + /** + * Gets an immutable list of {@link GenerationPopulator}s matching the given + * class type. + */ + // @ts-ignore + getGenerationPopulators(type: any): any[] /*java.util.List*/; + /** + * Returns a mutable list of {@link Populator}s specific to this biome. + * Changing this list will affect population of all new chunks. + */ + // @ts-ignore + getPopulators(): any[] /*java.util.List*/; + /** + * Returns an immutable list of {@link Populator}s specific to this biome + * which match the given class type. + */ + // @ts-ignore + getPopulators(type: any): any[] /*java.util.List*/; + /** + * Returns a new biome generation settings which is a copy of this set of + * generation settings at this point in time. + */ + // @ts-ignore + copy(): org.spongepowered.api.world.biome.BiomeGenerationSettings; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.biome.BiomeType.ts b/packages/sponge/src/typings/org.spongepowered.api.world.biome.BiomeType.ts new file mode 100644 index 00000000..d866c530 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.biome.BiomeType.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace biome { + // @ts-ignore + interface BiomeType extends org.spongepowered.api.CatalogType { + /** + * Gets the temperature of this biome. + */ + // @ts-ignore + getTemperature(): number; + /** + * Gets the humidity of this biome. + */ + // @ts-ignore + getHumidity(): number; + /** + * Gets the default generation settings of this biome for the given world. + */ + // @ts-ignore + createDefaultGenerationSettings(world: org.spongepowered.api.world.World): org.spongepowered.api.world.biome.BiomeGenerationSettings; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.biome.BiomeTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.world.biome.BiomeTypes.ts new file mode 100644 index 00000000..51ceba84 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.biome.BiomeTypes.ts @@ -0,0 +1,137 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace biome { + // @ts-ignore + class BiomeTypes { + // @ts-ignore + public static BEACH: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static BIRCH_FOREST: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static BIRCH_FOREST_HILLS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static COLD_BEACH: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static COLD_TAIGA: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static COLD_TAIGA_HILLS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static DEEP_OCEAN: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static DESERT: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static DESERT_HILLS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static EXTREME_HILLS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static EXTREME_HILLS_EDGE: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static EXTREME_HILLS_PLUS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static FOREST: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static FOREST_HILLS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static FROZEN_OCEAN: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static FROZEN_RIVER: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static HELL: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static ICE_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static ICE_PLAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static JUNGLE: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static JUNGLE_EDGE: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static JUNGLE_HILLS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MEGA_TAIGA: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MEGA_TAIGA_HILLS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MESA: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MESA_PLATEAU: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MESA_PLATEAU_FOREST: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MUSHROOM_ISLAND: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MUSHROOM_ISLAND_SHORE: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static OCEAN: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static PLAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static RIVER: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static ROOFED_FOREST: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static SAVANNA: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static SAVANNA_PLATEAU: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static SKY: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static STONE_BEACH: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static SWAMPLAND: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static TAIGA: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static TAIGA_HILLS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static BIRCH_FOREST_HILLS_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static BIRCH_FOREST_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static COLD_TAIGA_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static DESERT_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static EXTREME_HILLS_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static EXTREME_HILLS_PLUS_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static FLOWER_FOREST: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static ICE_PLAINS_SPIKES: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static JUNGLE_EDGE_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static JUNGLE_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MEGA_SPRUCE_TAIGA: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MEGA_SPRUCE_TAIGA_HILLS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MESA_BRYCE: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MESA_PLATEAU_FOREST_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MESA_PLATEAU_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static ROOFED_FOREST_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static SAVANNA_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static SAVANNA_PLATEAU_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static SUNFLOWER_PLAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static SWAMPLAND_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static TAIGA_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static VOID: org.spongepowered.api.world.biome.BiomeType; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.biome.GroundCoverLayer.ts b/packages/sponge/src/typings/org.spongepowered.api.world.biome.GroundCoverLayer.ts new file mode 100644 index 00000000..5b7335d3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.biome.GroundCoverLayer.ts @@ -0,0 +1,73 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace biome { + // @ts-ignore + class GroundCoverLayer { + /** + * Creates a new {@link GroundCoverLayer}. + */ + constructor(block: org.spongepowered.api.block.BlockState, depth: org.spongepowered.api.util.weighted.SeededVariableAmount) + /** + * Creates a new {@link GroundCoverLayer}. + */ + constructor(block: any, depth: org.spongepowered.api.util.weighted.SeededVariableAmount) + /** + * Gets the {@link BlockState} for this layer. + */ + // @ts-ignore + public getBlockState(): any; + /** + * Sets the function which is used to determine the blockstate to place at + * this layer. The input to the function is a noise value. + */ + // @ts-ignore + public setBlockState(block: any): void; + /** + * Sets the {@link BlockState} for this layer. + */ + // @ts-ignore + public setBlockState(block: org.spongepowered.api.block.BlockState): void; + /** + * Gets a representation of the depth of this layer. The variable amount + * will be seeded with the stone noise at generation time. + */ + // @ts-ignore + public getDepth(): org.spongepowered.api.util.weighted.SeededVariableAmount; + /** + * Gets a representation of the depth of this layer. The variable amount + * will be seeded with the stone noise at generation time. This depth may + * vary based on the Y position. + */ + // @ts-ignore + public getDepth(topYCoordinate: number): org.spongepowered.api.util.weighted.SeededVariableAmount; + /** + * Sets the {@link SeededVariableAmount} representing the depth of this + * layer. The variable amount will be seeded with the stone noise at + * generation time. + */ + // @ts-ignore + public setDepth(depth: org.spongepowered.api.util.weighted.SeededVariableAmount): void; + /** + * Sets the {@link VariableAmount} representing the depth of this layer. + */ + // @ts-ignore + public setDepth(depth: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the depth of this layer to the given constant value. + */ + // @ts-ignore + public setDepth(depth: number): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: any): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.biome.VirtualBiomeType.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.biome.VirtualBiomeType.Builder.ts new file mode 100644 index 00000000..4a66fb03 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.biome.VirtualBiomeType.Builder.ts @@ -0,0 +1,47 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace biome { + namespace VirtualBiomeType { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the name of the new virtual biome. + */ + // @ts-ignore + name(name: string): org.spongepowered.api.world.biome.VirtualBiomeType.Builder; + /** + * Sets the temperature of the virtual biome. + */ + // @ts-ignore + temperature(temp: number): org.spongepowered.api.world.biome.VirtualBiomeType.Builder; + /** + * Sets the humidity of the virtual biome. + */ + // @ts-ignore + humidity(humidity: number): org.spongepowered.api.world.biome.VirtualBiomeType.Builder; + /** + * Sets the {@link BiomeType} that this virtual biome is persisted as + * after generation is complete. + */ + // @ts-ignore + persistedType(biome: org.spongepowered.api.world.biome.BiomeType): org.spongepowered.api.world.biome.VirtualBiomeType.Builder; + /** + * Sets the function used for creating new + * {@link BiomeGenerationSettings}s for this virtual biome. + */ + // @ts-ignore + settingsBuilder(settingsBuilder: any): org.spongepowered.api.world.biome.VirtualBiomeType.Builder; + /** + * Builds a new {@link VirtualBiomeType} with the given unique id. + */ + // @ts-ignore + build(id: string): org.spongepowered.api.world.biome.VirtualBiomeType; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.biome.VirtualBiomeType.ts b/packages/sponge/src/typings/org.spongepowered.api.world.biome.VirtualBiomeType.ts new file mode 100644 index 00000000..3a6cfc9f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.biome.VirtualBiomeType.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace biome { + // @ts-ignore + interface VirtualBiomeType extends org.spongepowered.api.world.biome.BiomeType { + /** + * Gets a new builder for creating new VirtualBiomeTypes. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.biome.VirtualBiomeType.Builder; + /** + * Gets the biome type which this virtual biome is persisted as. + */ + // @ts-ignore + getPersistedType(): org.spongepowered.api.world.biome.BiomeType; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.difficulty.Difficulties.ts b/packages/sponge/src/typings/org.spongepowered.api.world.difficulty.Difficulties.ts new file mode 100644 index 00000000..90a3d4ff --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.difficulty.Difficulties.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace difficulty { + // @ts-ignore + class Difficulties { + // @ts-ignore + public static EASY: org.spongepowered.api.world.difficulty.Difficulty; + // @ts-ignore + public static HARD: org.spongepowered.api.world.difficulty.Difficulty; + // @ts-ignore + public static NORMAL: org.spongepowered.api.world.difficulty.Difficulty; + // @ts-ignore + public static PEACEFUL: org.spongepowered.api.world.difficulty.Difficulty; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.difficulty.Difficulty.ts b/packages/sponge/src/typings/org.spongepowered.api.world.difficulty.Difficulty.ts new file mode 100644 index 00000000..39951182 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.difficulty.Difficulty.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace difficulty { + // @ts-ignore + interface Difficulty extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.explosion.Explosion.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.explosion.Explosion.Builder.ts new file mode 100644 index 00000000..237e52b4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.explosion.Explosion.Builder.ts @@ -0,0 +1,55 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace explosion { + namespace Explosion { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the location origin of the explosion. + */ + // @ts-ignore + location(location: org.spongepowered.api.world.Location): org.spongepowered.api.world.explosion.Explosion.Builder; + /** + * Sets the source explosive of the explosion. + */ + // @ts-ignore + sourceExplosive(source: org.spongepowered.api.entity.explosive.Explosive): org.spongepowered.api.world.explosion.Explosion.Builder; + /** + * Sets the radius of the explosion. + */ + // @ts-ignore + radius(radius: number): org.spongepowered.api.world.explosion.Explosion.Builder; + /** + * Sets whether the affected blocks have a chance to catch on fire. + */ + // @ts-ignore + canCauseFire(fire: boolean): org.spongepowered.api.world.explosion.Explosion.Builder; + /** + * Sets whether the explosion will damage entities nearby. + */ + // @ts-ignore + shouldDamageEntities(damage: boolean): org.spongepowered.api.world.explosion.Explosion.Builder; + /** + * Sets whether the explosion will have smoke particles. + */ + // @ts-ignore + shouldPlaySmoke(smoke: boolean): org.spongepowered.api.world.explosion.Explosion.Builder; + /** + * Sets whether the affected blocks should be destroyed on explosion. + */ + // @ts-ignore + shouldBreakBlocks(destroy: boolean): org.spongepowered.api.world.explosion.Explosion.Builder; + /** + * Attempts to create a {@link Explosion} from the specified parameters. + */ + // @ts-ignore + build(): org.spongepowered.api.world.explosion.Explosion; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.explosion.Explosion.ts b/packages/sponge/src/typings/org.spongepowered.api.world.explosion.Explosion.ts new file mode 100644 index 00000000..dc74c6c1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.explosion.Explosion.ts @@ -0,0 +1,48 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace explosion { + // @ts-ignore + interface Explosion extends org.spongepowered.api.world.Locatable { + /** + * Creates a new {@link Builder} to build a {@link Explosion}. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.explosion.Explosion.Builder; + /** + * Gets the source {@link Explosive} of the explosion. + */ + // @ts-ignore + getSourceExplosive(): any; + /** + * Gets the radius of the explosion. + */ + // @ts-ignore + getRadius(): number; + /** + * Gets whether the affected blocks have a chance to catch on fire. + */ + // @ts-ignore + canCauseFire(): boolean; + /** + * Gets whether the explosion will play a smoke effect. + */ + // @ts-ignore + shouldPlaySmoke(): boolean; + /** + * Gets whether the affected blocks should be destroyed on explosion. + */ + // @ts-ignore + shouldBreakBlocks(): boolean; + /** + * Gets whether this explosion will damage entities. + */ + // @ts-ignore + shouldDamageEntities(): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.ArchetypeVolume.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.ArchetypeVolume.ts new file mode 100644 index 00000000..c553103c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.ArchetypeVolume.ts @@ -0,0 +1,46 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface ArchetypeVolume extends org.spongepowered.api.world.extent.MutableBlockVolume { + /** + * Applies this archetype at the given location. The archetype will be + * mapped onto the given world such that the origin on the archetype lines + * up with the given position. + */ + // @ts-ignore + apply(location: org.spongepowered.api.world.Location, changeFlag: org.spongepowered.api.world.BlockChangeFlag): void; + /** + * Gets the {@link TileEntityArchetype} for the tile entity carrying block + * at the given coordinates. + */ + // @ts-ignore + getTileEntityArchetype(x: number, y: number, z: number): any; + /** + * Gets the {@link TileEntityArchetype} for the tile entity carrying block + * at the given coordinates. + */ + // @ts-ignore + getTileEntityArchetype(position: any /*Vector3i*/): any; + /** + * Gets a map containing all tile entity archetypes within this volume, + * keyed by their positions within the volume. + */ + // @ts-ignore + getTileEntityArchetypes(): Map{@link #getBiomeMax()} -
+ * {@link #getBiomeMin()} + (1, 1)
.
+ */
+ // @ts-ignore
+ getBiomeSize(): any /*Vector3i*/;
+ /**
+ * Returns true if the biome volume contains a biome at the specified
+ * position. This is defined as {{@link #getBiomeMin()} <= position
+ * <= {@link #getBiomeMax()}
+ */
+ // @ts-ignore
+ containsBiome(position: any /*Vector3i*/): boolean;
+ /**
+ * Returns true if the biome volume contains a biome at the specified
+ * position. This is defined as {{@link #getBiomeMin()} <= (x, y, z)
+ * <= {@link #getBiomeMax()}
+ */
+ // @ts-ignore
+ containsBiome(x: number, y: number, z: number): boolean;
+ /**
+ * Gets an object representing the biome at the given position.
+ */
+ // @ts-ignore
+ getBiome(position: any /*Vector3i*/): org.spongepowered.api.world.biome.BiomeType;
+ /**
+ * Gets the {@link BiomeType} at the given location.
+ */
+ // @ts-ignore
+ getBiome(x: number, y: number, z: number): org.spongepowered.api.world.biome.BiomeType;
+ /**
+ * Returns a new volume that is the same or smaller than the current volume.
+ * This does not copy the biomes, it only provides a new view of the
+ * storage.
+ */
+ // @ts-ignore
+ getBiomeView(newMin: any /*Vector3i*/, newMax: any /*Vector3i*/): org.spongepowered.api.world.extent.BiomeVolume;
+ /**
+ * Returns a new volume that is viewed through some transformation. This
+ * does not copy the biomes, it only provides a new view of the storage.
+ */
+ // @ts-ignore
+ getBiomeView(transform: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.world.extent.BiomeVolume;
+ /**
+ * Returns a new volume that is translated so that
+ * {@link BiomeVolume#getBiomeMin()} returns {@link Vector2i#ZERO}. This
+ * does not copy the biomes, it only provides a new view of the storage.
+ */
+ // @ts-ignore
+ getRelativeBiomeView(): org.spongepowered.api.world.extent.BiomeVolume;
+ /**
+ * Returns a new volume that cannot be modified through this view. Unlike
+ * immutable storage, it can be changed by holders of mutable views. This
+ * does not copy the biomes, it only provides a new view of the storage.
+ */
+ // @ts-ignore
+ getUnmodifiableBiomeView(): org.spongepowered.api.world.extent.UnmodifiableBiomeVolume;
+ /**
+ * Returns a mutable copy of the biomes stored in this volume. This uses the
+ * default storage type of {@link StorageType#STANDARD}.
+ */
+ // @ts-ignore
+ getBiomeCopy(): org.spongepowered.api.world.extent.MutableBiomeVolume;
+ /**
+ * Returns a mutable copy of the biomes stored in this volume. This uses the
+ * provided storage type.
+ */
+ // @ts-ignore
+ getBiomeCopy(type: org.spongepowered.api.world.extent.StorageType): org.spongepowered.api.world.extent.MutableBiomeVolume;
+ /**
+ * Returns an immutable copy of the biomes stored in this volume. This uses
+ * some internal storage solution that is thread-safe by nature.
+ */
+ // @ts-ignore
+ getImmutableBiomeCopy(): org.spongepowered.api.world.extent.ImmutableBiomeVolume;
+ /**
+ * Gets a new biome worker for this biome volume.
+ */
+ // @ts-ignore
+ getBiomeWorker(): org.spongepowered.api.world.extent.worker.BiomeVolumeWorker;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.BlockVolume.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.BlockVolume.ts
new file mode 100644
index 00000000..105d4c0f
--- /dev/null
+++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.BlockVolume.ts
@@ -0,0 +1,119 @@
+declare namespace org {
+ namespace spongepowered {
+ namespace api {
+ namespace world {
+ namespace extent {
+ // @ts-ignore
+ interface BlockVolume {
+ /**
+ * Gets the block location with the lowest x, y and z that is still a valid
+ * position for {@link #getBlock(Vector3i)}.
+ */
+ // @ts-ignore
+ getBlockMin(): any /*Vector3i*/;
+ /**
+ * Gets the block location with the highest x, y and z that is still a valid
+ * position for {@link #getBlock(Vector3i)}.
+ */
+ // @ts-ignore
+ getBlockMax(): any /*Vector3i*/;
+ /**
+ * Gets the size of the whole volume. Defined as
+ * {@link #getBlockMax()} - {@link #getBlockMin()} + (1, 1, 1)
.
+ */
+ // @ts-ignore
+ getBlockSize(): any /*Vector3i*/;
+ /**
+ * Returns true if the block volume contains a block at the specified
+ * position. This is defined as {{@link #getBlockMin()} <= position <=
+ * {@link #getBlockMax()}
+ */
+ // @ts-ignore
+ containsBlock(position: any /*Vector3i*/): boolean;
+ /**
+ * Returns true if the block volume contains a block at the specified
+ * position. This is defined as {{@link #getBlockMin()} <= (x, y, z)
+ * <= {@link #getBlockMax()}
+ */
+ // @ts-ignore
+ containsBlock(x: number, y: number, z: number): boolean;
+ /**
+ * Gets a representation of the block at the given position.
+ */
+ // @ts-ignore
+ getBlock(position: any /*Vector3i*/): org.spongepowered.api.block.BlockState;
+ /**
+ * Gets a representation of the block at the given position.
+ */
+ // @ts-ignore
+ getBlock(x: number, y: number, z: number): org.spongepowered.api.block.BlockState;
+ /**
+ * Gets the base type of block.
+ * The type does not include block data such as the contents of + * inventories.
+ */ + // @ts-ignore + getBlockType(position: any /*Vector3i*/): org.spongepowered.api.block.BlockType; + /** + * Gets the base type of block. + *The type does not include block data such as the contents of + * inventories.
+ */ + // @ts-ignore + getBlockType(x: number, y: number, z: number): org.spongepowered.api.block.BlockType; + /** + * Returns a new volume that is the same or smaller than the current volume. + * This does not copy the blocks, it only provides a new view of the + * storage. + */ + // @ts-ignore + getBlockView(newMin: any /*Vector3i*/, newMax: any /*Vector3i*/): org.spongepowered.api.world.extent.BlockVolume; + /** + * Returns a new volume that is viewed through some transformation. This + * does not copy the blocks, it only provides a new view of the storage. + */ + // @ts-ignore + getBlockView(transform: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.world.extent.BlockVolume; + /** + * Returns a new volume that is translated so that + * {@link BlockVolume#getBlockMin()} returns {@link Vector3i#ZERO}. This + * does not copy the blocks, it only provides a new view of the storage. + */ + // @ts-ignore + getRelativeBlockView(): org.spongepowered.api.world.extent.BlockVolume; + /** + * Returns a new volume that cannot be modified through this view. Unlike + * immutable storage, it can be changed by holders of mutable views. This + * does not copy the blocks, it only provides a new view of the storage. + */ + // @ts-ignore + getUnmodifiableBlockView(): org.spongepowered.api.world.extent.UnmodifiableBlockVolume; + /** + * Returns a mutable copy of the blocks stored in this volume. This uses the + * default storage type of {@link StorageType#STANDARD}. + */ + // @ts-ignore + getBlockCopy(): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a mutable copy of the blocks stored in this volume. This uses the + * provided storage type. + */ + // @ts-ignore + getBlockCopy(type: org.spongepowered.api.world.extent.StorageType): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns an immutable copy of the blocks stored in this volume. This uses + * some internal storage solution that is thread-safe by nature. + */ + // @ts-ignore + getImmutableBlockCopy(): org.spongepowered.api.world.extent.ImmutableBlockVolume; + /** + * Gets a new block worker for this block volume. + */ + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.BlockVolumeWorker; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.EntityUniverse.EntityHit.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.EntityUniverse.EntityHit.ts new file mode 100644 index 00000000..948d70b8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.EntityUniverse.EntityHit.ts @@ -0,0 +1,46 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace EntityUniverse { + // @ts-ignore + class EntityHit { + /** + * Creates a new entity hit from the entity, the intersection point and + * the normal. + */ + constructor(entity: org.spongepowered.api.entity.Entity, intersection: any /*Vector3d*/, normal: any /*Vector3d*/, distance: number) + /** + * Gets the intersected entity. + */ + // @ts-ignore + public getEntity(): org.spongepowered.api.entity.Entity; + /** + * Gets the intersection point. + */ + // @ts-ignore + public getIntersection(): any /*Vector3d*/; + /** + * Gets the intersection normal. + */ + // @ts-ignore + public getNormal(): any /*Vector3d*/; + /** + * Gets the distance from the start to the intersection. + */ + // @ts-ignore + public getDistance(): number; + // @ts-ignore + public equals(other: any): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.EntityUniverse.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.EntityUniverse.ts new file mode 100644 index 00000000..4bd758cc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.EntityUniverse.ts @@ -0,0 +1,187 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface EntityUniverse { + /** + * Gets the entity whose {@link UUID} matches the provided id, possibly + * returning no entity if the entity is not loaded or non-existent. + *For world implementations, only some parts of the world is usually + * loaded, so this method may return no entity if the entity is not + * loaded.
+ */ + // @ts-ignore + getEntity(uuid: any): any; + /** + * Return a collection of entities contained within this universe, possibly + * only returning entities only in loaded areas. + *For world implementations, only some parts of the world is usually + * loaded, so this method will only return entities within those loaded + * parts.
+ */ + // @ts-ignore + getEntities(): any[] /*java.util.Collection*/; + /** + * Return a collection of entities contained within this universe, possibly + * only returning entities only in loaded areas. The returned entities are + * filtered by the given {@link Predicate} before being returned. + *For world implementations, only some parts of the world is usually + * loaded, so this method will only return entities within those loaded + * parts.
+ */ + // @ts-ignore + getEntities(filter: any): any[] /*java.util.Collection*/; + /** + * Return a collection of entities contained within {@code distance} blocks + * of the specified location. This uses a sphere to test distances. + *For world implementations, only some parts of the world is usually + * loaded, so this method will only return entities within those loaded + * parts.
+ */ + // @ts-ignore + getNearbyEntities(location: any /*Vector3d*/, distance: number): any[] /*java.util.Collection*/; + /** + * Create an entity instance at the given position. + *Creating an entity does not spawn the entity into the world. An entity + * created means the entity can be spawned at the given location. If + * {@link Optional#empty()} was returned, the entity is not able to spawn at + * the given location. Furthermore, this allows for the {@link Entity} to be + * customized further prior to traditional "ticking" and processing by core + * systems.
+ */ + // @ts-ignore + createEntity(type: org.spongepowered.api.entity.EntityType, position: any /*Vector3d*/): org.spongepowered.api.entity.Entity; + /** + * Create an entity instance at the given position. + *Creating an entity does not spawn the entity into the world. An entity + * created means the entity can be spawned at the given location. If + * {@link Optional#empty()} was returned, the entity is not able to spawn at + * the given location. Furthermore, this allows for the {@link Entity} to be + * customized further prior to traditional "ticking" and processing by core + * systems.
+ */ + // @ts-ignore + createEntity(type: org.spongepowered.api.entity.EntityType, position: any /*Vector3i*/): org.spongepowered.api.entity.Entity; + /** + * Create an entity instance at the given position. + *Creating an entity does not spawn the entity into the world. An entity + * created means the entity can be spawned at the given location. If + * {@link Optional#empty()} was returned, the entity is not able to spawn at + * the given location. Furthermore, this allows for the {@link Entity} to be + * customized further prior to traditional "ticking" and processing by core + * systems.
+ */ + // @ts-ignore + createEntity(entityContainer: org.spongepowered.api.data.DataContainer): any; + /** + * Create an entity instance at the given position. + *Creating an entity does not spawn the entity into the world. An entity + * created means the entity can be spawned at the given location. If + * {@link Optional#empty()} was returned, the entity is not able to spawn at + * the given location. Furthermore, this allows for the {@link Entity} to be + * customized further prior to traditional "ticking" and processing by core + * systems.
+ */ + // @ts-ignore + createEntity(entityContainer: org.spongepowered.api.data.DataContainer, position: any /*Vector3d*/): any; + /** + * Create an entity instance at the given position with the default + * equipment. + *Creating an entity does not spawn the entity into the world. An entity + * created means the entity can be spawned at the given location. If + * {@link Optional#empty()} was returned, the entity is not able to spawn at + * the given location. Furthermore, this allows for the {@link Entity} to be + * customized further prior to traditional "ticking" and processing by core + * systems.
+ */ + // @ts-ignore + createEntityNaturally(type: org.spongepowered.api.entity.EntityType, position: any /*Vector3d*/): org.spongepowered.api.entity.Entity; + /** + * Create an entity instance at the given position with the default + * equipment. + *Creating an entity does not spawn the entity into the world. An entity + * created means the entity can be spawned at the given location. If + * {@link Optional#empty()} was returned, the entity is not able to spawn at + * the given location. Furthermore, this allows for the {@link Entity} to be + * customized further prior to traditional "ticking" and processing by core + * systems.
+ */ + // @ts-ignore + createEntityNaturally(type: org.spongepowered.api.entity.EntityType, position: any /*Vector3i*/): org.spongepowered.api.entity.Entity; + /** + * Creates and restores an {@link Entity} from the provided + * {@link EntitySnapshot} at the provided {@link Vector3d} position. + *Creating an entity does not spawn the entity into the world. An entity + * created means the entity can be spawned at the given location. If + * {@link Optional#empty()} was returned, the entity is not able to spawn at + * the given location. Furthermore, this allows for the {@link Entity} to be + * customized further prior to traditional "ticking" and processing by core + * systems.
+ */ + // @ts-ignore + restoreSnapshot(snapshot: org.spongepowered.api.entity.EntitySnapshot, position: any /*Vector3d*/): any; + /** + * Spawns an {@link Entity} using the already set properties (extent, + * position, rotation) and applicable {@link DataManipulator}s for spawning + * the entity. + *The requirements involve that all necessary setup of states and data + * is already preformed on the entity retrieved from the various + * {@link #createEntity(EntityType,Vector3d)} methods. Calling this will + * make the now-spawned entity able to be processed by various systems.
+ *If the entity was unable to spawn, the entity is not removed, but it + * should be taken note that there can be many reasons for a failure.
+ */ + // @ts-ignore + spawnEntity(entity: org.spongepowered.api.entity.Entity): boolean; + /** + * Similar to {@link #spawnEntity(Entity)} except where multiple entities + * can be attempted to be spawned. + */ + // @ts-ignore + spawnEntities(entities: any): any[] /*java.util.Collection*/; + /** + * Gets all the entities that intersect the bounding box, in no particular + * order. + */ + // @ts-ignore + getIntersectingEntities(box: org.spongepowered.api.util.AABB): any[] /*java.util.Set*/; + /** + * Gets all the entities that intersect the bounding box, in no particular + * order, as long as the pass the given filter test. + */ + // @ts-ignore + getIntersectingEntities(box: org.spongepowered.api.util.AABB, filter: any): any[] /*java.util.Set*/; + /** + * Gets all the entities that intersect the ray (by their bounding box) + * The ray is defined by its start and end point. + */ + // @ts-ignore + getIntersectingEntities(start: any /*Vector3d*/, end: any /*Vector3d*/): any[] /*java.util.Set*/; + /** + * Gets all the entities that intersect the ray (by their bounding box) + * The ray is defined by its start and end point. Only the entities that + * pass the filter test are added. + */ + // @ts-ignore + getIntersectingEntities(start: any /*Vector3d*/, end: any /*Vector3d*/, filter: any): any[] /*java.util.Set*/; + /** + * Gets all the entities that intersect the ray (by their bounding box) + * The ray is defined by its start, direction and distance. + */ + // @ts-ignore + getIntersectingEntities(start: any /*Vector3d*/, direction: any /*Vector3d*/, distance: number): any[] /*java.util.Set*/; + /** + * Gets all the entities that intersect the ray (by their bounding box) + * The ray is defined by its start, direction and distance. Only the + * entities that pass the filter test are added. + */ + // @ts-ignore + getIntersectingEntities(start: any /*Vector3d*/, direction: any /*Vector3d*/, distance: number, filter: any): any[] /*java.util.Set*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.Extent.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.Extent.ts new file mode 100644 index 00000000..743dd4f3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.Extent.ts @@ -0,0 +1,283 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface Extent extends org.spongepowered.api.world.extent.EntityUniverse, org.spongepowered.api.world.extent.TileEntityVolume, org.spongepowered.api.world.extent.InteractableVolume, org.spongepowered.api.world.extent.MutableBiomeVolume, org.spongepowered.api.world.extent.LocationCompositeValueStore, org.spongepowered.api.util.Identifiable, org.spongepowered.api.data.property.LocationBasePropertyHolder { + /** + * Gets a location in this extent at the given position. Essentially, this + * is a 3D pointer in the extent. + */ + // @ts-ignore + getLocation(position: any /*Vector3i*/): org.spongepowered.api.world.Location; + /** + * Gets a location in this extent at the given position. Essentially, this + * is a 3D pointer in the extent. + */ + // @ts-ignore + getLocation(x: number, y: number, z: number): org.spongepowered.api.world.Location; + /** + * Gets a location in this extent at the given position. Essentially, this + * is a 3D pointer in the extent. This method supports sub-block positions. + * Block-related methods use flooring to get integer coordinates. + */ + // @ts-ignore + getLocation(position: any /*Vector3d*/): org.spongepowered.api.world.Location; + /** + * Gets a location in this extent at the given position. Essentially, this + * is a 3D pointer in the extent. This method supports sub-block positions. + * Block-related methods use flooring to get integer coordinates. + */ + // @ts-ignore + getLocation(x: number, y: number, z: number): org.spongepowered.api.world.Location; + /** + * Get the y value of the highest block that sunlight can reach in the given + * column. + *This method ignores all transparent blocks, providing the highest + * opaque block.
+ */ + // @ts-ignore + getHighestYAt(x: number, z: number): number; + /** + * Get the y value of the highest block that sunlight can reach in the given + * column. + *This method ignores all transparent blocks, providing the highest + * opaque block.
+ */ + // @ts-ignore + getHighestYAt(column: any /*Vector2i*/): number; + /** + * Get the {@link Location} of the highest block that sunlight can reach in + * the given column. + *This method ignores all transparent blocks, providing the highest + * opaque block.
+ */ + // @ts-ignore + getHighestPositionAt(position: any /*Vector3i*/): any /*Vector3i*/; + /** + * Returns the y level that precipitation ends falling in the given column. + *A value is still returned for columns in biomes which do not + * receive precipitation.
+ */ + // @ts-ignore + getPrecipitationLevelAt(x: number, z: number): number; + /** + * Returns the y level that precipitation ends falling in the given column. + *A value is still returned for columns in biomes which do not + * receive precipitation.
+ */ + // @ts-ignore + getPrecipitationLevelAt(column: any /*Vector2i*/): number; + /** + * Returns the position that precipitation ends falling in the column + * of the given position. + *A position is still returned for positions in biomes which do not + * receive precipitation.
+ */ + // @ts-ignore + getPrecipitationLevelAt(position: any /*Vector3i*/): any /*Vector3i*/; + /** + * Sets the block at the given position in the world. + */ + // @ts-ignore + setBlock(position: any /*Vector3i*/, blockState: org.spongepowered.api.block.BlockState, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Sets the block at the given position in the world. + */ + // @ts-ignore + setBlock(x: number, y: number, z: number, blockState: org.spongepowered.api.block.BlockState, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Sets the block at the given position in the world. + */ + // @ts-ignore + setBlockType(position: any /*Vector3i*/, type: org.spongepowered.api.block.BlockType, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Sets the block at the given position in the world. + */ + // @ts-ignore + setBlockType(x: number, y: number, z: number, type: org.spongepowered.api.block.BlockType, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Gets a snapshot of this block at the current point in time. + *A snapshot is disconnected from the {@link Extent} that it was taken + * from so changes to the original block do not affect the snapshot.
+ */ + // @ts-ignore + createSnapshot(position: any /*Vector3i*/): org.spongepowered.api.block.BlockSnapshot; + /** + * Gets a snapshot of this block at the current point in time. + *A snapshot is disconnected from the {@link Extent} that it was taken + * from so changes to the original block do not affect the snapshot.
+ */ + // @ts-ignore + createSnapshot(x: number, y: number, z: number): org.spongepowered.api.block.BlockSnapshot; + /** + * Restores the given {@link BlockSnapshot} using the saved block position + * stored within the snapshot. + *If forced, the state of the block will change its {@link BlockType} to + * match that of the snapshot then set the state. However, if force is set + * to false and the {@link BlockType}s does not match, false will be + * returned. If notifyNeighbors is true, neighboring blocks will be notified + * of changes at the restored block location triggering physic updates.
+ */ + // @ts-ignore + restoreSnapshot(snapshot: org.spongepowered.api.block.BlockSnapshot, force: boolean, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Restores the {@link BlockSnapshot} at the given position. + *If forced, the state of the block will change its {@link BlockType} to + * match that of the snapshot then set the state. However, if force is set + * to false and the {@link BlockType}s does not match, false will be + * returned. If notifyNeighbors is true, neighboring blocks will be notified + * of changes at the restored block location triggering physic updates.
+ */ + // @ts-ignore + restoreSnapshot(position: any /*Vector3i*/, snapshot: org.spongepowered.api.block.BlockSnapshot, force: boolean, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Restores the {@link BlockSnapshot} at the given position. + *If forced, the state of the block will change its {@link BlockType} to + * match that of the snapshot then set the state. However, if force is set + * to false and the {@link BlockType}s does not match, false will be + * returned. If notifyNeighbors is true, neighboring blocks will be notified + * of changes at the restored block location triggering physic updates.
+ */ + // @ts-ignore + restoreSnapshot(x: number, y: number, z: number, snapshot: org.spongepowered.api.block.BlockSnapshot, force: boolean, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Gets a list of {@link ScheduledBlockUpdate}s on this block. + */ + // @ts-ignore + getScheduledUpdates(position: any /*Vector3i*/): any[] /*java.util.Collection*/; + /** + * Gets a list of {@link ScheduledBlockUpdate}s on this block. + */ + // @ts-ignore + getScheduledUpdates(x: number, y: number, z: number): any[] /*java.util.Collection*/; + /** + * Adds a new {@link ScheduledBlockUpdate} to this block. + */ + // @ts-ignore + addScheduledUpdate(position: any /*Vector3i*/, priority: number, ticks: number): org.spongepowered.api.block.ScheduledBlockUpdate; + /** + * Adds a new {@link ScheduledBlockUpdate} to this block. + */ + // @ts-ignore + addScheduledUpdate(x: number, y: number, z: number, priority: number, ticks: number): org.spongepowered.api.block.ScheduledBlockUpdate; + /** + * Removes a {@link ScheduledBlockUpdate} from this block. + */ + // @ts-ignore + removeScheduledUpdate(position: any /*Vector3i*/, update: org.spongepowered.api.block.ScheduledBlockUpdate): void; + /** + * Removes a {@link ScheduledBlockUpdate} from this block. + */ + // @ts-ignore + removeScheduledUpdate(x: number, y: number, z: number, update: org.spongepowered.api.block.ScheduledBlockUpdate): void; + /** + * Gets whether or not this extent is currently loaded. + */ + // @ts-ignore + isLoaded(): boolean; + /** + * Returns a new extent that is the same or smaller than the current extent. + * This does not copy the data, it only provides a new view of the extent. + */ + // @ts-ignore + getExtentView(newMin: any /*Vector3i*/, newMax: any /*Vector3i*/): org.spongepowered.api.world.extent.Extent; + // @ts-ignore + getBiomeWorker(): org.spongepowered.api.world.extent.worker.MutableBiomeVolumeWorker; + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker; + /** + * Gets the {@link UUID}, if available, of the user who created the + * {@link BlockSnapshot} at passed block position. + */ + // @ts-ignore + getCreator(pos: any /*Vector3i*/): any; + /** + * Gets the {@link UUID}, if available, of the user who created the + * {@link BlockSnapshot} at passed block position. + */ + // @ts-ignore + getCreator(x: number, y: number, z: number): any; + /** + * Gets the {@link UUID}, if available, of the user who last notified the + * {@link BlockSnapshot} located at passed block position. + */ + // @ts-ignore + getNotifier(pos: any /*Vector3i*/): any; + /** + * Gets the {@link UUID}, if available, of the user who last notified the + * {@link BlockSnapshot} located at passed block coordinates. + */ + // @ts-ignore + getNotifier(x: number, y: number, z: number): any; + /** + * Sets the {@link UUID} of the user who created the {@link BlockSnapshot} + * located at passed block position. + */ + // @ts-ignore + setCreator(pos: any /*Vector3i*/, uuid: any): void; + /** + * Sets the {@link UUID} of the user who created the {@link BlockSnapshot} + * located at passed block coordinates. + */ + // @ts-ignore + setCreator(x: number, y: number, z: number, uuid: any): void; + /** + * Sets the {@link UUID} of the user who last notified the + * {@link BlockSnapshot} located at passed block position. + */ + // @ts-ignore + setNotifier(pos: any /*Vector3i*/, uuid: any): void; + /** + * Sets the {@link UUID} of the user who last notified the + * {@link BlockSnapshot} located at passed block coordinates. + */ + // @ts-ignore + setNotifier(x: number, y: number, z: number, uuid: any): void; + /** + * Gets the bounding box used to select blocks, which appears + * as a black outline on a vanilla client. + */ + // @ts-ignore + getBlockSelectionBox(pos: any /*Vector3i*/): any; + /** + * Gets the bounding box used to select blocks, which appears + * as a black outline on a vanilla client. + */ + // @ts-ignore + getBlockSelectionBox(x: number, y: number, z: number): any; + /** + * Gets all the block collision boxes that intersect the bounding box, in + * no particular order. There may be more than one box per block. + */ + // @ts-ignore + getIntersectingBlockCollisionBoxes(box: org.spongepowered.api.util.AABB): any[] /*java.util.Set*/; + /** + * Gets all the collision boxes that intersect the bounding box owned by + * the entity, in no particular order. There may be more than one box per + * block. This also includes entities. Will return an empty set if the + * owner does not have a bounding box. + */ + // @ts-ignore + getIntersectingCollisionBoxes(owner: org.spongepowered.api.entity.Entity): any[] /*java.util.Set*/; + /** + * Gets all the collision boxes that intersect the bounding box owned by + * the entity, in no particular order. There may be more than one box per + * block. This also includes entities. + */ + // @ts-ignore + getIntersectingCollisionBoxes(owner: org.spongepowered.api.entity.Entity, box: org.spongepowered.api.util.AABB): any[] /*java.util.Set*/; + /** + * Creates a new archetype volume from the specified section of this extent. + * The archetype's volume will be shifted such that the position given in + * the origin will be the origin of the volume. + */ + // @ts-ignore + createArchetypeVolume(min: any /*Vector3i*/, max: any /*Vector3i*/, origin: any /*Vector3i*/): org.spongepowered.api.world.extent.ArchetypeVolume; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.ExtentBufferFactory.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.ExtentBufferFactory.ts new file mode 100644 index 00000000..d47ce319 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.ExtentBufferFactory.ts @@ -0,0 +1,111 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface ExtentBufferFactory { + /** + * Returns a new biome buffer of the desired size. + */ + // @ts-ignore + createBiomeBuffer(size: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new biome buffer of the desired size and minimum position. + */ + // @ts-ignore + createBiomeBuffer(min: any /*Vector3i*/, size: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new biome buffer of the desired size. + */ + // @ts-ignore + createBiomeBuffer(xSize: number, ySize: number, zSize: number): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new biome buffer of the desired size and minimum position. + */ + // @ts-ignore + createBiomeBuffer(xMin: number, yMin: number, zMin: number, xSize: number, ySize: number, zSize: number): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new biome buffer of the desired size. This buffer is thread + * safe. + */ + // @ts-ignore + createThreadSafeBiomeBuffer(size: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new biome buffer of the desired size an minimum position. This + * buffer is thread safe. + */ + // @ts-ignore + createThreadSafeBiomeBuffer(min: any /*Vector3i*/, size: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new biome buffer of the desired size. This buffer is thread + * safe. + */ + // @ts-ignore + createThreadSafeBiomeBuffer(xSize: number, ySize: number, zSize: number): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new biome buffer of the desired size. This buffer is thread + * safe. + */ + // @ts-ignore + createThreadSafeBiomeBuffer(xMin: number, yMin: number, zMin: number, xSize: number, ySize: number, zSize: number): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new block buffer of the desired size. + */ + // @ts-ignore + createBlockBuffer(size: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new block buffer of the desired size and minimum position. + */ + // @ts-ignore + createBlockBuffer(min: any /*Vector3i*/, size: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new block buffer of the desired size. + */ + // @ts-ignore + createBlockBuffer(xSize: number, ySize: number, zSize: number): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new block buffer of the desired size and minimum position. + */ + // @ts-ignore + createBlockBuffer(xMin: number, yMin: number, zMin: number, xSize: number, ySize: number, zSize: number): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new block buffer of the desired size. This buffer is thread + * safe. + */ + // @ts-ignore + createThreadSafeBlockBuffer(size: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new block buffer of the desired size and minimum position. This + * buffer is thread safe. + */ + // @ts-ignore + createThreadSafeBlockBuffer(min: any /*Vector3i*/, size: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new block buffer of the desired size. This buffer is thread + * safe. + */ + // @ts-ignore + createThreadSafeBlockBuffer(xSize: number, ySize: number, zSize: number): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new block buffer of the desired size and minimum position. This + * buffer is thread safe. + */ + // @ts-ignore + createThreadSafeBlockBuffer(xMin: number, yMin: number, zMin: number, xSize: number, ySize: number, zSize: number): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new archetype volume of the desired size. + */ + // @ts-ignore + createArchetypeVolume(size: any /*Vector3i*/, origin: any /*Vector3i*/): org.spongepowered.api.world.extent.ArchetypeVolume; + /** + * Returns a new archetype volume of the desired size. + */ + // @ts-ignore + createArchetypeVolume(size: any /*Vector3i*/): org.spongepowered.api.world.extent.ArchetypeVolume; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.ImmutableBiomeVolume.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.ImmutableBiomeVolume.ts new file mode 100644 index 00000000..76d16c1f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.ImmutableBiomeVolume.ts @@ -0,0 +1,37 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface ImmutableBiomeVolume extends org.spongepowered.api.world.extent.UnmodifiableBiomeVolume { + /** + * Returns a new volume that is the same or smaller than the current volume. + * This does not copy the biomes, it only provides a new view of the + * storage. + */ + // @ts-ignore + getBiomeView(newMin: any /*Vector3i*/, newMax: any /*Vector3i*/): org.spongepowered.api.world.extent.ImmutableBiomeVolume; + /** + * Returns a new volume that is viewed through some transformation. This + * does not copy the biomes, it only provides a new view of the storage. + */ + // @ts-ignore + getBiomeView(transform: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.world.extent.ImmutableBiomeVolume; + /** + * Returns a new volume that is translated so that + * {@link BiomeVolume#getBiomeMin()} returns {@link Vector2i#ZERO}. This + * does not copy the biomes, it only provides a new view of the storage. + */ + // @ts-ignore + getRelativeBiomeView(): org.spongepowered.api.world.extent.ImmutableBiomeVolume; + // @ts-ignore + getImmutableBiomeCopy(): org.spongepowered.api.world.extent.ImmutableBiomeVolume; + // @ts-ignore + getBiomeWorker(): org.spongepowered.api.world.extent.worker.BiomeVolumeWorker; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.ImmutableBlockVolume.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.ImmutableBlockVolume.ts new file mode 100644 index 00000000..88ed390e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.ImmutableBlockVolume.ts @@ -0,0 +1,37 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface ImmutableBlockVolume extends org.spongepowered.api.world.extent.UnmodifiableBlockVolume { + /** + * Returns a new volume that is the same or smaller than the current volume. + * This does not copy the blocks, it only provides a new view of the + * storage. + */ + // @ts-ignore + getBlockView(newMin: any /*Vector3i*/, newMax: any /*Vector3i*/): org.spongepowered.api.world.extent.ImmutableBlockVolume; + /** + * Returns a new volume that is viewed through some transformation. This + * does not copy the blocks, it only provides a new view of the storage. + */ + // @ts-ignore + getBlockView(transform: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.world.extent.ImmutableBlockVolume; + /** + * Returns a new volume that is translated so that + * {@link BlockVolume#getBlockMin()} returns {@link Vector3i#ZERO}. This + * does not copy the blocks, it only provides a new view of the storage. + */ + // @ts-ignore + getRelativeBlockView(): org.spongepowered.api.world.extent.ImmutableBlockVolume; + // @ts-ignore + getImmutableBlockCopy(): org.spongepowered.api.world.extent.ImmutableBlockVolume; + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.BlockVolumeWorker; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.InteractableVolume.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.InteractableVolume.ts new file mode 100644 index 00000000..a3c151a2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.InteractableVolume.ts @@ -0,0 +1,99 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface InteractableVolume extends org.spongepowered.api.world.extent.MutableBlockVolume { + /** + * Simulates hitting a block as if a player had done so. + *The difference between this and {@link #digBlock} is that this will + * only do a single instantaneous "click" whereas digBlock will simulate + * holding the primary mouse button until the block breaks.
+ */ + // @ts-ignore + hitBlock(position: any /*Vector3i*/, side: org.spongepowered.api.util.Direction, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulates hitting a block as if a player had done so. + *The difference between this and {@link #digBlock} is that this will + * only do a single instantaneous "click" whereas digBlock will simulate + * holding the primary mouse button until the block breaks.
+ */ + // @ts-ignore + hitBlock(x: number, y: number, z: number, side: org.spongepowered.api.util.Direction, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulates the interaction the block as if a player had done so. + */ + // @ts-ignore + interactBlock(position: any /*Vector3i*/, side: org.spongepowered.api.util.Direction, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulates the interaction the block as if a player had done so. + */ + // @ts-ignore + interactBlock(x: number, y: number, z: number, side: org.spongepowered.api.util.Direction, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulates the interaction the block using the given item as if the player + * had done so. + */ + // @ts-ignore + interactBlockWith(position: any /*Vector3i*/, itemStack: org.spongepowered.api.item.inventory.ItemStack, side: org.spongepowered.api.util.Direction, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulates the interaction the block using the given item as if the player + * had done so. + */ + // @ts-ignore + interactBlockWith(x: number, y: number, z: number, itemStack: org.spongepowered.api.item.inventory.ItemStack, side: org.spongepowered.api.util.Direction, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulates the placement of a block at the given location as if a player + * had done so. + */ + // @ts-ignore + placeBlock(position: any /*Vector3i*/, block: org.spongepowered.api.block.BlockState, side: org.spongepowered.api.util.Direction, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulates the placement of a block at the given location as if a player + * had done so. + */ + // @ts-ignore + placeBlock(x: number, y: number, z: number, block: org.spongepowered.api.block.BlockState, side: org.spongepowered.api.util.Direction, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulate the digging of the block as if a player had done so. + */ + // @ts-ignore + digBlock(position: any /*Vector3i*/, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulate the digging of the block as if a player had done so. + */ + // @ts-ignore + digBlock(x: number, y: number, z: number, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulate the digging of the block with the given tool as if a player had + * done so. + */ + // @ts-ignore + digBlockWith(position: any /*Vector3i*/, itemStack: org.spongepowered.api.item.inventory.ItemStack, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulate the digging of the block with the given tool as if a player had + * done so. + */ + // @ts-ignore + digBlockWith(x: number, y: number, z: number, itemStack: org.spongepowered.api.item.inventory.ItemStack, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Gets the time it takes to dig this block with the specified item in + * ticks. + */ + // @ts-ignore + getBlockDigTimeWith(position: any /*Vector3i*/, itemStack: org.spongepowered.api.item.inventory.ItemStack, profile: org.spongepowered.api.profile.GameProfile): number; + /** + * Gets the time it takes to dig this block with the specified item in + * ticks. + */ + // @ts-ignore + getBlockDigTimeWith(x: number, y: number, z: number, itemStack: org.spongepowered.api.item.inventory.ItemStack, profile: org.spongepowered.api.profile.GameProfile): number; + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.LocationCompositeValueStore.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.LocationCompositeValueStore.ts new file mode 100644 index 00000000..e96a74fc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.LocationCompositeValueStore.ts @@ -0,0 +1,442 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface LocationCompositeValueStore { + /** + * Gets the value of data that is keyed to the provided {@link Key} at the + * give block location. + */ + // @ts-ignore + get(coordinates: any /*Vector3i*/, key: org.spongepowered.api.data.key.Key): any; + /** + * Gets the value of data that is keyed to the provided {@link Key} at the + * give block location. + */ + // @ts-ignore + get(x: number, y: number, z: number, key: org.spongepowered.api.data.key.Key): any; + /** + * Gets an instance of the given data class for given block at the location. + *If there is no pre-existing data that can be represented by the given + * {@link DataManipulator} class, {@link Optional#empty()} is returned.
+ */ + // @ts-ignore + get(coordinates: any /*Vector3i*/, manipulatorClass: any): any; + /** + * Gets an instance of the given data class for given block at the location. + *If there is no pre-existing data that can be represented by the given + * {@link DataManipulator} class, {@link Optional#empty()} is returned.
+ */ + // @ts-ignore + get(x: number, y: number, z: number, manipulatorClass: any): any; + /** + * Gets or creates a new {@link DataManipulator} that can be accepted by the + * block at the location. In the event that there is no data that can be + * represented by the given {@link DataManipulator}, a new + * {@link DataManipulator} object is created with default values. + *In the event the {@link DataManipulator} can not represent any data + * pertaining to the block at the location, {@link Optional#empty()} is + * returned.
+ */ + // @ts-ignore + getOrCreate(coordinates: any /*Vector3i*/, manipulatorClass: any): any; + /** + * Gets or creates a new {@link DataManipulator} that can be accepted by the + * block at the location. In the event that there is no data that can be + * represented by the given {@link DataManipulator}, a new + * {@link DataManipulator} object is created with default values. + *In the event the {@link DataManipulator} can not represent any data + * pertaining to the block at the location, {@link Optional#empty()} is + * returned.
+ */ + // @ts-ignore + getOrCreate(x: number, y: number, z: number, manipulatorClass: any): any; + /** + * Gets the value of data that is keyed to the provided {@link Key} at the + * give block location. The data may not exist, or may not be compatible in + * which casenull
may be returned.
+ */
+ // @ts-ignore
+ getOrNull(coordinates: any /*Vector3i*/, key: org.spongepowered.api.data.key.Key): any;
+ /**
+ * Gets the value of data that is keyed to the provided {@link Key} at the
+ * give block location. The data may not exist, or may not be compatible in
+ * which case null
may be returned.
+ */
+ // @ts-ignore
+ getOrNull(x: number, y: number, z: number, key: org.spongepowered.api.data.key.Key): any;
+ /**
+ * Gets the value of data that is keyed to the provided {@link Key} at the
+ * give block location. The data may not exist, or may not be compatible in
+ * which case the default value may be returned.
+ */
+ // @ts-ignore
+ getOrElse(coordinates: any /*Vector3i*/, key: org.spongepowered.api.data.key.Key, defaultValue: any): any;
+ /**
+ * Gets the value of data that is keyed to the provided {@link Key} at the
+ * give block location. The data may not exist, or may not be compatible in
+ * which case the default value may be returned.
+ */
+ // @ts-ignore
+ getOrElse(x: number, y: number, z: number, key: org.spongepowered.api.data.key.Key, defaultValue: any): any;
+ /**
+ * Gets the value of data that is keyed to the provided {@link Key} at the
+ * give block location. The data may not exist, or may not be compatible in
+ * which case null
may be returned.
+ */
+ // @ts-ignore
+ getValue(coordinates: any /*Vector3i*/, key: org.spongepowered.api.data.key.Key): any;
+ /**
+ * Gets the value of data that is keyed to the provided {@link Key} at the
+ * give block location.
+ */
+ // @ts-ignore
+ getValue(x: number, y: number, z: number, key: org.spongepowered.api.data.key.Key): any;
+ /**
+ * Checks if the provided {@link Key} to the data is supported by the block
+ * at the provided location.
+ */
+ // @ts-ignore
+ supports(coordinates: any /*Vector3i*/, key: org.spongepowered.api.data.key.Key): boolean;
+ /**
+ * Checks if the provided {@link Key} to the data is supported by the block
+ * at the provided location.
+ */
+ // @ts-ignore
+ supports(x: number, y: number, z: number, key: org.spongepowered.api.data.key.Key): boolean;
+ /**
+ * Checks if the provided {@link BaseValue} is supported by the block at the
+ * provided location.
+ */
+ // @ts-ignore
+ supports(coordinates: any /*Vector3i*/, value: org.spongepowered.api.data.value.BaseValue): boolean;
+ /**
+ * Checks if the provided {@link BaseValue} is supported by the block at the
+ * provided location.
+ */
+ // @ts-ignore
+ supports(x: number, y: number, z: number, value: org.spongepowered.api.data.value.BaseValue): boolean;
+ /**
+ * Checks if the given {@link DataManipulator} class is able to represent
+ * data within the block at the given position.
+ */
+ // @ts-ignore
+ supports(coordinates: any /*Vector3i*/, manipulatorClass: any): boolean;
+ /**
+ * Checks if the given {@link DataManipulator} class is able to represent
+ * data within the block at the given position.
+ */
+ // @ts-ignore
+ supports(x: number, y: number, z: number, manipulatorClass: any): boolean;
+ /**
+ * Checks if the given {@link DataManipulator} class is able to represent
+ * data within the block at the given position.
+ */
+ // @ts-ignore
+ supports(coordinates: any /*Vector3i*/, manipulator: org.spongepowered.api.data.manipulator.DataManipulator): boolean;
+ /**
+ * Checks if the given {@link DataManipulator} class is able to represent
+ * data within the block at the given position.
+ */
+ // @ts-ignore
+ supports(x: number, y: number, z: number, manipulator: org.spongepowered.api.data.manipulator.DataManipulator): boolean;
+ /**
+ * Gets an {@link ImmutableSet} of {@link Key}s for the block at the given
+ * location.
+ */
+ // @ts-ignore
+ getKeys(coordinates: any /*Vector3i*/): any[] /*java.util.Set*/;
+ /**
+ * Gets an {@link ImmutableSet} of {@link Key}s for the block at the given
+ * location.
+ */
+ // @ts-ignore
+ getKeys(x: number, y: number, z: number): any[] /*java.util.Set*/;
+ /**
+ * Gets an {@link ImmutableSet} of {@link ImmutableValue}s for the block at
+ * the given location.
+ */
+ // @ts-ignore
+ getValues(coordinates: any /*Vector3i*/): any[] /*java.util.Set*/;
+ /**
+ * Gets an {@link ImmutableSet} of {@link ImmutableValue}s for the block at
+ * the given location.
+ */
+ // @ts-ignore
+ getValues(x: number, y: number, z: number): any[] /*java.util.Set*/;
+ /**
+ * Applies a transformation on the pre-existing value of the data keyed by
+ * the provided {@link Key} and returns a {@link DataTransactionResult} of
+ * said transformation.
+ */
+ // @ts-ignore
+ transform(coordinates: any /*Vector3i*/, key: org.spongepowered.api.data.key.Key, func: any): org.spongepowered.api.data.DataTransactionResult;
+ /**
+ * Applies a transformation on the pre-existing value of the data keyed by
+ * the provided {@link Key} and returns a {@link DataTransactionResult} of
+ * said transformation.
+ */
+ // @ts-ignore
+ transform(x: number, y: number, z: number, key: org.spongepowered.api.data.key.Key, func: any): org.spongepowered.api.data.DataTransactionResult;
+ /**
+ * Offers the given E
value that is keyed by the provided
+ * {@link Key} to the block at the provided location.
+ * If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected and replaced + * data.
+ */ + // @ts-ignore + offer(coordinates: any /*Vector3i*/, key: org.spongepowered.api.data.key.Key, value: any): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the givenE
value that is keyed by the provided
+ * {@link Key} to the block at the provided location.
+ * If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected and replaced + * data.
+ */ + // @ts-ignore + offer(x: number, y: number, z: number, key: org.spongepowered.api.data.key.Key, value: any): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@link BaseValue} to the block at the given position. + *If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected and replaced + * data.
+ */ + // @ts-ignore + offer(coordinates: any /*Vector3i*/, value: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@link BaseValue} to the block at the given position. + *If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected and replaced + * data.
+ */ + // @ts-ignore + offer(x: number, y: number, z: number, value: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@link DataManipulator} to the block at the given + * position. + *If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected and replaced + * data.
+ */ + // @ts-ignore + offer(coordinates: any /*Vector3i*/, manipulator: org.spongepowered.api.data.manipulator.DataManipulator): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@link DataManipulator} to the block at the given + * position. + *If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected and replaced + * data.
+ */ + // @ts-ignore + offer(x: number, y: number, z: number, manipulator: org.spongepowered.api.data.manipulator.DataManipulator): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@link DataManipulator} to the block at the given + * position. + *If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected and replaced + * data.
+ */ + // @ts-ignore + offer(coordinates: any /*Vector3i*/, manipulator: org.spongepowered.api.data.manipulator.DataManipulator, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@link DataManipulator} to the block at the given + * position. + *If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected and replaced + * data.
+ */ + // @ts-ignore + offer(x: number, y: number, z: number, manipulator: org.spongepowered.api.data.manipulator.DataManipulator, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the provided {@link DataManipulator}s to the block at the given + * position. + *If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected, replaced, and + * successfully offered data.
+ */ + // @ts-ignore + offer(coordinates: any /*Vector3i*/, manipulators: any): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the provided {@link DataManipulator}s to the block at the given + * position. + *If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected, replaced, and + * successfully offered data.
+ */ + // @ts-ignore + offer(x: number, y: number, z: number, manipulators: any): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the provided {@link DataManipulator}s to the block at the given + * position. If there's any overlaps of data, the provided + * {@link MergeFunction} is used to delegate the merges. It is possible to + * recycle {@link MergeFunction}s provided that the {@link MergeFunction} is + * aware of being usable in multiple environments. + *If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected, replaced, and + * successfully offered data.
+ */ + // @ts-ignore + offer(blockPosition: any /*Vector3i*/, values: any, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to remove the given {@link DataManipulator} represented by the + * block at the given location if possible. + *Certain {@link DataManipulator}s can not be removed due to certain + * dependencies relying on the particular data to function.
+ */ + // @ts-ignore + remove(coordinates: any /*Vector3i*/, manipulatorClass: any): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to remove the given {@link DataManipulator} represented by the + * block at the given location if possible. + *Certain {@link DataManipulator}s can not be removed due to certain + * dependencies relying on the particular data to function.
+ */ + // @ts-ignore + remove(x: number, y: number, z: number, manipulatorClass: any): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to remove the data associated with the provided {@link Key} from + * the block at the provided location. + */ + // @ts-ignore + remove(coordinates: any /*Vector3i*/, key: org.spongepowered.api.data.key.Key): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to remove the data associated with the provided {@link Key} from + * the block at the provided location. + */ + // @ts-ignore + remove(x: number, y: number, z: number, key: org.spongepowered.api.data.key.Key): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to undo a {@link DataTransactionResult}. Specifically, all + * {@link ImmutableValue}s that were successfully added are removed, and all + * replaced {@link ImmutableValue}s are offered. + */ + // @ts-ignore + undo(coordinates: any /*Vector3i*/, result: org.spongepowered.api.data.DataTransactionResult): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to undo a {@link DataTransactionResult}. Specifically, all + * {@link ImmutableValue}s that were successfully added are removed, and all + * replaced {@link ImmutableValue}s are offered. + */ + // @ts-ignore + undo(x: number, y: number, z: number, result: org.spongepowered.api.data.DataTransactionResult): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to copy all the relevant data from the provided + * {@link DataHolder} to the block at the provided coordinates. + */ + // @ts-ignore + copyFrom(to: any /*Vector3i*/, from: org.spongepowered.api.data.DataHolder): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to copy all the relevant data from the provided + * {@link DataHolder} to the block at the provided coordinates. + */ + // @ts-ignore + copyFrom(xTo: number, yTo: number, zTo: number, from: org.spongepowered.api.data.DataHolder): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to copy all the relevant data from the provided + * {@link DataHolder} to the block at the provided coordinates. + */ + // @ts-ignore + copyFrom(coordinatesTo: any /*Vector3i*/, coordinatesFrom: any /*Vector3i*/): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to copy all {@link ImmutableValue}s from the provided block to + * provided block to the provided block coordinates. + */ + // @ts-ignore + copyFrom(xTo: number, yTo: number, zTo: number, xFrom: number, yFrom: number, zFrom: number): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to copy all {@link ImmutableValue}s from the provided block to + * provided block to the provided block coordinates. Any conflicting data is + * handled through the provided {@link MergeFunction}. + */ + // @ts-ignore + copyFrom(to: any /*Vector3i*/, from: org.spongepowered.api.data.DataHolder, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to copy all {@link ImmutableValue}s from the provided block to + * provided block to the provided block coordinates. Any conflicting data is + * handled through the provided {@link MergeFunction}. + */ + // @ts-ignore + copyFrom(xTo: number, yTo: number, zTo: number, from: org.spongepowered.api.data.DataHolder, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to copy all {@link ImmutableValue}s from the provided block to + * provided block to the provided block coordinates. Any conflicting data is + * handled through the provided {@link MergeFunction}. + */ + // @ts-ignore + copyFrom(coordinatesTo: any /*Vector3i*/, coordinatesFrom: any /*Vector3i*/, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to copy all {@link ImmutableValue}s from the provided block to + * provided block to the provided block coordinates. Any conflicting data is + * handled through the provided {@link MergeFunction}. + */ + // @ts-ignore + copyFrom(xTo: number, yTo: number, zTo: number, xFrom: number, yFrom: number, zFrom: number, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + /** + * Gets an copied collection of all known {@link DataManipulator}s belonging + * to the block at the given position. An individual {@link DataManipulator} + * can be used for creating new data to replace on the block at the given + * position. + */ + // @ts-ignore + getManipulators(coordinates: any /*Vector3i*/): any[] /*java.util.Collection*/; + /** + * Gets an copied collection of all known {@link DataManipulator}s belonging + * to the block at the given position. An individual {@link DataManipulator} + * can be used for creating new data to replace on the block at the given + * position. + */ + // @ts-ignore + getManipulators(x: number, y: number, z: number): any[] /*java.util.Collection*/; + /** + * Validates the container with known data required to set the raw data to + * the block at the given position. If the container is incomplete or + * contains invalid data,false
is returned.
+ * This validation should be checked prior to calling + * {@link #setRawData(Vector3i, DataView)} to avoid exceptions.
+ */ + // @ts-ignore + validateRawData(position: any /*Vector3i*/, container: org.spongepowered.api.data.DataView): boolean; + /** + * Validates the container with known data required to set the raw data to + * the block at the given position. If the container is incomplete or + * contains invalid data,false
is returned.
+ * This validation should be checked prior to calling + * {@link #setRawData(Vector3i, DataView)} to avoid exceptions.
+ */ + // @ts-ignore + validateRawData(x: number, y: number, z: number, container: org.spongepowered.api.data.DataView): boolean; + /** + * Attempts to set all data of the block at the given position according to + * the {@link DataContainer}'s held information. Using this to modify known + * {@link DataManipulator}s is unsupported and if the data is invalid, an + * {@link InvalidDataException} is thrown. + *This setter is used to provide setting custom data that is not + * represented by the Data API, including forge mods and other unknown data. + * Attempts at validating known {@link DataManipulator}s contained in the + * data container are made with the assumption that all necessary data + * exists.
+ */ + // @ts-ignore + setRawData(position: any /*Vector3i*/, container: org.spongepowered.api.data.DataView): void; + /** + * Attempts to set all data of the block at the given position according to + * the {@link DataContainer}'s held information. Using this to modify known + * {@link DataManipulator}s is unsupported and if the data is invalid, an + * {@link InvalidDataException} is thrown. + *This setter is used to provide setting custom data that is not + * represented by the Data API, including forge mods and other unknown data. + * Attempts at validating known {@link DataManipulator}s contained in the + * data container are made with the assumption that all necessary data + * exists.
+ */ + // @ts-ignore + setRawData(x: number, y: number, z: number, container: org.spongepowered.api.data.DataView): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.MutableBiomeVolume.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.MutableBiomeVolume.ts new file mode 100644 index 00000000..9f7ea3b5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.MutableBiomeVolume.ts @@ -0,0 +1,45 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface MutableBiomeVolume extends org.spongepowered.api.world.extent.BiomeVolume { + /** + * Sets the biome at the given position in the world. + */ + // @ts-ignore + setBiome(position: any /*Vector3i*/, biome: org.spongepowered.api.world.biome.BiomeType): void; + /** + * Sets the biome at the given position in the world. + */ + // @ts-ignore + setBiome(x: number, y: number, z: number, biome: org.spongepowered.api.world.biome.BiomeType): void; + /** + * Returns a new volume that is the same or smaller than the current volume. + * This does not copy the biomes, it only provides a new view of the + * storage. + */ + // @ts-ignore + getBiomeView(newMin: any /*Vector3i*/, newMax: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new volume that is viewed through some transformation. This + * does not copy the biomes, it only provides a new view of the storage. + */ + // @ts-ignore + getBiomeView(transform: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new volume that is translated so that + * {@link BiomeVolume#getBiomeMin()} returns {@link Vector2i#ZERO}. This does + * not copy the biomes, it only provides a new view of the storage. + */ + // @ts-ignore + getRelativeBiomeView(): org.spongepowered.api.world.extent.MutableBiomeVolume; + // @ts-ignore + getBiomeWorker(): org.spongepowered.api.world.extent.worker.MutableBiomeVolumeWorker; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.MutableBlockVolume.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.MutableBlockVolume.ts new file mode 100644 index 00000000..887b6e7d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.MutableBlockVolume.ts @@ -0,0 +1,57 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface MutableBlockVolume extends org.spongepowered.api.world.extent.BlockVolume { + /** + * Sets the block at the given position in the world. + */ + // @ts-ignore + setBlock(position: any /*Vector3i*/, block: org.spongepowered.api.block.BlockState): boolean; + /** + * Sets the block at the given position in the world. + */ + // @ts-ignore + setBlock(x: number, y: number, z: number, block: org.spongepowered.api.block.BlockState): boolean; + /** + * Replace the block at this position by a new type. + *This will remove any extended block data at the given position.
+ */ + // @ts-ignore + setBlockType(position: any /*Vector3i*/, type: org.spongepowered.api.block.BlockType): boolean; + /** + * Replace the block at this position by a new type. + *This will remove any extended block data at the given position.
+ */ + // @ts-ignore + setBlockType(x: number, y: number, z: number, type: org.spongepowered.api.block.BlockType): boolean; + /** + * Returns a new volume that is the same or smaller than the current volume. + * This does not copy the blocks, it only provides a new view of the + * storage. + */ + // @ts-ignore + getBlockView(newMin: any /*Vector3i*/, newMax: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new volume that is viewed through some transformation. This + * does not copy the blocks, it only provides a new view of the storage. + */ + // @ts-ignore + getBlockView(transform: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new volume that is translated so that + * {@link BlockVolume#getBlockMin()} returns {@link Vector3i#ZERO}. This + * does not copy the blocks, it only provides a new view of the storage. + */ + // @ts-ignore + getRelativeBlockView(): org.spongepowered.api.world.extent.MutableBlockVolume; + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.StorageType.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.StorageType.ts new file mode 100644 index 00000000..c7233766 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.StorageType.ts @@ -0,0 +1,21 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + class StorageType { + // @ts-ignore + public static STANDARD: org.spongepowered.api.world.extent.StorageType; + // @ts-ignore + public static THREAD_SAFE: org.spongepowered.api.world.extent.StorageType; + // @ts-ignore + public static values(): org.spongepowered.api.world.extent.StorageType[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.world.extent.StorageType; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.TileEntityVolume.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.TileEntityVolume.ts new file mode 100644 index 00000000..356a4fea --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.TileEntityVolume.ts @@ -0,0 +1,45 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface TileEntityVolume extends org.spongepowered.api.world.extent.MutableBlockVolume { + /** + * Return a collection of tile entities contained within this volume, + * possibly only returning tile entities only in loaded areas. + *For world implementations, only some parts of the world is usually + * loaded, so this method will only return tile entities within those loaded + * parts.
+ */ + // @ts-ignore + getTileEntities(): any[] /*java.util.Collection*/; + /** + * Return a collection of tile entities contained within this volume, + * possibly only returning tile entities only in loaded areas. The returned + * tile entities are filtered by the given {@link Predicate} before being + * returned. + *For world implementations, only some parts of the world is usually + * loaded, so this method will only return tile entities within those loaded + * parts.
+ */ + // @ts-ignore + getTileEntities(filter: any): any[] /*java.util.Collection*/; + /** + * Gets the tile entity at the given position, if it exists. + */ + // @ts-ignore + getTileEntity(position: any /*Vector3i*/): any; + /** + * Gets the tile entity at the given position, if it exists. + */ + // @ts-ignore + getTileEntity(x: number, y: number, z: number): any; + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.UnmodifiableBiomeVolume.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.UnmodifiableBiomeVolume.ts new file mode 100644 index 00000000..e9a7b4bb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.UnmodifiableBiomeVolume.ts @@ -0,0 +1,37 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface UnmodifiableBiomeVolume extends org.spongepowered.api.world.extent.BiomeVolume { + /** + * Returns a new volume that is the same or smaller than the current volume. + * This does not copy the biomes, it only provides a new view of the + * storage. + */ + // @ts-ignore + getBiomeView(newMin: any /*Vector3i*/, newMax: any /*Vector3i*/): org.spongepowered.api.world.extent.UnmodifiableBiomeVolume; + /** + * Returns a new volume that is viewed through some transformation. This + * does not copy the biomes, it only provides a new view of the storage. + */ + // @ts-ignore + getBiomeView(transform: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.world.extent.UnmodifiableBiomeVolume; + /** + * Returns a new volume that is translated so that + * {@link BiomeVolume#getBiomeMin()} returns {@link Vector2i#ZERO}. This + * does not copy the biomes, it only provides a new view of the storage. + */ + // @ts-ignore + getRelativeBiomeView(): org.spongepowered.api.world.extent.UnmodifiableBiomeVolume; + // @ts-ignore + getUnmodifiableBiomeView(): org.spongepowered.api.world.extent.UnmodifiableBiomeVolume; + // @ts-ignore + getBiomeWorker(): org.spongepowered.api.world.extent.worker.BiomeVolumeWorker; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.UnmodifiableBlockVolume.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.UnmodifiableBlockVolume.ts new file mode 100644 index 00000000..2ec039ad --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.UnmodifiableBlockVolume.ts @@ -0,0 +1,37 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface UnmodifiableBlockVolume extends org.spongepowered.api.world.extent.BlockVolume { + /** + * Returns a new volume that is the same or smaller than the current volume. + * This does not copy the blocks, it only provides a new view of the + * storage. + */ + // @ts-ignore + getBlockView(newMin: any /*Vector3i*/, newMax: any /*Vector3i*/): org.spongepowered.api.world.extent.UnmodifiableBlockVolume; + /** + * Returns a new volume that is viewed through some transformation. This + * does not copy the blocks, it only provides a new view of the storage. + */ + // @ts-ignore + getBlockView(transform: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.world.extent.UnmodifiableBlockVolume; + /** + * Returns a new volume that is translated so that + * {@link BlockVolume#getBlockMin()} returns {@link Vector3i#ZERO}. This + * does not copy the blocks, it only provides a new view of the storage. + */ + // @ts-ignore + getRelativeBlockView(): org.spongepowered.api.world.extent.UnmodifiableBlockVolume; + // @ts-ignore + getUnmodifiableBlockView(): org.spongepowered.api.world.extent.UnmodifiableBlockVolume; + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.BlockVolumeWorker; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.BiomeVolumeWorker.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.BiomeVolumeWorker.ts new file mode 100644 index 00000000..d00d80e4 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.BiomeVolumeWorker.ts @@ -0,0 +1,45 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + // @ts-ignore + interface BiomeVolumeWorker { + /** + * Returns the volume this worker operates on. + */ + // @ts-ignore + getVolume(): org.spongepowered.api.world.extent.BiomeVolume; + /** + * Applies a mapping operation to all the biomes in the volume and saves the + * results to the destination volume. + */ + // @ts-ignore + map(mapper: org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMapper, destination: org.spongepowered.api.world.extent.MutableBiomeVolume): void; + /** + * Applies a merging operation to the biomes of the operating volume and an + * external one. Saves the results to the destination volume. + */ + // @ts-ignore + merge(second: org.spongepowered.api.world.extent.BiomeVolume, merger: org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMerger, destination: org.spongepowered.api.world.extent.MutableBiomeVolume): void; + /** + * Iterates this biome volume, calling the visitor on each coordinate pair. + */ + // @ts-ignore + iterate(visitor: org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeVisitor): void; + /** + * Applies a reduction operation to the volume. The identity should be the + * result of no reduction being applied. For example, the additive identity + * is 0, the multiplicative one is 1 and the set union one is the empty + * set. + */ + // @ts-ignore + reduce(reducer: org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeReducer, merge: any, identity: any): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.BlockVolumeWorker.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.BlockVolumeWorker.ts new file mode 100644 index 00000000..306ce672 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.BlockVolumeWorker.ts @@ -0,0 +1,46 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + // @ts-ignore + interface BlockVolumeWorker { + /** + * Returns the volume this worker operates on. + */ + // @ts-ignore + getVolume(): org.spongepowered.api.world.extent.BlockVolume; + /** + * Applies a mapping operation to all the blocks in the volume and saves the + * results to the destination volume. + */ + // @ts-ignore + map(mapper: org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMapper, destination: org.spongepowered.api.world.extent.MutableBlockVolume): void; + /** + * Applies a merging operation to the blocks of the operating volume and an + * external one. Saves the results to the destination volume. + */ + // @ts-ignore + merge(second: org.spongepowered.api.world.extent.BlockVolume, merger: org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMerger, destination: org.spongepowered.api.world.extent.MutableBlockVolume): void; + /** + * Iterates this block volume, calling the visitor on each coordinate + * triplet. + */ + // @ts-ignore + iterate(visitor: org.spongepowered.api.world.extent.worker.procedure.BlockVolumeVisitor): void; + /** + * Applies a reduction operation to the volume. The identity should be the + * result of no reduction being applied. For example, the additive identity + * is 0, the multiplicative one is 1 and the set union one is the empty + * set. + */ + // @ts-ignore + reduce(reducer: org.spongepowered.api.world.extent.worker.procedure.BlockVolumeReducer, merge: any, identity: any): any; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.MutableBiomeVolumeWorker.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.MutableBiomeVolumeWorker.ts new file mode 100644 index 00000000..b04dedc8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.MutableBiomeVolumeWorker.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + // @ts-ignore + interface MutableBiomeVolumeWorker extends org.spongepowered.api.world.extent.worker.BiomeVolumeWorker { + /** + * Similar to {@link BiomeVolumeWorker#map(BiomeVolumeMapper, + * MutableBiomeVolume)} but uses the operating volume as the destination. + * Precautions must be taken as the volume is modified while the operation + * is being performed, and so the surrounding blocks might not be the + * original ones. + */ + // @ts-ignore + map(mapper: org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMapper): void; + /** + * Similar to {@link BiomeVolumeWorker#merge(BiomeVolume, BiomeVolumeMerger, + * MutableBiomeVolume)} but uses the operating volume as the destination. + * Precautions must be taken as the volume is modified while the operation + * is being performed, and so the surrounding blocks might not be the + * original ones. + */ + // @ts-ignore + merge(right: org.spongepowered.api.world.extent.BiomeVolume, merger: org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMerger): void; + /** + * Applies a filler operation to the volume. + */ + // @ts-ignore + fill(filler: org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeFiller): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker.ts new file mode 100644 index 00000000..e3558ec7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + // @ts-ignore + interface MutableBlockVolumeWorker extends org.spongepowered.api.world.extent.worker.BlockVolumeWorker { + /** + * Similar to {@link BlockVolumeWorker#map(BlockVolumeMapper, + * MutableBlockVolume)} but uses the operating volume as the destination. + * Precautions must be taken as the volume is modified while the operation + * is being performed, and so the surrounding blocks might not be the + * original ones. + */ + // @ts-ignore + map(mapper: org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMapper): void; + /** + * Similar to {@link BlockVolumeWorker#merge(BlockVolume, BlockVolumeMerger, + * MutableBlockVolume)} but uses the operating volume as the destination. + * Precautions must be taken as the volume is modified while the operation + * is being performed, and so the surrounding blocks might not be the + * original ones. + */ + // @ts-ignore + merge(right: org.spongepowered.api.world.extent.BlockVolume, merger: org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMerger): void; + /** + * Applies a filler operation to the volume. + */ + // @ts-ignore + fill(filler: org.spongepowered.api.world.extent.worker.procedure.BlockVolumeFiller): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeFiller.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeFiller.ts new file mode 100644 index 00000000..1a07976c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeFiller.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BiomeVolumeFiller { + /** + * Produces a biome for the coordinate pair. + */ + // @ts-ignore + produce(x: number, y: number, z: number): org.spongepowered.api.world.biome.BiomeType; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMapper.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMapper.ts new file mode 100644 index 00000000..7f64418c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMapper.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BiomeVolumeMapper { + /** + * Produces a new biome from the original biome given as its volume and + * coordinates. + */ + // @ts-ignore + map(volume: org.spongepowered.api.world.extent.UnmodifiableBiomeVolume, x: number, y: number, z: number): org.spongepowered.api.world.biome.BiomeType; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMerger.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMerger.ts new file mode 100644 index 00000000..9fd26751 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMerger.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BiomeVolumeMerger { + /** + * Produces a new biome from two original biomes given as their volumes and + * their coordinates. + */ + // @ts-ignore + merge(firstVolume: org.spongepowered.api.world.extent.UnmodifiableBiomeVolume, xFirst: number, yFirst: number, zFirst: number, secondVolume: org.spongepowered.api.world.extent.UnmodifiableBiomeVolume, xSecond: number, ySecond: number, zSecond: number): org.spongepowered.api.world.biome.BiomeType; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeReducer.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeReducer.ts new file mode 100644 index 00000000..fdb4020a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeReducer.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BiomeVolumeReducer { + /** + * Reduces a biome given as its volume and coordinates into the ongoing + * reduction. + */ + // @ts-ignore + reduce(volume: org.spongepowered.api.world.extent.UnmodifiableBiomeVolume, x: number, y: number, z: number, reduction: any): any; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeVisitor.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeVisitor.ts new file mode 100644 index 00000000..f2dfe4bb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeVisitor.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BiomeVolumeVisitor { + /** + * Visits a biome given as its volume and coordinates. + */ + // @ts-ignore + visit(volume: org.spongepowered.api.world.extent.BiomeVolume, x: number, y: number, z: number): void; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeFiller.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeFiller.ts new file mode 100644 index 00000000..acbdfc9e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeFiller.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BlockVolumeFiller { + /** + * Produces a block for the coordinate triplet. + */ + // @ts-ignore + produce(x: number, y: number, z: number): org.spongepowered.api.block.BlockState; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMapper.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMapper.ts new file mode 100644 index 00000000..15b68837 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMapper.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BlockVolumeMapper { + /** + * Produces a new block from the original block given as its volume and + * coordinates. + */ + // @ts-ignore + map(volume: org.spongepowered.api.world.extent.UnmodifiableBlockVolume, x: number, y: number, z: number): org.spongepowered.api.block.BlockState; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMerger.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMerger.ts new file mode 100644 index 00000000..be41b714 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMerger.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BlockVolumeMerger { + /** + * Produces a new block from two original blocks given as their volumes and + * their coordinates. + */ + // @ts-ignore + merge(firstVolume: org.spongepowered.api.world.extent.UnmodifiableBlockVolume, xFirst: number, yFirst: number, zFirst: number, secondVolume: org.spongepowered.api.world.extent.UnmodifiableBlockVolume, xSecond: number, ySecond: number, zSecond: number): org.spongepowered.api.block.BlockState; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeReducer.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeReducer.ts new file mode 100644 index 00000000..845f0ed9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeReducer.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BlockVolumeReducer { + /** + * Reduces a block given as its volume and coordinates into the ongoing + * reduction. + */ + // @ts-ignore + reduce(volume: org.spongepowered.api.world.extent.UnmodifiableBlockVolume, x: number, y: number, z: number, reduction: any): any; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeVisitor.ts b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeVisitor.ts new file mode 100644 index 00000000..7c54a3f1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeVisitor.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BlockVolumeVisitor { + /** + * Visits a block given as its volume and coordinates. + */ + // @ts-ignore + visit(volume: org.spongepowered.api.world.extent.BlockVolume, x: number, y: number, z: number): void; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gamerule.DefaultGameRules.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gamerule.DefaultGameRules.ts new file mode 100644 index 00000000..88f57f74 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gamerule.DefaultGameRules.ts @@ -0,0 +1,62 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gamerule { + // @ts-ignore + class DefaultGameRules { + constructor() + // @ts-ignore + public static ANNOUNCE_ADVANCEMENTS: string; + // @ts-ignore + public static COMMAND_BLOCK_OUTPUT: string; + // @ts-ignore + public static DISABLE_ELYTRA_MOVEMENT_CHECK: string; + // @ts-ignore + public static DO_DAYLIGHT_CYCLE: string; + // @ts-ignore + public static DO_ENTITY_DROPS: string; + // @ts-ignore + public static DO_FIRE_TICK: string; + // @ts-ignore + public static DO_LIMITED_CRAFTING: string; + // @ts-ignore + public static DO_MOB_LOOT: string; + // @ts-ignore + public static DO_MOB_SPAWNING: string; + // @ts-ignore + public static DO_TILE_DROPS: string; + // @ts-ignore + public static DO_WEATHER_CYCLE: string; + // @ts-ignore + public static GAME_LOOP_FUNCTION: string; + // @ts-ignore + public static KEEP_INVENTORY: string; + // @ts-ignore + public static LOG_ADMIN_COMMANDS: string; + // @ts-ignore + public static MAX_COMMAND_CHAIN_LENGTH: string; + // @ts-ignore + public static MAX_ENTITY_CRAMMING: string; + // @ts-ignore + public static MOB_GRIEFING: string; + // @ts-ignore + public static NATURAL_REGENERATION: string; + // @ts-ignore + public static RANDOM_TICK_SPEED: string; + // @ts-ignore + public static REDUCED_DEBUG_INFO: string; + // @ts-ignore + public static SEND_COMMAND_FEEDBACK: string; + // @ts-ignore + public static SHOW_DEATH_MESSAGES: string; + // @ts-ignore + public static SPAWN_RADIUS: string; + // @ts-ignore + public static SPECTATORS_GENERATE_CHUNKS: string; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.BiomeGenerator.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.BiomeGenerator.ts new file mode 100644 index 00000000..3fef41b2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.BiomeGenerator.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + interface BiomeGenerator { + /** + * Generates the biomes for the whole buffer using only biomes from the + * given array of available biomes. The resultant biomes are placed into the + * given buffer. + *The biome generator can be called multiple times for the same + * position. The biome generator should, for any position/world seed + * combination, always return the same biome.
+ */ + // @ts-ignore + generateBiomes(buffer: org.spongepowered.api.world.extent.MutableBiomeVolume): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.GenerationPopulator.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.GenerationPopulator.ts new file mode 100644 index 00000000..b18820f8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.GenerationPopulator.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + interface GenerationPopulator { + /** + * Operates on a {@link MutableBlockVolume} either forming the base terrain + * or performing modifications during the generation phase. + */ + // @ts-ignore + populate(world: org.spongepowered.api.world.World, buffer: org.spongepowered.api.world.extent.MutableBlockVolume, biomes: org.spongepowered.api.world.extent.ImmutableBiomeVolume): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.Populator.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.Populator.ts new file mode 100644 index 00000000..443d4da2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.Populator.ts @@ -0,0 +1,41 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + interface Populator { + /** + * Gets the type of this populator. + *It should be noted that the relationship of classes implementing + * {@link Populator} and {@link PopulatorType}s is not a one-to-one + * relationship. That is to say that multiple different populators could + * return the same {@link PopulatorType} for the purposes of grouping (A + * plugin populator creating custom glowstone clusters may want to return + * {@link PopulatorTypes#GLOWSTONE} so that other plugins can recognize + * changes that it makes as being part of the generation of glowstone).
+ */ + // @ts-ignore + getType(): org.spongepowered.api.world.gen.PopulatorType; + /** + * Applies the populator to the given {@link Extent} volume. The entire volume + * of the given extent should be populated. + *Due to their transitive nature virtual biomes cannot be fetched from + * the given extent, instead your populator should override + * {@link #populate(World, Extent, Random, ImmutableBiomeVolume)} to make use + * of the ImmutableBiomeArea which does contain virtual biome types.
+ */ + // @ts-ignore + populate(world: org.spongepowered.api.world.World, volume: org.spongepowered.api.world.extent.Extent, random: any): void; + /** + * Applies the populator to the given {@link Extent} volume. The entire volume + * of the given extent should be populated. + */ + // @ts-ignore + populate(world: org.spongepowered.api.world.World, volume: org.spongepowered.api.world.extent.Extent, random: any, virtualBiomes: org.spongepowered.api.world.extent.ImmutableBiomeVolume): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.PopulatorObject.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.PopulatorObject.ts new file mode 100644 index 00000000..670cc570 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.PopulatorObject.ts @@ -0,0 +1,24 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + interface PopulatorObject extends org.spongepowered.api.CatalogType { + /** + * Returns whether this object can be placed into the world at the given + * position. + */ + // @ts-ignore + canPlaceAt(world: org.spongepowered.api.world.World, x: number, y: number, z: number): boolean; + /** + * Places the object into the world at the given location. + */ + // @ts-ignore + placeObject(world: org.spongepowered.api.world.World, random: any, x: number, y: number, z: number): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.PopulatorObjects.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.PopulatorObjects.ts new file mode 100644 index 00000000..8eb696af --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.PopulatorObjects.ts @@ -0,0 +1,47 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + class PopulatorObjects { + // @ts-ignore + public static DESERT_WELL: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static BIRCH: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static CANOPY: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static JUNGLE: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static JUNGLE_BUSH: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static MEGA_BIRCH: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static MEGA_JUNGLE: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static MEGA_OAK: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static MEGA_POINTY_TAIGA: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static MEGA_TALL_TAIGA: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static OAK: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static POINTY_TAIGA: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static SAVANNA: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static SWAMP: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static TALL_TAIGA: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static BROWN: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static RED: org.spongepowered.api.world.gen.PopulatorObject; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.PopulatorType.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.PopulatorType.ts new file mode 100644 index 00000000..7c5aefdb --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.PopulatorType.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + interface PopulatorType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.PopulatorTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.PopulatorTypes.ts new file mode 100644 index 00000000..41cbc5c6 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.PopulatorTypes.ts @@ -0,0 +1,69 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + class PopulatorTypes { + // @ts-ignore + public static BIG_MUSHROOM: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static BLOCK_BLOB: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static CACTUS: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static CHORUS_FLOWER: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static DEAD_BUSH: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static DESERT_WELL: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static DOUBLE_PLANT: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static DUNGEON: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static END_ISLAND: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static FLOWER: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static FOREST: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static FOSSIL: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static GENERIC_BLOCK: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static GENERIC_OBJECT: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static GLOWSTONE: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static ICE_PATH: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static ICE_SPIKE: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static LAKE: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static MELON: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static MUSHROOM: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static NETHER_FIRE: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static ORE: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static PUMPKIN: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static REED: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static SEA_FLOOR: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static SHRUB: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static VINE: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static WATER_LILY: org.spongepowered.api.world.gen.PopulatorType; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.WorldGenerator.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.WorldGenerator.ts new file mode 100644 index 00000000..cbd216f5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.WorldGenerator.ts @@ -0,0 +1,71 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + interface WorldGenerator { + /** + * Gets the main {@link GenerationPopulator}. This generator populator is + * responsible for generating the base terrain of the chunk. + */ + // @ts-ignore + getBaseGenerationPopulator(): org.spongepowered.api.world.gen.GenerationPopulator; + /** + * Sets the {@link GenerationPopulator}. This generator populator is + * responsible for generating the base terrain of the chunk. + */ + // @ts-ignore + setBaseGenerationPopulator(generator: org.spongepowered.api.world.gen.GenerationPopulator): void; + /** + * Gets a mutable list of {@link GenerationPopulator}s. These populators + * work strictly on a single chunk. They will be executed directly after the + * {@link BiomeGenerationSettings#getGroundCoverLayers() biome ground cover + * layers} and the {@link BiomeGenerationSettings#getGenerationPopulators() + * biome generator populators} have been called. These generator populators + * are typically used to generate large terrain features, like caves and + * ravines. + *This list does not include {@link #getBaseGenerationPopulator() the + * base generator}.
+ */ + // @ts-ignore + getGenerationPopulators(): any[] /*java.util.List*/; + /** + * Gets an immutable list of {@link GenerationPopulator}s which match the + * given class type. + */ + // @ts-ignore + getGenerationPopulators(type: any): any[] /*java.util.List*/; + /** + * Gets a mutable list of {@link Populator}s which are applied globally (in + * the whole world). + */ + // @ts-ignore + getPopulators(): any[] /*java.util.List*/; + /** + * Gets an immutable list of {@link Populator}s which match the given class + * type. + */ + // @ts-ignore + getPopulators(type: any): any[] /*java.util.List*/; + /** + * Gets the {@link BiomeGenerator} for this world generator. + */ + // @ts-ignore + getBiomeGenerator(): org.spongepowered.api.world.gen.BiomeGenerator; + /** + * Sets the {@link BiomeGenerator} for this world generator. + */ + // @ts-ignore + setBiomeGenerator(biomeGenerator: org.spongepowered.api.world.gen.BiomeGenerator): void; + /** + * Gets this world generator settings for the given {@link BiomeType}.. + */ + // @ts-ignore + getBiomeSettings(type: org.spongepowered.api.world.biome.BiomeType): org.spongepowered.api.world.biome.BiomeGenerationSettings; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.WorldGeneratorModifier.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.WorldGeneratorModifier.ts new file mode 100644 index 00000000..c68c3b47 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.WorldGeneratorModifier.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + interface WorldGeneratorModifier extends org.spongepowered.api.CatalogType { + /** + * Modifies the given world generator. This method is called by the + * implementation when the server is set to use this plugin for world + * generation. + *To replace the base chunk generator, replace the main generator + * populator using + * {@link WorldGenerator#setBaseGenerationPopulator(GenerationPopulator)}. + * To replace the biome generator, use + * {@link WorldGenerator#setBiomeGenerator(BiomeGenerator)}. To change + * terrain population, modify the populator list returned by + * {@link WorldGenerator#getPopulators()} or + * {@link WorldGenerator#getGenerationPopulators()}.
+ */ + // @ts-ignore + modifyWorldGenerator(world: org.spongepowered.api.world.storage.WorldProperties, settings: org.spongepowered.api.data.DataContainer, worldGenerator: org.spongepowered.api.world.gen.WorldGenerator): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.WorldGeneratorModifiers.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.WorldGeneratorModifiers.ts new file mode 100644 index 00000000..614d7034 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.WorldGeneratorModifiers.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + class WorldGeneratorModifiers { + // @ts-ignore + public static SKYLANDS: org.spongepowered.api.world.gen.WorldGeneratorModifier; + // @ts-ignore + public static VOID: org.spongepowered.api.world.gen.WorldGeneratorModifier; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.BigMushroom.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.BigMushroom.Builder.ts new file mode 100644 index 00000000..18eee3f2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.BigMushroom.Builder.ts @@ -0,0 +1,57 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace BigMushroom { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the weighted {@link PopulatorObject}s to select from during + * generation. + */ + // @ts-ignore + types(types: org.spongepowered.api.util.weighted.WeightedTable): org.spongepowered.api.world.gen.populator.BigMushroom.Builder; + /** + * Adds the weighted {@link PopulatorObject} to the list of available + * types. + */ + // @ts-ignore + type(type: org.spongepowered.api.world.gen.PopulatorObject, weight: number): org.spongepowered.api.world.gen.populator.BigMushroom.Builder; + /** + * Sets the number of mushrooms which will be attempted to be spawned. + *Note: This number is not a definite number and + * the final count of mushrooms which are successfully spawned by the + * populator will almost always be lower.
+ */ + // @ts-ignore + mushroomsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.BigMushroom.Builder; + /** + * Sets the number of mushrooms which will be attempted to be spawned. + *Note: This number is not a definite number and + * the final count of mushrooms which are successfully spawned by the + * populator will almost always be lower.
+ */ + // @ts-ignore + mushroomsPerChunk(count: number): org.spongepowered.api.world.gen.populator.BigMushroom.Builder; + /** + * Sets the overriding supplier. If the supplier is present then it is + * used in place of the weighted table. + */ + // @ts-ignore + supplier(override: any): org.spongepowered.api.world.gen.populator.BigMushroom.Builder; + /** + * Builds a new instance of a {@link BigMushroom} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.BigMushroom; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.BigMushroom.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.BigMushroom.ts new file mode 100644 index 00000000..9ec52eb7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.BigMushroom.ts @@ -0,0 +1,72 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface BigMushroom extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link BigMushroom} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.BigMushroom.Builder; + /** + * Gets a mutable {@link WeightedTable} of possible mushroom types to spawn. + */ + // @ts-ignore + getTypes(): org.spongepowered.api.util.weighted.WeightedTable; + /** + * Gets a representation of the amount of mushrooms which will be attempted + * to be spawned per chunk. + *Note: This number is not a definite number and the + * final count of mushrooms which are successfully spawned by the populator + * will almost always be lower.
+ */ + // @ts-ignore + getMushroomsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the representation of the amount of mushrooms which will be + * attempted to be spawned per chunk. + *Note: This number is not a definite number and the + * final count of mushrooms which are successfully spawned by the populator + * will almost always be lower.
+ */ + // @ts-ignore + setMushroomsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the amount of mushrooms which will be attempted to be spawned per + * chunk. + *Note: This number is not a definite number and the + * final count of mushrooms which are successfully spawned by the populator + * will almost always be lower.
+ */ + // @ts-ignore + setMushroomsPerChunk(count: number): void; + /** + * Gets the overriding supplier if it exists. If the supplier is present + * then it is used in place of the weighted table while determining what + * PopulatorObject to place. + */ + // @ts-ignore + getSupplierOverride(): any; + /** + * Sets the overriding supplier. If the supplier is present then it is used + * in place of the weighted table while determining what PopulatorObject to + * place. + */ + // @ts-ignore + setSupplierOverride(override: any): void; + /** + * Clears the supplier override to force the weighted table to be used + * instead. + */ + // @ts-ignore + clearSupplierOverride(): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.BlockBlob.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.BlockBlob.Builder.ts new file mode 100644 index 00000000..f60d6f09 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.BlockBlob.Builder.ts @@ -0,0 +1,51 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace BlockBlob { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link BlockState} that this populator will place down to + * form the blob. + */ + // @ts-ignore + block(block: org.spongepowered.api.block.BlockState): org.spongepowered.api.world.gen.populator.BlockBlob.Builder; + /** + * Sets the radius of the area for the blob, cannot be negative. + */ + // @ts-ignore + radius(radius: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.BlockBlob.Builder; + /** + * Sets the radius of the area for the blob, cannot be negative. + */ + // @ts-ignore + radius(radius: number): org.spongepowered.api.world.gen.populator.BlockBlob.Builder; + /** + * Sets the number of blobs to spawn per chunk, must be greater than + * zero. + */ + // @ts-ignore + blobCount(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.BlockBlob.Builder; + /** + * Sets the number of blobs to spawn per chunk, must be greater than + * zero. + */ + // @ts-ignore + blobCount(count: number): org.spongepowered.api.world.gen.populator.BlockBlob.Builder; + /** + * Builds a new instance of a {@link BlockBlob} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.BlockBlob; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.BlockBlob.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.BlockBlob.ts new file mode 100644 index 00000000..1c714389 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.BlockBlob.ts @@ -0,0 +1,62 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface BlockBlob extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link BlockBlob} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.BlockBlob.Builder; + /** + * Gets the {@link BlockState} that this populator will place down to form + * the blob. + */ + // @ts-ignore + getBlock(): org.spongepowered.api.block.BlockState; + /** + * Sets the {@link BlockState} that this populator will place down to form + * the blob. + */ + // @ts-ignore + setBlock(state: org.spongepowered.api.block.BlockState): void; + /** + * Gets the radius of the area for the blob. + */ + // @ts-ignore + getRadius(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the radius of the area for the blob, cannot be negative. + */ + // @ts-ignore + setRadius(radius: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the radius of the area for the blob, cannot be negative. + */ + // @ts-ignore + setRadius(radius: number): void; + /** + * Gets the number of blobs which will be placed per chunk. + */ + // @ts-ignore + getCount(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of blobs to spawn per chunk, must be greater than zero. + */ + // @ts-ignore + setCount(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of blobs to spawn per chunk, must be greater than zero. + */ + // @ts-ignore + setCount(count: number): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Cactus.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Cactus.Builder.ts new file mode 100644 index 00000000..6ad0e80e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Cactus.Builder.ts @@ -0,0 +1,49 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Cactus { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of cacti to spawn per chunk, cannot be negative. + *Note: This number is not a definite number and + * the final count of cacti which are successfully spawned by the + * populator will almost always be lower.
+ */ + // @ts-ignore + cactiPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Cactus.Builder; + /** + * Sets the number of cacti to spawn per chunk, cannot be negative. + *Note: This number is not a definite number and + * the final count of cacti which are successfully spawned by the + * populator will almost always be lower.
+ */ + // @ts-ignore + cactiPerChunk(count: number): org.spongepowered.api.world.gen.populator.Cactus.Builder; + /** + * Sets the height of the cacti. + */ + // @ts-ignore + height(height: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Cactus.Builder; + /** + * Sets the height of the cacti. + */ + // @ts-ignore + height(height: number): org.spongepowered.api.world.gen.populator.Cactus.Builder; + /** + * Builds a new instance of a {@link Cactus} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Cactus; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Cactus.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Cactus.ts new file mode 100644 index 00000000..ee649d01 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Cactus.ts @@ -0,0 +1,56 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Cactus extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Cactus} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Cactus.Builder; + /** + * Gets the number of cacti to spawn per chunk. + */ + // @ts-ignore + getCactiPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of cacti to spawn per chunk, cannot be negative. + *Note: This number is not a definite number and the + * final count of cacti which are successfully spawned by the populator will + * almost always be lower.
+ */ + // @ts-ignore + setCactiPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of cacti to spawn per chunk, cannot be negative. + *Note: This number is not a definite number and the + * final count of cacti which are successfully spawned by the populator will + * almost always be lower.
+ */ + // @ts-ignore + setCactiPerChunk(count: number): void; + /** + * Gets the height of the cacti. + */ + // @ts-ignore + getHeight(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the height of the cacti. + */ + // @ts-ignore + setHeight(height: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the height of the cacti. + */ + // @ts-ignore + setHeight(count: number): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.ChorusFlower.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.ChorusFlower.Builder.ts new file mode 100644 index 00000000..ff9f9e0c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.ChorusFlower.Builder.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace ChorusFlower { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the radius around the center (0, 0) of the world that this + * populator will not apply to. + *This must be a positive value or zero.
+ */ + // @ts-ignore + exclusionRadius(radius: number): org.spongepowered.api.world.gen.populator.ChorusFlower.Builder; + /** + * Builds a new instance of a {@link ChorusFlower} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.ChorusFlower; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.ChorusFlower.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.ChorusFlower.ts new file mode 100644 index 00000000..c69de14c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.ChorusFlower.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface ChorusFlower extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link ChorusFlower} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.ChorusFlower.Builder; + /** + * Gets the radius around the center (0, 0) of the world that this populator + * will not apply to. + *This is used to prevent the islands from generating around the ender + * dragon fight area.
+ */ + // @ts-ignore + getExclusionRadius(): number; + /** + * Sets the radius around the center (0, 0) of the world that this populator + * will not apply to. + *This must be a positive value or zero.
+ */ + // @ts-ignore + setExclusionRadius(radius: number): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.DeadBush.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.DeadBush.Builder.ts new file mode 100644 index 00000000..336fd521 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.DeadBush.Builder.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace DeadBush { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of bushes to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.DeadBush.Builder; + /** + * Sets the number of bushes to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.DeadBush.Builder; + /** + * Builds a new instance of a {@link DeadBush} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.DeadBush; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.DeadBush.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.DeadBush.ts new file mode 100644 index 00000000..99fcae7d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.DeadBush.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface DeadBush extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link DeadBush} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.DeadBush.Builder; + /** + * Gets the number of bushes to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getShrubsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of bushes to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setShrubsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of bushes to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setShrubsPerChunk(count: number): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.DesertWell.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.DesertWell.Builder.ts new file mode 100644 index 00000000..f76b427c --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.DesertWell.Builder.ts @@ -0,0 +1,33 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace DesertWell { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the probability of a desert well spawning. + */ + // @ts-ignore + probability(p: number): org.spongepowered.api.world.gen.populator.DesertWell.Builder; + /** + * Sets the {@link PopulatorObject} representing the well. + */ + // @ts-ignore + wellObject(obj: org.spongepowered.api.world.gen.PopulatorObject): org.spongepowered.api.world.gen.populator.DesertWell.Builder; + /** + * Builds a new instance of a {@link DesertWell} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.DesertWell; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.DesertWell.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.DesertWell.ts new file mode 100644 index 00000000..60ca5853 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.DesertWell.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface DesertWell extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link DesertWell} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.DesertWell.Builder; + /** + * Gets the probability of a desert well spawning. + */ + // @ts-ignore + getSpawnProbability(): number; + /** + * Sets the probability of a desert well spawning. + */ + // @ts-ignore + setSpawnProbability(p: number): void; + /** + * Gets the {@link PopulatorObject} representing the well. + */ + // @ts-ignore + getWellObject(): org.spongepowered.api.world.gen.PopulatorObject; + /** + * Sets the {@link PopulatorObject} representing the well. + */ + // @ts-ignore + setWellObject(obj: org.spongepowered.api.world.gen.PopulatorObject): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.DoublePlant.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.DoublePlant.Builder.ts new file mode 100644 index 00000000..0cd4ddcf --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.DoublePlant.Builder.ts @@ -0,0 +1,56 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace DoublePlant { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets which plant types may be spawned in by this populator. + */ + // @ts-ignore + types(types: org.spongepowered.api.util.weighted.WeightedTable): org.spongepowered.api.world.gen.populator.DoublePlant.Builder; + /** + * Adds a plant type to the list that may be spawned in by this + * populator. + */ + // @ts-ignore + type(type: org.spongepowered.api.data.type.DoublePlantType, weight: number): org.spongepowered.api.world.gen.populator.DoublePlant.Builder; + /** + * Sets the number of plants to create, cannot be negative. + *Note: This number is not a definite number and + * the final count of plants which are successfully spawned by the + * populator will almost always be lower.
+ */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.DoublePlant.Builder; + /** + * Sets the number of plants to create, cannot be negative. + *Note: This number is not a definite number and + * the final count of plants which are successfully spawned by the + * populator will almost always be lower.
+ */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.DoublePlant.Builder; + /** + * Sets the overriding supplier. If the supplier is present then it is + * used in place of the weighted table. + */ + // @ts-ignore + supplier(override: any): org.spongepowered.api.world.gen.populator.DoublePlant.Builder; + /** + * Builds a new instance of a {@link DoublePlant} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.DoublePlant; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.DoublePlant.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.DoublePlant.ts new file mode 100644 index 00000000..dfda8eb9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.DoublePlant.ts @@ -0,0 +1,67 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface DoublePlant extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link DoublePlant} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.DoublePlant.Builder; + /** + * Gets a mutable weighted collection of possible plants which may be + * selected to be spawned in by this populator. + */ + // @ts-ignore + getPossibleTypes(): org.spongepowered.api.util.weighted.WeightedTable; + /** + * Gets the number of plants to create per chunk. + */ + // @ts-ignore + getPlantsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of plants to create per chunk, cannot be negative. + *Note: This number is not a definite number and the + * final count of plants which are successfully spawned by the populator + * will almost always be lower.
+ */ + // @ts-ignore + setPlantsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of plants to create per chunk, cannot be negative. + *Note: This number is not a definite number and the + * final count of plants which are successfully spawned by the populator + * will almost always be lower.
+ */ + // @ts-ignore + setPlantsPerChunk(count: number): void; + /** + * Gets the overriding supplier if it exists. If the supplier is present + * then it is used in place of the weighted table while determining what + * DoublePlantType to place. + */ + // @ts-ignore + getSupplierOverride(): any; + /** + * Sets the overriding supplier. If the supplier is present then it is used + * in place of the weighted table while determining what DoublePlantType to + * place. + */ + // @ts-ignore + setSupplierOverride(override: any): void; + /** + * Clears the supplier override to force the weighted table to be used + * instead. + */ + // @ts-ignore + clearSupplierOverride(): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Dungeon.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Dungeon.Builder.ts new file mode 100644 index 00000000..04cf9bf7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Dungeon.Builder.ts @@ -0,0 +1,61 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Dungeon { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of attempts at randomly spawning a generator per + * chunk. + */ + // @ts-ignore + attempts(attempts: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Dungeon.Builder; + /** + * Sets the number of attempts at randomly spawning a generator per + * chunk. + */ + // @ts-ignore + attempts(attempts: number): org.spongepowered.api.world.gen.populator.Dungeon.Builder; + /** + *Sets {@link MobSpawnerData} that will be used to create the spawner + * within the dungeon.
+ *Note: Only one of choices or mob spawner data + * will be present.
+ */ + // @ts-ignore + mobSpawnerData(data: org.spongepowered.api.data.manipulator.mutable.MobSpawnerData): org.spongepowered.api.world.gen.populator.Dungeon.Builder; + /** + *Sets the possible {@link EntityArchetype}s that could be spawned. + * One type is chosen when creating the dungeon, for more complex + * spawners see {@link #mobSpawnerData(MobSpawnerData)}}
+ *To use the default set of choices, pass null
instead
+ * of a table.
Note: Only one of choices or mob spawner data + * will be present.
+ */ + // @ts-ignore + choices(choices: org.spongepowered.api.util.weighted.WeightedTable): org.spongepowered.api.world.gen.populator.Dungeon.Builder; + /** + * Defines a {@link LootTable} of {@link ItemStackSnapshot}s from which + * items will be randomly selected based on weight in order to calculate + * the contents of chests placed within the dungeon. + */ + // @ts-ignore + possibleItems(items: org.spongepowered.api.util.weighted.LootTable): org.spongepowered.api.world.gen.populator.Dungeon.Builder; + /** + * Builds a new instance of a {@link Dungeon} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Dungeon; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Dungeon.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Dungeon.ts new file mode 100644 index 00000000..ac6616f8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Dungeon.ts @@ -0,0 +1,77 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Dungeon extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Dungeon} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Dungeon.Builder; + /** + * Gets the number of attempts at randomly spawning a generator per chunk. + */ + // @ts-ignore + getAttemptsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of attempts at randomly spawning a generator per chunk. + */ + // @ts-ignore + setAttemptsPerChunk(attempts: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of attempts at randomly spawning a generator per chunk. + */ + // @ts-ignore + setAttemptsPerChunk(attempts: number): void; + /** + *Gets the {@link MobSpawnerData} which represents the MobSpawner which + * will be created within the dungeon.
+ *Note: Only one of choices or mob spawner data + * will be present.
+ */ + // @ts-ignore + getMobSpawnerData(): any; + /** + *Sets {@link MobSpawnerData} which will be used to create the spawner + * within the dungeon.
+ *Note: Only one of choices or mob spawner data + * will be present.
+ */ + // @ts-ignore + setMobSpawnerData(data: org.spongepowered.api.data.manipulator.mutable.MobSpawnerData): void; + /** + *Gets a weighted collection of possible + * {@link EntityArchetype}s that could be spawned. One type is chosen when + * creating the dungeon, for more complex spawners see + * {@link #getMobSpawnerData()}.
+ *Note: Only one of choices or mob spawner data + * will be present.
+ */ + // @ts-ignore + getChoices(): any; + /** + *Sets the possible {@link EntityArchetype}s that could be spawned. + * One type is chosen when creating the dungeon, for more complex + * spawners see {@link #setMobSpawnerData(MobSpawnerData)}
+ *Note: Only one of choices or mob spawner data + * will be present.
+ */ + // @ts-ignore + setChoices(choices: org.spongepowered.api.util.weighted.WeightedTable): void; + /** + * Gets a mutable weighted collection of possible contents of the chests. + * Items will be randomly selected from this list based on weight in order + * to calculate the contents of chests placed within the dungeon. + */ + // @ts-ignore + getPossibleContents(): org.spongepowered.api.util.weighted.LootTable; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.EndIsland.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.EndIsland.Builder.ts new file mode 100644 index 00000000..2b8b71fe --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.EndIsland.Builder.ts @@ -0,0 +1,55 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace EndIsland { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the initial starting radius range of the island. + */ + // @ts-ignore + startingRadius(radius: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.EndIsland.Builder; + /** + * Sets the initial starting radius of the island. + */ + // @ts-ignore + startingRadius(radius: number): org.spongepowered.api.world.gen.populator.EndIsland.Builder; + /** + * Sets the amount that the radius decreases for every downward step. + */ + // @ts-ignore + radiusDecrement(radius: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.EndIsland.Builder; + /** + * Sets the amount that the radius decreases for every downward step. + */ + // @ts-ignore + radiusDecrement(radius: number): org.spongepowered.api.world.gen.populator.EndIsland.Builder; + /** + * Sets the block state that the island will be formed from. + */ + // @ts-ignore + islandBlock(state: org.spongepowered.api.block.BlockState): org.spongepowered.api.world.gen.populator.EndIsland.Builder; + /** + * Sets the radius around the center (0, 0) of the world that this + * populator will not apply to. + *This must be a positive value or zero.
+ */ + // @ts-ignore + exclusionRadius(radius: number): org.spongepowered.api.world.gen.populator.EndIsland.Builder; + /** + * Builds a new instance of a {@link EndIsland} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.EndIsland; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.EndIsland.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.EndIsland.ts new file mode 100644 index 00000000..cef6e9e1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.EndIsland.ts @@ -0,0 +1,75 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface EndIsland extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link EndIsland} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.EndIsland.Builder; + /** + * Gets the initial starting radius range of the island. + */ + // @ts-ignore + getStartingRadius(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the initial starting radius range of the island. + */ + // @ts-ignore + setStartingRadius(radius: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the initial starting radius of the island. + */ + // @ts-ignore + setStartingRadius(radius: number): void; + /** + * Gets the amount that the radius decreases for every downward step. + */ + // @ts-ignore + getRadiusDecrement(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the amount that the radius decreases for every downward step. + */ + // @ts-ignore + setRadiusDecrement(decrement: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the amount that the radius decreases for every downward step. + */ + // @ts-ignore + setRadiusDecrement(decrement: number): void; + /** + * Gets the block state that the island will be formed from. + */ + // @ts-ignore + getIslandBlock(): org.spongepowered.api.block.BlockState; + /** + * Sets the block state that the island will be formed from. + */ + // @ts-ignore + setIslandBlock(state: org.spongepowered.api.block.BlockState): void; + /** + * Gets the radius around the center (0, 0) of the world that this populator + * will not apply to. + *This is used to prevent the islands from generating around the ender + * dragon fight area.
+ */ + // @ts-ignore + getExclusionRadius(): number; + /** + * Sets the radius around the center (0, 0) of the world that this populator + * will not apply to. + *This must be a positive value or zero.
+ */ + // @ts-ignore + setExclusionRadius(radius: number): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Flower.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Flower.Builder.ts new file mode 100644 index 00000000..7e5484d1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Flower.Builder.ts @@ -0,0 +1,58 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Flower { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of flowers to attempt to spawn per chunk, must be + * greater than zero. + *Note: This number is not a definite number and + * the final count of flowers which are successfully spawned by the + * populator will almost always be lower.
+ */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Flower.Builder; + /** + * Sets the number of flowers to attempt to spawn per chunk, must be + * greater than zero. + *Note: This number is not a definite number and + * the final count of flowers which are successfully spawned by the + * populator will almost always be lower.
+ */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.Flower.Builder; + /** + * Sets the plant types for this populator to spawn. + */ + // @ts-ignore + types(types: org.spongepowered.api.util.weighted.WeightedTable): org.spongepowered.api.world.gen.populator.Flower.Builder; + /** + * Adds the plant type to the list of types to spawn with the given + * weight. + */ + // @ts-ignore + type(type: org.spongepowered.api.data.type.PlantType, weight: number): org.spongepowered.api.world.gen.populator.Flower.Builder; + /** + * Sets the overriding supplier. If the supplier is present then it is + * used in place of the weighted table. + */ + // @ts-ignore + supplier(override: any): org.spongepowered.api.world.gen.populator.Flower.Builder; + /** + * Builds a new instance of a {@link Flower} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Flower; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Flower.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Flower.ts new file mode 100644 index 00000000..bac8ef76 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Flower.ts @@ -0,0 +1,69 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Flower extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Flower} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Flower.Builder; + /** + * Gets the number of flowers to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getFlowersPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of flowers to attempt to spawn per chunk, must be greater + * than zero. + *Note: This number is not a definite number and the + * final count of flowers which are successfully spawned by the populator + * will almost always be lower.
+ */ + // @ts-ignore + setFlowersPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of flowers to attempt to spawn per chunk, must be greater + * than zero. + *Note: This number is not a definite number and the + * final count of flowers which are successfully spawned by the populator + * will almost always be lower.
+ */ + // @ts-ignore + setFlowersPerChunk(count: number): void; + /** + * Gets a mutable weighted collection of plant type for this populator to + * spawn. + */ + // @ts-ignore + getFlowerTypes(): org.spongepowered.api.util.weighted.WeightedTable; + /** + * Gets the overriding supplier if it exists. If the supplier is present + * then it is used in place of the weighted table while determining what + * PlantType to place. + */ + // @ts-ignore + getSupplierOverride(): any; + /** + * Sets the overriding supplier. If the supplier is present then it is used + * in place of the weighted table while determining what PlantType to place. + */ + // @ts-ignore + setSupplierOverride(override: any): void; + /** + * Clears the supplier override to force the weighted table to be used + * instead. + */ + // @ts-ignore + clearSupplierOverride(): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Forest.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Forest.Builder.ts new file mode 100644 index 00000000..d772d3ad --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Forest.Builder.ts @@ -0,0 +1,51 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Forest { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of trees to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Forest.Builder; + /** + * Sets the number of trees to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.Forest.Builder; + /** + * Sets the {@link BiomeTreeType}s to spawn. + */ + // @ts-ignore + types(types: org.spongepowered.api.util.weighted.WeightedTable): org.spongepowered.api.world.gen.populator.Forest.Builder; + /** + * Sets the {@link BiomeTreeType} to the list of weighted types. + */ + // @ts-ignore + type(type: org.spongepowered.api.world.gen.PopulatorObject, weight: number): org.spongepowered.api.world.gen.populator.Forest.Builder; + /** + * Sets the overriding supplier. If the supplier is present then it is + * used in place of the weighted table. + */ + // @ts-ignore + supplier(override: any): org.spongepowered.api.world.gen.populator.Forest.Builder; + /** + * Builds a new instance of a {@link Forest} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Forest; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Forest.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Forest.ts new file mode 100644 index 00000000..71534acf --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Forest.ts @@ -0,0 +1,64 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Forest extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Forest} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Forest.Builder; + /** + * Gets the number of trees to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getTreesPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of trees to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setTreesPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of trees to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setTreesPerChunk(count: number): void; + /** + * Gets the a mutable weighted collection of {@link PopulatorObject}s to + * spawn. + */ + // @ts-ignore + getTypes(): org.spongepowered.api.util.weighted.WeightedTable; + /** + * Gets the overriding supplier if it exists. If the supplier is present + * then it is used in place of the weighted table while determining what + * PopulatorObject to place. + */ + // @ts-ignore + getSupplierOverride(): any; + /** + * Sets the overriding supplier. If the supplier is present then it is used + * in place of the weighted table while determining what PopulatorObject to + * place. + */ + // @ts-ignore + setSupplierOverride(override: any): void; + /** + * Clears the supplier override to force the weighted table to be used + * instead. + */ + // @ts-ignore + clearSupplierOverride(): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Fossil.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Fossil.Builder.ts new file mode 100644 index 00000000..efc33af2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Fossil.Builder.ts @@ -0,0 +1,28 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Fossil { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the probability of a fossil spawning. + */ + // @ts-ignore + probability(p: number): org.spongepowered.api.world.gen.populator.Fossil.Builder; + /** + * Builds a new instance of a {@link Fossil} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Fossil; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Fossil.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Fossil.ts new file mode 100644 index 00000000..7a8b78d1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Fossil.ts @@ -0,0 +1,30 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Fossil extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Fossil} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Fossil.Builder; + /** + * Gets the probability of a fossil being generated. + */ + // @ts-ignore + getSpawnProbability(): number; + /** + * Sets the spawn probability, must be be between 0 and 1. + */ + // @ts-ignore + setSpawnProbability(chance: number): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Glowstone.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Glowstone.Builder.ts new file mode 100644 index 00000000..901e39c1 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Glowstone.Builder.ts @@ -0,0 +1,62 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Glowstone { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Glowstone.Builder; + /** + * Sets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.Glowstone.Builder; + /** + * Sets the amount of glowstone to attempt to spawn per cluster, must be + * greater than zero. + */ + // @ts-ignore + blocksPerCluster(attempts: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Glowstone.Builder; + /** + * Sets the amount of glowstone to attempt to spawn per cluster, must be + * greater than zero. + */ + // @ts-ignore + blocksPerCluster(attempts: number): org.spongepowered.api.world.gen.populator.Glowstone.Builder; + /** + * Sets the height of the glowstone cluster. + */ + // @ts-ignore + clusterHeight(height: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Glowstone.Builder; + /** + * Sets the height of the glowstone cluster. + */ + // @ts-ignore + clusterHeight(height: number): org.spongepowered.api.world.gen.populator.Glowstone.Builder; + /** + * Sets the height that the cluster may generate at. + */ + // @ts-ignore + height(height: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Glowstone.Builder; + /** + * Builds a new instance of a {@link Glowstone} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Glowstone; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Glowstone.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Glowstone.ts new file mode 100644 index 00000000..6caa2b4d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Glowstone.ts @@ -0,0 +1,81 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Glowstone extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Glowstone} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Glowstone.Builder; + /** + * Gets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + getClustersPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setClustersPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setClustersPerChunk(count: number): void; + /** + * Gets the amount of glowstone to attempt to spawn per cluster, must be + * greater than zero. + */ + // @ts-ignore + getAttemptsPerCluster(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the amount of glowstone to attempt to spawn per cluster, must be + * greater than zero. + */ + // @ts-ignore + setAttemptsPerCluster(attempts: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the amount of glowstone to attempt to spawn per cluster, must be + * greater than zero. + */ + // @ts-ignore + setAttemptsPerCluster(attempts: number): void; + /** + * Gets the height of the glowstone cluster. + */ + // @ts-ignore + getClusterHeight(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the height of the glowstone cluster. + */ + // @ts-ignore + setClusterHeight(height: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the height of the glowstone cluster. + */ + // @ts-ignore + setClusterHeight(height: number): void; + /** + * Gets the height that the cluster may generate at. + */ + // @ts-ignore + getHeight(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the height that the cluster may generate at. + */ + // @ts-ignore + setHeight(height: org.spongepowered.api.util.weighted.VariableAmount): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.IcePath.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.IcePath.Builder.ts new file mode 100644 index 00000000..aeb30393 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.IcePath.Builder.ts @@ -0,0 +1,45 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace IcePath { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the radius of the path to spawn, cannot be negative. + */ + // @ts-ignore + radius(radius: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.IcePath.Builder; + /** + * Sets the radius of the path to spawn, cannot be negative. + */ + // @ts-ignore + radius(radius: number): org.spongepowered.api.world.gen.populator.IcePath.Builder; + /** + * Sets the number of sections to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(sections: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.IcePath.Builder; + /** + * Sets the number of sections to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(sections: number): org.spongepowered.api.world.gen.populator.IcePath.Builder; + /** + * Builds a new instance of a {@link IcePath} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.IcePath; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.IcePath.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.IcePath.ts new file mode 100644 index 00000000..d1358e6b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.IcePath.ts @@ -0,0 +1,53 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface IcePath extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link IcePath} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.IcePath.Builder; + /** + * Gets the radius of the path to spawn. + */ + // @ts-ignore + getRadius(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the radius of the path to spawn, cannot be negative. + */ + // @ts-ignore + setRadius(radius: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the radius of the path to spawn, cannot be negative. + */ + // @ts-ignore + setRadius(radius: number): void; + /** + * Gets the number of sections to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + getSectionsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of sections to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setSectionsPerChunk(sections: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of sections to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setSectionsPerChunk(sections: number): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.IceSpike.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.IceSpike.Builder.ts new file mode 100644 index 00000000..d1d88fa0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.IceSpike.Builder.ts @@ -0,0 +1,58 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace IceSpike { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of spikes to generate per chunk. + */ + // @ts-ignore + spikesPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.IceSpike.Builder; + /** + * Sets the number of spikes to generate per chunk. + */ + // @ts-ignore + spikesPerChunk(count: number): org.spongepowered.api.world.gen.populator.IceSpike.Builder; + /** + * Sets the base height of the spike. + */ + // @ts-ignore + height(height: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.IceSpike.Builder; + /** + * Sets the base height of the spike. + */ + // @ts-ignore + height(height: number): org.spongepowered.api.world.gen.populator.IceSpike.Builder; + /** + * Gets the probability of the spike much larger than normal. + */ + // @ts-ignore + extremeSpikeProbability(p: number): org.spongepowered.api.world.gen.populator.IceSpike.Builder; + /** + * Sets the base height increase of the extreme spikes. + */ + // @ts-ignore + extremeSpikeIncrease(increase: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.IceSpike.Builder; + /** + * Sets the base height increase of the extreme spikes. + */ + // @ts-ignore + extremeSpikeIncrease(increase: number): org.spongepowered.api.world.gen.populator.IceSpike.Builder; + /** + * Builds a new instance of a {@link IceSpike} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.IceSpike; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.IceSpike.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.IceSpike.ts new file mode 100644 index 00000000..a078679b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.IceSpike.ts @@ -0,0 +1,75 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface IceSpike extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link IceSpike} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.IceSpike.Builder; + /** + * Gets the number of spikes to generate per chunk. + */ + // @ts-ignore + getSpikesPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of spikes to attempt to generate per chunk. + */ + // @ts-ignore + setSpikesPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of spikes to attempt to generate per chunk. + */ + // @ts-ignore + setSpikesPerChunk(count: number): void; + /** + * Gets the base height of the spike. + */ + // @ts-ignore + getHeight(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the base height of the spike. + */ + // @ts-ignore + setHeight(height: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the base height of the spike. + */ + // @ts-ignore + setHeight(height: number): void; + /** + * Gets the probability of the spike much larger than normal. + */ + // @ts-ignore + getExtremeSpikeProbability(): number; + /** + * Gets the probability of the spike much larger than normal. + */ + // @ts-ignore + setExtremeSpikeProbability(p: number): void; + /** + * Gets the height increase of the extreme spikes. + */ + // @ts-ignore + getExtremeSpikeIncrease(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the height increase of the extreme spikes. + */ + // @ts-ignore + setExtremeSpikeIncrease(increase: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the height increase of the extreme spikes. + */ + // @ts-ignore + setExtremeSpikeIncrease(increase: number): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Lake.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Lake.Builder.ts new file mode 100644 index 00000000..dd7d3898 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Lake.Builder.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Lake { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link BlockState} of the liquid to fill the lake with. + */ + // @ts-ignore + liquidType(liquid: org.spongepowered.api.block.BlockState): org.spongepowered.api.world.gen.populator.Lake.Builder; + /** + * Sets the probability of a lake spawning in a chunk. + */ + // @ts-ignore + chance(p: number): org.spongepowered.api.world.gen.populator.Lake.Builder; + /** + * Sets the height that the lake will be spawned at. + */ + // @ts-ignore + height(height: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Lake.Builder; + /** + * Builds a new instance of a {@link Lake} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Lake; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Lake.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Lake.ts new file mode 100644 index 00000000..7df2d475 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Lake.ts @@ -0,0 +1,50 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Lake extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Lake} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Lake.Builder; + /** + * Gets the {@link BlockState} of the liquid to fill the lake with. + */ + // @ts-ignore + getLiquidType(): org.spongepowered.api.block.BlockState; + /** + * Sets the {@link BlockState} of the liquid to fill the lake with. + */ + // @ts-ignore + setLiquidType(liquid: org.spongepowered.api.block.BlockState): void; + /** + * Gets the probability of a lake spawning in a chunk. + */ + // @ts-ignore + getLakeProbability(): number; + /** + * Sets the probability of a lake spawning in a chunk. + */ + // @ts-ignore + setLakeProbability(p: number): void; + /** + * Gets the height that this lake will be spawned at. + */ + // @ts-ignore + getHeight(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the height that this lake will be spawned at. + */ + // @ts-ignore + setHeight(height: org.spongepowered.api.util.weighted.VariableAmount): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Melon.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Melon.Builder.ts new file mode 100644 index 00000000..2d3cbbc9 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Melon.Builder.ts @@ -0,0 +1,33 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Melon { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of melons to attempt to spawn per chunk. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Melon.Builder; + /** + * Sets the number of melons to attempt to spawn per chunk. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.Melon.Builder; + /** + * Builds a new instance of a {@link Melon} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Melon; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Melon.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Melon.ts new file mode 100644 index 00000000..a99c116a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Melon.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Melon extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Melon} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Melon.Builder; + /** + * Gets the number of melons to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getMelonsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of melons to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setMelonsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of melons to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setMelonsPerChunk(count: number): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Mushroom.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Mushroom.Builder.ts new file mode 100644 index 00000000..5882fffd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Mushroom.Builder.ts @@ -0,0 +1,57 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Mushroom { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the weighted {@link MushroomType}s to select from during + * generation. + */ + // @ts-ignore + types(types: org.spongepowered.api.util.weighted.ChanceTable): org.spongepowered.api.world.gen.populator.Mushroom.Builder; + /** + * Adds the weighted {@link MushroomType} to the list of available + * types. + */ + // @ts-ignore + type(type: org.spongepowered.api.world.gen.type.MushroomType, weight: number): org.spongepowered.api.world.gen.populator.Mushroom.Builder; + /** + * Sets the number of mushrooms which will be attempted to be spawned. + *Note: This number is not a definite number and + * the final count of mushrooms which are successfully spawned by the + * populator will almost always be lower.
+ */ + // @ts-ignore + mushroomsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Mushroom.Builder; + /** + * Sets the number of mushrooms which will be attempted to be spawned. + *Note: This number is not a definite number and + * the final count of mushrooms which are successfully spawned by the + * populator will almost always be lower.
+ */ + // @ts-ignore + mushroomsPerChunk(count: number): org.spongepowered.api.world.gen.populator.Mushroom.Builder; + /** + * Sets the overriding supplier. If the supplier is present then it is + * used in place of the chance table. + */ + // @ts-ignore + supplier(override: any): org.spongepowered.api.world.gen.populator.Mushroom.Builder; + /** + * Builds a new instance of a {@link Mushroom} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Mushroom; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Mushroom.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Mushroom.ts new file mode 100644 index 00000000..887da719 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Mushroom.ts @@ -0,0 +1,74 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Mushroom extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Mushroom} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Mushroom.Builder; + /** + * Gets a mutable {@link ChanceTable} of possible mushroom types to spawn. + * If the list is empty then a {@link MushroomType} will be selected at + * random from all available {@link MushroomTypes}. + */ + // @ts-ignore + getTypes(): org.spongepowered.api.util.weighted.ChanceTable; + /** + * Gets a representation of the amount of mushrooms which will be attempted + * to be spawned per chunk. + *Note: This number is not a definite number and the + * final count of mushrooms which are successfully spawned by the populator + * will almost always be lower.
+ */ + // @ts-ignore + getMushroomsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the representation of the amount of mushrooms which will be + * attempted to be spawned per chunk. + *Note: This number is not a definite number and the + * final count of mushrooms which are successfully spawned by the populator + * will almost always be lower.
+ */ + // @ts-ignore + setMushroomsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the amount of mushrooms which will be attempted to be spawned per + * chunk. + *Note: This number is not a definite number and the + * final count of mushrooms which are successfully spawned by the populator + * will almost always be lower.
+ */ + // @ts-ignore + setMushroomsPerChunk(count: number): void; + /** + * Gets the overriding supplier if it exists. If the supplier is present + * then it is used in place of the weighted table while determining what + * MushroomType to place. + */ + // @ts-ignore + getSupplierOverride(): any; + /** + * Sets the overriding supplier. If the supplier is present then it is used + * in place of the chance table while determining what MushroomType to + * place. + */ + // @ts-ignore + setSupplierOverride(override: any): void; + /** + * Clears the supplier override to force the chance table to be used + * instead. + */ + // @ts-ignore + clearSupplierOverride(): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.NetherFire.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.NetherFire.Builder.ts new file mode 100644 index 00000000..03219467 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.NetherFire.Builder.ts @@ -0,0 +1,47 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace NetherFire { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.NetherFire.Builder; + /** + * Sets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.NetherFire.Builder; + /** + * Sets the number of fire to attempt to spawn per cluster, must be + * greater than zero. + */ + // @ts-ignore + perCluster(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.NetherFire.Builder; + /** + * Sets the number of fire to attempt to spawn per cluster, must be + * greater than zero. + */ + // @ts-ignore + perCluster(count: number): org.spongepowered.api.world.gen.populator.NetherFire.Builder; + /** + * Builds a new instance of a {@link NetherFire} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.NetherFire; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.NetherFire.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.NetherFire.ts new file mode 100644 index 00000000..d62a4dbc --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.NetherFire.ts @@ -0,0 +1,56 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface NetherFire extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link NetherFire} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.NetherFire.Builder; + /** + * Gets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + getClustersPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setClustersPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setClustersPerChunk(count: number): void; + /** + * Gets the number of fire to attempt to spawn per patch, must be greater + * than zero. + */ + // @ts-ignore + getFirePerCluster(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of fire to attempt to spawn per patch, must be greater + * than zero. + */ + // @ts-ignore + setFirePerCluster(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of Fire to attempt to spawn per patch, must be greater + * than zero. + */ + // @ts-ignore + setFirePerCluster(count: number): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Ore.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Ore.Builder.ts new file mode 100644 index 00000000..bc41e493 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Ore.Builder.ts @@ -0,0 +1,63 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Ore { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the block to place as ore. + */ + // @ts-ignore + ore(block: org.spongepowered.api.block.BlockState): org.spongepowered.api.world.gen.populator.Ore.Builder; + /** + * Sets the size of deposit of ore. This is the number of blocks per + * clump of ores spawned. + */ + // @ts-ignore + size(size: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Ore.Builder; + /** + * Sets the size of deposit of ore. This is the number of blocks per + * clump of ores spawned. + */ + // @ts-ignore + size(size: number): org.spongepowered.api.world.gen.populator.Ore.Builder; + /** + * Sets the number of ore clumps to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Ore.Builder; + /** + * Sets the number of ore clumps to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.Ore.Builder; + /** + * Sets the height that the ore can generate at. + */ + // @ts-ignore + height(height: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Ore.Builder; + /** + * Sets a predicate which checks for the placement conditions for this + * ore. + */ + // @ts-ignore + placementCondition(condition: any): org.spongepowered.api.world.gen.populator.Ore.Builder; + /** + * Builds a new instance of a {@link Ore} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Ore; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Ore.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Ore.ts new file mode 100644 index 00000000..e9a3f5d5 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Ore.ts @@ -0,0 +1,86 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Ore extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Ore} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Ore.Builder; + /** + * Gets the block to place as ore. + */ + // @ts-ignore + getOreBlock(): org.spongepowered.api.block.BlockState; + /** + * Sets the block to place as ore. + */ + // @ts-ignore + setOreBlock(block: org.spongepowered.api.block.BlockState): void; + /** + * Gets the size of deposit of ore. This is the number of blocks per clump + * of ores spawned. + */ + // @ts-ignore + getDepositSize(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the size of deposit of ore. This is the number of blocks per clump + * of ores spawned. + */ + // @ts-ignore + setDepositSize(size: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the size of deposit of ore. This is the number of blocks per clump + * of ores spawned. + */ + // @ts-ignore + setDepositSize(size: number): void; + /** + * Gets the number of ore clumps to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + getDepositsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of ore clumps to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setDepositsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of ore clumps to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setDepositsPerChunk(count: number): void; + /** + * Gets the height that the ore will generate at. + */ + // @ts-ignore + getHeight(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the height that the ore will generate at. + */ + // @ts-ignore + setHeight(height: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Gets a predicate which checks for the placement conditions for this ore. + */ + // @ts-ignore + getPlacementCondition(): any; + /** + * Sets a predicate which checks for the placement conditions for this ore. + */ + // @ts-ignore + setPlacementCondition(condition: any): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Pumpkin.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Pumpkin.Builder.ts new file mode 100644 index 00000000..8e977cfd --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Pumpkin.Builder.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Pumpkin { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of pumpkins to attempt to spawn per patch, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Pumpkin.Builder; + /** + * Sets the number of pumpkins to attempt to spawn per patch, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.Pumpkin.Builder; + /** + * Sets the probability of a pumpkin patch spawning within a chunk. + */ + // @ts-ignore + chance(p: number): org.spongepowered.api.world.gen.populator.Pumpkin.Builder; + /** + * Builds a new instance of a {@link Pumpkin} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Pumpkin; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Pumpkin.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Pumpkin.ts new file mode 100644 index 00000000..379f6336 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Pumpkin.ts @@ -0,0 +1,48 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Pumpkin extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Pumpkin} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Pumpkin.Builder; + /** + * Gets the number of pumpkins to attempt to spawn per patch, must be + * greater than zero. + */ + // @ts-ignore + getPumpkinsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of pumpkins to attempt to spawn per patch, must be + * greater than zero. + */ + // @ts-ignore + setPumpkinsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of pumpkins to attempt to spawn per patch, must be + * greater than zero. + */ + // @ts-ignore + setPumpkinsPerChunk(count: number): void; + /** + * Gets the probability of a pumpkin patch spawning within a chunk. + */ + // @ts-ignore + getPumpkinChance(): number; + /** + * Sets the probability of a pumpkin patch spawning within a chunk. + */ + // @ts-ignore + setPumpkinChance(p: number): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.RandomBlock.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.RandomBlock.Builder.ts new file mode 100644 index 00000000..0655b82e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.RandomBlock.Builder.ts @@ -0,0 +1,53 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace RandomBlock { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link BlockState} that this populator will randomly + * distribute. + */ + // @ts-ignore + block(block: org.spongepowered.api.block.BlockState): org.spongepowered.api.world.gen.populator.RandomBlock.Builder; + /** + * Sets the number of blocks to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.RandomBlock.Builder; + /** + * Sets the number of blocks to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.RandomBlock.Builder; + /** + * Sets the {@link Predicate} that this populator used to determine of a + * given {@link BlockType} is valid to attempt to place a block of fire + * on top of. + */ + // @ts-ignore + placementTarget(target: any): org.spongepowered.api.world.gen.populator.RandomBlock.Builder; + /** + * Sets the height range of the random block placement. + */ + // @ts-ignore + height(height: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.RandomBlock.Builder; + /** + * Builds a new instance of a {@link RandomBlock} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.RandomBlock; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.RandomBlock.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.RandomBlock.ts new file mode 100644 index 00000000..f8cff25f --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.RandomBlock.ts @@ -0,0 +1,70 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface RandomBlock extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link RandomBlock} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.RandomBlock.Builder; + /** + * Gets the {@link BlockState} that this populator will randomly distribute. + */ + // @ts-ignore + getBlock(): org.spongepowered.api.block.BlockState; + /** + * Sets the {@link BlockState} that this populator will randomly distribute. + */ + // @ts-ignore + setBlock(block: org.spongepowered.api.block.BlockState): void; + /** + * Gets the number of blocks to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getAttemptsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of blocks to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setAttemptsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of blocks to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setAttemptsPerChunk(count: number): void; + /** + * Gets the height that the block will be randomly placed within. + */ + // @ts-ignore + getHeightRange(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the height that the blocks will be randomly placed within. + */ + // @ts-ignore + setHeightRange(height: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Gets the {@link Predicate} that this populator used to determine of a + * given {@link Location} is valid to attempt to place a block at. + */ + // @ts-ignore + getPlacementTarget(): any; + /** + * Sets the {@link Predicate} that this populator used to determine of a + * given {@link Location} is valid to attempt to place a block at. + */ + // @ts-ignore + getPlacementTarget(target: any): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.RandomObject.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.RandomObject.Builder.ts new file mode 100644 index 00000000..c1fe6b30 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.RandomObject.Builder.ts @@ -0,0 +1,55 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace RandomObject { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of fires to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.RandomObject.Builder; + /** + * Sets the number of fires to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.RandomObject.Builder; + /** + * Sets the height range that the object will be placed within. + */ + // @ts-ignore + height(height: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.RandomObject.Builder; + /** + * Sets the {@link PopulatorObject} for the populator to attempt to + * place. + */ + // @ts-ignore + object(obj: org.spongepowered.api.world.gen.PopulatorObject): org.spongepowered.api.world.gen.populator.RandomObject.Builder; + /** + * Sets the chance of spawning the object for each attempt. This chance + * is applied before the checks for if the placement is valid. This + * value must be between zero and one (inclusive) with a chance of zero + * representing no chance of the object being placed, and a chance of 1 + * representing a 100% chance of the object being placed. + */ + // @ts-ignore + spawnChance(chance: number): org.spongepowered.api.world.gen.populator.RandomObject.Builder; + /** + * Builds a new instance of a {@link RandomBlock} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.RandomObject; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.RandomObject.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.RandomObject.ts new file mode 100644 index 00000000..f2135617 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.RandomObject.ts @@ -0,0 +1,77 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface RandomObject extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link RandomObject} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.RandomObject.Builder; + /** + * Gets the number of fires to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getAttemptsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of fires to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setAttemptsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of fires to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setAttemptsPerChunk(count: number): void; + /** + * Gets the height range that the object will be placed within. + */ + // @ts-ignore + getHeightRange(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the height range that the object will be placed within. + */ + // @ts-ignore + setHeightRange(height: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Gets the {@link PopulatorObject} that this populator will attempt to + * place. + */ + // @ts-ignore + getObject(): org.spongepowered.api.world.gen.PopulatorObject; + /** + * Sets the {@link PopulatorObject} for this populator to attempt to place. + */ + // @ts-ignore + setObject(obj: org.spongepowered.api.world.gen.PopulatorObject): void; + /** + * Gets the chance of spawning the object for each attempt. This chance is + * applied before the checks for if the placement is valid. This value must + * be between zero and one (inclusive) with a chance of zero representing no + * chance of the object being placed, and a chance of 1 representing a 100% + * chance of the object being placed. + */ + // @ts-ignore + getSpawnChance(): number; + /** + * Sets the chance of spawning the object for each attempt. This chance is + * applied before the checks for if the placement is valid. This value must + * be between zero and one (inclusive) with a chance of zero representing no + * chance of the object being placed, and a chance of 1 representing a 100% + * chance of the object being placed. + */ + // @ts-ignore + setSpawnChance(chance: number): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Reed.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Reed.Builder.ts new file mode 100644 index 00000000..099bb664 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Reed.Builder.ts @@ -0,0 +1,40 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Reed { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of reeds to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Reed.Builder; + /** + * Sets the number of reeds to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.Reed.Builder; + /** + * Sets the height of the reeds to generate. + */ + // @ts-ignore + reedHeight(height: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Reed.Builder; + /** + * Builds a new instance of a {@link Reed} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Reed; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Reed.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Reed.ts new file mode 100644 index 00000000..0f079ee2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Reed.ts @@ -0,0 +1,48 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Reed extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Reed} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Reed.Builder; + /** + * Gets the number of reeds to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getReedsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of reeds to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setReedsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of reeds to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setReedsPerChunk(count: number): void; + /** + * Gets the height of the reeds to generate. + */ + // @ts-ignore + getReedHeight(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the height of the reeds to generate. + */ + // @ts-ignore + setReedHeight(height: org.spongepowered.api.util.weighted.VariableAmount): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.SeaFloor.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.SeaFloor.Builder.ts new file mode 100644 index 00000000..5fd9556a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.SeaFloor.Builder.ts @@ -0,0 +1,67 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace SeaFloor { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link BlockState} to place down. + */ + // @ts-ignore + block(block: org.spongepowered.api.block.BlockState): org.spongepowered.api.world.gen.populator.SeaFloor.Builder; + /** + * Sets the number of discs to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.SeaFloor.Builder; + /** + * Sets the number of discs to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.SeaFloor.Builder; + /** + * Sets the radius of the discs being spawned. + */ + // @ts-ignore + radius(radius: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.SeaFloor.Builder; + /** + * Sets the radius of the discs being spawned. + */ + // @ts-ignore + radius(radius: number): org.spongepowered.api.world.gen.populator.SeaFloor.Builder; + /** + * Sets the depth of the sea floor cover to generate. + */ + // @ts-ignore + depth(depth: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.SeaFloor.Builder; + /** + * Sets the depth of the sea floor cover to generate. + */ + // @ts-ignore + depth(depth: number): org.spongepowered.api.world.gen.populator.SeaFloor.Builder; + /** + * Sets the predicate which will be applied to all {@link BlockState}s + * that this populator attempts to replace in order to determine if they + * are valid. + */ + // @ts-ignore + replace(check: any): org.spongepowered.api.world.gen.populator.SeaFloor.Builder; + /** + * Builds a new instance of a {@link SeaFloor} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.SeaFloor; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.SeaFloor.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.SeaFloor.ts new file mode 100644 index 00000000..16c993d3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.SeaFloor.ts @@ -0,0 +1,91 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface SeaFloor extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link SeaFloor} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.SeaFloor.Builder; + /** + * Gets the {@link BlockState} to place down. + */ + // @ts-ignore + getBlock(): org.spongepowered.api.block.BlockState; + /** + * Sets the {@link BlockState} to place down. + */ + // @ts-ignore + setBlock(block: org.spongepowered.api.block.BlockState): void; + /** + * Gets the number of discs to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getDiscsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of discs to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setDiscsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of discs to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setDiscsPerChunk(count: number): void; + /** + * Gets the radius of the discs being spawned. + */ + // @ts-ignore + getRadius(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the radius of the discs being spawned. + */ + // @ts-ignore + setRadius(radius: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the radius of the discs being spawned. + */ + // @ts-ignore + setRadius(radius: number): void; + /** + * Gets the depth of the sea floor cover to generate. + */ + // @ts-ignore + getDepth(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the depth of the sea floor cover to generate. + */ + // @ts-ignore + setDepth(depth: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the depth of the sea floor cover to generate. + */ + // @ts-ignore + setDepth(depth: number): void; + /** + * Gets the predicate which is applied to determine what {@link BlockState}s + * this populator may replace. + */ + // @ts-ignore + getValidBlocksToReplace(): any; + /** + * Sets the predicate which will be applied to all {@link BlockState}s that + * this populator attempts to replace in order to determine if they are + * valid. + */ + // @ts-ignore + setValidBlocksToReplace(check: any): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Shrub.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Shrub.Builder.ts new file mode 100644 index 00000000..b1e98485 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Shrub.Builder.ts @@ -0,0 +1,51 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Shrub { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of shrubs to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Shrub.Builder; + /** + * Sets the number of shrubs to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.Shrub.Builder; + /** + * Sets the weighted {@link ShrubType}s to place. + */ + // @ts-ignore + types(types: org.spongepowered.api.util.weighted.WeightedTable): org.spongepowered.api.world.gen.populator.Shrub.Builder; + /** + * Adds the weighted {@link ShrubType}s to the list of types. + */ + // @ts-ignore + type(type: org.spongepowered.api.data.type.ShrubType, weight: number): org.spongepowered.api.world.gen.populator.Shrub.Builder; + /** + * Sets the overriding supplier. If the supplier is present then it is + * used in place of the weighted table. + */ + // @ts-ignore + supplier(override: any): org.spongepowered.api.world.gen.populator.Shrub.Builder; + /** + * Builds a new instance of a {@link Shrub} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Shrub; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Shrub.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Shrub.ts new file mode 100644 index 00000000..5dfb8340 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Shrub.ts @@ -0,0 +1,62 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Shrub extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Shrub} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Shrub.Builder; + /** + * Gets a weighted collection of {@link ShrubType}s to place. + */ + // @ts-ignore + getTypes(): org.spongepowered.api.util.weighted.WeightedTable; + /** + * Gets the number of shrubs to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getShrubsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of shrubs to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setShrubsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of shrubs to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setShrubsPerChunk(count: number): void; + /** + * Gets the overriding supplier if it exists. If the supplier is present + * then it is used in place of the weighted table while determining what + * ShrubType to place. + */ + // @ts-ignore + getSupplierOverride(): any; + /** + * Sets the overriding supplier. If the supplier is present then it is used + * in place of the weighted table while determining what ShrubType to place. + */ + // @ts-ignore + setSupplierOverride(override: any): void; + /** + * Clears the supplier override to force the weighted table to be used + * instead. + */ + // @ts-ignore + clearSupplierOverride(): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Vine.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Vine.Builder.ts new file mode 100644 index 00000000..106a21be --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Vine.Builder.ts @@ -0,0 +1,33 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Vine { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of vines to attempt to spawn per chunk. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Vine.Builder; + /** + * Sets the number of vines to attempt to spawn per chunk. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.Vine.Builder; + /** + * Builds a new instance of a {@link Vine} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Vine; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Vine.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Vine.ts new file mode 100644 index 00000000..864135ed --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.Vine.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Vine extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Vine} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Vine.Builder; + /** + * Gets the number of vines to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getVinesPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of vines to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setVinesPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of vines to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setVinesPerChunk(count: number): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.WaterLily.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.WaterLily.Builder.ts new file mode 100644 index 00000000..1a7a5194 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.WaterLily.Builder.ts @@ -0,0 +1,35 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace WaterLily { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of water lilies to attempt to spawn per chunk, must + * be greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.WaterLily.Builder; + /** + * Sets the number of water lilies to attempt to spawn per chunk, must + * be greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.WaterLily.Builder; + /** + * Builds a new instance of a {@link WaterLily} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.WaterLily; + } + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.WaterLily.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.WaterLily.ts new file mode 100644 index 00000000..30c02caa --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.populator.WaterLily.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface WaterLily extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link WaterLily} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.WaterLily.Builder; + /** + * Gets the number of water lilies to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + getWaterLilyPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of water lilies to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setWaterLilyPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of water lilies to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setWaterLilyPerChunk(count: number): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.type.BiomeTreeType.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.type.BiomeTreeType.ts new file mode 100644 index 00000000..43e89797 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.type.BiomeTreeType.ts @@ -0,0 +1,44 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace type { + // @ts-ignore + interface BiomeTreeType extends org.spongepowered.api.CatalogType { + /** + * Gets the {@link PopulatorObject} which is used to generate this tree into + * the world. + */ + // @ts-ignore + getPopulatorObject(): org.spongepowered.api.world.gen.PopulatorObject; + /** + * Sets the {@link PopulatorObject} which is used to generate this tree into + * the world. + */ + // @ts-ignore + setPopulatorObject(object: org.spongepowered.api.world.gen.PopulatorObject): void; + /** + * Gets whether this tree type has a larger equivalent. + */ + // @ts-ignore + hasLargeEquivalent(): boolean; + /** + * Gets the {@link PopulatorObject} which is used to generate the larger + * equivalent of this tree into the world. + */ + // @ts-ignore + getLargePopulatorObject(): any; + /** + * Sets the {@link PopulatorObject} which is used to generate the larger + * equivalent of this tree into the world. + */ + // @ts-ignore + setLargePopulatorObject(object: org.spongepowered.api.world.gen.PopulatorObject): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.type.BiomeTreeTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.type.BiomeTreeTypes.ts new file mode 100644 index 00000000..f7967ae7 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.type.BiomeTreeTypes.ts @@ -0,0 +1,33 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace type { + // @ts-ignore + class BiomeTreeTypes { + // @ts-ignore + public static BIRCH: org.spongepowered.api.world.gen.type.BiomeTreeType; + // @ts-ignore + public static CANOPY: org.spongepowered.api.world.gen.type.BiomeTreeType; + // @ts-ignore + public static JUNGLE: org.spongepowered.api.world.gen.type.BiomeTreeType; + // @ts-ignore + public static JUNGLE_BUSH: org.spongepowered.api.world.gen.type.BiomeTreeType; + // @ts-ignore + public static OAK: org.spongepowered.api.world.gen.type.BiomeTreeType; + // @ts-ignore + public static POINTY_TAIGA: org.spongepowered.api.world.gen.type.BiomeTreeType; + // @ts-ignore + public static SAVANNA: org.spongepowered.api.world.gen.type.BiomeTreeType; + // @ts-ignore + public static SWAMP: org.spongepowered.api.world.gen.type.BiomeTreeType; + // @ts-ignore + public static TALL_TAIGA: org.spongepowered.api.world.gen.type.BiomeTreeType; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.type.MushroomType.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.type.MushroomType.ts new file mode 100644 index 00000000..802f604e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.type.MushroomType.ts @@ -0,0 +1,27 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace type { + // @ts-ignore + interface MushroomType extends org.spongepowered.api.CatalogType { + /** + * Gets the {@link PopulatorObject} which is used to generate the large + * variant of this mushroom into the world. + */ + // @ts-ignore + getPopulatorObject(): org.spongepowered.api.world.gen.PopulatorObject; + /** + * Sets the {@link PopulatorObject} which is used to generate the large + * variant of this mushroom into the world. + */ + // @ts-ignore + setPopulatorObject(object: org.spongepowered.api.world.gen.PopulatorObject): void; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.gen.type.MushroomTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.world.gen.type.MushroomTypes.ts new file mode 100644 index 00000000..cb64f8f0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.gen.type.MushroomTypes.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace type { + // @ts-ignore + class MushroomTypes { + // @ts-ignore + public static BROWN: org.spongepowered.api.world.gen.type.MushroomType; + // @ts-ignore + public static RED: org.spongepowered.api.world.gen.type.MushroomType; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.schematic.BlockPalette.ts b/packages/sponge/src/typings/org.spongepowered.api.world.schematic.BlockPalette.ts new file mode 100644 index 00000000..4caff3f0 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.schematic.BlockPalette.ts @@ -0,0 +1,53 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace schematic { + // @ts-ignore + interface BlockPalette extends org.spongepowered.api.world.schematic.Palette { + /** + * Gets the type of this palette. + */ + // @ts-ignore + getType(): org.spongepowered.api.world.schematic.BlockPaletteType; + /** + * Gets the highest identifier in this palette. + */ + // @ts-ignore + getHighestId(): number; + /** + * Gets the blockstate represented by the given identifier from the mapping. + */ + // @ts-ignore + get(id: number): any; + /** + * Gets the identifier for the given blockstate if it exists within the + * mapping. + */ + // @ts-ignore + get(state: org.spongepowered.api.block.BlockState): any; + /** + * Gets the identifier for the given blockstate from the mapping. If the + * blockstate is not yet registered in the mapping then it is registered and + * given the next available identifier. + */ + // @ts-ignore + getOrAssign(state: org.spongepowered.api.block.BlockState): number; + /** + * Removes the given blockstate from the mapping. + *If this palette is the {@link BlockPaletteTypes#GLOBAL} palette then + * removal is not supported.
+ */ + // @ts-ignore + remove(state: org.spongepowered.api.block.BlockState): boolean; + /** + * Gets all {@link BlockState}s contained in this palette. + */ + // @ts-ignore + getEntries(): any[] /*java.util.Collection*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.schematic.BlockPaletteType.ts b/packages/sponge/src/typings/org.spongepowered.api.world.schematic.BlockPaletteType.ts new file mode 100644 index 00000000..792f2755 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.schematic.BlockPaletteType.ts @@ -0,0 +1,20 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace schematic { + // @ts-ignore + interface BlockPaletteType extends org.spongepowered.api.CatalogType, org.spongepowered.api.world.schematic.PaletteType { + /** + * Gets an instance of this palette type. + *If this is the global type then the global palette instance will be + * returned, otherwise a new instance will be created.
+ */ + // @ts-ignore + create(): org.spongepowered.api.world.schematic.BlockPalette; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.schematic.BlockPaletteTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.world.schematic.BlockPaletteTypes.ts new file mode 100644 index 00000000..b9b0cbe8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.schematic.BlockPaletteTypes.ts @@ -0,0 +1,17 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace schematic { + // @ts-ignore + class BlockPaletteTypes { + // @ts-ignore + public static GLOBAL: org.spongepowered.api.world.schematic.BlockPaletteType; + // @ts-ignore + public static LOCAL: org.spongepowered.api.world.schematic.BlockPaletteType; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.schematic.Palette.ts b/packages/sponge/src/typings/org.spongepowered.api.world.schematic.Palette.ts new file mode 100644 index 00000000..7e9b41e2 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.schematic.Palette.ts @@ -0,0 +1,52 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace schematic { + // @ts-ignore + interface Palette { + /** + * Gets the type of this palette. + */ + // @ts-ignore + getType(): org.spongepowered.api.world.schematic.PaletteType; + /** + * Gets the highest identifier in this palette. + */ + // @ts-ignore + getHighestId(): number; + /** + * Gets the {@code type} represented by the given identifier from the mapping. + */ + // @ts-ignore + get(id: number): any; + /** + * Gets the identifier for the given {@code type T} if it exists within the + * mapping. + */ + // @ts-ignore + get(type: org.spongepowered.api.CatalogType): any; + /** + * Gets the identifier for the given {@code type T} from the mapping. If the + * {@code type T} is not yet registered in the mapping then it is registered and + * given the next available identifier. + */ + // @ts-ignore + getOrAssign(type: org.spongepowered.api.CatalogType): number; + /** + * Removes the given {@code type T} from the mapping. + *Note that if this palette is considered a global palette, removal is not supported.
+ */ + // @ts-ignore + remove(type: org.spongepowered.api.CatalogType): boolean; + /** + * Gets all {@code type T}s contained in this palette. + */ + // @ts-ignore + getEntries(): any[] /*java.util.Collection*/; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.schematic.PaletteType.ts b/packages/sponge/src/typings/org.spongepowered.api.world.schematic.PaletteType.ts new file mode 100644 index 00000000..e15f61a8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.schematic.PaletteType.ts @@ -0,0 +1,15 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace schematic { + // @ts-ignore + interface PaletteType extends org.spongepowered.api.CatalogType { + // @ts-ignore + create(): org.spongepowered.api.world.schematic.Palette; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.schematic.PaletteTypes.ts b/packages/sponge/src/typings/org.spongepowered.api.world.schematic.PaletteTypes.ts new file mode 100644 index 00000000..dc9453d3 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.schematic.PaletteTypes.ts @@ -0,0 +1,22 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace schematic { + // @ts-ignore + class PaletteTypes { + constructor() + // @ts-ignore + public static GLOBAL_BLOCKS: org.spongepowered.api.world.schematic.PaletteType; + // @ts-ignore + public static LOCAL_BLOCKS: org.spongepowered.api.world.schematic.PaletteType; + // @ts-ignore + public static LOCAL_BIOMES: org.spongepowered.api.world.schematic.PaletteType; + // @ts-ignore + public static GLOBAL_BIOMES: org.spongepowered.api.world.schematic.PaletteType; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.schematic.Schematic.Builder.ts b/packages/sponge/src/typings/org.spongepowered.api.world.schematic.Schematic.Builder.ts new file mode 100644 index 00000000..a7770d6d --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.schematic.Schematic.Builder.ts @@ -0,0 +1,92 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace schematic { + namespace Schematic { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Specifies an archetype volume for the world data of the schematic. + *If purely creating a schematic it is recommended to instead use + * the {@link #volume(Extent)} method and pass in an extent view (See + * {@link Extent#getExtentView}) of the volume to prevent creating + * multiple copies of the world data. Likewise, if {@link BiomeType}s + * are needed to be copied, only {@link #volume(Extent)} will support + * copying the {@link BiomeType}s at the desired positions. This also + * has the same limit for capturing {@link EntityArchetype}s, unless + * otherwise manually placed in with {@link #entity(EntityArchetype)}. + *
+ */ + // @ts-ignore + volume(volume: org.spongepowered.api.world.extent.ArchetypeVolume): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Specifies an extent view for the schematic to load its world data + * from. + */ + // @ts-ignore + volume(volume: org.spongepowered.api.world.extent.Extent): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Specifies a palette for the schematic to use for serialization. This + * overrides the {@link #paletteType} value. + */ + // @ts-ignore + palette(palette: org.spongepowered.api.world.schematic.BlockPalette): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Specifies a palette for the schematic to use for serialization. This + * overrides the {@link #paletteType} value. + */ + // @ts-ignore + blockPalette(palette: org.spongepowered.api.world.schematic.Palette): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Specifies a palette for the schemtic to use for serialization. + */ + // @ts-ignore + biomePalette(palette: org.spongepowered.api.world.schematic.Palette): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Specifies the palette type to use if the {@link #palette} is not + * specified. + */ + // @ts-ignore + paletteType(type: org.spongepowered.api.world.schematic.BlockPaletteType): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Specifies the palette type to use if the {@link #palette} is not + * specified. + */ + // @ts-ignore + blockPaletteType(type: org.spongepowered.api.world.schematic.PaletteType): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Specifies the palette type to use for biomes if the {@link #biomePalette(Palette)} + * is not specified. + */ + // @ts-ignore + biomePaletteType(type: org.spongepowered.api.world.schematic.PaletteType): org.spongepowered.api.world.schematic.Schematic.Builder; + // @ts-ignore + entity(entityArchetype: org.spongepowered.api.entity.EntityArchetype): org.spongepowered.api.world.schematic.Schematic.Builder; + // @ts-ignore + entity(entityArchetype: org.spongepowered.api.entity.EntityArchetype, position: any /*Vector3d*/): org.spongepowered.api.world.schematic.Schematic.Builder; + // @ts-ignore + entities(entities: any[] /*java.util.Collection*/): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Specifies the metadata container. + */ + // @ts-ignore + metadata(metadata: org.spongepowered.api.data.DataView): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Specifies a metadata value which will be included in the metadata of + * the schematic. + */ + // @ts-ignore + metaValue(key: string, value: any): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Constructs a new {@link Schematic} from this builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.schematic.Schematic; + } + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.schematic.Schematic.ts b/packages/sponge/src/typings/org.spongepowered.api.world.schematic.Schematic.ts new file mode 100644 index 00000000..8f2bed9b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.schematic.Schematic.ts @@ -0,0 +1,60 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace schematic { + // @ts-ignore + interface Schematic extends org.spongepowered.api.world.extent.ArchetypeVolume { + // @ts-ignore + METADATA_NAME: string; + // @ts-ignore + METADATA_AUTHOR: string; + // @ts-ignore + METADATA_DATE: string; + // @ts-ignore + METADATA_REQUIRED_MODS: string; + /** + * Gets a new builder for schematics. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Gets the {@link BlockPalette} used by this schematic for serialization. + */ + // @ts-ignore + getPalette(): org.spongepowered.api.world.schematic.BlockPalette; + /** + * Gets the {@link BlockPalette} used by this schematic for serialization. + */ + // @ts-ignore + getBlockPalette(): org.spongepowered.api.world.schematic.Palette; + /** + * Gets the {@link Palette PaletteThis method BLOCKS the thread until the next available data has been + * read.
+ *This may not return a {@link DataContainer} in the event there is no + * chunk data available to read.
+ */ + // @ts-ignore + next(): org.spongepowered.api.data.DataContainer; + /** + * Checks if there is an available chunk to represent. + */ + // @ts-ignore + hasNext(): boolean; + /** + * Gets the number of chunks available to read as {@link DataContainer}s. + */ + // @ts-ignore + available(): number; + /** + * Resets this stream to read from the beginning of the collection of + * chunks. + */ + // @ts-ignore + reset(): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.storage.ChunkLayout.ts b/packages/sponge/src/typings/org.spongepowered.api.world.storage.ChunkLayout.ts new file mode 100644 index 00000000..793cbddf --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.storage.ChunkLayout.ts @@ -0,0 +1,172 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace storage { + // @ts-ignore + interface ChunkLayout { + /** + * Returns the size of the chunks in blocks. The axes are matched to the + * corresponding vector components. + */ + // @ts-ignore + getChunkSize(): any /*Vector3i*/; + /** + * Returns the maximum coordinates for chunks for each axis. The axes are + * matched to the corresponding vector components. Due to the limited + * precision of 32bit integers, there always is a practical limit. + */ + // @ts-ignore + getSpaceMax(): any /*Vector3i*/; + /** + * Returns the minimum coordinates for chunks for each axis. The axes are + * matched to the corresponding vector components. Due to the limited + * precision of 32bit integers, there always is a practical limit. + */ + // @ts-ignore + getSpaceMin(): any /*Vector3i*/; + /** + * Gets the total size of the chunk space, which is equivalent to + * {@link #getSpaceMax()} - {@link #getSpaceMin()} + 1. + */ + // @ts-ignore + getSpaceSize(): any /*Vector3i*/; + /** + * Returns the origin of the chunk coordinate space. Normally + * {@link Vector3i#ZERO}. + */ + // @ts-ignore + getSpaceOrigin(): any /*Vector3i*/; + /** + * Returns true if the coordinates are valid chunk coordinates. False if + * otherwise. + */ + // @ts-ignore + isValidChunk(coords: any /*Vector3i*/): boolean; + /** + * Returns true if the coordinates are valid chunk coordinates. False if + * otherwise. + */ + // @ts-ignore + isValidChunk(x: number, y: number, z: number): boolean; + /** + * Returns true if the local coordinates fit in a chunk. That is they are + * positive and smaller than the chunk's size. + */ + // @ts-ignore + isInChunk(localCoords: any /*Vector3i*/): boolean; + /** + * Returns true if the local coordinates fit in a chunk. That is they are + * positive and smaller than the chunk's size. + */ + // @ts-ignore + isInChunk(x: number, y: number, z: number): boolean; + /** + * Returns true if the world coordinates fit in the chunk at the given + * coordinates. + */ + // @ts-ignore + isInChunk(worldCoords: any /*Vector3i*/, chunkCoords: any /*Vector3i*/): boolean; + /** + * Returns true if the world coordinates fit in the chunk at the given + * coordinates. + */ + // @ts-ignore + isInChunk(wx: number, wy: number, wz: number, cx: number, cy: number, cz: number): boolean; + /** + * Converts world coordinates to chunk coordinates. Returns nothing if the + * conversion failed because the resulting chunk coordinates aren't valid. + */ + // @ts-ignore + toChunk(worldCoords: any /*Vector3i*/): any; + /** + * Converts world coordinates to chunk coordinates. Returns nothing if the + * conversion failed because the resulting chunk coordinates aren't valid. + */ + // @ts-ignore + toChunk(x: number, y: number, z: number): any; + /** + * Converts chunk coordinates to world coordinates. Returns nothing if the + * conversion failed because the given chunk coordinates aren't valid. + */ + // @ts-ignore + toWorld(chunkCoords: any /*Vector3i*/): any; + /** + * Converts chunk coordinates to world coordinates. Returns nothing if the + * conversion failed because the given chunk coordinates aren't valid. + */ + // @ts-ignore + toWorld(x: number, y: number, z: number): any; + /** + * Converts world coordinates to chunk coordinates. This method never fails + * and can returns invalid chunk coordinates. + */ + // @ts-ignore + forceToChunk(worldCoords: any /*Vector3i*/): any /*Vector3i*/; + /** + * Converts world coordinates to chunk coordinates. This method never fails + * and can returns invalid chunk coordinates. + */ + // @ts-ignore + forceToChunk(x: number, y: number, z: number): any /*Vector3i*/; + /** + * Converts chunk coordinates to world coordinates. This method never fails + * and can returns invalid world coordinates. + */ + // @ts-ignore + forceToWorld(chunkCoords: any /*Vector3i*/): any /*Vector3i*/; + /** + * Converts chunk coordinates to world coordinates. This method never fails + * and can returns invalid world coordinates. + */ + // @ts-ignore + forceToWorld(x: number, y: number, z: number): any /*Vector3i*/; + /** + * Adds the chunk offset to the chunk coordinates. Returns nothing if the + * new coordinates are not valid. + */ + // @ts-ignore + addToChunk(chunkCoords: any /*Vector3i*/, chunkOffset: any /*Vector3i*/): any; + /** + * Adds the chunk offset to the chunk coordinates. Returns nothing if the + * new coordinates are not valid. + */ + // @ts-ignore + addToChunk(cx: number, cy: number, cz: number, ox: number, oy: number, oz: number): any; + /** + * Moves chunk coordinates one step in the given direction. Returns nothing + * if the new coordinates are not valid. {@link Division#SECONDARY_ORDINAL} + * directions are not a valid argument. These will throw an exception. + */ + // @ts-ignore + moveToChunk(chunkCoords: any /*Vector3i*/, direction: org.spongepowered.api.util.Direction): any; + /** + * Moves chunk coordinates one step in the given direction. Returns nothing + * if the new coordinates are not valid. + * {@link Division#SECONDARY_ORDINAL} directions are not a valid + * argument. These will throw an exception. + */ + // @ts-ignore + moveToChunk(x: number, y: number, z: number, direction: org.spongepowered.api.util.Direction): any; + /** + * Moves chunk coordinates a number of steps in the given direction. Returns + * nothing if the new coordinates are not valid. + * {@link Division#SECONDARY_ORDINAL} directions are not a valid + * argument. These will throw an exception. + */ + // @ts-ignore + moveToChunk(chunkCoords: any /*Vector3i*/, direction: org.spongepowered.api.util.Direction, steps: number): any; + /** + * Moves chunk coordinates a number of steps in the given direction. Returns + * nothing if the new coordinates are not valid. + * {@link Division#SECONDARY_ORDINAL} directions are not a valid + * argument. These will throw an exception. + */ + // @ts-ignore + moveToChunk(x: number, y: number, z: number, direction: org.spongepowered.api.util.Direction, steps: number): any; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.storage.WorldProperties.ts b/packages/sponge/src/typings/org.spongepowered.api.world.storage.WorldProperties.ts new file mode 100644 index 00000000..29c5b369 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.storage.WorldProperties.ts @@ -0,0 +1,431 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace storage { + // @ts-ignore + interface WorldProperties extends org.spongepowered.api.data.DataSerializable { + /** + * Gets whether this world has been initialized. + */ + // @ts-ignore + isInitialized(): boolean; + /** + * Gets the name of this world. + */ + // @ts-ignore + getWorldName(): string; + /** + * Gets the {@link UUID} of the world. + */ + // @ts-ignore + getUniqueId(): any; + /** + * Gets whether this world is enabled. A world which is enabled but unloaded + * may be loaded automatically if an attempt is made to transfer an entity + * to the world using {@link Entity#transferToWorld} . + */ + // @ts-ignore + isEnabled(): boolean; + /** + * Sets this world as enabled. A world which is enabled but unloaded may be + * loaded automatically if an attempt is made to transfer an entity to the + * world using {@link Entity#transferToWorld} . + */ + // @ts-ignore + setEnabled(state: boolean): void; + /** + * Gets whether this world will load when the server starts up. + */ + // @ts-ignore + loadOnStartup(): boolean; + /** + * Sets whether this world should load when the server starts up. + */ + // @ts-ignore + setLoadOnStartup(state: boolean): void; + /** + * Gets whether spawn chunks of this world remain loaded when no players are + * present. + */ + // @ts-ignore + doesKeepSpawnLoaded(): boolean; + /** + * Sets whether the spawn chunks of the world should remain loaded when no + * players are present. + */ + // @ts-ignore + setKeepSpawnLoaded(state: boolean): void; + /** + * Gets whether spawn chunks of this world will generate on load. + */ + // @ts-ignore + doesGenerateSpawnOnLoad(): boolean; + /** + * Sets whether the spawn chunks of the world will generate on load. + */ + // @ts-ignore + setGenerateSpawnOnLoad(state: boolean): void; + /** + * Gets the default spawn position of this world. + */ + // @ts-ignore + getSpawnPosition(): any /*Vector3i*/; + /** + * Sets the default spawn position of this world. + */ + // @ts-ignore + setSpawnPosition(position: any /*Vector3i*/): void; + /** + * Gets the {@link GeneratorType} of this world. + */ + // @ts-ignore + getGeneratorType(): org.spongepowered.api.world.GeneratorType; + /** + * Sets the {@link GeneratorType} of this world. + */ + // @ts-ignore + setGeneratorType(type: org.spongepowered.api.world.GeneratorType): void; + /** + * Gets the seed of this world. + */ + // @ts-ignore + getSeed(): number; + /** + * Sets the seed of this world. + *Warning: this may cause the edge of currently generated chunks to no + * longer align with newly generated chunks.
+ */ + // @ts-ignore + setSeed(seed: number): void; + /** + * Gets the number of ticks which have occurred since the world was created. + */ + // @ts-ignore + getTotalTime(): number; + /** + * Gets the time of day, in ticks. The total number of ticks in a day is + * 24000, however this value does not reset to zero at the start of each day + * but rather keeps counting passed 24000. + */ + // @ts-ignore + getWorldTime(): number; + /** + * Sets the time of day, in ticks. The total number of ticks in a day is + * 24000, however this value does not reset to zero at the start of each day + * but rather keeps counting passed 24000. + */ + // @ts-ignore + setWorldTime(time: number): void; + /** + * Gets the {@link DimensionType} of this world. + */ + // @ts-ignore + getDimensionType(): org.spongepowered.api.world.DimensionType; + /** + * Gets the {@link PortalAgentType} for the world. + */ + // @ts-ignore + getPortalAgentType(): org.spongepowered.api.world.PortalAgentType; + /** + * Gets whether PVP combat is enabled in this world. + */ + // @ts-ignore + isPVPEnabled(): boolean; + /** + * Sets whether PVP combat is enabled in this world. + */ + // @ts-ignore + setPVPEnabled(enabled: boolean): void; + /** + * Gets whether this world is currently experiencing rain/snow/cloud-cover + * (depending on the biome of a specific location). + */ + // @ts-ignore + isRaining(): boolean; + /** + * Sets whether this world is currently experiencing rain/snow/cloud-cover + * (depending on the biome of a specific location). + */ + // @ts-ignore + setRaining(state: boolean): void; + /** + * Gets the number of ticks until the weather is next toggled to a new + * random value. + */ + // @ts-ignore + getRainTime(): number; + /** + * Sets the number of ticks until the weather is next toggled to a new + * random value. + */ + // @ts-ignore + setRainTime(time: number): void; + /** + * Gets whether this world is currently experiencing a lightning storm. + */ + // @ts-ignore + isThundering(): boolean; + /** + * Sets whether this world is currently experiencing a lightning storm. + */ + // @ts-ignore + setThundering(state: boolean): void; + /** + * Gets the number of ticks until the {@link #isThundering()} state is + * toggled to a new random value. + */ + // @ts-ignore + getThunderTime(): number; + /** + * Sets the number of ticks until the {@link #isThundering()} state is + * toggled to a new random value. + */ + // @ts-ignore + setThunderTime(time: number): void; + /** + * Gets the default {@link GameMode} of this world. + */ + // @ts-ignore + getGameMode(): org.spongepowered.api.entity.living.player.gamemode.GameMode; + /** + * Sets the default {@link GameMode} of this world. + */ + // @ts-ignore + setGameMode(gamemode: org.spongepowered.api.entity.living.player.gamemode.GameMode): void; + /** + * Gets whether this world will generate map features such as villages and + * strongholds. + */ + // @ts-ignore + usesMapFeatures(): boolean; + /** + * Sets whether this world will generate map features such as villages and + * strongholds. + */ + // @ts-ignore + setMapFeaturesEnabled(state: boolean): void; + /** + * Gets whether this world is set to hardcore mode. + */ + // @ts-ignore + isHardcore(): boolean; + /** + * Sets whether this world is set to hardcore mode. + */ + // @ts-ignore + setHardcore(state: boolean): void; + /** + * Gets whether commands are allowed within this world. May not be respected + * when not in single player. + */ + // @ts-ignore + areCommandsAllowed(): boolean; + /** + * Sets whether commands are allowed within this world. May not be respected + * when not in single player. + */ + // @ts-ignore + setCommandsAllowed(state: boolean): void; + /** + * Gets the difficulty of this world. + */ + // @ts-ignore + getDifficulty(): org.spongepowered.api.world.difficulty.Difficulty; + /** + * Sets the difficulty of this world. + */ + // @ts-ignore + setDifficulty(difficulty: org.spongepowered.api.world.difficulty.Difficulty): void; + /** + * Gets whether the bonus chest should be generated. + *This only applies on the initial load of the {@link World} + * created via this properties.
+ */ + // @ts-ignore + doesGenerateBonusChest(): boolean; + /** + * Gets the center of the world border. + *The returned position is three-dimensional. As the world border + * extends over the entire y-axis, the returned position will always have a + * {@code y} set to 0.
+ */ + // @ts-ignore + getWorldBorderCenter(): any /*Vector3d*/; + /** + * Sets the center of the world border. + */ + // @ts-ignore + setWorldBorderCenter(x: number, z: number): void; + /** + * Gets the diameter of the world border. + *The returned diameter applies to the x and z axis. The world border + * extends over the entire y-axis.
+ */ + // @ts-ignore + getWorldBorderDiameter(): number; + /** + * Sets the diameter of the world border. + *The specified diameter applies to the x and z axis. The world border + * extends over the entire y-axis.
+ */ + // @ts-ignore + setWorldBorderDiameter(diameter: number): void; + /** + * Gets the time remaining until the world border stops expanding or + * contracting. + */ + // @ts-ignore + getWorldBorderTimeRemaining(): number; + /** + * Sets the time remaining until the world border stops expanding or + * contracting. + */ + // @ts-ignore + setWorldBorderTimeRemaining(time: number): void; + /** + * Gets the diameter the world border is expanding or contracting to. + *This will return the same value as {@link #getWorldBorderDiameter} + * unless {@link #getWorldBorderTimeRemaining} is greater than 0.
+ */ + // @ts-ignore + getWorldBorderTargetDiameter(): number; + /** + * Sets the target diameter of the world border. + *The world border diameter increases/decrease linearly over time + * specified in {@link #getWorldBorderTimeRemaining()}. The specified + * diameter applies to the x and z axis. The world border extends over the + * entire y-axis.
+ */ + // @ts-ignore + setWorldBorderTargetDiameter(diameter: number): void; + /** + * Gets the distance a player may be outside the world border before taking + * damage. + */ + // @ts-ignore + getWorldBorderDamageThreshold(): number; + /** + * Sets the distance a player may be be outside the world border before + * taking damage. + */ + // @ts-ignore + setWorldBorderDamageThreshold(distance: number): void; + /** + * Gets the damage done to a player per block per tick when outside the + * buffer. + */ + // @ts-ignore + getWorldBorderDamageAmount(): number; + /** + * Sets the damage done to a player per block per tick when outside the + * buffer. + */ + // @ts-ignore + setWorldBorderDamageAmount(damage: number): void; + /** + * Gets the time when a contracting world border will warn a player for whom + * the world border will reach in {@code time} seconds. + *In Minecraft, the warning is displayed in the form of a reddish + * tint.
+ */ + // @ts-ignore + getWorldBorderWarningTime(): number; + /** + * Sets the time when a contracting world border will warn a player for whom + * the world border will reach in {@code time} seconds. + *In Minecraft, the warning is displayed in the form of a reddish + * tint.
+ */ + // @ts-ignore + setWorldBorderWarningTime(time: number): void; + /** + * Gets the distance when a contracting world border will warn a player for + * whom the world border is {@code distance} blocks away. + *In Minecraft, the warning is displayed in the form of a reddish + * tint.
+ */ + // @ts-ignore + getWorldBorderWarningDistance(): number; + /** + * Sets the distance when a contracting world border will warn a player for + * whom the world border is {@code distance} blocks away. + *In Minecraft, the warning is displayed in the form of a reddish + * tint.
+ */ + // @ts-ignore + setWorldBorderWarningDistance(distance: number): void; + /** + * Gets the specified GameRule value. + */ + // @ts-ignore + getGameRule(gameRule: string): any; + /** + * Gets a map of the currently set game rules and their values. + */ + // @ts-ignore + getGameRules(): MapUsage of a {@link ChunkDataStream} should be limited to asynchronous + * tasks to avoid hanging the main thread.
+ */ + // @ts-ignore + getGeneratedChunks(): org.spongepowered.api.world.storage.ChunkDataStream; + /** + * Checks if the given chunk coordinates represented by {@link Vector3i} + * exist in the world. + *Note that this is an asynchronous check as the storage of chunks can + * not be guaranteed to remain in sync with the server, let alone on the + * server thread.
+ *It is imperative to understand that the {@link CompletableFuture} task + * is blocking, and should avoid using {@link CompletableFuture#get()} while + * on the main thread.
+ */ + // @ts-ignore + doesChunkExist(chunkCoords: any /*Vector3i*/): any; + /** + * Gets a {@link DataContainer} including all data related to a + * {@link Chunk}. + *The container is a read only instance of the data, and therefor should + * not be considered as mutable data. Changes are NOT saved, and the data + * may not be in sync with the server if the chunk is currently loaded.
+ *This may not return a {@link DataContainer} in the event there is no + * chunk data generated at the desired coordinates.
+ *It is imperative to understand that the {@link CompletableFuture} task + * is blocking, and should avoid using {@link CompletableFuture#get()} while + * on the main thread.
+ */ + // @ts-ignore + getChunkData(chunkCoords: any /*Vector3i*/): any; + /** + * Gets the {@link WorldProperties} of this storage. In the vanilla storage + * medium this represents the data available in the level.dat file. + */ + // @ts-ignore + getWorldProperties(): org.spongepowered.api.world.storage.WorldProperties; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.teleport.TeleportHelperFilter.ts b/packages/sponge/src/typings/org.spongepowered.api.world.teleport.TeleportHelperFilter.ts new file mode 100644 index 00000000..ebcf3f1e --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.teleport.TeleportHelperFilter.ts @@ -0,0 +1,58 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace teleport { + // @ts-ignore + interface TeleportHelperFilter extends org.spongepowered.api.CatalogType { + /** + * Tests whether the location in question is valid, regardless of whether + * the block is safe or not. This is only intended to be used by + * kernels that blacklist/whitelist certain locations, and any block checks + * should be performed by {@link #isSafeFloorMaterial(BlockState)} and + * {@link #isSafeBodyMaterial(BlockState)} instead, to obtain the full + * benefits of the {@link TeleportHelper}. + *This method has a default implementation of always returning + * {@link Tristate#UNDEFINED}, that is, such a filter is not location + * specific.
+ *This will be called before any other check on the target location is + * performed, this is the first check performed when investigating a + * location.
+ */ + // @ts-ignore + isValidLocation(world: org.spongepowered.api.world.World, position: any /*Vector3i*/): org.spongepowered.api.util.Tristate; + /** + * Tests whether a {@link BlockState} should be considered a safe block + * to land on. + */ + // @ts-ignore + isSafeFloorMaterial(blockState: org.spongepowered.api.block.BlockState): boolean; + /** + * Tests whether a {@link BlockState} should be considered a safe block + * for the body to be inside of. + *Generally, you want this to be a passable block!
+ */ + // @ts-ignore + isSafeBodyMaterial(blockState: org.spongepowered.api.block.BlockState): boolean; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.teleport.TeleportHelperFilters.ts b/packages/sponge/src/typings/org.spongepowered.api.world.teleport.TeleportHelperFilters.ts new file mode 100644 index 00000000..79de0612 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.teleport.TeleportHelperFilters.ts @@ -0,0 +1,23 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace teleport { + // @ts-ignore + class TeleportHelperFilters { + // @ts-ignore + public static CONFIG: org.spongepowered.api.world.teleport.TeleportHelperFilter; + // @ts-ignore + public static DEFAULT: org.spongepowered.api.world.teleport.TeleportHelperFilter; + // @ts-ignore + public static FLYING: org.spongepowered.api.world.teleport.TeleportHelperFilter; + // @ts-ignore + public static NO_PORTAL: org.spongepowered.api.world.teleport.TeleportHelperFilter; + // @ts-ignore + public static SURFACE_ONLY: org.spongepowered.api.world.teleport.TeleportHelperFilter; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.weather.Weather.ts b/packages/sponge/src/typings/org.spongepowered.api.world.weather.Weather.ts new file mode 100644 index 00000000..49b1404a --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.weather.Weather.ts @@ -0,0 +1,13 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace weather { + // @ts-ignore + interface Weather extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.weather.WeatherUniverse.ts b/packages/sponge/src/typings/org.spongepowered.api.world.weather.WeatherUniverse.ts new file mode 100644 index 00000000..cdf561d8 --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.weather.WeatherUniverse.ts @@ -0,0 +1,38 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace weather { + // @ts-ignore + interface WeatherUniverse { + /** + * Gets the current {@link Weather} in this volume. + */ + // @ts-ignore + getWeather(): org.spongepowered.api.world.weather.Weather; + /** + * Gets the remaining duration of the current {@link Weather}. + */ + // @ts-ignore + getRemainingDuration(): number; + /** + * Gets the duration the current {@link Weather} has been running for. + */ + // @ts-ignore + getRunningDuration(): number; + /** + * Sets the {@link Weather} of the volume with a random duration. + */ + // @ts-ignore + setWeather(weather: org.spongepowered.api.world.weather.Weather): void; + /** + * Sets the {@link Weather} of the volume with the specified duration. + */ + // @ts-ignore + setWeather(weather: org.spongepowered.api.world.weather.Weather, duration: number): void; + } + } + } + } + } +} diff --git a/packages/sponge/src/typings/org.spongepowered.api.world.weather.Weathers.ts b/packages/sponge/src/typings/org.spongepowered.api.world.weather.Weathers.ts new file mode 100644 index 00000000..7e93511b --- /dev/null +++ b/packages/sponge/src/typings/org.spongepowered.api.world.weather.Weathers.ts @@ -0,0 +1,19 @@ +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace weather { + // @ts-ignore + class Weathers { + // @ts-ignore + public static CLEAR: org.spongepowered.api.world.weather.Weather; + // @ts-ignore + public static RAIN: org.spongepowered.api.world.weather.Weather; + // @ts-ignore + public static THUNDER_STORM: org.spongepowered.api.world.weather.Weather; + } + } + } + } + } +}