mirror of
https://github.com/barkeser2002/node-minecraft-data.git
synced 2026-09-25 08:09:52 +03:00
101 lines
2.5 KiB
TypeScript
101 lines
2.5 KiB
TypeScript
|
|
export interface VersionSet {
|
|
pc: { [version: string]: Version };
|
|
bedrock: { [version: string]: Version };
|
|
}
|
|
|
|
export interface SupportedVersions {
|
|
pc: string[];
|
|
bedrock: string[];
|
|
}
|
|
|
|
export interface Schemas {
|
|
biomes: any;
|
|
blocks: any;
|
|
effects: any;
|
|
entities: any;
|
|
instruments: any;
|
|
items: any;
|
|
materials: any;
|
|
protocol: any;
|
|
protocolVersions: any;
|
|
recipes: any;
|
|
version: any;
|
|
windows: any;
|
|
foods: any;
|
|
blockLoot: any;
|
|
entityLoot: any;
|
|
}
|
|
|
|
export interface IndexedData {
|
|
isNewerOrEqualTo(version: string): boolean;
|
|
isOlderThan(version: string): boolean;
|
|
blocks: { [id: number]: Block; };
|
|
blocksByName: { [name: string]: Block; };
|
|
blocksArray: Block[];
|
|
|
|
items: { [id: number]: Item; };
|
|
itemsByName: { [name: string]: Item; };
|
|
itemsArray: Item[];
|
|
|
|
foods: { [id: number]: Food; };
|
|
foodsByName: { [name: string]: Food; };
|
|
foodsArray: Food[];
|
|
foodsByFoodPoints: { [foodPoints: number]: Food; };
|
|
foodsBySaturation: { [saturation: number]: Food; };
|
|
|
|
biomes: { [id: number]: Biome; };
|
|
biomesArray: Biome[];
|
|
|
|
recipes: { [id: number]: Recipe; };
|
|
|
|
instruments: { [id: number]: Instrument; };
|
|
instrumentsArray: Instrument[];
|
|
|
|
materials: { [name: string]: Material };
|
|
|
|
mobs: { [id: number]: Entity; };
|
|
objects: { [id: number]: Entity; };
|
|
entitiesByName: { [name: string]: Entity; };
|
|
entitiesArray: Entity[];
|
|
|
|
enchantments: { [id: number]: Enchantment; };
|
|
enchantmentsByName: { [name: string]: Enchantment; };
|
|
enchantmentsArray: Enchantment[];
|
|
|
|
protocol: any;
|
|
protocolComments: any;
|
|
|
|
findItemOrBlockById(id: number): Block | Item;
|
|
findItemOrBlockByName(name: string): Block | Item;
|
|
|
|
windows: { [id: number]: Window; };
|
|
windowsByName: { [name: string]: Window; };
|
|
windowsArray: Window[];
|
|
|
|
effects: { [id: number]: Effect; };
|
|
effectsByName: { [name: string]: Effect; };
|
|
effectsArray: Effect[];
|
|
|
|
version: Version;
|
|
|
|
type: string;
|
|
|
|
language: { [key: string]: string };
|
|
|
|
blockLoot: { [id: number]: BlockLoot; };
|
|
blockLootByName: { [name: string]: BlockLoot; };
|
|
|
|
entityLoot: { [id: number]: EntityLoot; };
|
|
entityLootByName: { [name: string]: EntityLoot; };
|
|
}
|
|
|
|
const versions: {
|
|
[key in keyof SupportedVersions]: Version[];
|
|
};
|
|
const versionsByMinecraftVersion: VersionSet;
|
|
const preNettyVersionsByProtocolVersion: VersionSet;
|
|
const postNettyVersionsByProtocolVersion: VersionSet;
|
|
const supportedVersions: SupportedVersions;
|
|
const schemas: Schemas;
|