feat: add sponge typings
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
35f2dbf162
commit
a96756e1ac
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,28 @@
|
||||
declare namespace org {
|
||||
namespace spongepowered {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
interface CatalogType {
|
||||
/**
|
||||
* Gets the unique identifier of this {@link CatalogType}. The identifier is
|
||||
* case insensitive, thus there cannot be another instance with a different
|
||||
* character case. The id of this instance must remain the same for the
|
||||
* entire duration of its existence. The identifier can be formatted however
|
||||
* needed.
|
||||
* <p>A typical id format follows the pattern of <code>`modId:name`</code>
|
||||
* or <code>`minecraft:name`</code>. However the prefix may be omitted for
|
||||
* default/vanilla minecraft types.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
getId(): string;
|
||||
/**
|
||||
* Gets the human-readable name of this individual {@link CatalogType}. This
|
||||
* name is not guaranteed to be unique. This value should not be used for
|
||||
* serialization.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getName(): string;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,257 @@
|
||||
declare namespace org {
|
||||
namespace spongepowered {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
class CatalogTypes {
|
||||
// @ts-ignore
|
||||
public static ADVANCEMENT: any;
|
||||
// @ts-ignore
|
||||
public static ADVANCEMENT_TREE: any;
|
||||
// @ts-ignore
|
||||
public static ADVANCEMENT_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static AI_TASK_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static ARMOR_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static ART: any;
|
||||
// @ts-ignore
|
||||
public static BANNER_PATTERN_SHAPE: any;
|
||||
// @ts-ignore
|
||||
public static BAN_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static BIG_MUSHROOM_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static BIOME_TREE_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static BIOME_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static BLOCK_PALETTE_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static BLOCK_STATISTIC: any;
|
||||
// @ts-ignore
|
||||
public static BLOCK_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static BODY_PART: any;
|
||||
// @ts-ignore
|
||||
public static BOSS_BAR_COLOR: any;
|
||||
// @ts-ignore
|
||||
public static BOSS_BAR_OVERLAY: any;
|
||||
// @ts-ignore
|
||||
public static BRICK_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static CAREER: any;
|
||||
// @ts-ignore
|
||||
public static CHAT_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static CHAT_VISIBILITY: any;
|
||||
// @ts-ignore
|
||||
public static COAL_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static COLLISION_RULE: any;
|
||||
// @ts-ignore
|
||||
public static COMPARISON_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static COOKED_FISH: any;
|
||||
// @ts-ignore
|
||||
public static CRAFTING_RECIPES: any;
|
||||
// @ts-ignore
|
||||
public static CRITERION: any;
|
||||
// @ts-ignore
|
||||
public static CURRENCY: any;
|
||||
// @ts-ignore
|
||||
public static DAMAGE_MODIFIER_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static DAMAGE_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static DATA_FORMAT: any;
|
||||
// @ts-ignore
|
||||
public static DATA_TRANSLATOR: any;
|
||||
// @ts-ignore
|
||||
public static DIFFICULTY: any;
|
||||
// @ts-ignore
|
||||
public static DIMENSION_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static DIRT_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static DISGUISED_BLOCK_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static DISMOUNT_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static DISPLAY_SLOT: any;
|
||||
// @ts-ignore
|
||||
public static DOUBLE_PLANT_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static DYE_COLOR: any;
|
||||
// @ts-ignore
|
||||
public static ENCHANTMENT: any;
|
||||
// @ts-ignore
|
||||
public static ENCHANTMENT_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static ENTITY_STATISTIC: any;
|
||||
// @ts-ignore
|
||||
public static ENTITY_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static EQUIPMENT_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static EVENT_CONTEXT_KEY: any;
|
||||
// @ts-ignore
|
||||
public static FIREWORK_SHAPE: any;
|
||||
// @ts-ignore
|
||||
public static FISH: any;
|
||||
// @ts-ignore
|
||||
public static FLUID_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static GAME_MODE: any;
|
||||
// @ts-ignore
|
||||
public static GENERATOR_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static GOAL_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static GOLDEN_APPLE: any;
|
||||
// @ts-ignore
|
||||
public static HAND_PREFERENCE: any;
|
||||
// @ts-ignore
|
||||
public static HAND_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static HEALING_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static HEALTH_MODIFIER_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static HELD_EQUIPMENT_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static HINGE: any;
|
||||
// @ts-ignore
|
||||
public static HORSE_COLOR: any;
|
||||
// @ts-ignore
|
||||
public static HORSE_STYLE: any;
|
||||
// @ts-ignore
|
||||
public static INSTRUMENT_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static INVENTORY_ARCHETYPE: any;
|
||||
// @ts-ignore
|
||||
public static ITEM_STATISTIC: any;
|
||||
// @ts-ignore
|
||||
public static ITEM_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static LLAMA_VARIANT: any;
|
||||
// @ts-ignore
|
||||
public static LOG_AXIS: any;
|
||||
// @ts-ignore
|
||||
public static MUSHROOM_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static NOTE_PITCH: any;
|
||||
// @ts-ignore
|
||||
public static OBJECTIVE_DISPLAY_MODE: any;
|
||||
// @ts-ignore
|
||||
public static OCELOT_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static PARROT_VARIANT: any;
|
||||
// @ts-ignore
|
||||
public static PARTICLE_OPTION: any;
|
||||
// @ts-ignore
|
||||
public static PARTICLE_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static PICKUP_RULE: any;
|
||||
// @ts-ignore
|
||||
public static PISTON_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static PLANT_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static POPULATOR_OBJECT: any;
|
||||
// @ts-ignore
|
||||
public static POPULATOR_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static PORTAL_AGENT_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static PORTION_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static POTION_EFFECT_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static PRISMARINE_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static PROFESSION: any;
|
||||
// @ts-ignore
|
||||
public static QUARTZ_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static QUERY_OPERATION_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static RABBIT_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static RAIL_DIRECTION: any;
|
||||
// @ts-ignore
|
||||
public static RECORD_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static ROTATION: any;
|
||||
// @ts-ignore
|
||||
public static SANDSTONE_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static SAND_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static SELECTOR_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static SERIALIZATION_BEHAVIOR: any;
|
||||
// @ts-ignore
|
||||
public static SHRUB_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static SKIN_PART: any;
|
||||
// @ts-ignore
|
||||
public static SKULL_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static SLAB_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static SOUND_CATEGORY: any;
|
||||
// @ts-ignore
|
||||
public static SOUND_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static SPAWN_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static STAIR_SHAPE: any;
|
||||
// @ts-ignore
|
||||
public static STATISTIC: any;
|
||||
// @ts-ignore
|
||||
public static STATISTIC_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static STONE_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static STRUCTURE_MODE: any;
|
||||
// @ts-ignore
|
||||
public static TELEPORT_HELPER_FILTER: any;
|
||||
// @ts-ignore
|
||||
public static TELEPORT_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static TEXT_COLOR: any;
|
||||
// @ts-ignore
|
||||
public static TEXT_SERIALIZER: any;
|
||||
// @ts-ignore
|
||||
public static TEXT_STYLE: any;
|
||||
// @ts-ignore
|
||||
public static TILE_ENTITY_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static TOOL_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static TRANSACTION_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static TREE_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static TRIGGER: any;
|
||||
// @ts-ignore
|
||||
public static VIRTUAL_BIOME_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static VISIBILITY: any;
|
||||
// @ts-ignore
|
||||
public static WALL_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static WEATHER: any;
|
||||
// @ts-ignore
|
||||
public static WIRE_ATTACHMENT_TYPE: any;
|
||||
// @ts-ignore
|
||||
public static WORLD_ARCHETYPE: any;
|
||||
// @ts-ignore
|
||||
public static WORLD_GENERATOR_MODIFIER: any;
|
||||
// @ts-ignore
|
||||
public static WORN_EQUIPMENT_TYPE: any;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
129
packages/sponge/src/typings/org.spongepowered.api.Game.ts
Normal file
129
packages/sponge/src/typings/org.spongepowered.api.Game.ts
Normal file
@ -0,0 +1,129 @@
|
||||
declare namespace org {
|
||||
namespace spongepowered {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
interface Game {
|
||||
/**
|
||||
* Gets the current {@link GameState} that this game is currently in.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getState(): org.spongepowered.api.GameState;
|
||||
/**
|
||||
* Gets the directory where the game's files are located.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getGameDirectory(): any;
|
||||
/**
|
||||
* Gets the directory where the game will store save files.
|
||||
* <p>This location differs based on the implementation and is therefore
|
||||
* implementation-specific.</p>
|
||||
* <p>To elaborate, this is how it is handled in Minecraft based on side:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>Client
|
||||
* <ul>This directory will point to {@link Game#getGameDirectory()}.resolve("saves").resolve(currentSaveName)</ul>
|
||||
* <li>Server
|
||||
* <ul>This directory will be equivalent to {@link Game#getGameDirectory()}.resolve(level-name).</ul>
|
||||
* </ul>
|
||||
* <p>Consult your specific implementation if they support placing this
|
||||
* elsewhere.</p>
|
||||
*/
|
||||
// @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).
|
||||
* <p>Services registered by other plugins may be available too.</p>
|
||||
*/
|
||||
// @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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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.
|
||||
* <p>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.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
getType(typeClass: any, id: string): any;
|
||||
/**
|
||||
* Gets a collection of all available found specific types of
|
||||
* {@link CatalogType} requested.
|
||||
* <p>The presented {@link CatalogType}s may not exist in default catalogs
|
||||
* due to various reasons including but not restricted to: mods, plugins,
|
||||
* game changes.</p>
|
||||
*/
|
||||
// @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.
|
||||
* <p>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.</p>
|
||||
*/
|
||||
// @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.
|
||||
* <p>Note that this is intended only for registering new instances of
|
||||
* already existing CatalogTypes, not for registering entirely new
|
||||
* CatalogType classes.</p>
|
||||
*/
|
||||
// @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
|
||||
* <code>{@link PluginContainer#getId()}:id</code>.
|
||||
*/
|
||||
// @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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
declare namespace org {
|
||||
namespace spongepowered {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
interface MinecraftVersion {
|
||||
/**
|
||||
* Gets the name of this Minecraft version.
|
||||
* <p>
|
||||
* <strong>Note:</strong> 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.
|
||||
* </p>
|
||||
*/
|
||||
// @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.
|
||||
* <p>
|
||||
* For Vanilla, this returns {@code true} for all clients older than 1.7.
|
||||
* </p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
isLegacy(): boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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.
|
||||
* <p>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}.</p>
|
||||
*/
|
||||
// @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.
|
||||
* <p>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.</p>
|
||||
* <p>This mechanism allows for platform-specific information like Forge
|
||||
* version.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
asMap(): Map<any, any> /*java.util.Map*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
281
packages/sponge/src/typings/org.spongepowered.api.Server.ts
Normal file
281
packages/sponge/src/typings/org.spongepowered.api.Server.ts
Normal file
@ -0,0 +1,281 @@
|
||||
declare namespace org {
|
||||
namespace spongepowered {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
interface Server {
|
||||
/**
|
||||
* Gets the {@link Player}s currently online.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getOnlinePlayers(): any[] /*java.util.Collection*/;
|
||||
/**
|
||||
* Gets the max players allowed on this server.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getMaxPlayers(): number;
|
||||
/**
|
||||
* Gets a {@link Player} by their UUID.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getPlayer(uniqueId: any): any;
|
||||
/**
|
||||
* Gets a {@link Player} by their name.
|
||||
* <p>This only works for online players.</p>
|
||||
* <p><b>Note: Do not use names for persistent storage, the
|
||||
* Notch of today may not be the Notch of yesterday.</b></p>
|
||||
*/
|
||||
// @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.
|
||||
* <p>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.</p>
|
||||
*/
|
||||
// @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}.
|
||||
* <p>If the {@link World} exists at the folder name given, the properties
|
||||
* representing that folder name are returned instead.</p>
|
||||
* <p>Although the world is created it is not loaded at this time. Please
|
||||
* see one of the following methods for loading the world.</p>
|
||||
* <ul> <li>{@link #loadWorld(String)}</li> <li>{@link #loadWorld(UUID)}
|
||||
* </li> <li>{@link #loadWorld(WorldProperties)}</li> </ul>
|
||||
*/
|
||||
// @ts-ignore
|
||||
createWorldProperties(folderName: string, archetype: org.spongepowered.api.world.WorldArchetype): org.spongepowered.api.world.storage.WorldProperties;
|
||||
/**
|
||||
* Creates a world copy asynchronously using the new name given and returns
|
||||
* the new world properties if the copy was possible.
|
||||
* <p>If the world is already loaded then the following will occur:</p>
|
||||
* <ul>
|
||||
* <li>World is saved.</li>
|
||||
* <li>World saving is disabled.</li>
|
||||
* <li>World is copied. </li>
|
||||
* <li>World saving is enabled.</li>
|
||||
* </ul>
|
||||
*/
|
||||
// @ts-ignore
|
||||
copyWorld(worldProperties: org.spongepowered.api.world.storage.WorldProperties, copyName: string): any;
|
||||
/**
|
||||
* Renames an unloaded world.
|
||||
*/
|
||||
// @ts-ignore
|
||||
renameWorld(worldProperties: org.spongepowered.api.world.storage.WorldProperties, newName: string): any;
|
||||
/**
|
||||
* Deletes the provided world's files asynchronously from the disk.
|
||||
*/
|
||||
// @ts-ignore
|
||||
deleteWorld(worldProperties: org.spongepowered.api.world.storage.WorldProperties): any;
|
||||
/**
|
||||
* Persists the given {@link WorldProperties} to the world storage for it,
|
||||
* updating any modified values.
|
||||
*/
|
||||
// @ts-ignore
|
||||
saveWorldProperties(properties: org.spongepowered.api.world.storage.WorldProperties): boolean;
|
||||
/**
|
||||
* Gets the 'server' scoreboard. In Vanilla, this is the scoreboard of
|
||||
* dimension 0 (the overworld).
|
||||
* <p>The sever scoreboard is used with the Vanilla /scoreboard command,
|
||||
* automatic score updating through criteria, and other things.</p>
|
||||
* <p>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.</p>
|
||||
*/
|
||||
// @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.
|
||||
* <p>This value is not persisted across server restarts, it is set to zero
|
||||
* each time the server starts.</p>
|
||||
*/
|
||||
// @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.
|
||||
* <b>Online mode authenticates users against Minecraft's servers, false
|
||||
* performs no validity checks.</b>
|
||||
*/
|
||||
// @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.
|
||||
* <p>For the Sponge implementation on the client, this will trigger the
|
||||
* Integrated Server to shutdown a tick later.</p>
|
||||
*/
|
||||
// @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.
|
||||
* <p>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.</p>
|
||||
*/
|
||||
// @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.
|
||||
* <p>A return value of {@code 0} disables the player idle timeout.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
getPlayerIdleTimeout(): number;
|
||||
/**
|
||||
* Sets the player idle timeout, in minutes.
|
||||
* <p>A value of {@code 0} disables the player idle timeout.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
setPlayerIdleTimeout(timeout: number): void;
|
||||
/**
|
||||
* Checks if the current thread matches the main thread of the server.
|
||||
*/
|
||||
// @ts-ignore
|
||||
isMainThread(): boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
123
packages/sponge/src/typings/org.spongepowered.api.Sponge.ts
Normal file
123
packages/sponge/src/typings/org.spongepowered.api.Sponge.ts
Normal file
@ -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).
|
||||
* <p>Services registered by other plugins may be available too.</p>
|
||||
*/
|
||||
// @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.
|
||||
* <p>Note: During various {@link GameState}s, a {@link Server} instance
|
||||
* may <strong>NOT</strong> be available. During these specific states,
|
||||
* calling {@link Game#getServer()} will throw an exception. To double
|
||||
* check, call {@link #isServerAvailable()}</p>
|
||||
*/
|
||||
// @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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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.
|
||||
* <p>This {@link AdvancementCriterion} can be a AND or OR operation that
|
||||
* contains multiple possible {@link AdvancementCriterion}s.</p>
|
||||
*/
|
||||
// @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*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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}.
|
||||
* <p>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.</p>
|
||||
*/
|
||||
// @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}.
|
||||
* <p>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.</p>
|
||||
*/
|
||||
// @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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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}.
|
||||
* <p>Defaults to the stone background:
|
||||
* {@code minecraft:textures/gui/advancements/backgrounds/stone.png}</p>
|
||||
*/
|
||||
// @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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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.
|
||||
* <p>Defaults to {@code true}.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
showToast(showToast: boolean): org.spongepowered.api.advancement.DisplayInfo.Builder;
|
||||
/**
|
||||
* Sets whether a notification should be shown in the global chat.
|
||||
* <p>Defaults to {@code true}.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
announceToChat(announceToChat: boolean): org.spongepowered.api.advancement.DisplayInfo.Builder;
|
||||
/**
|
||||
* Sets whether the {@link Advancement} should be hidden.
|
||||
* <p>Hidden advancements will only appear in the tree once they
|
||||
* are unlocked. The lines that connect them to other advancements
|
||||
* are still present.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
hidden(hidden: boolean): org.spongepowered.api.advancement.DisplayInfo.Builder;
|
||||
/**
|
||||
* Builds the {@link DisplayInfo}.
|
||||
*/
|
||||
// @ts-ignore
|
||||
build(): org.spongepowered.api.advancement.DisplayInfo;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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.
|
||||
* <p>The toast is the notification that will be displayed
|
||||
* in the top right corner.</p>
|
||||
*/
|
||||
// @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.
|
||||
* <p>Hidden advancements will only appear in the tree once they
|
||||
* are unlocked. The lines that connect them to other advancements
|
||||
* are still present.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
isHidden(): boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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.
|
||||
* <p>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.</p>
|
||||
*/
|
||||
// @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.
|
||||
* <p>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.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
and(criteria: any): org.spongepowered.api.advancement.criteria.AdvancementCriterion;
|
||||
/**
|
||||
* Combines this {@link AdvancementCriterion} with the other criteria
|
||||
* to create an OR operation.
|
||||
* <p>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.</p>
|
||||
*/
|
||||
// @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.
|
||||
* <p>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.</p>
|
||||
*/
|
||||
// @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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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.
|
||||
* <p>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.</p>
|
||||
*/
|
||||
// @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.
|
||||
* <p>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.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
of(criteria: any): org.spongepowered.api.advancement.criteria.AdvancementCriterion;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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.
|
||||
* <p> 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.</p>
|
||||
*/
|
||||
// @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.
|
||||
* <p>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.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
of(criteria: any): org.spongepowered.api.advancement.criteria.AdvancementCriterion;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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.
|
||||
* <p>Defaults to {@code 1}.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
goal(goal: number): org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.Builder;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
declare namespace org {
|
||||
namespace spongepowered {
|
||||
namespace api {
|
||||
namespace advancement {
|
||||
namespace criteria {
|
||||
namespace trigger {
|
||||
// @ts-ignore
|
||||
interface FilteredTriggerConfiguration {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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}.
|
||||
* <p>The {@link Cause} of the event should be used to determine
|
||||
* whether the configuration matches the requirements to trigger
|
||||
* the criterion.</p>
|
||||
*/
|
||||
// @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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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[];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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}.
|
||||
* <p>
|
||||
* This is used to grab the {@link UUID} of the World for this snapshot.
|
||||
* </p>
|
||||
*/
|
||||
// @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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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.
|
||||
* <p>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.</p>
|
||||
*/
|
||||
// @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.
|
||||
* <p>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.</p>
|
||||
*/
|
||||
// @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.
|
||||
* <p>If this blocksnapshot does not contain a tile entity then this will
|
||||
* return {@link Optional#empty()}.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
createArchetype(): any;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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.
|
||||
* <p>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.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
blockType(blockType: org.spongepowered.api.block.BlockType): org.spongepowered.api.block.BlockState.Builder;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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}.
|
||||
* <p>Note that the {@link BlockType type} <b>must be set prior</b>
|
||||
* to setting various {@link BlockTrait traits} and their values.</p>
|
||||
*/
|
||||
// @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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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.
|
||||
* <p>The type does not include block data such as the contents of
|
||||
* inventories.</p>
|
||||
*/
|
||||
// @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.
|
||||
* <p>Note: This should only be called for live {@link BlockState}'s at
|
||||
* a specific {@link Location} for accurate results.</p>
|
||||
* <p>
|
||||
* Examples of some extended properties are:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>snow on podzul dirt block</li>
|
||||
* <li>occupied status for beds</li>
|
||||
* <li>fence connections</li>
|
||||
* </ul>
|
||||
*/
|
||||
// @ts-ignore
|
||||
withExtendedProperties(location: org.spongepowered.api.world.Location): org.spongepowered.api.block.BlockState;
|
||||
/**
|
||||
* Gets the associated {@link BlockState} with the cycled
|
||||
* {@link BaseValue}. Note that only {@link Cycleable} values can be
|
||||
* cycled. To change a particular {@link Key}'ed {@link Value}, usage
|
||||
* of the {@link BlockState#with(Key, Object)} is recommended.
|
||||
*/
|
||||
// @ts-ignore
|
||||
cycleValue(key: org.spongepowered.api.data.key.Key): org.spongepowered.api.block.BlockState;
|
||||
/**
|
||||
* Creates a new {@link BlockSnapshot} with this current {@link BlockState}
|
||||
* at the desired {@link Location}. If the {@link Location} has the same
|
||||
* {@link BlockState}, and the {@link BlockType} can house a
|
||||
* {@link TileEntity}, the data from the tile entity may be included in the
|
||||
* returned {@link BlockSnapshot}.
|
||||
*/
|
||||
// @ts-ignore
|
||||
snapshotFor(location: org.spongepowered.api.world.Location): org.spongepowered.api.block.BlockSnapshot;
|
||||
/**
|
||||
* Gets the {@link Comparable} value for the specific {@link BlockTrait}
|
||||
* such that if the {@link BlockState} does not support the
|
||||
* {@link BlockTrait}, {@link Optional#empty()} is returned.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getTraitValue(blockTrait: org.spongepowered.api.block.trait.BlockTrait): any;
|
||||
/**
|
||||
* 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 BlockState} with the appropriate value for the given
|
||||
* {@link BlockTrait}. If the {@link BlockTrait} is not supported,
|
||||
* {@link Optional#empty()} is returned. If the object is not either
|
||||
* an instance contained in {@link BlockTrait#getPossibleValues()} or
|
||||
* an instance {@link Object#toString()}, {@link Optional#empty()} may be
|
||||
* returned.
|
||||
*/
|
||||
// @ts-ignore
|
||||
withTrait(trait: org.spongepowered.api.block.trait.BlockTrait, value: any): any;
|
||||
/**
|
||||
* Gets an immutable {@link Collection} of all applicable
|
||||
* {@link BlockTrait}s for this {@link BlockState}.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getTraits(): any[] /*java.util.Collection*/;
|
||||
/**
|
||||
* Gets an immutable {@link Collection} of all the values for all
|
||||
* {@link BlockTrait}s for this {@link BlockState}.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getTraitValues(): any[] /*java.util.Collection*/;
|
||||
/**
|
||||
* Gets an immutable or unmodifiable {@link Map} of the known {@link BlockTrait}s
|
||||
* to their current values for this {@link BlockState}.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getTraitMap(): Map<any, any> /*java.util.Map*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
declare namespace org {
|
||||
namespace spongepowered {
|
||||
namespace api {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
interface BlockType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable, org.spongepowered.api.data.property.PropertyHolder {
|
||||
/**
|
||||
* Return the internal ID for the block.
|
||||
* <p>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}.</p>
|
||||
*/
|
||||
// @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.
|
||||
* <p>Random block ticks are most commonly used for growth of plants.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
getTickRandomly(): boolean;
|
||||
/**
|
||||
* Sets if the BlockType should receive random block ticks.
|
||||
* <p>Random block ticks are most commonly used for growth of plants.</p>
|
||||
*/
|
||||
// @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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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.
|
||||
* <p>This will obey the restrictions of maximum nearby entities and player
|
||||
* range unless the {@code force} flag is set.</p>
|
||||
*/
|
||||
// @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}{@code <EntitySnapshot>} to spawn
|
||||
* next. If possible, the next entity to spawn may be chosen from the
|
||||
* already provided {@link #possibleEntitiesToSpawn()}.
|
||||
*/
|
||||
// @ts-ignore
|
||||
nextEntityToSpawn(): org.spongepowered.api.data.value.mutable.Value;
|
||||
/**
|
||||
* Gets the {@link WeightedCollectionValue} of all possible
|
||||
* {@link Entity} instances that can be spawned by the spawner. As they
|
||||
* are all {@link WeightedSerializableObject}{@code <EntitySnapshot>}
|
||||
* instances, their weight is defined as a {@link Random} to determine
|
||||
* the next {@link Entity} that will be spawned, unless overriden by
|
||||
* {@link #nextEntityToSpawn()}.
|
||||
*/
|
||||
// @ts-ignore
|
||||
possibleEntitiesToSpawn(): org.spongepowered.api.data.value.mutable.WeightedCollectionValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
declare namespace org {
|
||||
namespace spongepowered {
|
||||
namespace api {
|
||||
namespace block {
|
||||
namespace tileentity {
|
||||
// @ts-ignore
|
||||
interface Note extends org.spongepowered.api.block.tileentity.TileEntity {
|
||||
/**
|
||||
* Attempts to play the currently stored {@link NotePitch} from this
|
||||
* {@link Note} tile entity.
|
||||
*/
|
||||
// @ts-ignore
|
||||
playNote(): void;
|
||||
/**
|
||||
* Retrieves the {@link NoteData} for this note block.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getNoteData(): org.spongepowered.api.data.manipulator.mutable.tileentity.NoteData;
|
||||
/**
|
||||
* Gets the {@link Value} for the {@link NotePitch}.
|
||||
*/
|
||||
// @ts-ignore
|
||||
note(): org.spongepowered.api.data.value.mutable.Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
declare namespace org {
|
||||
namespace spongepowered {
|
||||
namespace api {
|
||||
namespace block {
|
||||
namespace tileentity {
|
||||
// @ts-ignore
|
||||
interface Piston extends org.spongepowered.api.block.tileentity.TileEntity {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
declare namespace org {
|
||||
namespace spongepowered {
|
||||
namespace api {
|
||||
namespace block {
|
||||
namespace tileentity {
|
||||
// @ts-ignore
|
||||
interface Sign extends org.spongepowered.api.block.tileentity.TileEntity {
|
||||
/**
|
||||
* Gets the current {@link SignData} for this {@link Sign} tile entity.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getSignData(): org.spongepowered.api.data.manipulator.mutable.tileentity.SignData;
|
||||
/**
|
||||
* Gets the {@link ListValue} of {@link Text} for the {@link Sign}
|
||||
* to show.
|
||||
*/
|
||||
// @ts-ignore
|
||||
lines(): org.spongepowered.api.data.value.mutable.ListValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
declare namespace org {
|
||||
namespace spongepowered {
|
||||
namespace api {
|
||||
namespace block {
|
||||
namespace tileentity {
|
||||
// @ts-ignore
|
||||
interface Skull extends org.spongepowered.api.block.tileentity.TileEntity {
|
||||
/**
|
||||
* Gets the current {@link SkullData} for this {@link Skull}
|
||||
* {@link TileEntity}.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getSkullData(): org.spongepowered.api.data.manipulator.mutable.SkullData;
|
||||
/**
|
||||
* Gets the current {@link SkullType} for this {@link Skull}.
|
||||
*/
|
||||
// @ts-ignore
|
||||
skullType(): org.spongepowered.api.data.value.mutable.Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
declare namespace org {
|
||||
namespace spongepowered {
|
||||
namespace api {
|
||||
namespace block {
|
||||
namespace tileentity {
|
||||
// @ts-ignore
|
||||
interface Structure extends org.spongepowered.api.block.tileentity.TileEntity {
|
||||
/**
|
||||
* Gets a copy of the {@link Structure} containing all available
|
||||
* data this {@link EndGateway} has.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getStructureData(): org.spongepowered.api.data.manipulator.mutable.tileentity.StructureData;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
declare namespace org {
|
||||
namespace spongepowered {
|
||||
namespace api {
|
||||
namespace block {
|
||||
namespace tileentity {
|
||||
// @ts-ignore
|
||||
interface TileEntity extends org.spongepowered.api.data.DataHolder, org.spongepowered.api.world.Locatable {
|
||||
/**
|
||||
* Checks for whether the tile entity is currently valid or not.
|
||||
* <p>Use 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.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
isValid(): boolean;
|
||||
/**
|
||||
* Changes the validation of this tile entity.
|
||||
* <p>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.</p>
|
||||
* <p>If the tile entity is valid, then processing can continue and this
|
||||
* {@link TileEntity} will not be reset on the next tick.</p>
|
||||
*/
|
||||
// @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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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.
|
||||
* <p>This will work if there is a compatible recipe.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
brew(): boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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.
|
||||
* <p>If this chest is not part of a double chest, then this method
|
||||
* will return {@link Optional#empty()}.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
getDoubleChestInventory(): any;
|
||||
/**
|
||||
* Returns the connected {@link Chest}s, if available.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getConnectedChests(): any[] /*java.util.Set*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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.
|
||||
* <p>This will work if there is a compatible recipe.</p>
|
||||
*/
|
||||
// @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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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.
|
||||
* <p>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.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
transferItem(): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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 returns <code>true</code> 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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.
|
||||
* <p>The percent must be between {@code 0.0} and {@code 1.0}.</p>
|
||||
*/
|
||||
// @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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
declare namespace org {
|
||||
namespace spongepowered {
|
||||
namespace api {
|
||||
namespace boss {
|
||||
// @ts-ignore
|
||||
interface BossBarColor extends org.spongepowered.api.CatalogType {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
declare namespace org {
|
||||
namespace spongepowered {
|
||||
namespace api {
|
||||
namespace boss {
|
||||
// @ts-ignore
|
||||
interface BossBarOverlay extends org.spongepowered.api.CatalogType {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user