39
packages/bukkit/src/typings/org.bukkit.UnsafeValues.ts
Normal file
39
packages/bukkit/src/typings/org.bukkit.UnsafeValues.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
declare namespace org {
|
||||
namespace bukkit {
|
||||
class UnsafeValues {
|
||||
public toLegacy(material: org.bukkit.Material): org.bukkit.Material;
|
||||
public fromLegacy(material: org.bukkit.Material): org.bukkit.Material;
|
||||
public fromLegacy(material: org.bukkit.material.MaterialData): org.bukkit.Material;
|
||||
public fromLegacy(material: org.bukkit.material.MaterialData, itemPriority: boolean): org.bukkit.Material;
|
||||
public fromLegacy(material: org.bukkit.Material, data: number): org.bukkit.block.data.BlockData;
|
||||
public getMaterial(material: string, version: number): org.bukkit.Material;
|
||||
public getDataVersion(): number;
|
||||
public modifyItemStack(stack: org.bukkit.inventory.ItemStack, arguments: string): org.bukkit.inventory.ItemStack;
|
||||
public checkSupported(pdf: org.bukkit.plugin.PluginDescriptionFile): void;
|
||||
public processClass(pdf: org.bukkit.plugin.PluginDescriptionFile, path: string, clazz: number): number[];
|
||||
/**
|
||||
* Load an advancement represented by the specified string into the server.
|
||||
* The advancement format is governed by Minecraft and has no specified
|
||||
* layout.
|
||||
* <br>
|
||||
* It is currently a JSON object, as described by the Minecraft Wiki:
|
||||
* http://minecraft.gamepedia.com/Advancements
|
||||
* <br>
|
||||
* Loaded advancements will be stored and persisted across server restarts
|
||||
* and reloads.
|
||||
* <br>
|
||||
* Callers should be prepared for {@link Exception} to be thrown.
|
||||
*/
|
||||
public loadAdvancement(key: org.bukkit.NamespacedKey, advancement: string): org.bukkit.advancement.Advancement;
|
||||
/**
|
||||
* Delete an advancement which was loaded and saved by
|
||||
* {@link #loadAdvancement(org.bukkit.NamespacedKey, java.lang.String)}.
|
||||
* <br>
|
||||
* This method will only remove advancement from persistent storage. It
|
||||
* should be accompanied by a call to {@link Server#reloadData()} in order
|
||||
* to fully remove it from the running instance.
|
||||
*/
|
||||
public removeAdvancement(key: org.bukkit.NamespacedKey): boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user