Fix skin part not being exported
Some checks failed
Publish JS SDK / docker (push) Has been cancelled
Some checks failed
Publish JS SDK / docker (push) Has been cancelled
This commit is contained in:
parent
bb81be1e28
commit
fc382fad27
2
JS-SDK/src/index.d.ts
vendored
2
JS-SDK/src/index.d.ts
vendored
@ -1,5 +1,5 @@
|
||||
export * from "./types/mojang";
|
||||
export * from "./types/player";
|
||||
export * from "./types/player/player";
|
||||
export * from "./types/server/bedrock-server";
|
||||
export * from "./types/server/java-server";
|
||||
export * from "./types/server/server";
|
||||
|
@ -1,2 +1,3 @@
|
||||
export * from "@/lib/restfulmc";
|
||||
export * from "@/types/error";
|
||||
export * from "@/types/player/skin-part";
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { WebRequest } from "@/lib/webRequest";
|
||||
import { WebRequest } from "@/lib/web-request";
|
||||
import { MojangServerStatus } from "@/types/mojang";
|
||||
import { CachedPlayer, SkinPart } from "@/types/player";
|
||||
import { CachedPlayer } from "@/types/player/player";
|
||||
import { SkinPart } from "@/types/player/skin-part";
|
||||
import { CachedBedrockMinecraftServer } from "@/types/server/bedrock-server";
|
||||
import { CachedJavaMinecraftServer } from "@/types/server/java-server";
|
||||
import { ServerPlatform } from "@/types/server/server";
|
||||
|
@ -1,3 +1,5 @@
|
||||
import { SkinPart } from "@/types/player/skin-part";
|
||||
|
||||
/**
|
||||
* A cacheable {@link Player}.
|
||||
*/
|
||||
@ -93,28 +95,6 @@ enum SkinModel {
|
||||
SLIM,
|
||||
}
|
||||
|
||||
/**
|
||||
* A part of a skin texture.
|
||||
*/
|
||||
export enum SkinPart {
|
||||
HEAD_OVERLAY_FACE,
|
||||
HEAD_TOP,
|
||||
HEAD,
|
||||
FACE,
|
||||
HEAD_LEFT,
|
||||
HEAD_RIGHT,
|
||||
HEAD_BOTTOM,
|
||||
HEAD_BACK,
|
||||
BODY_FRONT,
|
||||
BODY,
|
||||
LEFT_ARM_TOP,
|
||||
RIGHT_ARM_TOP,
|
||||
LEFT_ARM_FRONT,
|
||||
RIGHT_ARM_FRONT,
|
||||
LEFT_LEG_FRONT,
|
||||
RIGHT_LEG_FRONT,
|
||||
}
|
||||
|
||||
/**
|
||||
* A cape for a {@link Player}.
|
||||
*/
|
21
JS-SDK/src/types/player/skin-part.ts
Normal file
21
JS-SDK/src/types/player/skin-part.ts
Normal file
@ -0,0 +1,21 @@
|
||||
/**
|
||||
* A part of a skin texture.
|
||||
*/
|
||||
export enum SkinPart {
|
||||
HEAD_OVERLAY_FACE,
|
||||
HEAD_TOP,
|
||||
HEAD,
|
||||
FACE,
|
||||
HEAD_LEFT,
|
||||
HEAD_RIGHT,
|
||||
HEAD_BOTTOM,
|
||||
HEAD_BACK,
|
||||
BODY_FRONT,
|
||||
BODY,
|
||||
LEFT_ARM_TOP,
|
||||
RIGHT_ARM_TOP,
|
||||
LEFT_ARM_FRONT,
|
||||
RIGHT_ARM_FRONT,
|
||||
LEFT_LEG_FRONT,
|
||||
RIGHT_LEG_FRONT,
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
import { getPlayer, getSkinPart } from "@/index";
|
||||
import { RestfulMCAPIError } from "@/types/error";
|
||||
import { CachedPlayer, SkinPart } from "@/types/player";
|
||||
import { CachedPlayer } from "@/types/player/player";
|
||||
import { SkinPart } from "@/types/player/skin-part";
|
||||
import { expect, test } from "bun:test";
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user