feat: add sponge typings

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-09-25 09:55:00 +08:00
parent b8c3d0d19d
commit 7bb4d1f6a3
1928 changed files with 76288 additions and 0 deletions

View File

@@ -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;
}
}
}
}
}
}
}