@hylithiumjs.com/core 1.4.3 → 1.4.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 +19 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1528,7 +1528,25 @@ export interface DefaultAssetMap {
|
|
|
1528
1528
|
export interface AssetStore {
|
|
1529
1529
|
getAssetMap(): DefaultAssetMap;
|
|
1530
1530
|
}
|
|
1531
|
-
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" | "PlayerDeathEvent";
|
|
1531
|
+
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" | "PlayerDeathEvent" | "NPCInteractEvent";
|
|
1532
|
+
/**
|
|
1533
|
+
* Event dispatched when a player interacts with an NPC using the F key.
|
|
1534
|
+
* This event is generated by HyLithiumJS's ScriptableUseNPCInteraction.
|
|
1535
|
+
*/
|
|
1536
|
+
export interface NPCInteractEvent {
|
|
1537
|
+
/** Gets the player who initiated the interaction */
|
|
1538
|
+
getPlayer(): Player;
|
|
1539
|
+
/** Gets the NPC role name (e.g., "Kweebec_Elder") */
|
|
1540
|
+
getNPCRole(): string;
|
|
1541
|
+
/** Gets the reference to the NPC entity */
|
|
1542
|
+
getNPCRef(): Ref<EntityStore>;
|
|
1543
|
+
/** Gets the interaction type */
|
|
1544
|
+
getInteractionType(): unknown;
|
|
1545
|
+
/** Cancels the default NPC interaction behavior */
|
|
1546
|
+
setCancelled(cancelled: boolean): void;
|
|
1547
|
+
/** Returns whether the event was cancelled */
|
|
1548
|
+
isCancelled(): boolean;
|
|
1549
|
+
}
|
|
1532
1550
|
export type HexColor = `#${string}`;
|
|
1533
1551
|
export declare const Colors: {
|
|
1534
1552
|
readonly RED: HexColor;
|