@wq2/miniblox-sdk 3.46.147-0.0.2 → 3.46.147-0.0.3

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +31 -27
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -2519,6 +2519,31 @@ declare class RayTraceResult {
2519
2519
  constructor(typeOfHit: TypeOfHit, hitVec: Vector3 | null, block: BlockPos | null, side: EnumFacing | null, entity: Entity | null);
2520
2520
  }
2521
2521
  //#endregion
2522
+ //#region src/enums.d.ts
2523
+ declare enum EnumDifficulty {
2524
+ PEACEFUL = 0,
2525
+ EASY = 1,
2526
+ NORMAL = 2,
2527
+ HARD = 3
2528
+ }
2529
+ declare enum EnumHand {
2530
+ MAIN_HAND = 0,
2531
+ OFF_HAND = 1
2532
+ }
2533
+ declare enum Equipment_Slot$1 {
2534
+ MAIN_HAND = 0,
2535
+ OFF_HAND = 1,
2536
+ FEET = 2,
2537
+ LEGS = 3,
2538
+ CHEST = 4,
2539
+ HEAD = 5
2540
+ }
2541
+ declare enum EnumCreatureAttribute {
2542
+ UNDEFINED = 0,
2543
+ UNDEAD = 1,
2544
+ ARTHROPOD = 2
2545
+ }
2546
+ //#endregion
2522
2547
  //#region src/controller/Controller.d.ts
2523
2548
  declare class PlayerControllerMP {
2524
2549
  lastSentSlot: number;
@@ -2558,7 +2583,7 @@ declare class PlayerController {
2558
2583
  middleClick(assumeActive?: boolean): void;
2559
2584
  rightClickMouse(): void;
2560
2585
  /** IMPORTANT: USE DUMPS */
2561
- onPlayerRightClick(e: EntityPlayer$1, world: World$1, item: ItemStack$1, pos: Vector3$2 | BlockPos$1, placeSide: EnumFacing$1, hitVec: Vector3$2): boolean;
2586
+ onPlayerRightClick(e: EntityPlayer$1, world: World$1, item: ItemStack$1, pos: Vector3$2 | BlockPos$1, placeSide: EnumFacing$1, hitVec: Vector3$2, hand: EnumHand): boolean;
2562
2587
  /** IMPORTANT: USE DUMPS */
2563
2588
  sendUseItem(plr: EntityLivingBase$1, world: World$1, item: ItemStack$1): boolean;
2564
2589
  /** IMPORTANT: USE DUMPS */
@@ -2583,10 +2608,10 @@ declare class PlayerController {
2583
2608
  dropItem(all?: boolean): void;
2584
2609
  update(): void;
2585
2610
  render(): void;
2586
- resolveUseHand(): number;
2611
+ resolveUseHand(): EnumHand;
2587
2612
  setHeldStack(stack: ItemStack$1): void;
2588
2613
  swapOffhand(): void;
2589
- swingHand(): void;
2614
+ swingHand(hand: EnumHand): void;
2590
2615
  tryFireWeapon(): void;
2591
2616
  tryOpenSpectateMenu(): void;
2592
2617
  updateWeaponFeel(): void;
@@ -3223,27 +3248,6 @@ declare class EffectRenderer$1 {
3223
3248
  canSpawnParticle(): boolean;
3224
3249
  }
3225
3250
  //#endregion
3226
- //#region src/enums.d.ts
3227
- declare enum EnumDifficulty {
3228
- PEACEFUL = 0,
3229
- EASY = 1,
3230
- NORMAL = 2,
3231
- HARD = 3
3232
- }
3233
- declare enum Equipment_Slot$1 {
3234
- MAIN_HAND = 0,
3235
- OFF_HAND = 1,
3236
- FEET = 2,
3237
- LEGS = 3,
3238
- CHEST = 4,
3239
- HEAD = 5
3240
- }
3241
- declare enum EnumCreatureAttribute {
3242
- UNDEFINED = 0,
3243
- UNDEAD = 1,
3244
- ARTHROPOD = 2
3245
- }
3246
- //#endregion
3247
3251
  //#region src/effects/enchantments.d.ts
3248
3252
  declare enum EnumEnchantmentType {
3249
3253
  ARMOR,
@@ -3514,7 +3518,7 @@ declare class EntityPlayer$1 extends EntityLivingBase$1 {
3514
3518
  namePrefix: string;
3515
3519
  homes: unknown;
3516
3520
  guideProgress: unknown;
3517
- itemInUseHand: number;
3521
+ itemInUseHand: EnumHand;
3518
3522
  itemInUseSlot: number;
3519
3523
  pendingUseHand: number;
3520
3524
  sentInputThisTick: boolean;
@@ -3632,7 +3636,7 @@ declare class EntityPlayer$1 extends EntityLivingBase$1 {
3632
3636
  getSoundInfo(): unknown;
3633
3637
  getEquippedChestStack(): ItemStack$1 | null;
3634
3638
  getArmorStacks(): ItemStack$1[];
3635
- getUseHand(): number;
3639
+ getUseHand(): EnumHand;
3636
3640
  toggleCameraPerspective(): void;
3637
3641
  beginDeathCamera(): void;
3638
3642
  endDeathCamera(): void;
@@ -4915,4 +4919,4 @@ declare function calculateXOffset(self: Box3$1, other: Box3$1, offset: number):
4915
4919
  declare function calculateYOffset(self: Box3$1, other: Box3$1, offset: number): number;
4916
4920
  declare function calculateZOffset(self: Box3$1, other: Box3$1, offset: number): number;
4917
4921
  //#endregion
4918
- export { type Abilities, type AllBlocks, type AnimationKeyframe, type AnimationLerp, type AnyPacket$1 as AnyPacket, type AttributeMap, type Axis, type AxisDirection, type BanPlayer, type Block, type BlockChest, type BlockPos$1 as BlockPos, type BlockState$1 as BlockState, type C2SPacket, type CPACKET_MAP, type CPacketAnimation$1 as CPacketAnimation, type CPacketBlockAction$1 as CPacketBlockAction, type CPacketBlockUpdate$1 as CPacketBlockUpdate, type CPacketChangeServers$1 as CPacketChangeServers, type CPacketChunkData$1 as CPacketChunkData, type CPacketCloseWindow$1 as CPacketCloseWindow, type CPacketConfirmTransaction$1 as CPacketConfirmTransaction, type CPacketDestroyEntities$1 as CPacketDestroyEntities, type CPacketDisconnect$1 as CPacketDisconnect, type CPacketEntityAction$1 as CPacketEntityAction, type CPacketEntityAttach$1 as CPacketEntityAttach, type CPacketEntityEffect$1 as CPacketEntityEffect, type CPacketEntityEquipment$1 as CPacketEntityEquipment, type CPacketEntityMetadata$1 as CPacketEntityMetadata, type CPacketEntityPositionAndRotation$1 as CPacketEntityPositionAndRotation, type CPacketEntityProperties$1 as CPacketEntityProperties, type CPacketEntityRelativePositionAndRotation$1 as CPacketEntityRelativePositionAndRotation, type CPacketEntityStatus$1 as CPacketEntityStatus, type CPacketEntityVelocity$1 as CPacketEntityVelocity, type CPacketExplosion$1 as CPacketExplosion, type CPacketJoinGame$1 as CPacketJoinGame, type CPacketLeaderboard$1 as CPacketLeaderboard, type CPacketLocalStorage$1 as CPacketLocalStorage, type CPacketLocalStorage_Action, type CPacketMessage$1 as CPacketMessage, type CPacketOpenShop$1 as CPacketOpenShop, type CPacketOpenWindow$1 as CPacketOpenWindow, type CPacketParticles$1 as CPacketParticles, type CPacketPlayerList$1 as CPacketPlayerList, type CPacketPlayerPosLook$1 as CPacketPlayerPosLook, type CPacketPlayerPosition$1 as CPacketPlayerPosition, type CPacketPlayerReconciliation$1 as CPacketPlayerReconciliation, type CPacketPong$1 as CPacketPong, type CPacketQueueNext$1 as CPacketQueueNext, type CPacketRemoveEntityEffect$1 as CPacketRemoveEntityEffect, type CPacketRespawn$1 as CPacketRespawn, type CPacketScoreboard$1 as CPacketScoreboard, type CPacketServerInfo$1 as CPacketServerInfo, type CPacketServerMetadata$1 as CPacketServerMetadata, type CPacketSetExperience$1 as CPacketSetExperience, type CPacketSetSlot$1 as CPacketSetSlot, type CPacketShopProperties$1 as CPacketShopProperties, type CPacketShopProperty, type CPacketSignEditorOpen$1 as CPacketSignEditorOpen, type CPacketSoundEffect$1 as CPacketSoundEffect, type CPacketSpawnEntity$1 as CPacketSpawnEntity, type CPacketSpawnExperienceOrb$1 as CPacketSpawnExperienceOrb, type CPacketSpawnPlayer$1 as CPacketSpawnPlayer, type CPacketTabComplete$1 as CPacketTabComplete, type CPacketTimeUpdate$1 as CPacketTimeUpdate, type CPacketTitle$1 as CPacketTitle, type CPacketUpdate$1 as CPacketUpdate, type CPacketUpdateCommandBlock$1 as CPacketUpdateCommandBlock, type CPacketUpdateHealth$1 as CPacketUpdateHealth, type CPacketUpdateLeaderboard$1 as CPacketUpdateLeaderboard, type CPacketUpdateScoreboard$1 as CPacketUpdateScoreboard, type CPacketUpdateSign$1 as CPacketUpdateSign, type CPacketUpdateStatus$1 as CPacketUpdateStatus, type CPacketUseBed$1 as CPacketUseBed, type CPacketWindowItems$1 as CPacketWindowItems, type CPacketWindowProperty$1 as CPacketWindowProperty, type Chat, type ChatData, type ChatLog, type Chunk, type ChunkProviderClient$1 as ChunkProviderClient, type ClientBoundCombined$1 as ClientBoundCombined, type ClientBoundCombined_CPacket, type ClientEntityPlayer, type ClientEntityPlayerOther, type ClientSocket, type ClientWorld, type CombatTracker, type CommandBlockLogic, type Container, type ContainerPlayer, type Containers, type DamageSource, type DataWatcher, type DemotePlayer, type EffectRenderer$1 as EffectRenderer, type EffectsManager, type EmptyChunk$1 as EmptyChunk, type Enchantment, type EnchantmentData, type EnchantmentProtection, type Enchantments, type Entity$1 as Entity, type EntityArrow, type EntityFX, type EntityItem$1 as EntityItem, type EntityLivingBase$1 as EntityLivingBase, type EntityName, type EntityPlayer$1 as EntityPlayer, type EnumCreatureAttribute, type EnumDifficulty, type EnumEnchantmentType, type EnumFacing$1 as EnumFacing, type EnumParticleTypes$1 as EnumParticleTypes, type Equipment, type Equipment_Slot$1 as Equipment_Slot, type EventMap, type Explosion$1 as Explosion, type Font, type FontLoader, type FoodStats, type Game, type GameInfo, type GameMenus, type GameMode, type GameProfile, type GameScene$1 as GameScene, type GameState, type Hud3D, type IChunkProvider, type ICrafting, type ID_TO_NAME, type ID_TO_PACKET, type IInterface, type Inventory$1 as Inventory, type InventoryEnderChest, type InventoryPlayer, type Item$1 as Item, type ItemAppleGold, type ItemArmor, type ItemBlock, type ItemBow, type ItemBucket, type ItemFood, type ItemHoe, type ItemID, type ItemMace, type ItemPickaxe, type ItemSeedFood, type ItemShovel, type ItemSpawnEgg, type ItemSpear, type ItemStack$1 as ItemStack, type ItemSword, type ItemThrowable, type ItemTool, type Items, type KickPlayer, type Level, type Material, type Materials, type Message, type MobilityFlag, type NAME_TO_ID, type OptionalShape, type Options, type Options$1, type PBBlockPos, type PBCell, type PBCosmetics, type PBFloatVector3, type PBItemStack, type PBModifier, type PBSnapshot, type PBTileEntity, type PBVector3, type PBWatchableObject, type Plane, type PlayerController, type PlayerControllerMP, type PlayerData, type PlayerMovement, type PlayerPermissionEntry, type Potion, type PotionEffect, type Potions, type Profile, type PromotePlayer, type RANK, type RankLevel, type RayTraceResult, type Recipe, type RecipeRegistry, type RenderEntity, type RenderLivingEntity, type RenderPlayer, type ResourceMonitor, type Result, type S2CPacket, type SPACKET_MAP, type SPacketAdminAction, type SPacketAnalytics, type SPacketBreakBlock, type SPacketClick, type SPacketClickWindow, type SPacketCloseWindow, type SPacketConfirmTransaction, type SPacketCraftItem, type SPacketEnchantItem, type SPacketEntityAction, type SPacketHeldItemChange, type SPacketLoginStart, type SPacketMessage, type SPacketOpenShop, type SPacketPing, type SPacketPlaceBlock, type SPacketPlayerAbilities, type SPacketPlayerAction, type SPacketPlayerInput, type SPacketPlayerPosLook, type SPacketQueueNext, type SPacketRequestChunk, type SPacketRespawn, type SPacketRespawn$1, type SPacketTabComplete$1, type SPacketUpdateCommandBlock, type SPacketUpdateInventory, type SPacketUpdateSign, type SPacketUseEntity, type SPacketUseItem, type ScoreboardContent, type ServerInfo, type Shape, type Slot, SlotActionType, type StopServer, type Team$1 as Team, type TextureManager, type TileEntitySign, type TypeOfHit, type UnbanPlayer, type UpdateAccessControl, type UpdateCheats, type UpdatePvP, type Vector3$1 as Vector3, type WithIngredients, type WithOptionalShape, type WithOptionalShapeAndIngredients, type WithResult, type WithShape, type World$1 as World, type calculateXOffset, type calculateYOffset, type calculateZOffset, type canCraftItem, type craftItem, type keyPressed, type rayTraceBlocks };
4922
+ export { type Abilities, type AllBlocks, type AnimationKeyframe, type AnimationLerp, type AnyPacket$1 as AnyPacket, type AttributeMap, type Axis, type AxisDirection, type BanPlayer, type Block, type BlockChest, type BlockPos$1 as BlockPos, type BlockState$1 as BlockState, type C2SPacket, type CPACKET_MAP, type CPacketAnimation$1 as CPacketAnimation, type CPacketBlockAction$1 as CPacketBlockAction, type CPacketBlockUpdate$1 as CPacketBlockUpdate, type CPacketChangeServers$1 as CPacketChangeServers, type CPacketChunkData$1 as CPacketChunkData, type CPacketCloseWindow$1 as CPacketCloseWindow, type CPacketConfirmTransaction$1 as CPacketConfirmTransaction, type CPacketDestroyEntities$1 as CPacketDestroyEntities, type CPacketDisconnect$1 as CPacketDisconnect, type CPacketEntityAction$1 as CPacketEntityAction, type CPacketEntityAttach$1 as CPacketEntityAttach, type CPacketEntityEffect$1 as CPacketEntityEffect, type CPacketEntityEquipment$1 as CPacketEntityEquipment, type CPacketEntityMetadata$1 as CPacketEntityMetadata, type CPacketEntityPositionAndRotation$1 as CPacketEntityPositionAndRotation, type CPacketEntityProperties$1 as CPacketEntityProperties, type CPacketEntityRelativePositionAndRotation$1 as CPacketEntityRelativePositionAndRotation, type CPacketEntityStatus$1 as CPacketEntityStatus, type CPacketEntityVelocity$1 as CPacketEntityVelocity, type CPacketExplosion$1 as CPacketExplosion, type CPacketJoinGame$1 as CPacketJoinGame, type CPacketLeaderboard$1 as CPacketLeaderboard, type CPacketLocalStorage$1 as CPacketLocalStorage, type CPacketLocalStorage_Action, type CPacketMessage$1 as CPacketMessage, type CPacketOpenShop$1 as CPacketOpenShop, type CPacketOpenWindow$1 as CPacketOpenWindow, type CPacketParticles$1 as CPacketParticles, type CPacketPlayerList$1 as CPacketPlayerList, type CPacketPlayerPosLook$1 as CPacketPlayerPosLook, type CPacketPlayerPosition$1 as CPacketPlayerPosition, type CPacketPlayerReconciliation$1 as CPacketPlayerReconciliation, type CPacketPong$1 as CPacketPong, type CPacketQueueNext$1 as CPacketQueueNext, type CPacketRemoveEntityEffect$1 as CPacketRemoveEntityEffect, type CPacketRespawn$1 as CPacketRespawn, type CPacketScoreboard$1 as CPacketScoreboard, type CPacketServerInfo$1 as CPacketServerInfo, type CPacketServerMetadata$1 as CPacketServerMetadata, type CPacketSetExperience$1 as CPacketSetExperience, type CPacketSetSlot$1 as CPacketSetSlot, type CPacketShopProperties$1 as CPacketShopProperties, type CPacketShopProperty, type CPacketSignEditorOpen$1 as CPacketSignEditorOpen, type CPacketSoundEffect$1 as CPacketSoundEffect, type CPacketSpawnEntity$1 as CPacketSpawnEntity, type CPacketSpawnExperienceOrb$1 as CPacketSpawnExperienceOrb, type CPacketSpawnPlayer$1 as CPacketSpawnPlayer, type CPacketTabComplete$1 as CPacketTabComplete, type CPacketTimeUpdate$1 as CPacketTimeUpdate, type CPacketTitle$1 as CPacketTitle, type CPacketUpdate$1 as CPacketUpdate, type CPacketUpdateCommandBlock$1 as CPacketUpdateCommandBlock, type CPacketUpdateHealth$1 as CPacketUpdateHealth, type CPacketUpdateLeaderboard$1 as CPacketUpdateLeaderboard, type CPacketUpdateScoreboard$1 as CPacketUpdateScoreboard, type CPacketUpdateSign$1 as CPacketUpdateSign, type CPacketUpdateStatus$1 as CPacketUpdateStatus, type CPacketUseBed$1 as CPacketUseBed, type CPacketWindowItems$1 as CPacketWindowItems, type CPacketWindowProperty$1 as CPacketWindowProperty, type Chat, type ChatData, type ChatLog, type Chunk, type ChunkProviderClient$1 as ChunkProviderClient, type ClientBoundCombined$1 as ClientBoundCombined, type ClientBoundCombined_CPacket, type ClientEntityPlayer, type ClientEntityPlayerOther, type ClientSocket, type ClientWorld, type CombatTracker, type CommandBlockLogic, type Container, type ContainerPlayer, type Containers, type DamageSource, type DataWatcher, type DemotePlayer, type EffectRenderer$1 as EffectRenderer, type EffectsManager, type EmptyChunk$1 as EmptyChunk, type Enchantment, type EnchantmentData, type EnchantmentProtection, type Enchantments, type Entity$1 as Entity, type EntityArrow, type EntityFX, type EntityItem$1 as EntityItem, type EntityLivingBase$1 as EntityLivingBase, type EntityName, type EntityPlayer$1 as EntityPlayer, type EnumCreatureAttribute, type EnumDifficulty, type EnumEnchantmentType, type EnumFacing$1 as EnumFacing, type EnumHand, type EnumParticleTypes$1 as EnumParticleTypes, type Equipment, type Equipment_Slot$1 as Equipment_Slot, type EventMap, type Explosion$1 as Explosion, type Font, type FontLoader, type FoodStats, type Game, type GameInfo, type GameMenus, type GameMode, type GameProfile, type GameScene$1 as GameScene, type GameState, type Hud3D, type IChunkProvider, type ICrafting, type ID_TO_NAME, type ID_TO_PACKET, type IInterface, type Inventory$1 as Inventory, type InventoryEnderChest, type InventoryPlayer, type Item$1 as Item, type ItemAppleGold, type ItemArmor, type ItemBlock, type ItemBow, type ItemBucket, type ItemFood, type ItemHoe, type ItemID, type ItemMace, type ItemPickaxe, type ItemSeedFood, type ItemShovel, type ItemSpawnEgg, type ItemSpear, type ItemStack$1 as ItemStack, type ItemSword, type ItemThrowable, type ItemTool, type Items, type KickPlayer, type Level, type Material, type Materials, type Message, type MobilityFlag, type NAME_TO_ID, type OptionalShape, type Options, type Options$1, type PBBlockPos, type PBCell, type PBCosmetics, type PBFloatVector3, type PBItemStack, type PBModifier, type PBSnapshot, type PBTileEntity, type PBVector3, type PBWatchableObject, type Plane, type PlayerController, type PlayerControllerMP, type PlayerData, type PlayerMovement, type PlayerPermissionEntry, type Potion, type PotionEffect, type Potions, type Profile, type PromotePlayer, type RANK, type RankLevel, type RayTraceResult, type Recipe, type RecipeRegistry, type RenderEntity, type RenderLivingEntity, type RenderPlayer, type ResourceMonitor, type Result, type S2CPacket, type SPACKET_MAP, type SPacketAdminAction, type SPacketAnalytics, type SPacketBreakBlock, type SPacketClick, type SPacketClickWindow, type SPacketCloseWindow, type SPacketConfirmTransaction, type SPacketCraftItem, type SPacketEnchantItem, type SPacketEntityAction, type SPacketHeldItemChange, type SPacketLoginStart, type SPacketMessage, type SPacketOpenShop, type SPacketPing, type SPacketPlaceBlock, type SPacketPlayerAbilities, type SPacketPlayerAction, type SPacketPlayerInput, type SPacketPlayerPosLook, type SPacketQueueNext, type SPacketRequestChunk, type SPacketRespawn, type SPacketRespawn$1, type SPacketTabComplete$1, type SPacketUpdateCommandBlock, type SPacketUpdateInventory, type SPacketUpdateSign, type SPacketUseEntity, type SPacketUseItem, type ScoreboardContent, type ServerInfo, type Shape, type Slot, SlotActionType, type StopServer, type Team$1 as Team, type TextureManager, type TileEntitySign, type TypeOfHit, type UnbanPlayer, type UpdateAccessControl, type UpdateCheats, type UpdatePvP, type Vector3$1 as Vector3, type WithIngredients, type WithOptionalShape, type WithOptionalShapeAndIngredients, type WithResult, type WithShape, type World$1 as World, type calculateXOffset, type calculateYOffset, type calculateZOffset, type canCraftItem, type craftItem, type keyPressed, type rayTraceBlocks };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wq2/miniblox-sdk",
3
- "version": "3.46.147-0.0.2",
3
+ "version": "3.46.147-0.0.3",
4
4
  "description": "SDK for Miniblox (mostly typings), originally from Vape Rewrite & Spherical.",
5
5
  "readme": "ReadME.md",
6
6
  "repository": {