@hylithiumjs.com/core 1.2.3 → 1.2.5
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/types.d.ts +1058 -591
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -348,8 +348,8 @@ export interface PlayerInteractEvent {
|
|
|
348
348
|
getActionType(): InteractionType;
|
|
349
349
|
getItemInHand(): ItemStack;
|
|
350
350
|
getTargetBlock(): Vector3i;
|
|
351
|
-
getTargetRef(): Ref
|
|
352
|
-
getPlayerRef(): Ref
|
|
351
|
+
getTargetRef(): Ref<EntityStore>;
|
|
352
|
+
getPlayerRef(): Ref<EntityStore>;
|
|
353
353
|
getPlayer(): Player;
|
|
354
354
|
}
|
|
355
355
|
export interface PlayerCraftEvent {
|
|
@@ -794,12 +794,15 @@ export interface World {
|
|
|
794
794
|
getPlayers(): Player[];
|
|
795
795
|
getPlayerCount(): number;
|
|
796
796
|
getPlayerRefs(): PlayerRef[];
|
|
797
|
+
getTps(): number;
|
|
797
798
|
sendMessage(arg0: Message): void;
|
|
798
799
|
getBlockType(arg0: Vector3i): BlockType;
|
|
799
800
|
getBlockType(arg0: number, arg1: number, arg2: number): BlockType;
|
|
800
801
|
setBlock(arg0: number, arg1: number, arg2: number, arg3: string, arg4: number): void;
|
|
801
802
|
setBlock(arg0: number, arg1: number, arg2: number, arg3: string): void;
|
|
802
803
|
breakBlock(arg0: number, arg1: number, arg2: number, arg3: number): boolean;
|
|
804
|
+
getEntityStore(): EntityStoreWrapper;
|
|
805
|
+
execute(task: () => void): void;
|
|
803
806
|
}
|
|
804
807
|
export interface Universe {
|
|
805
808
|
get(): Universe;
|
|
@@ -904,11 +907,15 @@ export interface BlockState {
|
|
|
904
907
|
getBlockY(): number;
|
|
905
908
|
getBlockZ(): number;
|
|
906
909
|
}
|
|
907
|
-
export interface Holder {
|
|
908
|
-
getComponent(arg0: ComponentType):
|
|
910
|
+
export interface Holder<T = unknown> {
|
|
911
|
+
getComponent<C>(arg0: ComponentType<T, C>): C | null;
|
|
912
|
+
addComponent<C>(componentType: ComponentType<T, C>, component: C): void;
|
|
913
|
+
ensureComponent<C>(componentType: ComponentType<T, C>): void;
|
|
909
914
|
}
|
|
910
|
-
export interface Ref {
|
|
915
|
+
export interface Ref<T = unknown> {
|
|
911
916
|
isValid(): boolean;
|
|
917
|
+
getStore(): Store<T>;
|
|
918
|
+
getIndex(): number;
|
|
912
919
|
}
|
|
913
920
|
export interface Vector3i {
|
|
914
921
|
new (): Vector3i;
|
|
@@ -1051,9 +1058,10 @@ export interface ItemStackTransaction {
|
|
|
1051
1058
|
}
|
|
1052
1059
|
export interface ItemStackSlotTransaction {
|
|
1053
1060
|
}
|
|
1054
|
-
export interface ComponentType {
|
|
1061
|
+
export interface ComponentType<S = unknown, C = unknown> {
|
|
1055
1062
|
}
|
|
1056
|
-
export interface ComponentAccessor {
|
|
1063
|
+
export interface ComponentAccessor<S = unknown> {
|
|
1064
|
+
getComponent<C>(ref: Ref<S>, componentType: ComponentType<S, C>): C | null;
|
|
1057
1065
|
}
|
|
1058
1066
|
export interface DisconnectReason {
|
|
1059
1067
|
}
|
|
@@ -1092,7 +1100,7 @@ export interface DefaultAssetMap {
|
|
|
1092
1100
|
export interface AssetStore {
|
|
1093
1101
|
getAssetMap(): DefaultAssetMap;
|
|
1094
1102
|
}
|
|
1095
|
-
export type EventType = "BootEvent" | "ShutdownEvent" | "PrepareUniverseEvent" | "PlayerConnectEvent" | "PlayerDisconnectEvent" | "PlayerChatEvent" | "PlayerReadyEvent" | "PlayerInteractEvent" | "PlayerCraftEvent" | "PlayerMouseButtonEvent" | "PlayerMouseMotionEvent" | "PlayerSetupConnectEvent" | "PlayerSetupDisconnectEvent" | "AddPlayerToWorldEvent" | "DrainPlayerFromWorldEvent" | "PlayerRefEvent" | "PlayerEvent" | "EntityEvent" | "EntityRemoveEvent" | "LivingEntityInventoryChangeEvent" | "LivingEntityUseBlockEvent" | "BreakBlockEvent" | "PlaceBlockEvent" | "DamageBlockEvent" | "UseBlockEvent" | "DropItemEvent" | "InteractivelyPickupItemEvent" | "ChangeGameModeEvent" | "CraftRecipeEvent" | "DiscoverZoneEvent" | "SwitchActiveSlotEvent" | "PlayerPermissionChangeEvent" | "GroupPermissionChangeEvent" | "PlayerGroupEvent";
|
|
1103
|
+
export type EventType = "BootEvent" | "ShutdownEvent" | "PrepareUniverseEvent" | "PlayerConnectEvent" | "PlayerDisconnectEvent" | "PlayerChatEvent" | "PlayerReadyEvent" | "PlayerInteractEvent" | "PlayerCraftEvent" | "PlayerMouseButtonEvent" | "PlayerMouseMotionEvent" | "PlayerSetupConnectEvent" | "PlayerSetupDisconnectEvent" | "AddPlayerToWorldEvent" | "DrainPlayerFromWorldEvent" | "PlayerRefEvent" | "PlayerEvent" | "EntityEvent" | "EntityRemoveEvent" | "LivingEntityInventoryChangeEvent" | "LivingEntityUseBlockEvent" | "BreakBlockEvent" | "PlaceBlockEvent" | "DamageBlockEvent" | "UseBlockEvent" | "DropItemEvent" | "InteractivelyPickupItemEvent" | "ChangeGameModeEvent" | "CraftRecipeEvent" | "DiscoverZoneEvent" | "SwitchActiveSlotEvent" | "PlayerPermissionChangeEvent" | "GroupPermissionChangeEvent" | "PlayerGroupEvent" | "NPCSpawnEvent" | "NPCDespawnEvent" | "NPCRoleChangeEvent" | "NPCDamageEvent" | "NPCDeathEvent";
|
|
1096
1104
|
export type HexColor = `#${string}`;
|
|
1097
1105
|
export declare const Colors: {
|
|
1098
1106
|
readonly RED: HexColor;
|
|
@@ -1137,10 +1145,20 @@ export interface ScriptLogger {
|
|
|
1137
1145
|
severe(message: string): void;
|
|
1138
1146
|
fine(message: string): void;
|
|
1139
1147
|
}
|
|
1148
|
+
export interface CommandSender {
|
|
1149
|
+
getDisplayName(): string;
|
|
1150
|
+
getUuid(): unknown;
|
|
1151
|
+
sendMessage(message: Message): void;
|
|
1152
|
+
}
|
|
1140
1153
|
export interface CommandContext {
|
|
1141
1154
|
sendMessage(message: string): void;
|
|
1155
|
+
sendFormattedMessage(message: Message): void;
|
|
1142
1156
|
getSenderName(): string;
|
|
1143
1157
|
getInput(): string;
|
|
1158
|
+
isPlayer(): boolean;
|
|
1159
|
+
getSender(): CommandSender;
|
|
1160
|
+
getPlayer(): Player | null;
|
|
1161
|
+
getPlayerRef(): Ref<EntityStore> | null;
|
|
1144
1162
|
}
|
|
1145
1163
|
export interface ScriptCommandRegistry {
|
|
1146
1164
|
register(name: string, description: string, callback: (ctx: CommandContext) => void): void;
|
|
@@ -1323,13 +1341,14 @@ export interface PlayerRef {
|
|
|
1323
1341
|
getTransform(): Transform;
|
|
1324
1342
|
getWorldUuid(): {
|
|
1325
1343
|
toString(): string;
|
|
1326
|
-
};
|
|
1344
|
+
} | null;
|
|
1327
1345
|
getHeadRotation(): Vector3f;
|
|
1328
1346
|
updatePosition(world: World, transform: Transform, headRotation: Vector3f): void;
|
|
1329
1347
|
getPacketHandler(): PacketHandler;
|
|
1330
1348
|
referToServer(host: string, port: number): void;
|
|
1331
1349
|
referToServer(host: string, port: number, data: unknown[]): void;
|
|
1332
1350
|
sendMessage(message: Message): void;
|
|
1351
|
+
getReference(): Ref<EntityStore> | null;
|
|
1333
1352
|
}
|
|
1334
1353
|
export interface DynamicLight {
|
|
1335
1354
|
new (): DynamicLight;
|
|
@@ -1449,7 +1468,8 @@ export interface DisplayNameComponent {
|
|
|
1449
1468
|
}
|
|
1450
1469
|
export interface TransformComponent {
|
|
1451
1470
|
new (): TransformComponent;
|
|
1452
|
-
|
|
1471
|
+
new (position: Vector3d, rotation: Vector3f): TransformComponent;
|
|
1472
|
+
getComponentType(): ComponentType<EntityStore, TransformComponent>;
|
|
1453
1473
|
getPosition(): Vector3d;
|
|
1454
1474
|
setPosition(position: Vector3d): void;
|
|
1455
1475
|
teleportPosition(position: Vector3d): void;
|
|
@@ -5118,275 +5138,918 @@ export interface JavetCallMetrics {
|
|
|
5118
5138
|
getAvgTimeMs(): number;
|
|
5119
5139
|
nanoTime(): number;
|
|
5120
5140
|
}
|
|
5121
|
-
export interface
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
* @param playerRef Referência do Jogador que deseja mostrar o título.
|
|
5153
|
-
* @param primaryTitle O título principal.
|
|
5154
|
-
* @param secondaryTitle O título secundário.
|
|
5155
|
-
* @param isMajor Se o título é major.
|
|
5156
|
-
* @param icon O ícone a ser exibido.
|
|
5157
|
-
* @param duration A duração do título.
|
|
5158
|
-
* @param fadeInDuration A duração do fade in.
|
|
5159
|
-
* @param fadeOutDuration A duração do fade out.
|
|
5160
|
-
*/
|
|
5161
|
-
showEventTitleToPlayer(playerRef: PlayerRef, primaryTitle: Message, secondaryTitle: Message, isMajor: boolean, icon: string | null, duration: number, fadeInDuration: number, fadeOutDuration: number): void;
|
|
5162
|
-
/**
|
|
5163
|
-
* Shows an event title to a specific player with default durations.
|
|
5164
|
-
*/
|
|
5165
|
-
showEventTitleToPlayer(playerRef: PlayerRef, primaryTitle: Message, secondaryTitle: Message, isMajor: boolean): void;
|
|
5166
|
-
/**
|
|
5167
|
-
* Hides the event title from a specific player.
|
|
5168
|
-
*/
|
|
5169
|
-
hideEventTitleFromPlayer(playerRef: PlayerRef, fadeOutDuration: number): void;
|
|
5141
|
+
export interface EntityStore {
|
|
5142
|
+
getWorld(): World;
|
|
5143
|
+
getStore(): Store<EntityStore>;
|
|
5144
|
+
getRefFromUUID(uuid: {
|
|
5145
|
+
toString(): string;
|
|
5146
|
+
}): Ref<EntityStore> | null;
|
|
5147
|
+
getRefFromNetworkId(networkId: number): Ref<EntityStore> | null;
|
|
5148
|
+
}
|
|
5149
|
+
export interface Store<T> {
|
|
5150
|
+
getExternalData(): T;
|
|
5151
|
+
getEntityCount(): number;
|
|
5152
|
+
getComponent<C>(ref: Ref<T>, componentType: ComponentType<T, C>): C | null;
|
|
5153
|
+
ensureAndGetComponent<C>(ref: Ref<T>, componentType: ComponentType<T, C>): C;
|
|
5154
|
+
addComponent<C>(ref: Ref<T>, componentType: ComponentType<T, C>): C;
|
|
5155
|
+
addComponent<C>(ref: Ref<T>, componentType: ComponentType<T, C>, component: C): void;
|
|
5156
|
+
putComponent<C>(ref: Ref<T>, componentType: ComponentType<T, C>, component: C): void;
|
|
5157
|
+
removeComponent<C>(ref: Ref<T>, componentType: ComponentType<T, C>): void;
|
|
5158
|
+
getArchetype(ref: Ref<T>): unknown;
|
|
5159
|
+
addEntity(holder: Holder<T>, addReason: AddReason): Ref<T> | null;
|
|
5160
|
+
removeEntity(ref: Ref<T>, removeReason: RemoveReason): void;
|
|
5161
|
+
forEachChunk<C>(componentType: ComponentType<T, C>, callback: (archetypeChunk: ArchetypeChunk<T>, commandBuffer: CommandBuffer<T>) => void): void;
|
|
5162
|
+
forEachEntityParallel<C>(componentType: ComponentType<T, C>, callback: (index: number, archetypeChunk: ArchetypeChunk<T>, commandBuffer: CommandBuffer<T>) => void): void;
|
|
5163
|
+
getResource<R>(resourceType: ResourceType<T, R>): R;
|
|
5164
|
+
}
|
|
5165
|
+
export interface EntityStoreWrapper {
|
|
5166
|
+
getStore(): Store<EntityStore>;
|
|
5167
|
+
}
|
|
5168
|
+
export interface ArchetypeChunk<T> {
|
|
5169
|
+
size(): number;
|
|
5170
|
+
getComponent<C>(index: number, componentType: ComponentType<T, C>): C | null;
|
|
5171
|
+
getReferenceTo(index: number): Ref<T>;
|
|
5170
5172
|
}
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5173
|
+
export interface CommandBuffer<T> {
|
|
5174
|
+
getComponent<C>(ref: Ref<T>, componentType: ComponentType<T, C>): C | null;
|
|
5175
|
+
putComponent<C>(ref: Ref<T>, componentType: ComponentType<T, C>, component: C): void;
|
|
5176
|
+
removeComponent<C>(ref: Ref<T>, componentType: ComponentType<T, C>): void;
|
|
5177
|
+
addComponent<C>(ref: Ref<T>, componentType: ComponentType<T, C>, component: C): void;
|
|
5178
|
+
}
|
|
5179
|
+
export interface AddReason {
|
|
5180
|
+
name(): string;
|
|
5181
|
+
}
|
|
5182
|
+
export interface AddReasonEnum {
|
|
5183
|
+
SPAWN: AddReason;
|
|
5184
|
+
LOAD: AddReason;
|
|
5185
|
+
EXTERNAL: AddReason;
|
|
5186
|
+
WORLDGEN: AddReason;
|
|
5187
|
+
}
|
|
5188
|
+
export interface RemoveReason {
|
|
5189
|
+
name(): string;
|
|
5190
|
+
}
|
|
5191
|
+
export interface RemoveReasonEnum {
|
|
5192
|
+
DESPAWN: RemoveReason;
|
|
5193
|
+
UNLOAD: RemoveReason;
|
|
5194
|
+
EXTERNAL: RemoveReason;
|
|
5195
|
+
}
|
|
5196
|
+
export interface Area {
|
|
5197
|
+
x: number;
|
|
5198
|
+
y: number;
|
|
5199
|
+
width: number;
|
|
5200
|
+
height: number;
|
|
5201
|
+
}
|
|
5202
|
+
export interface Anchor {
|
|
5203
|
+
width: number | null;
|
|
5204
|
+
height: number | null;
|
|
5205
|
+
top: number | null;
|
|
5206
|
+
bottom: number | null;
|
|
5207
|
+
left: number | null;
|
|
5208
|
+
right: number | null;
|
|
5209
|
+
full: number | null;
|
|
5210
|
+
horizontal: number | null;
|
|
5211
|
+
vertical: number | null;
|
|
5212
|
+
}
|
|
5213
|
+
export interface LocalizableString {
|
|
5214
|
+
key: string;
|
|
5215
|
+
params: JavaMap<string, string> | null;
|
|
5216
|
+
}
|
|
5217
|
+
export interface PatchStyle {
|
|
5218
|
+
texturePath: string;
|
|
5219
|
+
border: number | null;
|
|
5220
|
+
horizontalBorder: number | null;
|
|
5221
|
+
verticalBorder: number | null;
|
|
5222
|
+
}
|
|
5223
|
+
export interface ItemGridSlot {
|
|
5224
|
+
slotIndex: number;
|
|
5225
|
+
itemStack: ItemStack | null;
|
|
5226
|
+
}
|
|
5227
|
+
export interface DropdownEntryInfo {
|
|
5228
|
+
label: string;
|
|
5229
|
+
value: string;
|
|
5230
|
+
}
|
|
5231
|
+
export interface CustomUIEventBindingType {
|
|
5232
|
+
getValue(): number;
|
|
5233
|
+
name(): string;
|
|
5234
|
+
}
|
|
5235
|
+
export interface CustomUIEventBindingTypeEnum {
|
|
5236
|
+
Activating: CustomUIEventBindingType;
|
|
5237
|
+
RightClicking: CustomUIEventBindingType;
|
|
5238
|
+
DoubleClicking: CustomUIEventBindingType;
|
|
5239
|
+
MouseEntered: CustomUIEventBindingType;
|
|
5240
|
+
MouseExited: CustomUIEventBindingType;
|
|
5241
|
+
ValueChanged: CustomUIEventBindingType;
|
|
5242
|
+
ElementReordered: CustomUIEventBindingType;
|
|
5243
|
+
Validating: CustomUIEventBindingType;
|
|
5244
|
+
Dismissing: CustomUIEventBindingType;
|
|
5245
|
+
FocusGained: CustomUIEventBindingType;
|
|
5246
|
+
FocusLost: CustomUIEventBindingType;
|
|
5247
|
+
KeyDown: CustomUIEventBindingType;
|
|
5248
|
+
MouseButtonReleased: CustomUIEventBindingType;
|
|
5249
|
+
SlotClicking: CustomUIEventBindingType;
|
|
5250
|
+
SlotDoubleClicking: CustomUIEventBindingType;
|
|
5251
|
+
SlotMouseEntered: CustomUIEventBindingType;
|
|
5252
|
+
SlotMouseExited: CustomUIEventBindingType;
|
|
5253
|
+
DragCancelled: CustomUIEventBindingType;
|
|
5254
|
+
Dropped: CustomUIEventBindingType;
|
|
5255
|
+
SlotMouseDragCompleted: CustomUIEventBindingType;
|
|
5256
|
+
SlotMouseDragExited: CustomUIEventBindingType;
|
|
5257
|
+
SlotClickReleaseWhileDragging: CustomUIEventBindingType;
|
|
5258
|
+
SlotClickPressWhileDragging: CustomUIEventBindingType;
|
|
5259
|
+
SelectedTabChanged: CustomUIEventBindingType;
|
|
5260
|
+
VALUES: CustomUIEventBindingType[];
|
|
5261
|
+
fromValue(value: number): CustomUIEventBindingType;
|
|
5262
|
+
}
|
|
5263
|
+
export interface CustomPageLifetime {
|
|
5264
|
+
getValue(): number;
|
|
5265
|
+
name(): string;
|
|
5266
|
+
}
|
|
5267
|
+
export interface CustomPageLifetimeEnum {
|
|
5268
|
+
CantClose: CustomPageLifetime;
|
|
5269
|
+
CanDismiss: CustomPageLifetime;
|
|
5270
|
+
CanDismissOrCloseThroughInteraction: CustomPageLifetime;
|
|
5271
|
+
VALUES: CustomPageLifetime[];
|
|
5272
|
+
fromValue(value: number): CustomPageLifetime;
|
|
5273
|
+
}
|
|
5274
|
+
export interface CustomUICommandType {
|
|
5275
|
+
getValue(): number;
|
|
5276
|
+
name(): string;
|
|
5277
|
+
}
|
|
5278
|
+
export interface CustomUICommandTypeEnum {
|
|
5279
|
+
Clear: CustomUICommandType;
|
|
5280
|
+
Remove: CustomUICommandType;
|
|
5281
|
+
Append: CustomUICommandType;
|
|
5282
|
+
AppendInline: CustomUICommandType;
|
|
5283
|
+
InsertBefore: CustomUICommandType;
|
|
5284
|
+
InsertBeforeInline: CustomUICommandType;
|
|
5285
|
+
Set: CustomUICommandType;
|
|
5286
|
+
VALUES: CustomUICommandType[];
|
|
5287
|
+
fromValue(value: number): CustomUICommandType;
|
|
5288
|
+
}
|
|
5289
|
+
export interface HudComponent {
|
|
5290
|
+
getValue(): number;
|
|
5291
|
+
name(): string;
|
|
5292
|
+
}
|
|
5293
|
+
export interface HudComponentEnum {
|
|
5294
|
+
Hotbar: HudComponent;
|
|
5295
|
+
StatusIcons: HudComponent;
|
|
5296
|
+
Reticle: HudComponent;
|
|
5297
|
+
Chat: HudComponent;
|
|
5298
|
+
Requests: HudComponent;
|
|
5299
|
+
Notifications: HudComponent;
|
|
5300
|
+
KillFeed: HudComponent;
|
|
5301
|
+
InputBindings: HudComponent;
|
|
5302
|
+
PlayerList: HudComponent;
|
|
5303
|
+
EventTitle: HudComponent;
|
|
5304
|
+
Compass: HudComponent;
|
|
5305
|
+
ObjectivePanel: HudComponent;
|
|
5306
|
+
PortalPanel: HudComponent;
|
|
5307
|
+
BuilderToolsLegend: HudComponent;
|
|
5308
|
+
Speedometer: HudComponent;
|
|
5309
|
+
UtilitySlotSelector: HudComponent;
|
|
5310
|
+
BlockVariantSelector: HudComponent;
|
|
5311
|
+
BuilderToolsMaterialSlotSelector: HudComponent;
|
|
5312
|
+
Stamina: HudComponent;
|
|
5313
|
+
AmmoIndicator: HudComponent;
|
|
5314
|
+
Health: HudComponent;
|
|
5315
|
+
Mana: HudComponent;
|
|
5316
|
+
Oxygen: HudComponent;
|
|
5317
|
+
Sleep: HudComponent;
|
|
5318
|
+
VALUES: HudComponent[];
|
|
5319
|
+
fromValue(value: number): HudComponent;
|
|
5320
|
+
}
|
|
5321
|
+
export interface Page {
|
|
5322
|
+
getValue(): number;
|
|
5323
|
+
name(): string;
|
|
5324
|
+
}
|
|
5325
|
+
export interface PageEnum {
|
|
5326
|
+
None: Page;
|
|
5327
|
+
Inventory: Page;
|
|
5328
|
+
Crafting: Page;
|
|
5329
|
+
Map: Page;
|
|
5330
|
+
Container: Page;
|
|
5331
|
+
Respawn: Page;
|
|
5332
|
+
Shop: Page;
|
|
5333
|
+
VALUES: Page[];
|
|
5334
|
+
fromValue(value: number): Page;
|
|
5335
|
+
}
|
|
5336
|
+
export interface Value<T> {
|
|
5337
|
+
getValue(): T | null;
|
|
5338
|
+
getDocumentPath(): string | null;
|
|
5339
|
+
getValueName(): string | null;
|
|
5340
|
+
}
|
|
5341
|
+
export interface ValueStatic {
|
|
5342
|
+
ref<T>(document: string, value: string): Value<T>;
|
|
5343
|
+
of<T>(value: T): Value<T>;
|
|
5344
|
+
}
|
|
5345
|
+
export interface EventData {
|
|
5346
|
+
events(): JavaMap<string, string>;
|
|
5347
|
+
append(key: string, value: string): EventData;
|
|
5348
|
+
append<T extends string>(key: string, enumValue: {
|
|
5349
|
+
name(): T;
|
|
5350
|
+
}): EventData;
|
|
5351
|
+
put(key: string, value: string): EventData;
|
|
5352
|
+
}
|
|
5353
|
+
export interface EventDataStatic {
|
|
5354
|
+
new (): EventData;
|
|
5355
|
+
of(key: string, value: string): EventData;
|
|
5356
|
+
}
|
|
5357
|
+
export interface UICommandBuilder {
|
|
5358
|
+
clear(selector: string): UICommandBuilder;
|
|
5359
|
+
remove(selector: string): UICommandBuilder;
|
|
5360
|
+
append(documentPath: string): UICommandBuilder;
|
|
5361
|
+
append(selector: string, documentPath: string): UICommandBuilder;
|
|
5362
|
+
appendInline(selector: string, document: string): UICommandBuilder;
|
|
5363
|
+
insertBefore(selector: string, documentPath: string): UICommandBuilder;
|
|
5364
|
+
insertBeforeInline(selector: string, document: string): UICommandBuilder;
|
|
5365
|
+
set<T>(selector: string, ref: Value<T>): UICommandBuilder;
|
|
5366
|
+
set(selector: string, value: string): UICommandBuilder;
|
|
5367
|
+
set(selector: string, value: Message): UICommandBuilder;
|
|
5368
|
+
set(selector: string, value: boolean): UICommandBuilder;
|
|
5369
|
+
set(selector: string, value: number): UICommandBuilder;
|
|
5370
|
+
setNull(selector: string): UICommandBuilder;
|
|
5371
|
+
setObject(selector: string, data: Area | ItemGridSlot | ItemStack | LocalizableString | PatchStyle | DropdownEntryInfo | Anchor): UICommandBuilder;
|
|
5372
|
+
set<T>(selector: string, data: T[]): UICommandBuilder;
|
|
5373
|
+
set<T>(selector: string, data: JavaList<T>): UICommandBuilder;
|
|
5374
|
+
getCommands(): CustomUICommand[];
|
|
5375
|
+
}
|
|
5376
|
+
export interface UICommandBuilderStatic {
|
|
5377
|
+
new (): UICommandBuilder;
|
|
5378
|
+
EMPTY_COMMAND_ARRAY: CustomUICommand[];
|
|
5379
|
+
}
|
|
5380
|
+
export interface UIEventBuilder {
|
|
5381
|
+
addEventBinding(type: CustomUIEventBindingType, selector: string): UIEventBuilder;
|
|
5382
|
+
addEventBinding(type: CustomUIEventBindingType, selector: string, locksInterface: boolean): UIEventBuilder;
|
|
5383
|
+
addEventBinding(type: CustomUIEventBindingType, selector: string, data: EventData): UIEventBuilder;
|
|
5384
|
+
addEventBinding(type: CustomUIEventBindingType, selector: string, data: EventData | null, locksInterface: boolean): UIEventBuilder;
|
|
5385
|
+
getEvents(): CustomUIEventBinding[];
|
|
5386
|
+
}
|
|
5387
|
+
export interface UIEventBuilderStatic {
|
|
5388
|
+
new (): UIEventBuilder;
|
|
5389
|
+
EMPTY_EVENT_BINDING_ARRAY: CustomUIEventBinding[];
|
|
5390
|
+
}
|
|
5391
|
+
export interface CustomUICommand {
|
|
5392
|
+
type: CustomUICommandType;
|
|
5393
|
+
selector: string | null;
|
|
5394
|
+
value: string | null;
|
|
5395
|
+
documentPath: string | null;
|
|
5396
|
+
}
|
|
5397
|
+
export interface CustomUIEventBinding {
|
|
5398
|
+
type: CustomUIEventBindingType;
|
|
5399
|
+
selector: string | null;
|
|
5400
|
+
data: string | null;
|
|
5401
|
+
locksInterface: boolean;
|
|
5402
|
+
}
|
|
5403
|
+
export interface CustomPage {
|
|
5404
|
+
name: string;
|
|
5405
|
+
open: boolean;
|
|
5406
|
+
clear: boolean;
|
|
5407
|
+
lifetime: CustomPageLifetime;
|
|
5408
|
+
commands: CustomUICommand[];
|
|
5409
|
+
events: CustomUIEventBinding[];
|
|
5410
|
+
}
|
|
5411
|
+
export interface CustomHud {
|
|
5412
|
+
clear: boolean;
|
|
5413
|
+
commands: CustomUICommand[] | null;
|
|
5414
|
+
}
|
|
5415
|
+
export interface CustomUIPage {
|
|
5416
|
+
getLifetime(): CustomPageLifetime;
|
|
5417
|
+
setLifetime(lifetime: CustomPageLifetime): void;
|
|
5418
|
+
build(ref: Ref<EntityStore>, commandBuilder: UICommandBuilder, eventBuilder: UIEventBuilder, store: Store<EntityStore>): void;
|
|
5419
|
+
handleDataEvent(ref: Ref<EntityStore>, store: Store<EntityStore>, rawData: string): void;
|
|
5420
|
+
onDismiss(ref: Ref<EntityStore>, store: Store<EntityStore>): void;
|
|
5421
|
+
}
|
|
5422
|
+
export interface CustomUIHud {
|
|
5423
|
+
build(commandBuilder: UICommandBuilder): void;
|
|
5424
|
+
show(): void;
|
|
5425
|
+
update(clear: boolean, commandBuilder: UICommandBuilder): void;
|
|
5426
|
+
getPlayerRef(): PlayerRef;
|
|
5427
|
+
}
|
|
5428
|
+
export interface PageManager {
|
|
5429
|
+
getCustomPage(): CustomUIPage | null;
|
|
5430
|
+
setPage(ref: Ref<EntityStore>, store: Store<EntityStore>, page: Page): void;
|
|
5431
|
+
setPage(ref: Ref<EntityStore>, store: Store<EntityStore>, page: Page, canCloseThroughInteraction: boolean): void;
|
|
5432
|
+
openCustomPage(ref: Ref<EntityStore>, store: Store<EntityStore>, page: CustomUIPage): void;
|
|
5433
|
+
updateCustomPage(page: CustomPage): void;
|
|
5434
|
+
}
|
|
5435
|
+
export interface HudManager {
|
|
5436
|
+
getCustomHud(): CustomUIHud | null;
|
|
5437
|
+
getVisibleHudComponents(): JavaSet<HudComponent>;
|
|
5438
|
+
setVisibleHudComponents(ref: PlayerRef, ...hudComponents: HudComponent[]): void;
|
|
5439
|
+
showHudComponents(ref: PlayerRef, ...hudComponents: HudComponent[]): void;
|
|
5440
|
+
hideHudComponents(ref: PlayerRef, ...hudComponents: HudComponent[]): void;
|
|
5441
|
+
setCustomHud(ref: PlayerRef, hud: CustomUIHud | null): void;
|
|
5442
|
+
resetHud(ref: PlayerRef): void;
|
|
5443
|
+
resetUserInterface(ref: PlayerRef): void;
|
|
5444
|
+
}
|
|
5445
|
+
export type ScriptCustomUIPageBuildCallback = (ref: Ref<EntityStore>, commandBuilder: UICommandBuilder, eventBuilder: UIEventBuilder, store: Store<EntityStore>) => void;
|
|
5446
|
+
export type ScriptCustomUIPageEventCallback = (ref: Ref<EntityStore>, store: Store<EntityStore>, rawData: string) => void;
|
|
5447
|
+
export type ScriptCustomUIPageDismissCallback = (ref: Ref<EntityStore>, store: Store<EntityStore>) => void;
|
|
5448
|
+
export interface ScriptCustomUIPage extends CustomUIPage {
|
|
5449
|
+
triggerRebuild(): void;
|
|
5450
|
+
triggerSendUpdate(): void;
|
|
5451
|
+
triggerSendUpdate(commandBuilder: UICommandBuilder): void;
|
|
5452
|
+
triggerSendUpdate(commandBuilder: UICommandBuilder, clear: boolean): void;
|
|
5453
|
+
triggerClose(): void;
|
|
5454
|
+
getPlayerRef(): PlayerRef;
|
|
5455
|
+
getPageLifetime(): CustomPageLifetime;
|
|
5456
|
+
setPageLifetime(lifetime: CustomPageLifetime): void;
|
|
5457
|
+
}
|
|
5458
|
+
export interface ScriptCustomUIPageStatic {
|
|
5459
|
+
new (playerRef: PlayerRef, lifetime: CustomPageLifetime, buildCallback: ScriptCustomUIPageBuildCallback): ScriptCustomUIPage;
|
|
5460
|
+
new (playerRef: PlayerRef, lifetime: CustomPageLifetime, buildCallback: ScriptCustomUIPageBuildCallback, eventCallback: ScriptCustomUIPageEventCallback | null): ScriptCustomUIPage;
|
|
5461
|
+
new (playerRef: PlayerRef, lifetime: CustomPageLifetime, buildCallback: ScriptCustomUIPageBuildCallback, eventCallback: ScriptCustomUIPageEventCallback | null, dismissCallback: ScriptCustomUIPageDismissCallback | null): ScriptCustomUIPage;
|
|
5462
|
+
}
|
|
5463
|
+
export type ScriptCustomUIHudBuildCallback = (commandBuilder: UICommandBuilder) => void;
|
|
5464
|
+
export interface ScriptCustomUIHud extends CustomUIHud {
|
|
5465
|
+
triggerShow(): void;
|
|
5466
|
+
triggerUpdate(commandBuilder: UICommandBuilder): void;
|
|
5467
|
+
triggerUpdate(commandBuilder: UICommandBuilder, clear: boolean): void;
|
|
5468
|
+
getPlayerRef(): PlayerRef;
|
|
5469
|
+
}
|
|
5470
|
+
export interface ScriptCustomUIHudStatic {
|
|
5471
|
+
new (playerRef: PlayerRef, buildCallback: ScriptCustomUIHudBuildCallback): ScriptCustomUIHud;
|
|
5472
|
+
}
|
|
5473
|
+
export type JavaByteArray = unknown;
|
|
5474
|
+
export type JavaCompletableFuture<T> = unknown;
|
|
5475
|
+
export interface CommonAsset {
|
|
5476
|
+
getName(): string;
|
|
5477
|
+
getHash(): string;
|
|
5478
|
+
getBlob(): JavaCompletableFuture<JavaByteArray>;
|
|
5479
|
+
}
|
|
5480
|
+
export interface ByteArrayCommonAsset extends CommonAsset {
|
|
5481
|
+
}
|
|
5482
|
+
export interface ByteArrayCommonAssetStatic {
|
|
5483
|
+
new (name: string, bytes: JavaByteArray): ByteArrayCommonAsset;
|
|
5484
|
+
new (name: string, content: string): ByteArrayCommonAsset;
|
|
5485
|
+
}
|
|
5486
|
+
export interface CommonAssetModule {
|
|
5487
|
+
addCommonAsset<T extends CommonAsset>(pack: string, asset: T): void;
|
|
5488
|
+
addCommonAsset<T extends CommonAsset>(pack: string, asset: T, log: boolean): void;
|
|
5489
|
+
}
|
|
5490
|
+
export interface CommonAssetModuleStatic {
|
|
5491
|
+
get(): CommonAssetModule;
|
|
5492
|
+
}
|
|
5493
|
+
export interface NPCEntity extends LivingEntity {
|
|
5494
|
+
getRole(): Role | null;
|
|
5495
|
+
getRoleIndex(): number;
|
|
5496
|
+
getRoleName(): string | null;
|
|
5497
|
+
setRoleName(roleName: string): void;
|
|
5498
|
+
setRoleIndex(roleIndex: number): void;
|
|
5499
|
+
getLeashPoint(): Vector3d;
|
|
5500
|
+
setLeashPoint(leashPoint: Vector3d): void;
|
|
5501
|
+
getLeashHeading(): number;
|
|
5502
|
+
getLeashPitch(): number;
|
|
5503
|
+
saveLeashInformation(position: Vector3d, rotation: Vector3f): void;
|
|
5504
|
+
getAlarmStore(): AlarmStore;
|
|
5505
|
+
getDamageData(): DamageData;
|
|
5506
|
+
clearDamageData(): void;
|
|
5507
|
+
setToDespawn(): void;
|
|
5508
|
+
setDespawnTime(time: number): void;
|
|
5509
|
+
getDespawnTime(): number;
|
|
5510
|
+
setDespawning(despawning: boolean): void;
|
|
5511
|
+
setPlayingDespawnAnim(playingDespawnAnim: boolean): void;
|
|
5512
|
+
setDespawnRemainingSeconds(seconds: number): void;
|
|
5513
|
+
setDespawnCheckRemainingSeconds(seconds: number): void;
|
|
5514
|
+
setDespawnAnimationRemainingSeconds(seconds: number): void;
|
|
5515
|
+
setInitialModelScale(scale: number): void;
|
|
5516
|
+
getOldPosition(): Vector3d;
|
|
5517
|
+
playAnimation(ref: Ref<EntityStore>, animationSlot: AnimationSlot, animationId: string | null, componentAccessor: ComponentAccessor<EntityStore>): void;
|
|
5518
|
+
onFlockSetState(ref: Ref<EntityStore>, state: string, subState: string | null, componentAccessor: ComponentAccessor<EntityStore>): void;
|
|
5519
|
+
onFlockSetTarget(targetSlot: string, target: Ref<EntityStore>): void;
|
|
5520
|
+
getSpawnInstant(): unknown;
|
|
5521
|
+
setSpawnInstant(instant: unknown): void;
|
|
5522
|
+
getEnvironmentIndex(): number;
|
|
5523
|
+
getSpawnConfigurationIndex(): number;
|
|
5524
|
+
isSpawnTracked(): boolean;
|
|
5525
|
+
setSpawnTracked(tracked: boolean): void;
|
|
5526
|
+
}
|
|
5527
|
+
export interface NPCEntityStatic {
|
|
5528
|
+
getComponentType(): ComponentType<EntityStore, NPCEntity> | null;
|
|
5529
|
+
CODEC: unknown;
|
|
5530
|
+
}
|
|
5531
|
+
export interface LivingEntity extends Entity {
|
|
5532
|
+
getInventory(): Inventory;
|
|
5533
|
+
setInventory(inventory: Inventory): Inventory;
|
|
5534
|
+
getStatMap(): EntityStatMap | null;
|
|
5535
|
+
}
|
|
5536
|
+
export interface Role {
|
|
5537
|
+
getRoleIndex(): number;
|
|
5538
|
+
getRoleName(): string;
|
|
5539
|
+
getCombatSupport(): CombatSupport;
|
|
5540
|
+
getStateSupport(): StateSupport;
|
|
5541
|
+
getMarkedEntitySupport(): MarkedEntitySupport;
|
|
5542
|
+
getWorldSupport(): WorldSupport;
|
|
5543
|
+
getEntitySupport(): EntitySupport;
|
|
5544
|
+
getPositionCache(): PositionCache;
|
|
5545
|
+
getDebugSupport(): DebugSupport;
|
|
5546
|
+
isActivated(): boolean;
|
|
5547
|
+
isRoleChangeRequested(): boolean;
|
|
5548
|
+
canBreathe(breathingMaterial: unknown, fluidId: number): boolean;
|
|
5549
|
+
requiresLeashPosition(): boolean;
|
|
5550
|
+
setMarkedTarget(targetSlot: string, target: Ref<EntityStore>): void;
|
|
5551
|
+
getAppearance(): string;
|
|
5552
|
+
getInitialMaxHealth(): number;
|
|
5553
|
+
getCollisionRadius(): number;
|
|
5554
|
+
isInvulnerable(): boolean;
|
|
5555
|
+
getDeathAnimationTime(): number;
|
|
5556
|
+
getDespawnAnimationTime(): number;
|
|
5557
|
+
getDropListId(): string;
|
|
5558
|
+
getDeathInteraction(): string | null;
|
|
5559
|
+
getInventorySlots(): number;
|
|
5560
|
+
getHotbarSlots(): number;
|
|
5561
|
+
getOffHandSlots(): number;
|
|
5562
|
+
getFlockSpawnTypes(): string[] | null;
|
|
5563
|
+
getFlockAllowedRoles(): string[];
|
|
5564
|
+
canLeadFlock(): boolean;
|
|
5565
|
+
isCorpseStaysInFlock(): boolean;
|
|
5566
|
+
getInertia(): number;
|
|
5567
|
+
getKnockbackScale(): number;
|
|
5568
|
+
isBreathesInAir(): boolean;
|
|
5569
|
+
isBreathesInWater(): boolean;
|
|
5570
|
+
isPickupDropOnDeath(): boolean;
|
|
5571
|
+
getBalanceAsset(): string | null;
|
|
5572
|
+
getSpawnLockTime(): number;
|
|
5573
|
+
getNameTranslationKey(): string;
|
|
5574
|
+
}
|
|
5575
|
+
export interface CombatSupport {
|
|
5576
|
+
getCanCauseDamage(attackerRef: Ref<EntityStore>, componentAccessor: ComponentAccessor<EntityStore>): boolean;
|
|
5577
|
+
}
|
|
5578
|
+
export interface StateSupport {
|
|
5579
|
+
setState(ref: Ref<EntityStore>, state: string, subState: string | null, componentAccessor: ComponentAccessor<EntityStore>): void;
|
|
5580
|
+
getState(): string | null;
|
|
5581
|
+
getSubState(): string | null;
|
|
5582
|
+
addInteraction(ref: Ref<EntityStore>, interactionRef: Ref<EntityStore>, componentAccessor: ComponentAccessor<EntityStore>): void;
|
|
5583
|
+
willInteractWith(ref: Ref<EntityStore>): boolean;
|
|
5584
|
+
}
|
|
5585
|
+
export interface MarkedEntitySupport {
|
|
5586
|
+
getMarkedTarget(targetSlot: string): Ref<EntityStore> | null;
|
|
5587
|
+
setMarkedTarget(targetSlot: string, target: Ref<EntityStore>): void;
|
|
5588
|
+
clearMarkedTarget(targetSlot: string): void;
|
|
5589
|
+
hasMarkedTarget(targetSlot: string): boolean;
|
|
5590
|
+
}
|
|
5591
|
+
export interface WorldSupport {
|
|
5592
|
+
getWorld(): World;
|
|
5593
|
+
}
|
|
5594
|
+
export interface EntitySupport {
|
|
5595
|
+
getDisplayName(): string | null;
|
|
5596
|
+
setDisplayName(ref: Ref<EntityStore>, displayName: string, componentAccessor: ComponentAccessor<EntityStore>): void;
|
|
5597
|
+
}
|
|
5598
|
+
export interface PositionCache {
|
|
5599
|
+
getPosition(): Vector3d;
|
|
5600
|
+
getRotation(): Vector3f;
|
|
5601
|
+
}
|
|
5602
|
+
export interface DebugSupport {
|
|
5603
|
+
isDebugEnabled(): boolean;
|
|
5604
|
+
setDebugEnabled(enabled: boolean): void;
|
|
5605
|
+
}
|
|
5606
|
+
export interface AlarmStore {
|
|
5607
|
+
getAlarm(alarmId: string): number;
|
|
5608
|
+
setAlarm(alarmId: string, time: number): void;
|
|
5609
|
+
removeAlarm(alarmId: string): void;
|
|
5610
|
+
hasAlarm(alarmId: string): boolean;
|
|
5611
|
+
}
|
|
5612
|
+
export interface DamageData {
|
|
5613
|
+
reset(): void;
|
|
5614
|
+
getLastDamageSource(): Ref<EntityStore> | null;
|
|
5615
|
+
getLastDamageAmount(): number;
|
|
5616
|
+
getLastDamageTime(): number;
|
|
5617
|
+
getTotalDamageReceived(): number;
|
|
5618
|
+
}
|
|
5619
|
+
export interface AnimationSlot {
|
|
5620
|
+
ordinal(): number;
|
|
5621
|
+
name(): string;
|
|
5622
|
+
}
|
|
5623
|
+
export interface AnimationSlotEnum {
|
|
5624
|
+
Action: AnimationSlot;
|
|
5625
|
+
Base: AnimationSlot;
|
|
5626
|
+
Emote: AnimationSlot;
|
|
5627
|
+
values(): AnimationSlot[];
|
|
5628
|
+
valueOf(name: string): AnimationSlot;
|
|
5629
|
+
}
|
|
5630
|
+
export interface NPCPlugin {
|
|
5631
|
+
get(): NPCPlugin;
|
|
5632
|
+
getIndex(builderName: string): number;
|
|
5633
|
+
getName(builderIndex: number): string | null;
|
|
5634
|
+
hasRoleName(roleName: string): boolean;
|
|
5635
|
+
validateSpawnableRole(roleName: string): void;
|
|
5636
|
+
getRoleTemplateNames(spawnableOnly: boolean): string[];
|
|
5637
|
+
tryGetCachedValidRole(roleIndex: number): Builder<Role> | null;
|
|
5638
|
+
getRoleBuilderInfo(roleIndex: number): BuilderInfo | null;
|
|
5639
|
+
spawnNPC(store: Store<EntityStore>, npcType: string, groupType: string | null, position: Vector3d, rotation: Vector3f): JavaPair<Ref<EntityStore>, INonPlayerCharacter> | null;
|
|
5640
|
+
spawnEntity(store: Store<EntityStore>, roleIndex: number, position: Vector3d, rotation: Vector3f | null, spawnModel: Model | null, postSpawn: TriConsumer<NPCEntity, Ref<EntityStore>, Store<EntityStore>> | null): JavaPair<Ref<EntityStore>, NPCEntity> | null;
|
|
5641
|
+
getBlackboardResourceType(): ResourceType<EntityStore, Blackboard>;
|
|
5642
|
+
getNpcSpatialResource(): SpatialResource<EntityStore>;
|
|
5643
|
+
getAttitudeMap(): AttitudeMap;
|
|
5644
|
+
getItemAttitudeMap(): ItemAttitudeMap;
|
|
5645
|
+
getBuilderManager(): BuilderManager;
|
|
5646
|
+
getBeaconSupportComponentType(): ComponentType<EntityStore, BeaconSupport>;
|
|
5647
|
+
getNpcBlockEventSupportComponentType(): ComponentType<EntityStore, NPCBlockEventSupport>;
|
|
5648
|
+
getNpcEntityEventSupportComponentType(): ComponentType<EntityStore, NPCEntityEventSupport>;
|
|
5649
|
+
getTimersComponentType(): ComponentType<EntityStore, Timers>;
|
|
5650
|
+
getStateEvaluatorComponentType(): ComponentType<EntityStore, StateEvaluator>;
|
|
5651
|
+
getValueStoreComponentType(): ComponentType<EntityStore, ValueStore>;
|
|
5652
|
+
}
|
|
5653
|
+
export interface NPCPluginStatic {
|
|
5654
|
+
get(): NPCPlugin;
|
|
5655
|
+
reloadNPCsWithRole(roleIndex: number): void;
|
|
5656
|
+
buildRole(roleBuilder: Builder<Role>, builderInfo: BuilderInfo, builderSupport: BuilderSupport, roleIndex: number): Role;
|
|
5657
|
+
}
|
|
5658
|
+
export interface INonPlayerCharacter {
|
|
5659
|
+
getRole(): Role | null;
|
|
5660
|
+
getRoleIndex(): number;
|
|
5661
|
+
}
|
|
5662
|
+
export interface Builder<T> {
|
|
5663
|
+
build2(builderSupport: BuilderSupport): T;
|
|
5664
|
+
getBuilderParameters(): unknown;
|
|
5665
|
+
category(): unknown;
|
|
5666
|
+
isSpawnable(): boolean;
|
|
5667
|
+
}
|
|
5668
|
+
export interface BuilderInfo {
|
|
5669
|
+
getKeyName(): string;
|
|
5670
|
+
getBuilder(): Builder<unknown>;
|
|
5671
|
+
isValid(): boolean;
|
|
5672
|
+
isValidated(): boolean;
|
|
5673
|
+
setNeedsReload(): void;
|
|
5674
|
+
}
|
|
5675
|
+
export interface BuilderSupport {
|
|
5676
|
+
setScope(scope: unknown): void;
|
|
5677
|
+
setGlobalScope(scope: unknown): void;
|
|
5678
|
+
}
|
|
5679
|
+
export interface BuilderManager {
|
|
5680
|
+
getIndex(builderName: string): number;
|
|
5681
|
+
lookupName(builderIndex: number): string | null;
|
|
5682
|
+
tryGetCachedValidRole(roleIndex: number): Builder<Role> | null;
|
|
5683
|
+
tryGetBuilderInfo(builderIndex: number): BuilderInfo | null;
|
|
5684
|
+
getCachedBuilderInfo(roleIndex: number, category: unknown): BuilderInfo;
|
|
5685
|
+
validateBuilder(builderInfo: BuilderInfo): boolean;
|
|
5686
|
+
forceValidation(builderIndex: number): void;
|
|
5687
|
+
}
|
|
5688
|
+
export interface Blackboard {
|
|
5689
|
+
getValue(key: string): unknown;
|
|
5690
|
+
setValue(key: string, value: unknown): void;
|
|
5691
|
+
hasValue(key: string): boolean;
|
|
5692
|
+
removeValue(key: string): void;
|
|
5693
|
+
}
|
|
5694
|
+
export interface AttitudeMap {
|
|
5695
|
+
getAttitude(groupIndex: number, targetGroupIndex: number): number;
|
|
5696
|
+
getAttitudeGroupCount(): number;
|
|
5697
|
+
}
|
|
5698
|
+
export interface ItemAttitudeMap {
|
|
5699
|
+
getAttitude(groupIndex: number, itemIndex: number): number;
|
|
5700
|
+
getAttitudeGroupCount(): number;
|
|
5701
|
+
}
|
|
5702
|
+
export interface BeaconSupport {
|
|
5703
|
+
}
|
|
5704
|
+
export interface NPCBlockEventSupport {
|
|
5705
|
+
}
|
|
5706
|
+
export interface NPCEntityEventSupport {
|
|
5707
|
+
}
|
|
5708
|
+
export interface Timers {
|
|
5709
|
+
}
|
|
5710
|
+
export interface StateEvaluator {
|
|
5711
|
+
}
|
|
5712
|
+
export interface ValueStore {
|
|
5713
|
+
getValue(key: string): unknown;
|
|
5714
|
+
setValue(key: string, value: unknown): void;
|
|
5715
|
+
hasValue(key: string): boolean;
|
|
5716
|
+
removeValue(key: string): void;
|
|
5717
|
+
}
|
|
5718
|
+
export interface Model {
|
|
5719
|
+
getId(): string;
|
|
5720
|
+
getModelAssetId(): string;
|
|
5721
|
+
getScale(): number;
|
|
5722
|
+
getRandomAttachmentIds(): string[] | null;
|
|
5723
|
+
toReference(): unknown;
|
|
5724
|
+
}
|
|
5725
|
+
export interface ModelStatic {
|
|
5726
|
+
createScaledModel(modelAsset: ModelAsset, scale: number, randomAttachmentIds: string[] | null): Model;
|
|
5727
|
+
}
|
|
5728
|
+
export interface ModelAsset {
|
|
5729
|
+
getId(): string;
|
|
5730
|
+
}
|
|
5731
|
+
export interface JavaPair<F, S> {
|
|
5732
|
+
first(): F;
|
|
5733
|
+
second(): S;
|
|
5734
|
+
}
|
|
5735
|
+
export interface JavaPairStatic {
|
|
5736
|
+
of<F, S>(first: F, second: S): JavaPair<F, S>;
|
|
5737
|
+
}
|
|
5738
|
+
export type TriConsumer<A, B, C> = (a: A, b: B, c: C) => void;
|
|
5739
|
+
export interface ResourceType<S, R> {
|
|
5740
|
+
}
|
|
5741
|
+
export interface SpatialResource<S> {
|
|
5742
|
+
}
|
|
5743
|
+
export interface SpawningPlugin {
|
|
5744
|
+
get(): SpawningPlugin;
|
|
5745
|
+
}
|
|
5746
|
+
export interface SpawningPluginStatic {
|
|
5747
|
+
get(): SpawningPlugin;
|
|
5748
|
+
}
|
|
5749
|
+
export interface FlockPlugin {
|
|
5750
|
+
get(): FlockPlugin;
|
|
5751
|
+
trySpawnFlock(npcRef: Ref<EntityStore>, npcComponent: NPCEntity, store: Store<EntityStore>, roleIndex: number, position: Vector3d, rotation: Vector3f, flockDefinition: FlockAsset | null, postSpawn: TriConsumer<NPCEntity, Ref<EntityStore>, Store<EntityStore>> | null): void;
|
|
5752
|
+
}
|
|
5753
|
+
export interface FlockPluginStatic {
|
|
5754
|
+
get(): FlockPlugin;
|
|
5755
|
+
trySpawnFlock(npcRef: Ref<EntityStore>, npcComponent: NPCEntity, store: Store<EntityStore>, roleIndex: number, position: Vector3d, rotation: Vector3f, flockDefinition: FlockAsset | null, postSpawn: TriConsumer<NPCEntity, Ref<EntityStore>, Store<EntityStore>> | null): void;
|
|
5756
|
+
}
|
|
5757
|
+
export interface FlockAsset {
|
|
5758
|
+
getId(): string;
|
|
5759
|
+
}
|
|
5760
|
+
export interface FlockAssetStatic {
|
|
5761
|
+
getAssetMap(): IndexedLookupTableAssetMap<string, FlockAsset>;
|
|
5762
|
+
}
|
|
5763
|
+
export interface IndexedLookupTableAssetMap<K, V> {
|
|
5764
|
+
getIndex(key: K): number;
|
|
5765
|
+
getAsset(key: K): V | null;
|
|
5766
|
+
getAssetOrDefault(index: number, defaultValue: V | null): V | null;
|
|
5767
|
+
}
|
|
5768
|
+
export interface UseNPCInteraction {
|
|
5769
|
+
DEFAULT_ID: string;
|
|
5770
|
+
DEFAULT_ROOT: unknown;
|
|
5771
|
+
}
|
|
5772
|
+
export interface SpawnNPCInteraction {
|
|
5773
|
+
}
|
|
5774
|
+
export interface ContextualUseNPCInteraction {
|
|
5775
|
+
}
|
|
5776
|
+
export interface NPCSpawnEvent {
|
|
5777
|
+
toString(): string;
|
|
5778
|
+
getNpcRef(): Ref<EntityStore>;
|
|
5779
|
+
getNpcEntity(): NPCEntity;
|
|
5780
|
+
getStore(): Store<EntityStore>;
|
|
5781
|
+
getRoleIndex(): number;
|
|
5782
|
+
getRoleName(): string;
|
|
5783
|
+
getPosition(): Vector3d;
|
|
5784
|
+
getRotation(): Vector3f;
|
|
5785
|
+
isCancelled(): boolean;
|
|
5786
|
+
setCancelled(cancelled: boolean): void;
|
|
5787
|
+
}
|
|
5788
|
+
export interface NPCDespawnEvent {
|
|
5789
|
+
toString(): string;
|
|
5790
|
+
getNpcRef(): Ref<EntityStore>;
|
|
5791
|
+
getNpcEntity(): NPCEntity;
|
|
5792
|
+
getStore(): Store<EntityStore>;
|
|
5793
|
+
getRoleIndex(): number;
|
|
5794
|
+
getRoleName(): string;
|
|
5795
|
+
}
|
|
5796
|
+
export interface NPCRoleChangeEvent {
|
|
5797
|
+
toString(): string;
|
|
5798
|
+
getNpcRef(): Ref<EntityStore>;
|
|
5799
|
+
getNpcEntity(): NPCEntity;
|
|
5800
|
+
getOldRoleIndex(): number;
|
|
5801
|
+
getNewRoleIndex(): number;
|
|
5802
|
+
getOldRoleName(): string;
|
|
5803
|
+
getNewRoleName(): string;
|
|
5804
|
+
}
|
|
5805
|
+
export interface NPCDamageEvent {
|
|
5806
|
+
toString(): string;
|
|
5807
|
+
getNpcRef(): Ref<EntityStore>;
|
|
5808
|
+
getNpcEntity(): NPCEntity;
|
|
5809
|
+
getDamageSource(): Ref<EntityStore> | null;
|
|
5810
|
+
getDamageAmount(): number;
|
|
5811
|
+
isCancelled(): boolean;
|
|
5812
|
+
setCancelled(cancelled: boolean): void;
|
|
5813
|
+
setDamageAmount(amount: number): void;
|
|
5814
|
+
}
|
|
5815
|
+
export interface NPCDeathEvent {
|
|
5816
|
+
toString(): string;
|
|
5817
|
+
getNpcRef(): Ref<EntityStore>;
|
|
5818
|
+
getNpcEntity(): NPCEntity;
|
|
5819
|
+
getKillerRef(): Ref<EntityStore> | null;
|
|
5820
|
+
}
|
|
5821
|
+
declare global {
|
|
5822
|
+
const Java: JavaInterop;
|
|
5823
|
+
const logger: ScriptLogger;
|
|
5824
|
+
const plugin: unknown;
|
|
5825
|
+
const commands: ScriptCommandRegistry;
|
|
5826
|
+
const scheduler: ScriptScheduler;
|
|
5827
|
+
const metrics: JavetCallMetrics;
|
|
5828
|
+
const Universe: UniverseStatic;
|
|
5829
|
+
const HytaleServer: HytaleServerStatic;
|
|
5830
|
+
const Message: MessageStatic;
|
|
5831
|
+
const ItemStack: ItemStack;
|
|
5832
|
+
const Item: ItemClass;
|
|
5833
|
+
const Vector3i: Vector3i;
|
|
5834
|
+
const Vector3f: Vector3f;
|
|
5835
|
+
const Vector3d: Vector3d;
|
|
5836
|
+
const Vector2i: Vector2i;
|
|
5837
|
+
const Vector2d: Vector2d;
|
|
5838
|
+
const Vector2f: Vector2f;
|
|
5839
|
+
const Transform: Transform;
|
|
5840
|
+
const Color: Color;
|
|
5841
|
+
const ColorLight: ColorLight;
|
|
5842
|
+
const Box: Box;
|
|
5843
|
+
const Cylinder: Cylinder;
|
|
5844
|
+
const SoundEvent: SoundEventClass;
|
|
5845
|
+
const SoundCategory: SoundCategoryEnum;
|
|
5846
|
+
const PlaySoundEvent2D: PlaySoundEvent2D;
|
|
5847
|
+
const UICommandBuilder: UICommandBuilderStatic;
|
|
5848
|
+
const UIEventBuilder: UIEventBuilderStatic;
|
|
5849
|
+
const EventData: EventDataStatic;
|
|
5850
|
+
const Value: ValueStatic;
|
|
5851
|
+
const CustomUIEventBindingType: CustomUIEventBindingTypeEnum;
|
|
5852
|
+
const CustomPageLifetime: CustomPageLifetimeEnum;
|
|
5853
|
+
const CustomUICommandType: CustomUICommandTypeEnum;
|
|
5854
|
+
const HudComponent: HudComponentEnum;
|
|
5855
|
+
const Page: PageEnum;
|
|
5856
|
+
const ScriptCustomUIPage: ScriptCustomUIPageStatic;
|
|
5857
|
+
const ScriptCustomUIHud: ScriptCustomUIHudStatic;
|
|
5858
|
+
const ByteArrayCommonAsset: ByteArrayCommonAssetStatic;
|
|
5859
|
+
const CommonAssetModule: CommonAssetModuleStatic;
|
|
5860
|
+
const DynamicLight: DynamicLight;
|
|
5861
|
+
const PersistentDynamicLight: PersistentDynamicLight;
|
|
5862
|
+
const Position: Position;
|
|
5863
|
+
const Direction: Direction;
|
|
5864
|
+
const PlaySoundEvent3D: PlaySoundEvent3D;
|
|
5865
|
+
const PlaySoundEventEntity: PlaySoundEventEntity;
|
|
5866
|
+
const SpawnParticleSystem: SpawnParticleSystem;
|
|
5867
|
+
const ParticleSystem: ParticleSystemClass;
|
|
5868
|
+
const SetBlockCmd: SetBlockCmd;
|
|
5869
|
+
const ServerSetBlocks: ServerSetBlocks;
|
|
5870
|
+
const BlockType: BlockType;
|
|
5871
|
+
const ChunkUtil: ChunkUtil;
|
|
5872
|
+
const ModelTransform: ModelTransform;
|
|
5873
|
+
const AudioComponent: AudioComponent;
|
|
5874
|
+
const DisplayNameComponent: DisplayNameComponent;
|
|
5875
|
+
const TransformComponent: TransformComponent;
|
|
5876
|
+
const ActiveEntityEffect: ActiveEntityEffect;
|
|
5877
|
+
const CameraManager: CameraManager;
|
|
5878
|
+
const AbilityEffects: AbilityEffects;
|
|
5879
|
+
const ActiveAnimationComponent: ActiveAnimationComponent;
|
|
5880
|
+
const AliveCondition: AliveCondition;
|
|
5881
|
+
const AllLegacyEntityTypesQuery: AllLegacyEntityTypesQuery;
|
|
5882
|
+
const AllLegacyLivingEntityTypesQuery: AllLegacyLivingEntityTypesQuery;
|
|
5883
|
+
const AnimationUtils: AnimationUtils;
|
|
5884
|
+
const AOECircleSelector: AOECircleSelector;
|
|
5885
|
+
const AOECylinderSelector: AOECylinderSelector;
|
|
5886
|
+
const ApplicationEffects: ApplicationEffects;
|
|
5887
|
+
const ApplyEffectInteraction: ApplyEffectInteraction;
|
|
5888
|
+
const ApplyForceInteraction: ApplyForceInteraction;
|
|
5889
|
+
const ApplyRandomSkinPersistedComponent: ApplyRandomSkinPersistedComponent;
|
|
5890
|
+
const AudioSystems: AudioSystems;
|
|
5891
|
+
const BasicCollisionData: BasicCollisionData;
|
|
5892
|
+
const BlockCollisionData: BlockCollisionData;
|
|
5893
|
+
const BlockCollisionProvider: BlockCollisionProvider;
|
|
5894
|
+
const BlockContactData: BlockContactData;
|
|
5895
|
+
const BlockData: BlockData;
|
|
5896
|
+
const BlockEntity: BlockEntity;
|
|
5897
|
+
const BlockEntitySystems: BlockEntitySystems;
|
|
5898
|
+
const BlockHarvestUtils: BlockHarvestUtils;
|
|
5899
|
+
const BlockHealthChunk: BlockHealthChunk;
|
|
5900
|
+
const BlockMigrationExtraInfo: BlockMigrationExtraInfo;
|
|
5901
|
+
const BlockSetModule: BlockSetModule;
|
|
5902
|
+
const BoundingBox: BoundingBox;
|
|
5903
|
+
const BoxCollisionData: BoxCollisionData;
|
|
5904
|
+
const BuilderToolInteraction: BuilderToolInteraction;
|
|
5905
|
+
const CalculationResult: CalculationResult;
|
|
5906
|
+
const CameraInteraction: CameraInteraction;
|
|
5907
|
+
const ChainingInteraction: ChainingInteraction;
|
|
5908
|
+
const ChargingCondition: ChargingCondition;
|
|
5909
|
+
const ChargingInteraction: ChargingInteraction;
|
|
5910
|
+
const CheckUniqueItemUsageInteraction: CheckUniqueItemUsageInteraction;
|
|
5911
|
+
const ChunkLightingManager: ChunkLightingManager;
|
|
5912
|
+
const ChunkTracker: ChunkTracker;
|
|
5913
|
+
const ClearEntityEffectInteraction: ClearEntityEffectInteraction;
|
|
5914
|
+
const ClientDelegatingProvider: ClientDelegatingProvider;
|
|
5915
|
+
const ClientSourcedSelector: ClientSourcedSelector;
|
|
5916
|
+
const CollisionConfig: CollisionConfig;
|
|
5917
|
+
const CollisionModuleConfig: CollisionModuleConfig;
|
|
5918
|
+
const CollisionResultComponent: CollisionResultComponent;
|
|
5919
|
+
const CombatTextUIComponent: CombatTextUIComponent;
|
|
5920
|
+
const CombatTextUIComponentOpacityAnimationEvent: CombatTextUIComponentOpacityAnimationEvent;
|
|
5921
|
+
const CombatTextUIComponentPositionAnimationEvent: CombatTextUIComponentPositionAnimationEvent;
|
|
5922
|
+
const CombatTextUIComponentScaleAnimationEvent: CombatTextUIComponentScaleAnimationEvent;
|
|
5923
|
+
const ContainerBlockWindow: ContainerBlockWindow;
|
|
5924
|
+
const ContainerWindow: ContainerWindow;
|
|
5925
|
+
const CooldownHandler: CooldownHandler;
|
|
5926
|
+
const CraftingRecipePacketGenerator: CraftingRecipePacketGenerator;
|
|
5927
|
+
const DamageCalculator: DamageCalculator;
|
|
5928
|
+
const DamageCalculatorSystems: DamageCalculatorSystems;
|
|
5929
|
+
const DamageCause: DamageCause;
|
|
5930
|
+
const DamageDataComponent: DamageDataComponent;
|
|
5931
|
+
const DamageDataSetupSystem: DamageDataSetupSystem;
|
|
5932
|
+
const DamageEffects: DamageEffects;
|
|
5933
|
+
const DamageEntityInteraction: DamageEntityInteraction;
|
|
5934
|
+
const DamageModule: DamageModule;
|
|
5935
|
+
const DamageSystems: DamageSystems;
|
|
5936
|
+
const DeathComponent: DeathComponent;
|
|
5937
|
+
const DeathItemLoss: DeathItemLoss;
|
|
5938
|
+
const DeathSystems: DeathSystems;
|
|
5939
|
+
const DebugPlugin: DebugPlugin;
|
|
5940
|
+
const DebugUtils: DebugUtils;
|
|
5941
|
+
const DeferredCorpseRemoval: DeferredCorpseRemoval;
|
|
5942
|
+
const DespawnComponent: DespawnComponent;
|
|
5943
|
+
const DespawnSystem: DespawnSystem;
|
|
5944
|
+
const DestroyConditionInteraction: DestroyConditionInteraction;
|
|
5945
|
+
const DesyncDamageCommand: DesyncDamageCommand;
|
|
5946
|
+
const DoorInteraction: DoorInteraction;
|
|
5947
|
+
const DynamicLightSystems: DynamicLightSystems;
|
|
5948
|
+
const EffectConditionInteraction: EffectConditionInteraction;
|
|
5949
|
+
const EffectControllerComponent: EffectControllerComponent;
|
|
5950
|
+
const Emote: Emote;
|
|
5951
|
+
const EntityCleanCommand: EntityCleanCommand;
|
|
5952
|
+
const EntityCloneCommand: EntityCloneCommand;
|
|
5953
|
+
const EntityCollisionProvider: EntityCollisionProvider;
|
|
5954
|
+
const EntityCommand: EntityCommand;
|
|
5955
|
+
const EntityContactData: EntityContactData;
|
|
5956
|
+
const EntityCountCommand: EntityCountCommand;
|
|
5957
|
+
const EntityDumpCommand: EntityDumpCommand;
|
|
5958
|
+
const EntityEffect: EntityEffect;
|
|
5959
|
+
const EntityEffectCommand: EntityEffectCommand;
|
|
5960
|
+
const EntityEffectPacketGenerator: EntityEffectPacketGenerator;
|
|
5961
|
+
const EntityGroup: EntityGroup;
|
|
5962
|
+
const EntityHideFromAdventurePlayersCommand: EntityHideFromAdventurePlayersCommand;
|
|
5963
|
+
const EntityIntangibleCommand: EntityIntangibleCommand;
|
|
5964
|
+
const EntityInteractableSystems: EntityInteractableSystems;
|
|
5965
|
+
const EntityInvulnerableCommand: EntityInvulnerableCommand;
|
|
5966
|
+
const EntityLodCommand: EntityLodCommand;
|
|
5967
|
+
const EntityMakeInteractableCommand: EntityMakeInteractableCommand;
|
|
5968
|
+
const EntityModule: EntityModule;
|
|
5969
|
+
const EntityNameplateCommand: EntityNameplateCommand;
|
|
5970
|
+
const EntityRefCollisionProvider: EntityRefCollisionProvider;
|
|
5971
|
+
const EntityRegistration: EntityRegistration;
|
|
5972
|
+
const EntityRegistry: EntityRegistry;
|
|
5973
|
+
const EntityRemoveCommand: EntityRemoveCommand;
|
|
5974
|
+
const EntityRemoveEvent: EntityRemoveEvent;
|
|
5975
|
+
const EntityResendCommand: EntityResendCommand;
|
|
5976
|
+
const EntityScaleComponent: EntityScaleComponent;
|
|
5977
|
+
const EntitySnapshot: EntitySnapshot;
|
|
5978
|
+
const EntitySnapshotHistoryCommand: EntitySnapshotHistoryCommand;
|
|
5979
|
+
const EntitySnapshotLengthCommand: EntitySnapshotLengthCommand;
|
|
5980
|
+
const EntitySnapshotSubCommand: EntitySnapshotSubCommand;
|
|
5981
|
+
const EntitySpatialSystem: EntitySpatialSystem;
|
|
5982
|
+
const EntityStatMap: EntityStatMap;
|
|
5983
|
+
const EntityStatsAddCommand: EntityStatsAddCommand;
|
|
5984
|
+
const EntityStatsDumpCommand: EntityStatsDumpCommand;
|
|
5985
|
+
const EntityStatsGetCommand: EntityStatsGetCommand;
|
|
5986
|
+
const EntityStatsResetCommand: EntityStatsResetCommand;
|
|
5987
|
+
const EntityStatsSetCommand: EntityStatsSetCommand;
|
|
5988
|
+
const EntityStatsSetToMaxCommand: EntityStatsSetToMaxCommand;
|
|
5989
|
+
const EntityStatsSubCommand: EntityStatsSubCommand;
|
|
5990
|
+
const EntityStatType: EntityStatType;
|
|
5991
|
+
const EntityStatTypePacketGenerator: EntityStatTypePacketGenerator;
|
|
5992
|
+
const EntityStatUIComponent: EntityStatUIComponent;
|
|
5993
|
+
const EntityStatValue: EntityStatValue;
|
|
5994
|
+
const EntitySystems: EntitySystems;
|
|
5995
|
+
const EntityTrackerCommand: EntityTrackerCommand;
|
|
5996
|
+
const EntityTrackerSystems: EntityTrackerSystems;
|
|
5997
|
+
const EntityUIComponentPacketGenerator: EntityUIComponentPacketGenerator;
|
|
5998
|
+
const EntityUIModule: EntityUIModule;
|
|
5999
|
+
const EntityUtils: EntityUtils;
|
|
6000
|
+
const EnvironmentCondition: EnvironmentCondition;
|
|
6001
|
+
const EquipItemInteraction: EquipItemInteraction;
|
|
6002
|
+
const ExplosionConfig: ExplosionConfig;
|
|
6003
|
+
const ExplosionUtils: ExplosionUtils;
|
|
6004
|
+
const FirstClickInteraction: FirstClickInteraction;
|
|
6005
|
+
const FloodLightCalculation: FloodLightCalculation;
|
|
6006
|
+
const ForceProviderEntity: ForceProviderEntity;
|
|
6007
|
+
const FromPrefab: FromPrefab;
|
|
6008
|
+
const FromWorldGen: FromWorldGen;
|
|
6009
|
+
const Frozen: Frozen;
|
|
6010
|
+
const FullBrightLightCalculation: FullBrightLightCalculation;
|
|
6011
|
+
const GenericVelocityInstructionSystem: GenericVelocityInstructionSystem;
|
|
6012
|
+
const GlidingCondition: GlidingCondition;
|
|
6013
|
+
const HeadRotation: HeadRotation;
|
|
6014
|
+
const HiddenFromAdventurePlayers: HiddenFromAdventurePlayers;
|
|
6015
|
+
const HiddenPlayersManager: HiddenPlayersManager;
|
|
6016
|
+
const HideEntitySystems: HideEntitySystems;
|
|
6017
|
+
const HitboxCollision: HitboxCollision;
|
|
6018
|
+
const HitboxCollisionConfig: HitboxCollisionConfig;
|
|
6019
|
+
const HitboxCollisionConfigPacketGenerator: HitboxCollisionConfigPacketGenerator;
|
|
6020
|
+
const HitboxCollisionSystems: HitboxCollisionSystems;
|
|
6021
|
+
const HitboxCommand: HitboxCommand;
|
|
6022
|
+
const HorizontalSelector: HorizontalSelector;
|
|
6023
|
+
const HotbarManager: HotbarManager;
|
|
6024
|
+
const HudManager: HudManager;
|
|
6025
|
+
const HytaleBanProvider: HytaleBanProvider;
|
|
6026
|
+
const IncreaseBackpackCapacityInteraction: IncreaseBackpackCapacityInteraction;
|
|
6027
|
+
const InputUpdate: InputUpdate;
|
|
6028
|
+
const Intangible: Intangible;
|
|
6029
|
+
const IntangibleSystems: IntangibleSystems;
|
|
6030
|
+
const Interactable: Interactable;
|
|
6031
|
+
const InteractionChain: InteractionChain;
|
|
6032
|
+
const InteractionConfiguration: InteractionConfiguration;
|
|
6033
|
+
const InteractionEffects: InteractionEffects;
|
|
6034
|
+
const InteractionEntry: InteractionEntry;
|
|
6035
|
+
const InteractionManager: InteractionManager;
|
|
6036
|
+
const InteractionSimulationHandler: InteractionSimulationHandler;
|
|
6037
|
+
const InteractionSystems: InteractionSystems;
|
|
6038
|
+
const InteractionTarget: InteractionTarget;
|
|
6039
|
+
const InteractionTypeUtils: InteractionTypeUtils;
|
|
6040
|
+
const InvalidatablePersistentRef: InvalidatablePersistentRef;
|
|
6041
|
+
const Invulnerable: Invulnerable;
|
|
6042
|
+
const InvulnerableSystems: InvulnerableSystems;
|
|
6043
|
+
const ItemComponent: ItemComponent;
|
|
6044
|
+
const ItemContainerStateSpatialSystem: ItemContainerStateSpatialSystem;
|
|
6045
|
+
const ItemMergeSystem: ItemMergeSystem;
|
|
6046
|
+
const ItemPacketGenerator: ItemPacketGenerator;
|
|
6047
|
+
const ItemPhysicsComponent: ItemPhysicsComponent;
|
|
6048
|
+
const ItemPhysicsSystem: ItemPhysicsSystem;
|
|
6049
|
+
const ItemPrePhysicsSystem: ItemPrePhysicsSystem;
|
|
6050
|
+
const ItemRepairElement: ItemRepairElement;
|
|
6051
|
+
const ItemRepairPage: ItemRepairPage;
|
|
6052
|
+
const ItemReticleConfigPacketGenerator: ItemReticleConfigPacketGenerator;
|
|
5390
6053
|
const ItemSpatialSystem: ItemSpatialSystem;
|
|
5391
6054
|
const ItemStackContainerWindow: ItemStackContainerWindow;
|
|
5392
6055
|
const ItemSystems: ItemSystems;
|
|
@@ -5731,19 +6394,66 @@ declare global {
|
|
|
5731
6394
|
const WhitelistListCommand: WhitelistListCommand;
|
|
5732
6395
|
const WhitelistRemoveCommand: WhitelistRemoveCommand;
|
|
5733
6396
|
const WhitelistStatusCommand: WhitelistStatusCommand;
|
|
5734
|
-
const
|
|
5735
|
-
const
|
|
5736
|
-
const
|
|
6397
|
+
const NPCPlugin: NPCPluginStatic;
|
|
6398
|
+
const NPCEntity: NPCEntityStatic;
|
|
6399
|
+
const FlockPlugin: FlockPluginStatic;
|
|
6400
|
+
const FlockAsset: FlockAssetStatic;
|
|
6401
|
+
const SpawningPlugin: SpawningPluginStatic;
|
|
6402
|
+
const AnimationSlot: AnimationSlotEnum;
|
|
6403
|
+
const Model: ModelStatic;
|
|
6404
|
+
const Pair: JavaPairStatic;
|
|
6405
|
+
const AddReason: AddReasonEnum;
|
|
6406
|
+
const RemoveReason: RemoveReasonEnum;
|
|
5737
6407
|
}
|
|
5738
|
-
export interface
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
6408
|
+
export interface EventTitleUtil {
|
|
6409
|
+
DEFAULT_ZONE: string;
|
|
6410
|
+
DEFAULT_DURATION: number;
|
|
6411
|
+
DEFAULT_FADE_DURATION: number;
|
|
6412
|
+
/**
|
|
6413
|
+
* @param primaryTitle O titulo principal.
|
|
6414
|
+
* @param secondaryTitle O titulo secundário.
|
|
6415
|
+
* @param isMajor Se o titulo e major.
|
|
6416
|
+
* @param icon O icone a ser exibido.
|
|
6417
|
+
* @param duration A duracao do tÃtulo.
|
|
6418
|
+
* @param fadeInDuration A duracao do fade in.
|
|
6419
|
+
* @param fadeOutDuration A duracao do fade out.
|
|
6420
|
+
*/
|
|
6421
|
+
showEventTitleToUniverse(primaryTitle: Message, secondaryTitle: Message, isMajor: boolean, icon: string | null, duration: number, fadeInDuration: number, fadeOutDuration: number): void;
|
|
6422
|
+
/**
|
|
6423
|
+
* @param primaryTitle O tÃtulo principal.
|
|
6424
|
+
* @param secondaryTitle O tÃtulo secundário.
|
|
6425
|
+
* @param isMajor Se o tÃtulo é major.
|
|
6426
|
+
* @param icon O Ãcone a ser exibido.
|
|
6427
|
+
* @param duration A duração do tÃtulo.
|
|
6428
|
+
* @param fadeInDuration A duração do fade in.
|
|
6429
|
+
* @param fadeOutDuration A duração do fade out.
|
|
6430
|
+
* @param store Referência do mundo.
|
|
6431
|
+
*/
|
|
6432
|
+
showEventTitleToWorld(primaryTitle: Message, secondaryTitle: Message, isMajor: boolean, icon: string | null, duration: number, fadeInDuration: number, fadeOutDuration: number, store: unknown): void;
|
|
6433
|
+
/**
|
|
6434
|
+
* @param fadeOutDuration A duração do fade out.
|
|
6435
|
+
* @param store Referência do mundo.
|
|
6436
|
+
*/
|
|
6437
|
+
hideEventTitleFromWorld(fadeOutDuration: number, store: unknown): void;
|
|
6438
|
+
/**
|
|
6439
|
+
* @param playerRef Referência do Jogador que deseja mostrar o tÃtulo.
|
|
6440
|
+
* @param primaryTitle O tÃtulo principal.
|
|
6441
|
+
* @param secondaryTitle O tÃtulo secundário.
|
|
6442
|
+
* @param isMajor Se o tÃtulo é major.
|
|
6443
|
+
* @param icon O Ãcone a ser exibido.
|
|
6444
|
+
* @param duration A duração do tÃtulo.
|
|
6445
|
+
* @param fadeInDuration A duração do fade in.
|
|
6446
|
+
* @param fadeOutDuration A duração do fade out.
|
|
6447
|
+
*/
|
|
6448
|
+
showEventTitleToPlayer(playerRef: PlayerRef, primaryTitle: Message, secondaryTitle: Message, isMajor: boolean, icon: string | null, duration: number, fadeInDuration: number, fadeOutDuration: number): void;
|
|
6449
|
+
/**
|
|
6450
|
+
* Shows an event title to a specific player with default durations.
|
|
6451
|
+
*/
|
|
6452
|
+
showEventTitleToPlayer(playerRef: PlayerRef, primaryTitle: Message, secondaryTitle: Message, isMajor: boolean): void;
|
|
6453
|
+
/**
|
|
6454
|
+
* Hides the event title from a specific player.
|
|
6455
|
+
*/
|
|
6456
|
+
hideEventTitleFromPlayer(playerRef: PlayerRef, fadeOutDuration: number): void;
|
|
5747
6457
|
}
|
|
5748
6458
|
export interface PageManager {
|
|
5749
6459
|
setActiveCustomPage(arg0: PlayerRef, arg1: ScriptCustomUIPage | null): void;
|
|
@@ -5795,319 +6505,76 @@ export interface CommonAssetModule {
|
|
|
5795
6505
|
get(): CommonAssetModule;
|
|
5796
6506
|
addCommonAsset(namespace: string, asset: ByteArrayCommonAsset): void;
|
|
5797
6507
|
}
|
|
5798
|
-
export interface
|
|
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;
|
|
6508
|
+
export interface ChunkStore {
|
|
6023
6509
|
}
|
|
6024
|
-
export interface
|
|
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;
|
|
6510
|
+
export interface InstanceDataResource {
|
|
6031
6511
|
}
|
|
6032
|
-
export interface
|
|
6033
|
-
get(): FlockPlugin;
|
|
6034
|
-
trySpawnFlock(npcRef: Ref, npcComponent: NPCEntity, store: unknown, roleIndex: number, position: Vector3d, rotation: Vector3f, flockDefinition: FlockAsset | null, postSpawn: TriConsumer | null): void;
|
|
6512
|
+
export interface EntityStore {
|
|
6035
6513
|
}
|
|
6036
|
-
export interface
|
|
6037
|
-
getId(): string;
|
|
6514
|
+
export interface InstanceEntityConfig {
|
|
6038
6515
|
}
|
|
6039
|
-
export interface
|
|
6040
|
-
get(): SpawningPlugin;
|
|
6516
|
+
export interface InstanceBlock {
|
|
6041
6517
|
}
|
|
6042
|
-
export interface
|
|
6043
|
-
get(): SpawningPlugin;
|
|
6518
|
+
export interface ConfigurableInstanceBlock {
|
|
6044
6519
|
}
|
|
6045
|
-
export interface
|
|
6520
|
+
export interface Path {
|
|
6046
6521
|
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
6522
|
}
|
|
6057
|
-
export interface
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
getStore(): unknown;
|
|
6062
|
-
getRoleIndex(): number;
|
|
6063
|
-
getRoleName(): string;
|
|
6523
|
+
export interface CompletableFuture<T> {
|
|
6524
|
+
thenApply(func: (arg: T) => unknown): CompletableFuture<unknown>;
|
|
6525
|
+
join(): T;
|
|
6526
|
+
get(): T;
|
|
6064
6527
|
}
|
|
6065
|
-
export interface
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6528
|
+
export interface WorldReturnPoint {
|
|
6529
|
+
getWorld(): string;
|
|
6530
|
+
getReturnPoint(): Transform;
|
|
6531
|
+
isReturnOnReconnect(): boolean;
|
|
6532
|
+
setReturnOnReconnect(arg0: boolean): void;
|
|
6533
|
+
}
|
|
6534
|
+
export interface InstanceWorldConfig {
|
|
6535
|
+
getReturnPoint(): WorldReturnPoint;
|
|
6536
|
+
setReturnPoint(arg0: WorldReturnPoint): void;
|
|
6537
|
+
shouldPreventReconnection(): boolean;
|
|
6538
|
+
setPreventReconnection(arg0: boolean): void;
|
|
6539
|
+
}
|
|
6540
|
+
export interface InstancesPlugin {
|
|
6541
|
+
spawnInstance(name: string, forWorld: World, returnPoint: Transform): CompletableFuture<World>;
|
|
6542
|
+
spawnInstance(name: string, worldName: string | null, forWorld: World, returnPoint: Transform): CompletableFuture<World>;
|
|
6543
|
+
getInstanceAssets(): string[];
|
|
6544
|
+
getLogger(): {
|
|
6545
|
+
info(s: string): void;
|
|
6546
|
+
};
|
|
6547
|
+
getInstanceDataResourceType(): ResourceType<ChunkStore, InstanceDataResource>;
|
|
6548
|
+
getInstanceEntityConfigComponentType(): ComponentType<EntityStore, InstanceEntityConfig>;
|
|
6549
|
+
getInstanceBlockComponentType(): ComponentType<ChunkStore, InstanceBlock>;
|
|
6550
|
+
getConfigurableInstanceBlockComponentType(): ComponentType<ChunkStore, ConfigurableInstanceBlock>;
|
|
6551
|
+
}
|
|
6552
|
+
export interface InstancesPluginClass {
|
|
6553
|
+
get(): InstancesPlugin;
|
|
6554
|
+
teleportPlayerToLoadingInstance(entityRef: Ref<EntityStore>, componentAccessor: ComponentAccessor, worldFuture: CompletableFuture<World>, overrideReturn: Transform | null): void;
|
|
6555
|
+
teleportPlayerToInstance(playerRef: Ref<EntityStore>, componentAccessor: ComponentAccessor, targetWorld: World, overrideReturn: Transform | null): void;
|
|
6556
|
+
exitInstance(targetRef: Ref<EntityStore>, componentAccessor: ComponentAccessor): void;
|
|
6557
|
+
safeRemoveInstance(worldName: string): void;
|
|
6558
|
+
safeRemoveInstance(worldUUID: {
|
|
6559
|
+
toString(): string;
|
|
6560
|
+
}): void;
|
|
6561
|
+
safeRemoveInstance(instanceWorld: World | null): void;
|
|
6562
|
+
getInstanceAssetPath(name: string): Path;
|
|
6563
|
+
doesInstanceAssetExist(name: string): boolean;
|
|
6564
|
+
loadInstanceAssetForEdit(name: string): CompletableFuture<World>;
|
|
6565
|
+
INSTANCE_PREFIX: string;
|
|
6566
|
+
CONFIG_FILENAME: string;
|
|
6073
6567
|
}
|
|
6074
|
-
export interface
|
|
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;
|
|
6568
|
+
export interface ComponentAccessor {
|
|
6083
6569
|
}
|
|
6084
|
-
export interface
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
getNpcEntity(): NPCEntity;
|
|
6088
|
-
getKillerRef(): Ref | null;
|
|
6570
|
+
export interface ResourceType<S, R> {
|
|
6571
|
+
}
|
|
6572
|
+
export interface ComponentType<S, C> {
|
|
6089
6573
|
}
|
|
6090
6574
|
declare global {
|
|
6091
|
-
const
|
|
6092
|
-
const
|
|
6093
|
-
const
|
|
6094
|
-
const
|
|
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;
|
|
6575
|
+
const EventTitleUtil: EventTitleUtil;
|
|
6576
|
+
const InstancesPlugin: InstancesPluginClass;
|
|
6577
|
+
const MySQLManager: MySQLManager;
|
|
6578
|
+
const TableBuilder: TableBuilderConstructor;
|
|
6112
6579
|
}
|
|
6113
6580
|
//# sourceMappingURL=types.d.ts.map
|