@hylithiumjs.com/core 1.2.3 → 1.2.4

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 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): unknown;
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
- getComponentType(): ComponentType;
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,687 +5138,357 @@ export interface JavetCallMetrics {
5118
5138
  getAvgTimeMs(): number;
5119
5139
  nanoTime(): number;
5120
5140
  }
5121
- export interface EventTitleUtil {
5122
- DEFAULT_ZONE: string;
5123
- DEFAULT_DURATION: number;
5124
- DEFAULT_FADE_DURATION: number;
5125
- /**
5126
- * @param primaryTitle O título principal.
5127
- * @param secondaryTitle O título secundário.
5128
- * @param isMajor Se o título é major.
5129
- * @param icon O ícone a ser exibido.
5130
- * @param duration A duração do título.
5131
- * @param fadeInDuration A duração do fade in.
5132
- * @param fadeOutDuration A duração do fade out.
5133
- */
5134
- showEventTitleToUniverse(primaryTitle: Message, secondaryTitle: Message, isMajor: boolean, icon: string | null, duration: number, fadeInDuration: number, fadeOutDuration: number): void;
5135
- /**
5136
- * @param primaryTitle O título principal.
5137
- * @param secondaryTitle O título secundário.
5138
- * @param isMajor Se o título é major.
5139
- * @param icon O ícone a ser exibido.
5140
- * @param duration A duração do título.
5141
- * @param fadeInDuration A duração do fade in.
5142
- * @param fadeOutDuration A duração do fade out.
5143
- * @param store Referência do mundo.
5144
- */
5145
- showEventTitleToWorld(primaryTitle: Message, secondaryTitle: Message, isMajor: boolean, icon: string | null, duration: number, fadeInDuration: number, fadeOutDuration: number, store: unknown): void;
5146
- /**
5147
- * @param fadeOutDuration A duração do fade out.
5148
- * @param store Referência do mundo.
5149
- */
5150
- hideEventTitleFromWorld(fadeOutDuration: number, store: unknown): void;
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
- declare global {
5172
- const Java: JavaInterop;
5173
- const logger: ScriptLogger;
5174
- const plugin: unknown;
5175
- const commands: ScriptCommandRegistry;
5176
- const scheduler: ScriptScheduler;
5177
- const metrics: JavetCallMetrics;
5178
- const Universe: UniverseStatic;
5179
- const HytaleServer: HytaleServerStatic;
5180
- const Message: MessageStatic;
5181
- const ItemStack: ItemStack;
5182
- const Item: ItemClass;
5183
- const Vector3i: Vector3i;
5184
- const Vector3f: Vector3f;
5185
- const Vector3d: Vector3d;
5186
- const Vector2i: Vector2i;
5187
- const Vector2d: Vector2d;
5188
- const Vector2f: Vector2f;
5189
- const Transform: Transform;
5190
- const Color: Color;
5191
- const ColorLight: ColorLight;
5192
- const Box: Box;
5193
- const Cylinder: Cylinder;
5194
- const SoundEvent: SoundEventClass;
5195
- const SoundCategory: SoundCategoryEnum;
5196
- const PlaySoundEvent2D: PlaySoundEvent2D;
5197
- const DynamicLight: DynamicLight;
5198
- const PersistentDynamicLight: PersistentDynamicLight;
5199
- const Position: Position;
5200
- const Direction: Direction;
5201
- const PlaySoundEvent3D: PlaySoundEvent3D;
5202
- const PlaySoundEventEntity: PlaySoundEventEntity;
5203
- const SpawnParticleSystem: SpawnParticleSystem;
5204
- const ParticleSystem: ParticleSystemClass;
5205
- const SetBlockCmd: SetBlockCmd;
5206
- const ServerSetBlocks: ServerSetBlocks;
5207
- const BlockType: BlockType;
5208
- const ChunkUtil: ChunkUtil;
5209
- const ModelTransform: ModelTransform;
5210
- const AudioComponent: AudioComponent;
5211
- const DisplayNameComponent: DisplayNameComponent;
5212
- const TransformComponent: TransformComponent;
5213
- const ActiveEntityEffect: ActiveEntityEffect;
5214
- const CameraManager: CameraManager;
5215
- const AbilityEffects: AbilityEffects;
5216
- const ActiveAnimationComponent: ActiveAnimationComponent;
5217
- const AliveCondition: AliveCondition;
5218
- const AllLegacyEntityTypesQuery: AllLegacyEntityTypesQuery;
5219
- const AllLegacyLivingEntityTypesQuery: AllLegacyLivingEntityTypesQuery;
5220
- const AnimationUtils: AnimationUtils;
5221
- const AOECircleSelector: AOECircleSelector;
5222
- const AOECylinderSelector: AOECylinderSelector;
5223
- const ApplicationEffects: ApplicationEffects;
5224
- const ApplyEffectInteraction: ApplyEffectInteraction;
5225
- const ApplyForceInteraction: ApplyForceInteraction;
5226
- const ApplyRandomSkinPersistedComponent: ApplyRandomSkinPersistedComponent;
5227
- const AudioSystems: AudioSystems;
5228
- const BasicCollisionData: BasicCollisionData;
5229
- const BlockCollisionData: BlockCollisionData;
5230
- const BlockCollisionProvider: BlockCollisionProvider;
5231
- const BlockContactData: BlockContactData;
5232
- const BlockData: BlockData;
5233
- const BlockEntity: BlockEntity;
5234
- const BlockEntitySystems: BlockEntitySystems;
5235
- const BlockHarvestUtils: BlockHarvestUtils;
5236
- const BlockHealthChunk: BlockHealthChunk;
5237
- const BlockMigrationExtraInfo: BlockMigrationExtraInfo;
5238
- const BlockSetModule: BlockSetModule;
5239
- const BoundingBox: BoundingBox;
5240
- const BoxCollisionData: BoxCollisionData;
5241
- const BuilderToolInteraction: BuilderToolInteraction;
5242
- const CalculationResult: CalculationResult;
5243
- const CameraInteraction: CameraInteraction;
5244
- const ChainingInteraction: ChainingInteraction;
5245
- const ChargingCondition: ChargingCondition;
5246
- const ChargingInteraction: ChargingInteraction;
5247
- const CheckUniqueItemUsageInteraction: CheckUniqueItemUsageInteraction;
5248
- const ChunkLightingManager: ChunkLightingManager;
5249
- const ChunkTracker: ChunkTracker;
5250
- const ClearEntityEffectInteraction: ClearEntityEffectInteraction;
5251
- const ClientDelegatingProvider: ClientDelegatingProvider;
5252
- const ClientSourcedSelector: ClientSourcedSelector;
5253
- const CollisionConfig: CollisionConfig;
5254
- const CollisionModuleConfig: CollisionModuleConfig;
5255
- const CollisionResultComponent: CollisionResultComponent;
5256
- const CombatTextUIComponent: CombatTextUIComponent;
5257
- const CombatTextUIComponentOpacityAnimationEvent: CombatTextUIComponentOpacityAnimationEvent;
5258
- const CombatTextUIComponentPositionAnimationEvent: CombatTextUIComponentPositionAnimationEvent;
5259
- const CombatTextUIComponentScaleAnimationEvent: CombatTextUIComponentScaleAnimationEvent;
5260
- const ContainerBlockWindow: ContainerBlockWindow;
5261
- const ContainerWindow: ContainerWindow;
5262
- const CooldownHandler: CooldownHandler;
5263
- const CraftingRecipePacketGenerator: CraftingRecipePacketGenerator;
5264
- const DamageCalculator: DamageCalculator;
5265
- const DamageCalculatorSystems: DamageCalculatorSystems;
5266
- const DamageCause: DamageCause;
5267
- const DamageDataComponent: DamageDataComponent;
5268
- const DamageDataSetupSystem: DamageDataSetupSystem;
5269
- const DamageEffects: DamageEffects;
5270
- const DamageEntityInteraction: DamageEntityInteraction;
5271
- const DamageModule: DamageModule;
5272
- const DamageSystems: DamageSystems;
5273
- const DeathComponent: DeathComponent;
5274
- const DeathItemLoss: DeathItemLoss;
5275
- const DeathSystems: DeathSystems;
5276
- const DebugPlugin: DebugPlugin;
5277
- const DebugUtils: DebugUtils;
5278
- const DeferredCorpseRemoval: DeferredCorpseRemoval;
5279
- const DespawnComponent: DespawnComponent;
5280
- const DespawnSystem: DespawnSystem;
5281
- const DestroyConditionInteraction: DestroyConditionInteraction;
5282
- const DesyncDamageCommand: DesyncDamageCommand;
5283
- const DoorInteraction: DoorInteraction;
5284
- const DynamicLightSystems: DynamicLightSystems;
5285
- const EffectConditionInteraction: EffectConditionInteraction;
5286
- const EffectControllerComponent: EffectControllerComponent;
5287
- const Emote: Emote;
5288
- const EntityCleanCommand: EntityCleanCommand;
5289
- const EntityCloneCommand: EntityCloneCommand;
5290
- const EntityCollisionProvider: EntityCollisionProvider;
5291
- const EntityCommand: EntityCommand;
5292
- const EntityContactData: EntityContactData;
5293
- const EntityCountCommand: EntityCountCommand;
5294
- const EntityDumpCommand: EntityDumpCommand;
5295
- const EntityEffect: EntityEffect;
5296
- const EntityEffectCommand: EntityEffectCommand;
5297
- const EntityEffectPacketGenerator: EntityEffectPacketGenerator;
5298
- const EntityGroup: EntityGroup;
5299
- const EntityHideFromAdventurePlayersCommand: EntityHideFromAdventurePlayersCommand;
5300
- const EntityIntangibleCommand: EntityIntangibleCommand;
5301
- const EntityInteractableSystems: EntityInteractableSystems;
5302
- const EntityInvulnerableCommand: EntityInvulnerableCommand;
5303
- const EntityLodCommand: EntityLodCommand;
5304
- const EntityMakeInteractableCommand: EntityMakeInteractableCommand;
5305
- const EntityModule: EntityModule;
5306
- const EntityNameplateCommand: EntityNameplateCommand;
5307
- const EntityRefCollisionProvider: EntityRefCollisionProvider;
5308
- const EntityRegistration: EntityRegistration;
5309
- const EntityRegistry: EntityRegistry;
5310
- const EntityRemoveCommand: EntityRemoveCommand;
5311
- const EntityRemoveEvent: EntityRemoveEvent;
5312
- const EntityResendCommand: EntityResendCommand;
5313
- const EntityScaleComponent: EntityScaleComponent;
5314
- const EntitySnapshot: EntitySnapshot;
5315
- const EntitySnapshotHistoryCommand: EntitySnapshotHistoryCommand;
5316
- const EntitySnapshotLengthCommand: EntitySnapshotLengthCommand;
5317
- const EntitySnapshotSubCommand: EntitySnapshotSubCommand;
5318
- const EntitySpatialSystem: EntitySpatialSystem;
5319
- const EntityStatMap: EntityStatMap;
5320
- const EntityStatsAddCommand: EntityStatsAddCommand;
5321
- const EntityStatsDumpCommand: EntityStatsDumpCommand;
5322
- const EntityStatsGetCommand: EntityStatsGetCommand;
5323
- const EntityStatsResetCommand: EntityStatsResetCommand;
5324
- const EntityStatsSetCommand: EntityStatsSetCommand;
5325
- const EntityStatsSetToMaxCommand: EntityStatsSetToMaxCommand;
5326
- const EntityStatsSubCommand: EntityStatsSubCommand;
5327
- const EntityStatType: EntityStatType;
5328
- const EntityStatTypePacketGenerator: EntityStatTypePacketGenerator;
5329
- const EntityStatUIComponent: EntityStatUIComponent;
5330
- const EntityStatValue: EntityStatValue;
5331
- const EntitySystems: EntitySystems;
5332
- const EntityTrackerCommand: EntityTrackerCommand;
5333
- const EntityTrackerSystems: EntityTrackerSystems;
5334
- const EntityUIComponentPacketGenerator: EntityUIComponentPacketGenerator;
5335
- const EntityUIModule: EntityUIModule;
5336
- const EntityUtils: EntityUtils;
5337
- const EnvironmentCondition: EnvironmentCondition;
5338
- const EquipItemInteraction: EquipItemInteraction;
5339
- const ExplosionConfig: ExplosionConfig;
5340
- const ExplosionUtils: ExplosionUtils;
5341
- const FirstClickInteraction: FirstClickInteraction;
5342
- const FloodLightCalculation: FloodLightCalculation;
5343
- const ForceProviderEntity: ForceProviderEntity;
5344
- const FromPrefab: FromPrefab;
5345
- const FromWorldGen: FromWorldGen;
5346
- const Frozen: Frozen;
5347
- const FullBrightLightCalculation: FullBrightLightCalculation;
5348
- const GenericVelocityInstructionSystem: GenericVelocityInstructionSystem;
5349
- const GlidingCondition: GlidingCondition;
5350
- const HeadRotation: HeadRotation;
5351
- const HiddenFromAdventurePlayers: HiddenFromAdventurePlayers;
5352
- const HiddenPlayersManager: HiddenPlayersManager;
5353
- const HideEntitySystems: HideEntitySystems;
5354
- const HitboxCollision: HitboxCollision;
5355
- const HitboxCollisionConfig: HitboxCollisionConfig;
5356
- const HitboxCollisionConfigPacketGenerator: HitboxCollisionConfigPacketGenerator;
5357
- const HitboxCollisionSystems: HitboxCollisionSystems;
5358
- const HitboxCommand: HitboxCommand;
5359
- const HorizontalSelector: HorizontalSelector;
5360
- const HotbarManager: HotbarManager;
5361
- const HudManager: HudManager;
5362
- const HytaleBanProvider: HytaleBanProvider;
5363
- const IncreaseBackpackCapacityInteraction: IncreaseBackpackCapacityInteraction;
5364
- const InputUpdate: InputUpdate;
5365
- const Intangible: Intangible;
5366
- const IntangibleSystems: IntangibleSystems;
5367
- const Interactable: Interactable;
5368
- const InteractionChain: InteractionChain;
5369
- const InteractionConfiguration: InteractionConfiguration;
5370
- const InteractionEffects: InteractionEffects;
5371
- const InteractionEntry: InteractionEntry;
5372
- const InteractionManager: InteractionManager;
5373
- const InteractionSimulationHandler: InteractionSimulationHandler;
5374
- const InteractionSystems: InteractionSystems;
5375
- const InteractionTarget: InteractionTarget;
5376
- const InteractionTypeUtils: InteractionTypeUtils;
5377
- const InvalidatablePersistentRef: InvalidatablePersistentRef;
5378
- const Invulnerable: Invulnerable;
5379
- const InvulnerableSystems: InvulnerableSystems;
5380
- const ItemComponent: ItemComponent;
5381
- const ItemContainerStateSpatialSystem: ItemContainerStateSpatialSystem;
5382
- const ItemMergeSystem: ItemMergeSystem;
5383
- const ItemPacketGenerator: ItemPacketGenerator;
5384
- const ItemPhysicsComponent: ItemPhysicsComponent;
5385
- const ItemPhysicsSystem: ItemPhysicsSystem;
5386
- const ItemPrePhysicsSystem: ItemPrePhysicsSystem;
5387
- const ItemRepairElement: ItemRepairElement;
5388
- const ItemRepairPage: ItemRepairPage;
5389
- const ItemReticleConfigPacketGenerator: ItemReticleConfigPacketGenerator;
5390
- const ItemSpatialSystem: ItemSpatialSystem;
5391
- const ItemStackContainerWindow: ItemStackContainerWindow;
5392
- const ItemSystems: ItemSystems;
5393
- const ItemUtils: ItemUtils;
5394
- const JumpOperation: JumpOperation;
5395
- const KillFeedEvent: KillFeedEvent;
5396
- const KnockbackComponent: KnockbackComponent;
5397
- const KnockbackPredictionSystems: KnockbackPredictionSystems;
5398
- const KnockbackSimulation: KnockbackSimulation;
5399
- const KnockbackSystems: KnockbackSystems;
5400
- const Label: Label;
5401
- const LaunchPadInteraction: LaunchPadInteraction;
5402
- const LaunchProjectileInteraction: LaunchProjectileInteraction;
5403
- const LegacyEntityTrackerSystems: LegacyEntityTrackerSystems;
5404
- const LegacyProjectileSystems: LegacyProjectileSystems;
5405
- const LivingEntityEffectClearChangesSystem: LivingEntityEffectClearChangesSystem;
5406
- const LivingEntityEffectSystem: LivingEntityEffectSystem;
5407
- const LivingEntityInventoryChangeEvent: LivingEntityInventoryChangeEvent;
5408
- const LivingEntityUseBlockEvent: LivingEntityUseBlockEvent;
5409
- const LogicCondition: LogicCondition;
5410
- const MaterialExtraResourcesSection: MaterialExtraResourcesSection;
5411
- const MessagesUpdated: MessagesUpdated;
5412
- const ModelComponent: ModelComponent;
5413
- const ModelOverride: ModelOverride;
5414
- const ModelSystems: ModelSystems;
5415
- const ModifyInventoryInteraction: ModifyInventoryInteraction;
5416
- const MovementAudioComponent: MovementAudioComponent;
5417
- const MovementConditionInteraction: MovementConditionInteraction;
5418
- const MovementConfig: MovementConfig;
5419
- const MovementManager: MovementManager;
5420
- const MovementStatesComponent: MovementStatesComponent;
5421
- const MovementStatesSystems: MovementStatesSystems;
5422
- const Nameplate: Nameplate;
5423
- const NameplateSystems: NameplateSystems;
5424
- const NetworkId: NetworkId;
5425
- const NetworkSendableSpatialSystem: NetworkSendableSpatialSystem;
5426
- const NewSpawnComponent: NewSpawnComponent;
5427
- const NoDamageTakenCondition: NoDamageTakenCondition;
5428
- const OperationsBuilder: OperationsBuilder;
5429
- const OutOfCombatCondition: OutOfCombatCondition;
5430
- const OverlapBehavior: OverlapBehavior;
5431
- const PageManager: PageManager;
5432
- const ParallelInteraction: ParallelInteraction;
5433
- const Particle: Particle;
5434
- const ParticleAnimationFrame: ParticleAnimationFrame;
5435
- const ParticleAttractor: ParticleAttractor;
5436
- const ParticleCollision: ParticleCollision;
5437
- const ParticleCommand: ParticleCommand;
5438
- const ParticleSpawnCommand: ParticleSpawnCommand;
5439
- const ParticleSpawner: ParticleSpawner;
5440
- const ParticleSpawnerGroup: ParticleSpawnerGroup;
5441
- const ParticleSpawnerPacketGenerator: ParticleSpawnerPacketGenerator;
5442
- const ParticleSpawnPage: ParticleSpawnPage;
5443
- const ParticleSystemPacketGenerator: ParticleSystemPacketGenerator;
5444
- const PendingTeleport: PendingTeleport;
5445
- const PersistentModel: PersistentModel;
5446
- const PersistentRef: PersistentRef;
5447
- const PersistentRefCount: PersistentRefCount;
5448
- const PhysicsMath: PhysicsMath;
5449
- const PickBlockInteraction: PickBlockInteraction;
5450
- const PickupItemComponent: PickupItemComponent;
5451
- const PickupItemSystem: PickupItemSystem;
5452
- const PlaceBlockInteraction: PlaceBlockInteraction;
5453
- const PlacedByInteractionComponent: PlacedByInteractionComponent;
5454
- const PlaceFluidInteraction: PlaceFluidInteraction;
5455
- const PlacementCountConditionInteraction: PlacementCountConditionInteraction;
5456
- const Player: Player;
5457
- const PlayerCameraAddSystem: PlayerCameraAddSystem;
5458
- const PlayerChunkTrackerSystems: PlayerChunkTrackerSystems;
5459
- const PlayerCollisionResultAddSystem: PlayerCollisionResultAddSystem;
5460
- const PlayerCondition: PlayerCondition;
5461
- const PlayerConfigData: PlayerConfigData;
5462
- const PlayerConnectionFlushSystem: PlayerConnectionFlushSystem;
5463
- const PlayerDeathPositionData: PlayerDeathPositionData;
5464
- const PlayerHudManagerSystems: PlayerHudManagerSystems;
5465
- const PlayerItemEntityPickupSystem: PlayerItemEntityPickupSystem;
5466
- const PlayerMovementManagerSystems: PlayerMovementManagerSystems;
5467
- const PlayerPingSystem: PlayerPingSystem;
5468
- const PlayerProcessMovementSystem: PlayerProcessMovementSystem;
5469
- const PlayerRegenerateStatsSystem: PlayerRegenerateStatsSystem;
5470
- const PlayerRespawnPointData: PlayerRespawnPointData;
5471
- const PlayerSavingSystems: PlayerSavingSystems;
5472
- const PlayerSendInventorySystem: PlayerSendInventorySystem;
5473
- const PlayerSkinComponent: PlayerSkinComponent;
5474
- const PlayerSkinGradient: PlayerSkinGradient;
5475
- const PlayerSkinGradientSet: PlayerSkinGradientSet;
5476
- const PlayerSkinPart: PlayerSkinPart;
5477
- const PlayerSkinPartTexture: PlayerSkinPartTexture;
5478
- const PlayerSkinTintColor: PlayerSkinTintColor;
5479
- const PlayerSpatialSystem: PlayerSpatialSystem;
5480
- const PlayerSystems: PlayerSystems;
5481
- const PlayerWorldData: PlayerWorldData;
5482
- const PositionDataComponent: PositionDataComponent;
5483
- const PredictedProjectile: PredictedProjectile;
5484
- const PredictedProjectileSystems: PredictedProjectileSystems;
5485
- const PrefabBufferColumn: PrefabBufferColumn;
5486
- const PrefabBufferUtil: PrefabBufferUtil;
5487
- const PrefabCopyableComponent: PrefabCopyableComponent;
5488
- const PrefabLoadException: PrefabLoadException;
5489
- const PrefabPasteEvent: PrefabPasteEvent;
5490
- const PrefabPlaceEntityEvent: PrefabPlaceEntityEvent;
5491
- const PrefabSaveException: PrefabSaveException;
5492
- const PrefabSpawnerState: PrefabSpawnerState;
5493
- const PrefabStore: PrefabStore;
5494
- const PreventItemMerging: PreventItemMerging;
5495
- const PreventPickup: PreventPickup;
5496
- const Projectile: Projectile;
5497
- const ProjectileComponent: ProjectileComponent;
5498
- const ProjectileConfig: ProjectileConfig;
5499
- const ProjectileConfigPacketGenerator: ProjectileConfigPacketGenerator;
5500
- const ProjectileInteraction: ProjectileInteraction;
5501
- const PropComponent: PropComponent;
5502
- const RaycastSelector: RaycastSelector;
5503
- const RecipePacketGenerator: RecipePacketGenerator;
5504
- const RefillContainerInteraction: RefillContainerInteraction;
5505
- const RegeneratingModifier: RegeneratingModifier;
5506
- const RegeneratingValue: RegeneratingValue;
5507
- const RegenHealthCondition: RegenHealthCondition;
5508
- const RemovalBehavior: RemovalBehavior;
5509
- const RemoveEntityInteraction: RemoveEntityInteraction;
5510
- const RepairItemInteraction: RepairItemInteraction;
5511
- const RepeatInteraction: RepeatInteraction;
5512
- const ReplaceInteraction: ReplaceInteraction;
5513
- const Repulsion: Repulsion;
5514
- const RepulsionConfig: RepulsionConfig;
5515
- const RepulsionConfigPacketGenerator: RepulsionConfigPacketGenerator;
5516
- const RepulsionSystems: RepulsionSystems;
5517
- const RespawnPage: RespawnPage;
5518
- const RespawnSystems: RespawnSystems;
5519
- const RespondToHit: RespondToHit;
5520
- const RespondToHitSystems: RespondToHitSystems;
5521
- const RotateObjectComponent: RotateObjectComponent;
5522
- const RotateObjectSystem: RotateObjectSystem;
5523
- const SelectInteraction: SelectInteraction;
5524
- const SelectionManager: SelectionManager;
5525
- const SerialInteraction: SerialInteraction;
5526
- const ServerPlayerListModule: ServerPlayerListModule;
5527
- const SingleplayerRequestAccessEvent: SingleplayerRequestAccessEvent;
5528
- const SnapshotBuffer: SnapshotBuffer;
5529
- const SnapshotSystems: SnapshotSystems;
5530
- const SprintingCondition: SprintingCondition;
5531
- const SprintStaminaRegenDelay: SprintStaminaRegenDelay;
5532
- const StabSelector: StabSelector;
5533
- const StaminaGameplayConfig: StaminaGameplayConfig;
5534
- const StaminaModule: StaminaModule;
5535
- const StaminaSystems: StaminaSystems;
5536
- const StandardPhysicsConfig: StandardPhysicsConfig;
5537
- const StandardPhysicsTickSystem: StandardPhysicsTickSystem;
5538
- const StatCondition: StatCondition;
5539
- const StaticModifier: StaticModifier;
5540
- const StatModifiersManager: StatModifiersManager;
5541
- const StatModifyingSystem: StatModifyingSystem;
5542
- const StringTag: StringTag;
5543
- const SuffocatingCondition: SuffocatingCondition;
5544
- const TangiableEntitySpatialSystem: TangiableEntitySpatialSystem;
5545
- const TargetEntityEffect: TargetEntityEffect;
5546
- const Teleport: Teleport;
5547
- const TeleportSystems: TeleportSystems;
5548
- const TimeModule: TimeModule;
5549
- const TrackedPlacement: TrackedPlacement;
5550
- const TransformSystems: TransformSystems;
5551
- const UIComponentList: UIComponentList;
5552
- const UIComponentSystems: UIComponentSystems;
5553
- const UnarmedInteractions: UnarmedInteractions;
5554
- const UnarmedInteractionsPacketGenerator: UnarmedInteractionsPacketGenerator;
5555
- const UniqueItemUsagesComponent: UniqueItemUsagesComponent;
5556
- const UpdateEntitySeedSystem: UpdateEntitySeedSystem;
5557
- const UpdateLocationSystems: UpdateLocationSystems;
5558
- const UseEntityInteraction: UseEntityInteraction;
5559
- const UUIDComponent: UUIDComponent;
5560
- const VelocityConfig: VelocityConfig;
5561
- const VelocitySystems: VelocitySystems;
5562
- const WieldingCondition: WieldingCondition;
5563
- const WieldingInteraction: WieldingInteraction;
5564
- const WindowManager: WindowManager;
5565
- const WorldGenId: WorldGenId;
5566
- const WorldParticle: WorldParticle;
5567
- const WorldTimeResource: WorldTimeResource;
5568
- const WorldTimeSystems: WorldTimeSystems;
5569
- const WorldUtil: WorldUtil;
5570
- const AccessControlModule: AccessControlModule;
5571
- const BlockCounter: BlockCounter;
5572
- const BlockFilter: BlockFilter;
5573
- const BlockHealth: BlockHealth;
5574
- const BlockHealthModule: BlockHealthModule;
5575
- const BlockMask: BlockMask;
5576
- const BlockModule: BlockModule;
5577
- const BlockPattern: BlockPattern;
5578
- const BlockSetLookupTable: BlockSetLookupTable;
5579
- const BlockTracker: BlockTracker;
5580
- const BoxBlockIntersectionEvaluator: BoxBlockIntersectionEvaluator;
5581
- const ChangeActiveSlotInteraction: ChangeActiveSlotInteraction;
5582
- const CollisionDataArray: CollisionDataArray<unknown>;
5583
- const CollisionMath: CollisionMath;
5584
- const CollisionModule: CollisionModule;
5585
- const CollisionResult: CollisionResult;
5586
- const CollisionTracker: CollisionTracker;
5587
- const CosmeticRegistry: CosmeticRegistry;
5588
- const CosmeticsModule: CosmeticsModule;
5589
- const ForceProviderStandardState: ForceProviderStandardState;
5590
- const FragileBlock: FragileBlock;
5591
- const HytaleWhitelistProvider: HytaleWhitelistProvider;
5592
- const I18nModule: I18nModule;
5593
- const InfiniteBan: InfiniteBan;
5594
- const InteractionModule: InteractionModule;
5595
- const Interactions: Interactions;
5596
- const ItemModule: ItemModule;
5597
- const LegacyModule: LegacyModule;
5598
- const ListCollector: ListCollector<unknown>;
5599
- const MigrationModule: MigrationModule;
5600
- const MovingBoxBoxCollisionEvaluator: MovingBoxBoxCollisionEvaluator;
5601
- const PhysicsValues: PhysicsValues;
5602
- const PhysicsValuesAddSystem: PhysicsValuesAddSystem;
5603
- const PlayerSkin: PlayerSkin;
5604
- const PlayerSkinPartId: PlayerSkinPartId;
5605
- const PrefabLoader: PrefabLoader;
5606
- const PrefabRotation: PrefabRotation;
5607
- const PrefabWeights: PrefabWeights;
5608
- const ProjectileModule: ProjectileModule;
5609
- const RootInteraction: RootInteraction;
5610
- const SimpleInteraction: SimpleInteraction;
5611
- const SimplePhysicsProvider: SimplePhysicsProvider;
5612
- const SingleCollector: SingleCollector<unknown>;
5613
- const SingleplayerModule: SingleplayerModule;
5614
- const StandardPhysicsProvider: StandardPhysicsProvider;
5615
- const TimeCommand: TimeCommand;
5616
- const TimedBan: TimedBan;
5617
- const TimeResource: TimeResource;
5618
- const TranslationMap: TranslationMap;
5619
- const TreeCollector: TreeCollector<unknown>;
5620
- const Velocity: Velocity;
5621
- const AddItemInteraction: AddItemInteraction;
5622
- const BanCommand: BanCommand;
5623
- const BinaryPrefabBufferCodec: BinaryPrefabBufferCodec;
5624
- const BlockConditionInteraction: BlockConditionInteraction;
5625
- const BlockDataProvider: BlockDataProvider;
5626
- const BlockInteractionUtils: BlockInteractionUtils;
5627
- const BlockMaskConstants: BlockMaskConstants;
5628
- const BlockPlaceUtils: BlockPlaceUtils;
5629
- const BlockSetCommand: BlockSetCommand;
5630
- const BodyType: BodyType;
5631
- const BreakBlockInteraction: BreakBlockInteraction;
5632
- const BsonPrefabBufferDeserializer: BsonPrefabBufferDeserializer;
5633
- const CancelChainInteraction: CancelChainInteraction;
5634
- const ChainFlagInteraction: ChainFlagInteraction;
5635
- const ChangeBlockInteraction: ChangeBlockInteraction;
5636
- const ChangeStateInteraction: ChangeStateInteraction;
5637
- const ChangeStatInteraction: ChangeStatInteraction;
5638
- const ChangeStatWithModifierInteraction: ChangeStatWithModifierInteraction;
5639
- const CharacterCollisionData: CharacterCollisionData;
5640
- const CollisionMaterial: CollisionMaterial;
5641
- const ConditionInteraction: ConditionInteraction;
5642
- const CooldownConditionInteraction: CooldownConditionInteraction;
5643
- const CosmeticAssetValidator: CosmeticAssetValidator;
5644
- const CosmeticType: CosmeticType;
5645
- const CycleBlockGroupInteraction: CycleBlockGroupInteraction;
5646
- const DamageClass: DamageClass;
5647
- const DebugCommand: DebugCommand;
5648
- const DebugShapeArrowCommand: DebugShapeArrowCommand;
5649
- const DebugShapeClearCommand: DebugShapeClearCommand;
5650
- const DebugShapeConeCommand: DebugShapeConeCommand;
5651
- const DebugShapeCubeCommand: DebugShapeCubeCommand;
5652
- const DebugShapeCylinderCommand: DebugShapeCylinderCommand;
5653
- const DebugShapeShowForceCommand: DebugShapeShowForceCommand;
5654
- const DebugShapeSphereCommand: DebugShapeSphereCommand;
5655
- const DebugShapeSubCommand: DebugShapeSubCommand;
5656
- const DestroyBlockInteraction: DestroyBlockInteraction;
5657
- const DirectionalKnockback: DirectionalKnockback;
5658
- const EmoteCommand: EmoteCommand;
5659
- const EnableTmpTagsCommand: EnableTmpTagsCommand;
5660
- const ExplodeInteraction: ExplodeInteraction;
5661
- const FluidIterator: FluidIterator;
5662
- const FlyCameraModule: FlyCameraModule;
5663
- const ForceAccumulator: ForceAccumulator;
5664
- const ForceKnockback: ForceKnockback;
5665
- const GenerateDefaultLanguageEvent: GenerateDefaultLanguageEvent;
5666
- const GenerateI18nCommand: GenerateI18nCommand;
5667
- const IncrementCooldownInteraction: IncrementCooldownInteraction;
5668
- const InteractionCameraSettings: InteractionCameraSettings;
5669
- const InteractionClearCommand: InteractionClearCommand;
5670
- const InteractionCommand: InteractionCommand;
5671
- const InteractionPacketGenerator: InteractionPacketGenerator;
5672
- const InteractionPriorityCodec: InteractionPriorityCodec;
5673
- const InteractionRules: InteractionRules;
5674
- const InteractionRunCommand: InteractionRunCommand;
5675
- const InteractionRunSpecificCommand: InteractionRunSpecificCommand;
5676
- const InteractionSetSnapshotSourceCommand: InteractionSetSnapshotSourceCommand;
5677
- const InteractionSnapshotSourceCommand: InteractionSnapshotSourceCommand;
5678
- const InternationalizationCommands: InternationalizationCommands;
5679
- const InterruptInteraction: InterruptInteraction;
5680
- const ItemQualityPacketGenerator: ItemQualityPacketGenerator;
5681
- const ItemRepairPageSupplier: ItemRepairPageSupplier;
5682
- const LangFileParser: LangFileParser;
5683
- const MultiBlockMask: MultiBlockMask;
5684
- const OpenContainerInteraction: OpenContainerInteraction;
5685
- const OpenItemStackContainerInteraction: OpenItemStackContainerInteraction;
5686
- const PhysicsBodyState: PhysicsBodyState;
5687
- const PhysicsBodyStateUpdater: PhysicsBodyStateUpdater;
5688
- const PhysicsBodyStateUpdaterMidpoint: PhysicsBodyStateUpdaterMidpoint;
5689
- const PhysicsBodyStateUpdaterRK4: PhysicsBodyStateUpdaterRK4;
5690
- const PhysicsBodyStateUpdaterSymplecticEuler: PhysicsBodyStateUpdaterSymplecticEuler;
5691
- const PhysicsConstants: PhysicsConstants;
5692
- const PhysicsFlags: PhysicsFlags;
5693
- const PlayCommand: PlayCommand;
5694
- const PlayerMatcher: PlayerMatcher;
5695
- const PlayerSkinPartType: PlayerSkinPartType;
5696
- const PlayFriendCommand: PlayFriendCommand;
5697
- const PlayLanCommand: PlayLanCommand;
5698
- const PlayOnlineCommand: PlayOnlineCommand;
5699
- const PointKnockback: PointKnockback;
5700
- const PrefabBufferBlockEntry: PrefabBufferBlockEntry;
5701
- const PrefabBufferCall: PrefabBufferCall;
5702
- const PrefabSpawnerCommand: PrefabSpawnerCommand;
5703
- const PrefabSpawnerGetCommand: PrefabSpawnerGetCommand;
5704
- const PrefabSpawnerModule: PrefabSpawnerModule;
5705
- const PrefabSpawnerSetCommand: PrefabSpawnerSetCommand;
5706
- const PrefabSpawnerWeightCommand: PrefabSpawnerWeightCommand;
5707
- const ResetCooldownInteraction: ResetCooldownInteraction;
5708
- const RestingSupport: RestingSupport;
5709
- const RootInteractionPacketGenerator: RootInteractionPacketGenerator;
5710
- const RunRootInteraction: RunRootInteraction;
5711
- const SelectionPrefabSerializer: SelectionPrefabSerializer;
5712
- const SendMessageInteraction: SendMessageInteraction;
5713
- const SpawnItemCommand: SpawnItemCommand;
5714
- const SpawnPrefabInteraction: SpawnPrefabInteraction;
5715
- const SplitVelocity: SplitVelocity;
5716
- const StatsConditionInteraction: StatsConditionInteraction;
5717
- const StatsConditionWithModifierInteraction: StatsConditionWithModifierInteraction;
5718
- const TimePacketSystem: TimePacketSystem;
5719
- const TimeSystem: TimeSystem;
5720
- const ToggleGliderInteraction: ToggleGliderInteraction;
5721
- const TriggerCooldownInteraction: TriggerCooldownInteraction;
5722
- const UnbanCommand: UnbanCommand;
5723
- const UpdateBinaryPrefabException: UpdateBinaryPrefabException;
5724
- const UseBlockInteraction: UseBlockInteraction;
5725
- const VulnerableMatcher: VulnerableMatcher;
5726
- const WhitelistAddCommand: WhitelistAddCommand;
5727
- const WhitelistClearCommand: WhitelistClearCommand;
5728
- const WhitelistCommand: WhitelistCommand;
5729
- const WhitelistDisableCommand: WhitelistDisableCommand;
5730
- const WhitelistEnableCommand: WhitelistEnableCommand;
5731
- const WhitelistListCommand: WhitelistListCommand;
5732
- const WhitelistRemoveCommand: WhitelistRemoveCommand;
5733
- const WhitelistStatusCommand: WhitelistStatusCommand;
5734
- const EventTitleUtil: EventTitleUtil;
5735
- const MySQLManager: MySQLManager;
5736
- const TableBuilder: TableBuilderConstructor;
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;
5737
5178
  }
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[];
5179
+ export interface AddReason {
5180
+ name(): string;
5747
5181
  }
5748
- export interface PageManager {
5749
- setActiveCustomPage(arg0: PlayerRef, arg1: ScriptCustomUIPage | null): void;
5750
- getActiveCustomPage(): ScriptCustomUIPage | null;
5182
+ export interface AddReasonEnum {
5183
+ SPAWN: AddReason;
5184
+ LOAD: AddReason;
5185
+ EXTERNAL: AddReason;
5186
+ WORLDGEN: AddReason;
5751
5187
  }
5752
- export interface HudManager {
5753
- setCustomHud(arg0: PlayerRef, arg1: ScriptCustomUIHud | null): void;
5754
- getCustomHud(): ScriptCustomUIHud | null;
5188
+ export interface RemoveReason {
5189
+ name(): string;
5755
5190
  }
5756
- export interface ScriptCustomUIHud {
5757
- triggerShow(): void;
5758
- triggerUpdate(commandBuilder: UICommandBuilder): void;
5759
- triggerUpdate(commandBuilder: UICommandBuilder, clear: boolean): void;
5191
+ export interface RemoveReasonEnum {
5192
+ DESPAWN: RemoveReason;
5193
+ UNLOAD: RemoveReason;
5194
+ EXTERNAL: RemoveReason;
5760
5195
  }
5761
- export interface ScriptCustomUIPage {
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 {
5762
5449
  triggerRebuild(): void;
5763
5450
  triggerSendUpdate(): void;
5764
5451
  triggerSendUpdate(commandBuilder: UICommandBuilder): void;
5765
5452
  triggerSendUpdate(commandBuilder: UICommandBuilder, clear: boolean): void;
5766
5453
  triggerClose(): void;
5767
5454
  getPlayerRef(): PlayerRef;
5768
- getPageLifetime(): unknown;
5769
- setPageLifetime(lifetime: unknown): void;
5455
+ getPageLifetime(): CustomPageLifetime;
5456
+ setPageLifetime(lifetime: CustomPageLifetime): void;
5770
5457
  }
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;
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;
5776
5462
  }
5777
- export interface UIEventBuilder {
5778
- on(eventName: string, callback: string): UIEventBuilder;
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;
5779
5469
  }
5780
- export interface ByteArrayCommonAsset {
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 {
5781
5476
  getName(): string;
5782
5477
  getHash(): string;
5478
+ getBlob(): JavaCompletableFuture<JavaByteArray>;
5783
5479
  }
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;
5480
+ export interface ByteArrayCommonAsset extends CommonAsset {
5790
5481
  }
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;
5482
+ export interface ByteArrayCommonAssetStatic {
5483
+ new (name: string, bytes: JavaByteArray): ByteArrayCommonAsset;
5484
+ new (name: string, content: string): ByteArrayCommonAsset;
5793
5485
  }
5794
5486
  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;
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;
5802
5492
  }
5803
5493
  export interface NPCEntity extends LivingEntity {
5804
5494
  getRole(): Role | null;
@@ -5824,9 +5514,9 @@ export interface NPCEntity extends LivingEntity {
5824
5514
  setDespawnAnimationRemainingSeconds(seconds: number): void;
5825
5515
  setInitialModelScale(scale: number): void;
5826
5516
  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;
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;
5830
5520
  getSpawnInstant(): unknown;
5831
5521
  setSpawnInstant(instant: unknown): void;
5832
5522
  getEnvironmentIndex(): number;
@@ -5835,9 +5525,14 @@ export interface NPCEntity extends LivingEntity {
5835
5525
  setSpawnTracked(tracked: boolean): void;
5836
5526
  }
5837
5527
  export interface NPCEntityStatic {
5838
- getComponentType(): ComponentType | null;
5528
+ getComponentType(): ComponentType<EntityStore, NPCEntity> | null;
5839
5529
  CODEC: unknown;
5840
5530
  }
5531
+ export interface LivingEntity extends Entity {
5532
+ getInventory(): Inventory;
5533
+ setInventory(inventory: Inventory): Inventory;
5534
+ getStatMap(): EntityStatMap | null;
5535
+ }
5841
5536
  export interface Role {
5842
5537
  getRoleIndex(): number;
5843
5538
  getRoleName(): string;
@@ -5852,7 +5547,7 @@ export interface Role {
5852
5547
  isRoleChangeRequested(): boolean;
5853
5548
  canBreathe(breathingMaterial: unknown, fluidId: number): boolean;
5854
5549
  requiresLeashPosition(): boolean;
5855
- setMarkedTarget(targetSlot: string, target: Ref): void;
5550
+ setMarkedTarget(targetSlot: string, target: Ref<EntityStore>): void;
5856
5551
  getAppearance(): string;
5857
5552
  getInitialMaxHealth(): number;
5858
5553
  getCollisionRadius(): number;
@@ -5878,18 +5573,18 @@ export interface Role {
5878
5573
  getNameTranslationKey(): string;
5879
5574
  }
5880
5575
  export interface CombatSupport {
5881
- getCanCauseDamage(attackerRef: Ref, componentAccessor: ComponentAccessor): boolean;
5576
+ getCanCauseDamage(attackerRef: Ref<EntityStore>, componentAccessor: ComponentAccessor<EntityStore>): boolean;
5882
5577
  }
5883
5578
  export interface StateSupport {
5884
- setState(ref: Ref, state: string, subState: string | null, componentAccessor: ComponentAccessor): void;
5579
+ setState(ref: Ref<EntityStore>, state: string, subState: string | null, componentAccessor: ComponentAccessor<EntityStore>): void;
5885
5580
  getState(): string | null;
5886
5581
  getSubState(): string | null;
5887
- addInteraction(ref: Ref, interactionRef: Ref, componentAccessor: ComponentAccessor): void;
5888
- willInteractWith(ref: Ref): boolean;
5582
+ addInteraction(ref: Ref<EntityStore>, interactionRef: Ref<EntityStore>, componentAccessor: ComponentAccessor<EntityStore>): void;
5583
+ willInteractWith(ref: Ref<EntityStore>): boolean;
5889
5584
  }
5890
5585
  export interface MarkedEntitySupport {
5891
- getMarkedTarget(targetSlot: string): Ref | null;
5892
- setMarkedTarget(targetSlot: string, target: Ref): void;
5586
+ getMarkedTarget(targetSlot: string): Ref<EntityStore> | null;
5587
+ setMarkedTarget(targetSlot: string, target: Ref<EntityStore>): void;
5893
5588
  clearMarkedTarget(targetSlot: string): void;
5894
5589
  hasMarkedTarget(targetSlot: string): boolean;
5895
5590
  }
@@ -5898,7 +5593,7 @@ export interface WorldSupport {
5898
5593
  }
5899
5594
  export interface EntitySupport {
5900
5595
  getDisplayName(): string | null;
5901
- setDisplayName(ref: Ref, displayName: string, componentAccessor: ComponentAccessor): void;
5596
+ setDisplayName(ref: Ref<EntityStore>, displayName: string, componentAccessor: ComponentAccessor<EntityStore>): void;
5902
5597
  }
5903
5598
  export interface PositionCache {
5904
5599
  getPosition(): Vector3d;
@@ -5916,7 +5611,7 @@ export interface AlarmStore {
5916
5611
  }
5917
5612
  export interface DamageData {
5918
5613
  reset(): void;
5919
- getLastDamageSource(): Ref | null;
5614
+ getLastDamageSource(): Ref<EntityStore> | null;
5920
5615
  getLastDamageAmount(): number;
5921
5616
  getLastDamageTime(): number;
5922
5617
  getTotalDamageReceived(): number;
@@ -5939,40 +5634,40 @@ export interface NPCPlugin {
5939
5634
  hasRoleName(roleName: string): boolean;
5940
5635
  validateSpawnableRole(roleName: string): void;
5941
5636
  getRoleTemplateNames(spawnableOnly: boolean): string[];
5942
- tryGetCachedValidRole(roleIndex: number): Builder | null;
5637
+ tryGetCachedValidRole(roleIndex: number): Builder<Role> | null;
5943
5638
  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;
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>;
5948
5643
  getAttitudeMap(): AttitudeMap;
5949
5644
  getItemAttitudeMap(): ItemAttitudeMap;
5950
5645
  getBuilderManager(): BuilderManager;
5951
- getBeaconSupportComponentType(): ComponentType;
5952
- getNpcBlockEventSupportComponentType(): ComponentType;
5953
- getNpcEntityEventSupportComponentType(): ComponentType;
5954
- getTimersComponentType(): ComponentType;
5955
- getStateEvaluatorComponentType(): ComponentType;
5956
- getValueStoreComponentType(): ComponentType;
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>;
5957
5652
  }
5958
5653
  export interface NPCPluginStatic {
5959
5654
  get(): NPCPlugin;
5960
5655
  reloadNPCsWithRole(roleIndex: number): void;
5961
- buildRole(roleBuilder: Builder, builderInfo: BuilderInfo, builderSupport: BuilderSupport, roleIndex: number): Role;
5656
+ buildRole(roleBuilder: Builder<Role>, builderInfo: BuilderInfo, builderSupport: BuilderSupport, roleIndex: number): Role;
5962
5657
  }
5963
5658
  export interface INonPlayerCharacter {
5964
5659
  getRole(): Role | null;
5965
5660
  getRoleIndex(): number;
5966
5661
  }
5967
- export interface Builder {
5968
- build2(builderSupport: BuilderSupport): unknown;
5662
+ export interface Builder<T> {
5663
+ build2(builderSupport: BuilderSupport): T;
5969
5664
  getBuilderParameters(): unknown;
5970
5665
  category(): unknown;
5971
5666
  isSpawnable(): boolean;
5972
5667
  }
5973
5668
  export interface BuilderInfo {
5974
5669
  getKeyName(): string;
5975
- getBuilder(): Builder;
5670
+ getBuilder(): Builder<unknown>;
5976
5671
  isValid(): boolean;
5977
5672
  isValidated(): boolean;
5978
5673
  setNeedsReload(): void;
@@ -5984,7 +5679,7 @@ export interface BuilderSupport {
5984
5679
  export interface BuilderManager {
5985
5680
  getIndex(builderName: string): number;
5986
5681
  lookupName(builderIndex: number): string | null;
5987
- tryGetCachedValidRole(roleIndex: number): Builder | null;
5682
+ tryGetCachedValidRole(roleIndex: number): Builder<Role> | null;
5988
5683
  tryGetBuilderInfo(builderIndex: number): BuilderInfo | null;
5989
5684
  getCachedBuilderInfo(roleIndex: number, category: unknown): BuilderInfo;
5990
5685
  validateBuilder(builderInfo: BuilderInfo): boolean;
@@ -6004,6 +5699,22 @@ export interface ItemAttitudeMap {
6004
5699
  getAttitude(groupIndex: number, itemIndex: number): number;
6005
5700
  getAttitudeGroupCount(): number;
6006
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
+ }
6007
5718
  export interface Model {
6008
5719
  getId(): string;
6009
5720
  getModelAssetId(): string;
@@ -6017,97 +5728,786 @@ export interface ModelStatic {
6017
5728
  export interface ModelAsset {
6018
5729
  getId(): string;
6019
5730
  }
6020
- export interface JavaPair {
6021
- first(): unknown;
6022
- second(): unknown;
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;
6053
+ const ItemSpatialSystem: ItemSpatialSystem;
6054
+ const ItemStackContainerWindow: ItemStackContainerWindow;
6055
+ const ItemSystems: ItemSystems;
6056
+ const ItemUtils: ItemUtils;
6057
+ const JumpOperation: JumpOperation;
6058
+ const KillFeedEvent: KillFeedEvent;
6059
+ const KnockbackComponent: KnockbackComponent;
6060
+ const KnockbackPredictionSystems: KnockbackPredictionSystems;
6061
+ const KnockbackSimulation: KnockbackSimulation;
6062
+ const KnockbackSystems: KnockbackSystems;
6063
+ const Label: Label;
6064
+ const LaunchPadInteraction: LaunchPadInteraction;
6065
+ const LaunchProjectileInteraction: LaunchProjectileInteraction;
6066
+ const LegacyEntityTrackerSystems: LegacyEntityTrackerSystems;
6067
+ const LegacyProjectileSystems: LegacyProjectileSystems;
6068
+ const LivingEntityEffectClearChangesSystem: LivingEntityEffectClearChangesSystem;
6069
+ const LivingEntityEffectSystem: LivingEntityEffectSystem;
6070
+ const LivingEntityInventoryChangeEvent: LivingEntityInventoryChangeEvent;
6071
+ const LivingEntityUseBlockEvent: LivingEntityUseBlockEvent;
6072
+ const LogicCondition: LogicCondition;
6073
+ const MaterialExtraResourcesSection: MaterialExtraResourcesSection;
6074
+ const MessagesUpdated: MessagesUpdated;
6075
+ const ModelComponent: ModelComponent;
6076
+ const ModelOverride: ModelOverride;
6077
+ const ModelSystems: ModelSystems;
6078
+ const ModifyInventoryInteraction: ModifyInventoryInteraction;
6079
+ const MovementAudioComponent: MovementAudioComponent;
6080
+ const MovementConditionInteraction: MovementConditionInteraction;
6081
+ const MovementConfig: MovementConfig;
6082
+ const MovementManager: MovementManager;
6083
+ const MovementStatesComponent: MovementStatesComponent;
6084
+ const MovementStatesSystems: MovementStatesSystems;
6085
+ const Nameplate: Nameplate;
6086
+ const NameplateSystems: NameplateSystems;
6087
+ const NetworkId: NetworkId;
6088
+ const NetworkSendableSpatialSystem: NetworkSendableSpatialSystem;
6089
+ const NewSpawnComponent: NewSpawnComponent;
6090
+ const NoDamageTakenCondition: NoDamageTakenCondition;
6091
+ const OperationsBuilder: OperationsBuilder;
6092
+ const OutOfCombatCondition: OutOfCombatCondition;
6093
+ const OverlapBehavior: OverlapBehavior;
6094
+ const PageManager: PageManager;
6095
+ const ParallelInteraction: ParallelInteraction;
6096
+ const Particle: Particle;
6097
+ const ParticleAnimationFrame: ParticleAnimationFrame;
6098
+ const ParticleAttractor: ParticleAttractor;
6099
+ const ParticleCollision: ParticleCollision;
6100
+ const ParticleCommand: ParticleCommand;
6101
+ const ParticleSpawnCommand: ParticleSpawnCommand;
6102
+ const ParticleSpawner: ParticleSpawner;
6103
+ const ParticleSpawnerGroup: ParticleSpawnerGroup;
6104
+ const ParticleSpawnerPacketGenerator: ParticleSpawnerPacketGenerator;
6105
+ const ParticleSpawnPage: ParticleSpawnPage;
6106
+ const ParticleSystemPacketGenerator: ParticleSystemPacketGenerator;
6107
+ const PendingTeleport: PendingTeleport;
6108
+ const PersistentModel: PersistentModel;
6109
+ const PersistentRef: PersistentRef;
6110
+ const PersistentRefCount: PersistentRefCount;
6111
+ const PhysicsMath: PhysicsMath;
6112
+ const PickBlockInteraction: PickBlockInteraction;
6113
+ const PickupItemComponent: PickupItemComponent;
6114
+ const PickupItemSystem: PickupItemSystem;
6115
+ const PlaceBlockInteraction: PlaceBlockInteraction;
6116
+ const PlacedByInteractionComponent: PlacedByInteractionComponent;
6117
+ const PlaceFluidInteraction: PlaceFluidInteraction;
6118
+ const PlacementCountConditionInteraction: PlacementCountConditionInteraction;
6119
+ const Player: Player;
6120
+ const PlayerCameraAddSystem: PlayerCameraAddSystem;
6121
+ const PlayerChunkTrackerSystems: PlayerChunkTrackerSystems;
6122
+ const PlayerCollisionResultAddSystem: PlayerCollisionResultAddSystem;
6123
+ const PlayerCondition: PlayerCondition;
6124
+ const PlayerConfigData: PlayerConfigData;
6125
+ const PlayerConnectionFlushSystem: PlayerConnectionFlushSystem;
6126
+ const PlayerDeathPositionData: PlayerDeathPositionData;
6127
+ const PlayerHudManagerSystems: PlayerHudManagerSystems;
6128
+ const PlayerItemEntityPickupSystem: PlayerItemEntityPickupSystem;
6129
+ const PlayerMovementManagerSystems: PlayerMovementManagerSystems;
6130
+ const PlayerPingSystem: PlayerPingSystem;
6131
+ const PlayerProcessMovementSystem: PlayerProcessMovementSystem;
6132
+ const PlayerRegenerateStatsSystem: PlayerRegenerateStatsSystem;
6133
+ const PlayerRespawnPointData: PlayerRespawnPointData;
6134
+ const PlayerSavingSystems: PlayerSavingSystems;
6135
+ const PlayerSendInventorySystem: PlayerSendInventorySystem;
6136
+ const PlayerSkinComponent: PlayerSkinComponent;
6137
+ const PlayerSkinGradient: PlayerSkinGradient;
6138
+ const PlayerSkinGradientSet: PlayerSkinGradientSet;
6139
+ const PlayerSkinPart: PlayerSkinPart;
6140
+ const PlayerSkinPartTexture: PlayerSkinPartTexture;
6141
+ const PlayerSkinTintColor: PlayerSkinTintColor;
6142
+ const PlayerSpatialSystem: PlayerSpatialSystem;
6143
+ const PlayerSystems: PlayerSystems;
6144
+ const PlayerWorldData: PlayerWorldData;
6145
+ const PositionDataComponent: PositionDataComponent;
6146
+ const PredictedProjectile: PredictedProjectile;
6147
+ const PredictedProjectileSystems: PredictedProjectileSystems;
6148
+ const PrefabBufferColumn: PrefabBufferColumn;
6149
+ const PrefabBufferUtil: PrefabBufferUtil;
6150
+ const PrefabCopyableComponent: PrefabCopyableComponent;
6151
+ const PrefabLoadException: PrefabLoadException;
6152
+ const PrefabPasteEvent: PrefabPasteEvent;
6153
+ const PrefabPlaceEntityEvent: PrefabPlaceEntityEvent;
6154
+ const PrefabSaveException: PrefabSaveException;
6155
+ const PrefabSpawnerState: PrefabSpawnerState;
6156
+ const PrefabStore: PrefabStore;
6157
+ const PreventItemMerging: PreventItemMerging;
6158
+ const PreventPickup: PreventPickup;
6159
+ const Projectile: Projectile;
6160
+ const ProjectileComponent: ProjectileComponent;
6161
+ const ProjectileConfig: ProjectileConfig;
6162
+ const ProjectileConfigPacketGenerator: ProjectileConfigPacketGenerator;
6163
+ const ProjectileInteraction: ProjectileInteraction;
6164
+ const PropComponent: PropComponent;
6165
+ const RaycastSelector: RaycastSelector;
6166
+ const RecipePacketGenerator: RecipePacketGenerator;
6167
+ const RefillContainerInteraction: RefillContainerInteraction;
6168
+ const RegeneratingModifier: RegeneratingModifier;
6169
+ const RegeneratingValue: RegeneratingValue;
6170
+ const RegenHealthCondition: RegenHealthCondition;
6171
+ const RemovalBehavior: RemovalBehavior;
6172
+ const RemoveEntityInteraction: RemoveEntityInteraction;
6173
+ const RepairItemInteraction: RepairItemInteraction;
6174
+ const RepeatInteraction: RepeatInteraction;
6175
+ const ReplaceInteraction: ReplaceInteraction;
6176
+ const Repulsion: Repulsion;
6177
+ const RepulsionConfig: RepulsionConfig;
6178
+ const RepulsionConfigPacketGenerator: RepulsionConfigPacketGenerator;
6179
+ const RepulsionSystems: RepulsionSystems;
6180
+ const RespawnPage: RespawnPage;
6181
+ const RespawnSystems: RespawnSystems;
6182
+ const RespondToHit: RespondToHit;
6183
+ const RespondToHitSystems: RespondToHitSystems;
6184
+ const RotateObjectComponent: RotateObjectComponent;
6185
+ const RotateObjectSystem: RotateObjectSystem;
6186
+ const SelectInteraction: SelectInteraction;
6187
+ const SelectionManager: SelectionManager;
6188
+ const SerialInteraction: SerialInteraction;
6189
+ const ServerPlayerListModule: ServerPlayerListModule;
6190
+ const SingleplayerRequestAccessEvent: SingleplayerRequestAccessEvent;
6191
+ const SnapshotBuffer: SnapshotBuffer;
6192
+ const SnapshotSystems: SnapshotSystems;
6193
+ const SprintingCondition: SprintingCondition;
6194
+ const SprintStaminaRegenDelay: SprintStaminaRegenDelay;
6195
+ const StabSelector: StabSelector;
6196
+ const StaminaGameplayConfig: StaminaGameplayConfig;
6197
+ const StaminaModule: StaminaModule;
6198
+ const StaminaSystems: StaminaSystems;
6199
+ const StandardPhysicsConfig: StandardPhysicsConfig;
6200
+ const StandardPhysicsTickSystem: StandardPhysicsTickSystem;
6201
+ const StatCondition: StatCondition;
6202
+ const StaticModifier: StaticModifier;
6203
+ const StatModifiersManager: StatModifiersManager;
6204
+ const StatModifyingSystem: StatModifyingSystem;
6205
+ const StringTag: StringTag;
6206
+ const SuffocatingCondition: SuffocatingCondition;
6207
+ const TangiableEntitySpatialSystem: TangiableEntitySpatialSystem;
6208
+ const TargetEntityEffect: TargetEntityEffect;
6209
+ const Teleport: Teleport;
6210
+ const TeleportSystems: TeleportSystems;
6211
+ const TimeModule: TimeModule;
6212
+ const TrackedPlacement: TrackedPlacement;
6213
+ const TransformSystems: TransformSystems;
6214
+ const UIComponentList: UIComponentList;
6215
+ const UIComponentSystems: UIComponentSystems;
6216
+ const UnarmedInteractions: UnarmedInteractions;
6217
+ const UnarmedInteractionsPacketGenerator: UnarmedInteractionsPacketGenerator;
6218
+ const UniqueItemUsagesComponent: UniqueItemUsagesComponent;
6219
+ const UpdateEntitySeedSystem: UpdateEntitySeedSystem;
6220
+ const UpdateLocationSystems: UpdateLocationSystems;
6221
+ const UseEntityInteraction: UseEntityInteraction;
6222
+ const UUIDComponent: UUIDComponent;
6223
+ const VelocityConfig: VelocityConfig;
6224
+ const VelocitySystems: VelocitySystems;
6225
+ const WieldingCondition: WieldingCondition;
6226
+ const WieldingInteraction: WieldingInteraction;
6227
+ const WindowManager: WindowManager;
6228
+ const WorldGenId: WorldGenId;
6229
+ const WorldParticle: WorldParticle;
6230
+ const WorldTimeResource: WorldTimeResource;
6231
+ const WorldTimeSystems: WorldTimeSystems;
6232
+ const WorldUtil: WorldUtil;
6233
+ const AccessControlModule: AccessControlModule;
6234
+ const BlockCounter: BlockCounter;
6235
+ const BlockFilter: BlockFilter;
6236
+ const BlockHealth: BlockHealth;
6237
+ const BlockHealthModule: BlockHealthModule;
6238
+ const BlockMask: BlockMask;
6239
+ const BlockModule: BlockModule;
6240
+ const BlockPattern: BlockPattern;
6241
+ const BlockSetLookupTable: BlockSetLookupTable;
6242
+ const BlockTracker: BlockTracker;
6243
+ const BoxBlockIntersectionEvaluator: BoxBlockIntersectionEvaluator;
6244
+ const ChangeActiveSlotInteraction: ChangeActiveSlotInteraction;
6245
+ const CollisionDataArray: CollisionDataArray<unknown>;
6246
+ const CollisionMath: CollisionMath;
6247
+ const CollisionModule: CollisionModule;
6248
+ const CollisionResult: CollisionResult;
6249
+ const CollisionTracker: CollisionTracker;
6250
+ const CosmeticRegistry: CosmeticRegistry;
6251
+ const CosmeticsModule: CosmeticsModule;
6252
+ const ForceProviderStandardState: ForceProviderStandardState;
6253
+ const FragileBlock: FragileBlock;
6254
+ const HytaleWhitelistProvider: HytaleWhitelistProvider;
6255
+ const I18nModule: I18nModule;
6256
+ const InfiniteBan: InfiniteBan;
6257
+ const InteractionModule: InteractionModule;
6258
+ const Interactions: Interactions;
6259
+ const ItemModule: ItemModule;
6260
+ const LegacyModule: LegacyModule;
6261
+ const ListCollector: ListCollector<unknown>;
6262
+ const MigrationModule: MigrationModule;
6263
+ const MovingBoxBoxCollisionEvaluator: MovingBoxBoxCollisionEvaluator;
6264
+ const PhysicsValues: PhysicsValues;
6265
+ const PhysicsValuesAddSystem: PhysicsValuesAddSystem;
6266
+ const PlayerSkin: PlayerSkin;
6267
+ const PlayerSkinPartId: PlayerSkinPartId;
6268
+ const PrefabLoader: PrefabLoader;
6269
+ const PrefabRotation: PrefabRotation;
6270
+ const PrefabWeights: PrefabWeights;
6271
+ const ProjectileModule: ProjectileModule;
6272
+ const RootInteraction: RootInteraction;
6273
+ const SimpleInteraction: SimpleInteraction;
6274
+ const SimplePhysicsProvider: SimplePhysicsProvider;
6275
+ const SingleCollector: SingleCollector<unknown>;
6276
+ const SingleplayerModule: SingleplayerModule;
6277
+ const StandardPhysicsProvider: StandardPhysicsProvider;
6278
+ const TimeCommand: TimeCommand;
6279
+ const TimedBan: TimedBan;
6280
+ const TimeResource: TimeResource;
6281
+ const TranslationMap: TranslationMap;
6282
+ const TreeCollector: TreeCollector<unknown>;
6283
+ const Velocity: Velocity;
6284
+ const AddItemInteraction: AddItemInteraction;
6285
+ const BanCommand: BanCommand;
6286
+ const BinaryPrefabBufferCodec: BinaryPrefabBufferCodec;
6287
+ const BlockConditionInteraction: BlockConditionInteraction;
6288
+ const BlockDataProvider: BlockDataProvider;
6289
+ const BlockInteractionUtils: BlockInteractionUtils;
6290
+ const BlockMaskConstants: BlockMaskConstants;
6291
+ const BlockPlaceUtils: BlockPlaceUtils;
6292
+ const BlockSetCommand: BlockSetCommand;
6293
+ const BodyType: BodyType;
6294
+ const BreakBlockInteraction: BreakBlockInteraction;
6295
+ const BsonPrefabBufferDeserializer: BsonPrefabBufferDeserializer;
6296
+ const CancelChainInteraction: CancelChainInteraction;
6297
+ const ChainFlagInteraction: ChainFlagInteraction;
6298
+ const ChangeBlockInteraction: ChangeBlockInteraction;
6299
+ const ChangeStateInteraction: ChangeStateInteraction;
6300
+ const ChangeStatInteraction: ChangeStatInteraction;
6301
+ const ChangeStatWithModifierInteraction: ChangeStatWithModifierInteraction;
6302
+ const CharacterCollisionData: CharacterCollisionData;
6303
+ const CollisionMaterial: CollisionMaterial;
6304
+ const ConditionInteraction: ConditionInteraction;
6305
+ const CooldownConditionInteraction: CooldownConditionInteraction;
6306
+ const CosmeticAssetValidator: CosmeticAssetValidator;
6307
+ const CosmeticType: CosmeticType;
6308
+ const CycleBlockGroupInteraction: CycleBlockGroupInteraction;
6309
+ const DamageClass: DamageClass;
6310
+ const DebugCommand: DebugCommand;
6311
+ const DebugShapeArrowCommand: DebugShapeArrowCommand;
6312
+ const DebugShapeClearCommand: DebugShapeClearCommand;
6313
+ const DebugShapeConeCommand: DebugShapeConeCommand;
6314
+ const DebugShapeCubeCommand: DebugShapeCubeCommand;
6315
+ const DebugShapeCylinderCommand: DebugShapeCylinderCommand;
6316
+ const DebugShapeShowForceCommand: DebugShapeShowForceCommand;
6317
+ const DebugShapeSphereCommand: DebugShapeSphereCommand;
6318
+ const DebugShapeSubCommand: DebugShapeSubCommand;
6319
+ const DestroyBlockInteraction: DestroyBlockInteraction;
6320
+ const DirectionalKnockback: DirectionalKnockback;
6321
+ const EmoteCommand: EmoteCommand;
6322
+ const EnableTmpTagsCommand: EnableTmpTagsCommand;
6323
+ const ExplodeInteraction: ExplodeInteraction;
6324
+ const FluidIterator: FluidIterator;
6325
+ const FlyCameraModule: FlyCameraModule;
6326
+ const ForceAccumulator: ForceAccumulator;
6327
+ const ForceKnockback: ForceKnockback;
6328
+ const GenerateDefaultLanguageEvent: GenerateDefaultLanguageEvent;
6329
+ const GenerateI18nCommand: GenerateI18nCommand;
6330
+ const IncrementCooldownInteraction: IncrementCooldownInteraction;
6331
+ const InteractionCameraSettings: InteractionCameraSettings;
6332
+ const InteractionClearCommand: InteractionClearCommand;
6333
+ const InteractionCommand: InteractionCommand;
6334
+ const InteractionPacketGenerator: InteractionPacketGenerator;
6335
+ const InteractionPriorityCodec: InteractionPriorityCodec;
6336
+ const InteractionRules: InteractionRules;
6337
+ const InteractionRunCommand: InteractionRunCommand;
6338
+ const InteractionRunSpecificCommand: InteractionRunSpecificCommand;
6339
+ const InteractionSetSnapshotSourceCommand: InteractionSetSnapshotSourceCommand;
6340
+ const InteractionSnapshotSourceCommand: InteractionSnapshotSourceCommand;
6341
+ const InternationalizationCommands: InternationalizationCommands;
6342
+ const InterruptInteraction: InterruptInteraction;
6343
+ const ItemQualityPacketGenerator: ItemQualityPacketGenerator;
6344
+ const ItemRepairPageSupplier: ItemRepairPageSupplier;
6345
+ const LangFileParser: LangFileParser;
6346
+ const MultiBlockMask: MultiBlockMask;
6347
+ const OpenContainerInteraction: OpenContainerInteraction;
6348
+ const OpenItemStackContainerInteraction: OpenItemStackContainerInteraction;
6349
+ const PhysicsBodyState: PhysicsBodyState;
6350
+ const PhysicsBodyStateUpdater: PhysicsBodyStateUpdater;
6351
+ const PhysicsBodyStateUpdaterMidpoint: PhysicsBodyStateUpdaterMidpoint;
6352
+ const PhysicsBodyStateUpdaterRK4: PhysicsBodyStateUpdaterRK4;
6353
+ const PhysicsBodyStateUpdaterSymplecticEuler: PhysicsBodyStateUpdaterSymplecticEuler;
6354
+ const PhysicsConstants: PhysicsConstants;
6355
+ const PhysicsFlags: PhysicsFlags;
6356
+ const PlayCommand: PlayCommand;
6357
+ const PlayerMatcher: PlayerMatcher;
6358
+ const PlayerSkinPartType: PlayerSkinPartType;
6359
+ const PlayFriendCommand: PlayFriendCommand;
6360
+ const PlayLanCommand: PlayLanCommand;
6361
+ const PlayOnlineCommand: PlayOnlineCommand;
6362
+ const PointKnockback: PointKnockback;
6363
+ const PrefabBufferBlockEntry: PrefabBufferBlockEntry;
6364
+ const PrefabBufferCall: PrefabBufferCall;
6365
+ const PrefabSpawnerCommand: PrefabSpawnerCommand;
6366
+ const PrefabSpawnerGetCommand: PrefabSpawnerGetCommand;
6367
+ const PrefabSpawnerModule: PrefabSpawnerModule;
6368
+ const PrefabSpawnerSetCommand: PrefabSpawnerSetCommand;
6369
+ const PrefabSpawnerWeightCommand: PrefabSpawnerWeightCommand;
6370
+ const ResetCooldownInteraction: ResetCooldownInteraction;
6371
+ const RestingSupport: RestingSupport;
6372
+ const RootInteractionPacketGenerator: RootInteractionPacketGenerator;
6373
+ const RunRootInteraction: RunRootInteraction;
6374
+ const SelectionPrefabSerializer: SelectionPrefabSerializer;
6375
+ const SendMessageInteraction: SendMessageInteraction;
6376
+ const SpawnItemCommand: SpawnItemCommand;
6377
+ const SpawnPrefabInteraction: SpawnPrefabInteraction;
6378
+ const SplitVelocity: SplitVelocity;
6379
+ const StatsConditionInteraction: StatsConditionInteraction;
6380
+ const StatsConditionWithModifierInteraction: StatsConditionWithModifierInteraction;
6381
+ const TimePacketSystem: TimePacketSystem;
6382
+ const TimeSystem: TimeSystem;
6383
+ const ToggleGliderInteraction: ToggleGliderInteraction;
6384
+ const TriggerCooldownInteraction: TriggerCooldownInteraction;
6385
+ const UnbanCommand: UnbanCommand;
6386
+ const UpdateBinaryPrefabException: UpdateBinaryPrefabException;
6387
+ const UseBlockInteraction: UseBlockInteraction;
6388
+ const VulnerableMatcher: VulnerableMatcher;
6389
+ const WhitelistAddCommand: WhitelistAddCommand;
6390
+ const WhitelistClearCommand: WhitelistClearCommand;
6391
+ const WhitelistCommand: WhitelistCommand;
6392
+ const WhitelistDisableCommand: WhitelistDisableCommand;
6393
+ const WhitelistEnableCommand: WhitelistEnableCommand;
6394
+ const WhitelistListCommand: WhitelistListCommand;
6395
+ const WhitelistRemoveCommand: WhitelistRemoveCommand;
6396
+ const WhitelistStatusCommand: WhitelistStatusCommand;
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;
6407
+ }
6408
+ export interface EventTitleUtil {
6409
+ DEFAULT_ZONE: string;
6410
+ DEFAULT_DURATION: number;
6411
+ DEFAULT_FADE_DURATION: number;
6412
+ /**
6413
+ * @param primaryTitle O título principal.
6414
+ * @param secondaryTitle O título secundário.
6415
+ * @param isMajor Se o título é major.
6416
+ * @param icon O ícone a ser exibido.
6417
+ * @param duration A duração do título.
6418
+ * @param fadeInDuration A duração do fade in.
6419
+ * @param fadeOutDuration A duração 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;
6023
6457
  }
6024
- export interface JavaPairStatic {
6025
- of(first: unknown, second: unknown): JavaPair;
6458
+ export interface PageManager {
6459
+ setActiveCustomPage(arg0: PlayerRef, arg1: ScriptCustomUIPage | null): void;
6460
+ getActiveCustomPage(): ScriptCustomUIPage | null;
6026
6461
  }
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;
6462
+ export interface HudManager {
6463
+ setCustomHud(arg0: PlayerRef, arg1: ScriptCustomUIHud | null): void;
6464
+ getCustomHud(): ScriptCustomUIHud | null;
6031
6465
  }
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;
6466
+ export interface ScriptCustomUIHud {
6467
+ triggerShow(): void;
6468
+ triggerUpdate(commandBuilder: UICommandBuilder): void;
6469
+ triggerUpdate(commandBuilder: UICommandBuilder, clear: boolean): void;
6035
6470
  }
6036
- export interface FlockAsset {
6037
- getId(): string;
6471
+ export interface ScriptCustomUIPage {
6472
+ triggerRebuild(): void;
6473
+ triggerSendUpdate(): void;
6474
+ triggerSendUpdate(commandBuilder: UICommandBuilder): void;
6475
+ triggerSendUpdate(commandBuilder: UICommandBuilder, clear: boolean): void;
6476
+ triggerClose(): void;
6477
+ getPlayerRef(): PlayerRef;
6478
+ getPageLifetime(): unknown;
6479
+ setPageLifetime(lifetime: unknown): void;
6038
6480
  }
6039
- export interface SpawningPlugin {
6040
- get(): SpawningPlugin;
6481
+ export interface UICommandBuilder {
6482
+ append(path: string): UICommandBuilder;
6483
+ set(selector: string, value: string): UICommandBuilder;
6484
+ set(selector: string, value: number): UICommandBuilder;
6485
+ set(selector: string, value: boolean): UICommandBuilder;
6041
6486
  }
6042
- export interface SpawningPluginStatic {
6043
- get(): SpawningPlugin;
6487
+ export interface UIEventBuilder {
6488
+ on(eventName: string, callback: string): UIEventBuilder;
6044
6489
  }
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;
6490
+ export interface ByteArrayCommonAsset {
6491
+ getName(): string;
6492
+ getHash(): string;
6056
6493
  }
6057
- export interface NPCDespawnEvent {
6058
- toString(): string;
6059
- getNpcRef(): Ref;
6060
- getNpcEntity(): NPCEntity;
6061
- getStore(): unknown;
6062
- getRoleIndex(): number;
6063
- getRoleName(): string;
6494
+ export interface ByteArrayCommonAssetConstructor {
6495
+ new (name: string, bytes: unknown): ByteArrayCommonAsset;
6496
+ new (name: string, content: string): ByteArrayCommonAsset;
6064
6497
  }
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;
6498
+ export interface ScriptCustomUIHudConstructor {
6499
+ new (playerRef: PlayerRef, buildCallback: (cmd: UICommandBuilder) => void): ScriptCustomUIHud;
6073
6500
  }
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;
6501
+ export interface ScriptCustomUIPageConstructor {
6502
+ 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;
6083
6503
  }
6084
- export interface NPCDeathEvent {
6085
- toString(): string;
6086
- getNpcRef(): Ref;
6087
- getNpcEntity(): NPCEntity;
6088
- getKillerRef(): Ref | null;
6504
+ export interface CommonAssetModule {
6505
+ get(): CommonAssetModule;
6506
+ addCommonAsset(namespace: string, asset: ByteArrayCommonAsset): void;
6089
6507
  }
6090
6508
  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;
6509
+ const EventTitleUtil: EventTitleUtil;
6510
+ const MySQLManager: MySQLManager;
6511
+ const TableBuilder: TableBuilderConstructor;
6112
6512
  }
6113
6513
  //# sourceMappingURL=types.d.ts.map