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,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*/;
}
}
}
}
}