@hylithiumjs.com/core 1.1.5 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/types.d.ts +377 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/ui-builder.d.ts +120 -0
- package/dist/ui-builder.d.ts.map +1 -0
- package/dist/ui-builder.js +355 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./types";
|
|
2
|
+
export * from "./ui-builder";
|
|
2
3
|
import type { EventHandler, EventType, EventTitleUtil as EventTitleUtilType, MySQLManager as MySQLManagerType, TableBuilderConstructor } from "./types";
|
|
3
4
|
export declare const EventTitleUtil: EventTitleUtilType;
|
|
4
5
|
export declare const MySQL: MySQLManagerType;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACT,cAAc,IAAI,kBAAkB,EACpC,YAAY,IAAI,gBAAgB,EAChC,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAGjB,eAAO,MAAM,cAAc,EAAyC,kBAAkB,CAAC;AAGvF,eAAO,MAAM,KAAK,EAAuC,gBAAgB,CAAC;AAC1E,eAAO,MAAM,YAAY,EAAuC,uBAAuB,CAAC;AAExF,eAAO,MAAM,QAAQ,EAAE,YAAY,EAAwE,CAAC;AAE5G,wBAAgB,aAAa,CAAC,SAAS,EAAE,SAAS,IAC/B,QAAQ,OAAO,EAAE,aAAa,MAAM,EAAE,YAAY,kBAAkB,wBAOtF"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACT,cAAc,IAAI,kBAAkB,EACpC,YAAY,IAAI,gBAAgB,EAChC,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAGjB,eAAO,MAAM,cAAc,EAAyC,kBAAkB,CAAC;AAGvF,eAAO,MAAM,KAAK,EAAuC,gBAAgB,CAAC;AAC1E,eAAO,MAAM,YAAY,EAAuC,uBAAuB,CAAC;AAExF,eAAO,MAAM,QAAQ,EAAE,YAAY,EAAwE,CAAC;AAE5G,wBAAgB,aAAa,CAAC,SAAS,EAAE,SAAS,IAC/B,QAAQ,OAAO,EAAE,aAAa,MAAM,EAAE,YAAY,kBAAkB,wBAOtF"}
|
package/dist/index.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -585,6 +585,8 @@ export interface Player {
|
|
|
585
585
|
getUuid(): {
|
|
586
586
|
toString(): string;
|
|
587
587
|
};
|
|
588
|
+
getPageManager(): PageManager;
|
|
589
|
+
getHudManager(): HudManager;
|
|
588
590
|
}
|
|
589
591
|
export interface PlayerCameraAddSystem {
|
|
590
592
|
getQuery(): unknown;
|
|
@@ -5733,4 +5735,379 @@ declare global {
|
|
|
5733
5735
|
const MySQLManager: MySQLManager;
|
|
5734
5736
|
const TableBuilder: TableBuilderConstructor;
|
|
5735
5737
|
}
|
|
5738
|
+
export interface JavaSet<T> {
|
|
5739
|
+
add(e: T): boolean;
|
|
5740
|
+
clear(): void;
|
|
5741
|
+
contains(o: unknown): boolean;
|
|
5742
|
+
isEmpty(): boolean;
|
|
5743
|
+
iterator(): unknown;
|
|
5744
|
+
remove(o: unknown): boolean;
|
|
5745
|
+
size(): number;
|
|
5746
|
+
toArray(): T[];
|
|
5747
|
+
}
|
|
5748
|
+
export interface PageManager {
|
|
5749
|
+
setActiveCustomPage(arg0: PlayerRef, arg1: ScriptCustomUIPage | null): void;
|
|
5750
|
+
getActiveCustomPage(): ScriptCustomUIPage | null;
|
|
5751
|
+
}
|
|
5752
|
+
export interface HudManager {
|
|
5753
|
+
setCustomHud(arg0: PlayerRef, arg1: ScriptCustomUIHud | null): void;
|
|
5754
|
+
getCustomHud(): ScriptCustomUIHud | null;
|
|
5755
|
+
}
|
|
5756
|
+
export interface ScriptCustomUIHud {
|
|
5757
|
+
triggerShow(): void;
|
|
5758
|
+
triggerUpdate(commandBuilder: UICommandBuilder): void;
|
|
5759
|
+
triggerUpdate(commandBuilder: UICommandBuilder, clear: boolean): void;
|
|
5760
|
+
}
|
|
5761
|
+
export interface ScriptCustomUIPage {
|
|
5762
|
+
triggerRebuild(): void;
|
|
5763
|
+
triggerSendUpdate(): void;
|
|
5764
|
+
triggerSendUpdate(commandBuilder: UICommandBuilder): void;
|
|
5765
|
+
triggerSendUpdate(commandBuilder: UICommandBuilder, clear: boolean): void;
|
|
5766
|
+
triggerClose(): void;
|
|
5767
|
+
getPlayerRef(): PlayerRef;
|
|
5768
|
+
getPageLifetime(): unknown;
|
|
5769
|
+
setPageLifetime(lifetime: unknown): void;
|
|
5770
|
+
}
|
|
5771
|
+
export interface UICommandBuilder {
|
|
5772
|
+
append(path: string): UICommandBuilder;
|
|
5773
|
+
set(selector: string, value: string): UICommandBuilder;
|
|
5774
|
+
set(selector: string, value: number): UICommandBuilder;
|
|
5775
|
+
set(selector: string, value: boolean): UICommandBuilder;
|
|
5776
|
+
}
|
|
5777
|
+
export interface UIEventBuilder {
|
|
5778
|
+
on(eventName: string, callback: string): UIEventBuilder;
|
|
5779
|
+
}
|
|
5780
|
+
export interface ByteArrayCommonAsset {
|
|
5781
|
+
getName(): string;
|
|
5782
|
+
getHash(): string;
|
|
5783
|
+
}
|
|
5784
|
+
export interface ByteArrayCommonAssetConstructor {
|
|
5785
|
+
new (name: string, bytes: unknown): ByteArrayCommonAsset;
|
|
5786
|
+
new (name: string, content: string): ByteArrayCommonAsset;
|
|
5787
|
+
}
|
|
5788
|
+
export interface ScriptCustomUIHudConstructor {
|
|
5789
|
+
new (playerRef: PlayerRef, buildCallback: (cmd: UICommandBuilder) => void): ScriptCustomUIHud;
|
|
5790
|
+
}
|
|
5791
|
+
export interface ScriptCustomUIPageConstructor {
|
|
5792
|
+
new (playerRef: PlayerRef, lifetime: unknown, buildCallback: (ref: Ref, cmd: UICommandBuilder, evt: UIEventBuilder, store: unknown) => void, eventCallback?: (ref: Ref, store: unknown, rawData: string) => void, dismissCallback?: (ref: Ref, store: unknown) => void): ScriptCustomUIPage;
|
|
5793
|
+
}
|
|
5794
|
+
export interface CommonAssetModule {
|
|
5795
|
+
get(): CommonAssetModule;
|
|
5796
|
+
addCommonAsset(namespace: string, asset: ByteArrayCommonAsset): void;
|
|
5797
|
+
}
|
|
5798
|
+
export interface LivingEntity extends Entity {
|
|
5799
|
+
getInventory(): Inventory;
|
|
5800
|
+
setInventory(inventory: Inventory): Inventory;
|
|
5801
|
+
getStatMap(): EntityStatMap | null;
|
|
5802
|
+
}
|
|
5803
|
+
export interface NPCEntity extends LivingEntity {
|
|
5804
|
+
getRole(): Role | null;
|
|
5805
|
+
getRoleIndex(): number;
|
|
5806
|
+
getRoleName(): string | null;
|
|
5807
|
+
setRoleName(roleName: string): void;
|
|
5808
|
+
setRoleIndex(roleIndex: number): void;
|
|
5809
|
+
getLeashPoint(): Vector3d;
|
|
5810
|
+
setLeashPoint(leashPoint: Vector3d): void;
|
|
5811
|
+
getLeashHeading(): number;
|
|
5812
|
+
getLeashPitch(): number;
|
|
5813
|
+
saveLeashInformation(position: Vector3d, rotation: Vector3f): void;
|
|
5814
|
+
getAlarmStore(): AlarmStore;
|
|
5815
|
+
getDamageData(): DamageData;
|
|
5816
|
+
clearDamageData(): void;
|
|
5817
|
+
setToDespawn(): void;
|
|
5818
|
+
setDespawnTime(time: number): void;
|
|
5819
|
+
getDespawnTime(): number;
|
|
5820
|
+
setDespawning(despawning: boolean): void;
|
|
5821
|
+
setPlayingDespawnAnim(playingDespawnAnim: boolean): void;
|
|
5822
|
+
setDespawnRemainingSeconds(seconds: number): void;
|
|
5823
|
+
setDespawnCheckRemainingSeconds(seconds: number): void;
|
|
5824
|
+
setDespawnAnimationRemainingSeconds(seconds: number): void;
|
|
5825
|
+
setInitialModelScale(scale: number): void;
|
|
5826
|
+
getOldPosition(): Vector3d;
|
|
5827
|
+
playAnimation(ref: Ref, animationSlot: AnimationSlot, animationId: string | null, componentAccessor: ComponentAccessor): void;
|
|
5828
|
+
onFlockSetState(ref: Ref, state: string, subState: string | null, componentAccessor: ComponentAccessor): void;
|
|
5829
|
+
onFlockSetTarget(targetSlot: string, target: Ref): void;
|
|
5830
|
+
getSpawnInstant(): unknown;
|
|
5831
|
+
setSpawnInstant(instant: unknown): void;
|
|
5832
|
+
getEnvironmentIndex(): number;
|
|
5833
|
+
getSpawnConfigurationIndex(): number;
|
|
5834
|
+
isSpawnTracked(): boolean;
|
|
5835
|
+
setSpawnTracked(tracked: boolean): void;
|
|
5836
|
+
}
|
|
5837
|
+
export interface NPCEntityStatic {
|
|
5838
|
+
getComponentType(): ComponentType | null;
|
|
5839
|
+
CODEC: unknown;
|
|
5840
|
+
}
|
|
5841
|
+
export interface Role {
|
|
5842
|
+
getRoleIndex(): number;
|
|
5843
|
+
getRoleName(): string;
|
|
5844
|
+
getCombatSupport(): CombatSupport;
|
|
5845
|
+
getStateSupport(): StateSupport;
|
|
5846
|
+
getMarkedEntitySupport(): MarkedEntitySupport;
|
|
5847
|
+
getWorldSupport(): WorldSupport;
|
|
5848
|
+
getEntitySupport(): EntitySupport;
|
|
5849
|
+
getPositionCache(): PositionCache;
|
|
5850
|
+
getDebugSupport(): DebugSupport;
|
|
5851
|
+
isActivated(): boolean;
|
|
5852
|
+
isRoleChangeRequested(): boolean;
|
|
5853
|
+
canBreathe(breathingMaterial: unknown, fluidId: number): boolean;
|
|
5854
|
+
requiresLeashPosition(): boolean;
|
|
5855
|
+
setMarkedTarget(targetSlot: string, target: Ref): void;
|
|
5856
|
+
getAppearance(): string;
|
|
5857
|
+
getInitialMaxHealth(): number;
|
|
5858
|
+
getCollisionRadius(): number;
|
|
5859
|
+
isInvulnerable(): boolean;
|
|
5860
|
+
getDeathAnimationTime(): number;
|
|
5861
|
+
getDespawnAnimationTime(): number;
|
|
5862
|
+
getDropListId(): string;
|
|
5863
|
+
getDeathInteraction(): string | null;
|
|
5864
|
+
getInventorySlots(): number;
|
|
5865
|
+
getHotbarSlots(): number;
|
|
5866
|
+
getOffHandSlots(): number;
|
|
5867
|
+
getFlockSpawnTypes(): string[] | null;
|
|
5868
|
+
getFlockAllowedRoles(): string[];
|
|
5869
|
+
canLeadFlock(): boolean;
|
|
5870
|
+
isCorpseStaysInFlock(): boolean;
|
|
5871
|
+
getInertia(): number;
|
|
5872
|
+
getKnockbackScale(): number;
|
|
5873
|
+
isBreathesInAir(): boolean;
|
|
5874
|
+
isBreathesInWater(): boolean;
|
|
5875
|
+
isPickupDropOnDeath(): boolean;
|
|
5876
|
+
getBalanceAsset(): string | null;
|
|
5877
|
+
getSpawnLockTime(): number;
|
|
5878
|
+
getNameTranslationKey(): string;
|
|
5879
|
+
}
|
|
5880
|
+
export interface CombatSupport {
|
|
5881
|
+
getCanCauseDamage(attackerRef: Ref, componentAccessor: ComponentAccessor): boolean;
|
|
5882
|
+
}
|
|
5883
|
+
export interface StateSupport {
|
|
5884
|
+
setState(ref: Ref, state: string, subState: string | null, componentAccessor: ComponentAccessor): void;
|
|
5885
|
+
getState(): string | null;
|
|
5886
|
+
getSubState(): string | null;
|
|
5887
|
+
addInteraction(ref: Ref, interactionRef: Ref, componentAccessor: ComponentAccessor): void;
|
|
5888
|
+
willInteractWith(ref: Ref): boolean;
|
|
5889
|
+
}
|
|
5890
|
+
export interface MarkedEntitySupport {
|
|
5891
|
+
getMarkedTarget(targetSlot: string): Ref | null;
|
|
5892
|
+
setMarkedTarget(targetSlot: string, target: Ref): void;
|
|
5893
|
+
clearMarkedTarget(targetSlot: string): void;
|
|
5894
|
+
hasMarkedTarget(targetSlot: string): boolean;
|
|
5895
|
+
}
|
|
5896
|
+
export interface WorldSupport {
|
|
5897
|
+
getWorld(): World;
|
|
5898
|
+
}
|
|
5899
|
+
export interface EntitySupport {
|
|
5900
|
+
getDisplayName(): string | null;
|
|
5901
|
+
setDisplayName(ref: Ref, displayName: string, componentAccessor: ComponentAccessor): void;
|
|
5902
|
+
}
|
|
5903
|
+
export interface PositionCache {
|
|
5904
|
+
getPosition(): Vector3d;
|
|
5905
|
+
getRotation(): Vector3f;
|
|
5906
|
+
}
|
|
5907
|
+
export interface DebugSupport {
|
|
5908
|
+
isDebugEnabled(): boolean;
|
|
5909
|
+
setDebugEnabled(enabled: boolean): void;
|
|
5910
|
+
}
|
|
5911
|
+
export interface AlarmStore {
|
|
5912
|
+
getAlarm(alarmId: string): number;
|
|
5913
|
+
setAlarm(alarmId: string, time: number): void;
|
|
5914
|
+
removeAlarm(alarmId: string): void;
|
|
5915
|
+
hasAlarm(alarmId: string): boolean;
|
|
5916
|
+
}
|
|
5917
|
+
export interface DamageData {
|
|
5918
|
+
reset(): void;
|
|
5919
|
+
getLastDamageSource(): Ref | null;
|
|
5920
|
+
getLastDamageAmount(): number;
|
|
5921
|
+
getLastDamageTime(): number;
|
|
5922
|
+
getTotalDamageReceived(): number;
|
|
5923
|
+
}
|
|
5924
|
+
export interface AnimationSlot {
|
|
5925
|
+
ordinal(): number;
|
|
5926
|
+
name(): string;
|
|
5927
|
+
}
|
|
5928
|
+
export interface AnimationSlotEnum {
|
|
5929
|
+
Action: AnimationSlot;
|
|
5930
|
+
Base: AnimationSlot;
|
|
5931
|
+
Emote: AnimationSlot;
|
|
5932
|
+
values(): AnimationSlot[];
|
|
5933
|
+
valueOf(name: string): AnimationSlot;
|
|
5934
|
+
}
|
|
5935
|
+
export interface NPCPlugin {
|
|
5936
|
+
get(): NPCPlugin;
|
|
5937
|
+
getIndex(builderName: string): number;
|
|
5938
|
+
getName(builderIndex: number): string | null;
|
|
5939
|
+
hasRoleName(roleName: string): boolean;
|
|
5940
|
+
validateSpawnableRole(roleName: string): void;
|
|
5941
|
+
getRoleTemplateNames(spawnableOnly: boolean): string[];
|
|
5942
|
+
tryGetCachedValidRole(roleIndex: number): Builder | null;
|
|
5943
|
+
getRoleBuilderInfo(roleIndex: number): BuilderInfo | null;
|
|
5944
|
+
spawnNPC(store: unknown, npcType: string, groupType: string | null, position: Vector3d, rotation: Vector3f): JavaPair | null;
|
|
5945
|
+
spawnEntity(store: unknown, roleIndex: number, position: Vector3d, rotation: Vector3f | null, spawnModel: Model | null, postSpawn: TriConsumer | null): JavaPair | null;
|
|
5946
|
+
getBlackboardResourceType(): unknown;
|
|
5947
|
+
getNpcSpatialResource(): unknown;
|
|
5948
|
+
getAttitudeMap(): AttitudeMap;
|
|
5949
|
+
getItemAttitudeMap(): ItemAttitudeMap;
|
|
5950
|
+
getBuilderManager(): BuilderManager;
|
|
5951
|
+
getBeaconSupportComponentType(): ComponentType;
|
|
5952
|
+
getNpcBlockEventSupportComponentType(): ComponentType;
|
|
5953
|
+
getNpcEntityEventSupportComponentType(): ComponentType;
|
|
5954
|
+
getTimersComponentType(): ComponentType;
|
|
5955
|
+
getStateEvaluatorComponentType(): ComponentType;
|
|
5956
|
+
getValueStoreComponentType(): ComponentType;
|
|
5957
|
+
}
|
|
5958
|
+
export interface NPCPluginStatic {
|
|
5959
|
+
get(): NPCPlugin;
|
|
5960
|
+
reloadNPCsWithRole(roleIndex: number): void;
|
|
5961
|
+
buildRole(roleBuilder: Builder, builderInfo: BuilderInfo, builderSupport: BuilderSupport, roleIndex: number): Role;
|
|
5962
|
+
}
|
|
5963
|
+
export interface INonPlayerCharacter {
|
|
5964
|
+
getRole(): Role | null;
|
|
5965
|
+
getRoleIndex(): number;
|
|
5966
|
+
}
|
|
5967
|
+
export interface Builder {
|
|
5968
|
+
build2(builderSupport: BuilderSupport): unknown;
|
|
5969
|
+
getBuilderParameters(): unknown;
|
|
5970
|
+
category(): unknown;
|
|
5971
|
+
isSpawnable(): boolean;
|
|
5972
|
+
}
|
|
5973
|
+
export interface BuilderInfo {
|
|
5974
|
+
getKeyName(): string;
|
|
5975
|
+
getBuilder(): Builder;
|
|
5976
|
+
isValid(): boolean;
|
|
5977
|
+
isValidated(): boolean;
|
|
5978
|
+
setNeedsReload(): void;
|
|
5979
|
+
}
|
|
5980
|
+
export interface BuilderSupport {
|
|
5981
|
+
setScope(scope: unknown): void;
|
|
5982
|
+
setGlobalScope(scope: unknown): void;
|
|
5983
|
+
}
|
|
5984
|
+
export interface BuilderManager {
|
|
5985
|
+
getIndex(builderName: string): number;
|
|
5986
|
+
lookupName(builderIndex: number): string | null;
|
|
5987
|
+
tryGetCachedValidRole(roleIndex: number): Builder | null;
|
|
5988
|
+
tryGetBuilderInfo(builderIndex: number): BuilderInfo | null;
|
|
5989
|
+
getCachedBuilderInfo(roleIndex: number, category: unknown): BuilderInfo;
|
|
5990
|
+
validateBuilder(builderInfo: BuilderInfo): boolean;
|
|
5991
|
+
forceValidation(builderIndex: number): void;
|
|
5992
|
+
}
|
|
5993
|
+
export interface Blackboard {
|
|
5994
|
+
getValue(key: string): unknown;
|
|
5995
|
+
setValue(key: string, value: unknown): void;
|
|
5996
|
+
hasValue(key: string): boolean;
|
|
5997
|
+
removeValue(key: string): void;
|
|
5998
|
+
}
|
|
5999
|
+
export interface AttitudeMap {
|
|
6000
|
+
getAttitude(groupIndex: number, targetGroupIndex: number): number;
|
|
6001
|
+
getAttitudeGroupCount(): number;
|
|
6002
|
+
}
|
|
6003
|
+
export interface ItemAttitudeMap {
|
|
6004
|
+
getAttitude(groupIndex: number, itemIndex: number): number;
|
|
6005
|
+
getAttitudeGroupCount(): number;
|
|
6006
|
+
}
|
|
6007
|
+
export interface Model {
|
|
6008
|
+
getId(): string;
|
|
6009
|
+
getModelAssetId(): string;
|
|
6010
|
+
getScale(): number;
|
|
6011
|
+
getRandomAttachmentIds(): string[] | null;
|
|
6012
|
+
toReference(): unknown;
|
|
6013
|
+
}
|
|
6014
|
+
export interface ModelStatic {
|
|
6015
|
+
createScaledModel(modelAsset: ModelAsset, scale: number, randomAttachmentIds: string[] | null): Model;
|
|
6016
|
+
}
|
|
6017
|
+
export interface ModelAsset {
|
|
6018
|
+
getId(): string;
|
|
6019
|
+
}
|
|
6020
|
+
export interface JavaPair {
|
|
6021
|
+
first(): unknown;
|
|
6022
|
+
second(): unknown;
|
|
6023
|
+
}
|
|
6024
|
+
export interface JavaPairStatic {
|
|
6025
|
+
of(first: unknown, second: unknown): JavaPair;
|
|
6026
|
+
}
|
|
6027
|
+
export type TriConsumer = (a: unknown, b: unknown, c: unknown) => void;
|
|
6028
|
+
export interface FlockPlugin {
|
|
6029
|
+
get(): FlockPlugin;
|
|
6030
|
+
trySpawnFlock(npcRef: Ref, npcComponent: NPCEntity, store: unknown, roleIndex: number, position: Vector3d, rotation: Vector3f, flockDefinition: FlockAsset | null, postSpawn: TriConsumer | null): void;
|
|
6031
|
+
}
|
|
6032
|
+
export interface FlockPluginStatic {
|
|
6033
|
+
get(): FlockPlugin;
|
|
6034
|
+
trySpawnFlock(npcRef: Ref, npcComponent: NPCEntity, store: unknown, roleIndex: number, position: Vector3d, rotation: Vector3f, flockDefinition: FlockAsset | null, postSpawn: TriConsumer | null): void;
|
|
6035
|
+
}
|
|
6036
|
+
export interface FlockAsset {
|
|
6037
|
+
getId(): string;
|
|
6038
|
+
}
|
|
6039
|
+
export interface SpawningPlugin {
|
|
6040
|
+
get(): SpawningPlugin;
|
|
6041
|
+
}
|
|
6042
|
+
export interface SpawningPluginStatic {
|
|
6043
|
+
get(): SpawningPlugin;
|
|
6044
|
+
}
|
|
6045
|
+
export interface NPCSpawnEvent {
|
|
6046
|
+
toString(): string;
|
|
6047
|
+
getNpcRef(): Ref;
|
|
6048
|
+
getNpcEntity(): NPCEntity;
|
|
6049
|
+
getStore(): unknown;
|
|
6050
|
+
getRoleIndex(): number;
|
|
6051
|
+
getRoleName(): string;
|
|
6052
|
+
getPosition(): Vector3d;
|
|
6053
|
+
getRotation(): Vector3f;
|
|
6054
|
+
isCancelled(): boolean;
|
|
6055
|
+
setCancelled(cancelled: boolean): void;
|
|
6056
|
+
}
|
|
6057
|
+
export interface NPCDespawnEvent {
|
|
6058
|
+
toString(): string;
|
|
6059
|
+
getNpcRef(): Ref;
|
|
6060
|
+
getNpcEntity(): NPCEntity;
|
|
6061
|
+
getStore(): unknown;
|
|
6062
|
+
getRoleIndex(): number;
|
|
6063
|
+
getRoleName(): string;
|
|
6064
|
+
}
|
|
6065
|
+
export interface NPCRoleChangeEvent {
|
|
6066
|
+
toString(): string;
|
|
6067
|
+
getNpcRef(): Ref;
|
|
6068
|
+
getNpcEntity(): NPCEntity;
|
|
6069
|
+
getOldRoleIndex(): number;
|
|
6070
|
+
getNewRoleIndex(): number;
|
|
6071
|
+
getOldRoleName(): string;
|
|
6072
|
+
getNewRoleName(): string;
|
|
6073
|
+
}
|
|
6074
|
+
export interface NPCDamageEvent {
|
|
6075
|
+
toString(): string;
|
|
6076
|
+
getNpcRef(): Ref;
|
|
6077
|
+
getNpcEntity(): NPCEntity;
|
|
6078
|
+
getDamageSource(): Ref | null;
|
|
6079
|
+
getDamageAmount(): number;
|
|
6080
|
+
isCancelled(): boolean;
|
|
6081
|
+
setCancelled(cancelled: boolean): void;
|
|
6082
|
+
setDamageAmount(amount: number): void;
|
|
6083
|
+
}
|
|
6084
|
+
export interface NPCDeathEvent {
|
|
6085
|
+
toString(): string;
|
|
6086
|
+
getNpcRef(): Ref;
|
|
6087
|
+
getNpcEntity(): NPCEntity;
|
|
6088
|
+
getKillerRef(): Ref | null;
|
|
6089
|
+
}
|
|
6090
|
+
declare global {
|
|
6091
|
+
const ByteArrayCommonAsset: ByteArrayCommonAssetConstructor;
|
|
6092
|
+
const ScriptCustomUIHud: ScriptCustomUIHudConstructor;
|
|
6093
|
+
const ScriptCustomUIPage: ScriptCustomUIPageConstructor;
|
|
6094
|
+
const UICommandBuilder: {
|
|
6095
|
+
new (): UICommandBuilder;
|
|
6096
|
+
};
|
|
6097
|
+
const UIEventBuilder: {
|
|
6098
|
+
new (): UIEventBuilder;
|
|
6099
|
+
};
|
|
6100
|
+
const CommonAssetModule: CommonAssetModule;
|
|
6101
|
+
const CustomPageLifetime: {
|
|
6102
|
+
PERSISTENT: unknown;
|
|
6103
|
+
TEMPORARY: unknown;
|
|
6104
|
+
};
|
|
6105
|
+
const NPCPlugin: NPCPluginStatic;
|
|
6106
|
+
const NPCEntity: NPCEntityStatic;
|
|
6107
|
+
const FlockPlugin: FlockPluginStatic;
|
|
6108
|
+
const SpawningPlugin: SpawningPluginStatic;
|
|
6109
|
+
const AnimationSlot: AnimationSlotEnum;
|
|
6110
|
+
const Model: ModelStatic;
|
|
6111
|
+
const Pair: JavaPairStatic;
|
|
6112
|
+
}
|
|
5736
6113
|
//# sourceMappingURL=types.d.ts.map
|