@serenityjs/protocol 0.7.0-beta-20250113192608 → 0.7.0-beta-20250115012815

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @serenityjs/protocol
2
2
 
3
- ## 0.7.0-beta-20250113192608
3
+ ## 0.7.0-beta-20250115012815
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -9,8 +9,8 @@
9
9
  ### Patch Changes
10
10
 
11
11
  - Updated dependencies [[`b857e0a`](https://github.com/SerenityJS/serenity/commit/b857e0a36e4a9be1684ac4f13ce1688611dd363b)]:
12
- - @serenityjs/raknet@0.7.0-beta-20250113192608
13
- - @serenityjs/nbt@0.7.0-beta-20250113192608
12
+ - @serenityjs/raknet@0.7.0-beta-20250115012815
13
+ - @serenityjs/nbt@0.7.0-beta-20250115012815
14
14
 
15
15
  ## 0.6.4
16
16
 
package/dist/index.d.mts CHANGED
@@ -2387,6 +2387,14 @@ declare enum GameRule {
2387
2387
  TNTExplosionDropDecay = "tntExplosionDropDecay"
2388
2388
  }
2389
2389
 
2390
+ declare enum MaterialRenderMethod {
2391
+ AlphaTest = "alpha_test",
2392
+ AlphaTestSingleSided = "alpha_test_single_sided",
2393
+ Blend = "blend",
2394
+ DoubleSided = "double_sided",
2395
+ Opaque = "opaque"
2396
+ }
2397
+
2390
2398
  declare class LoginTokens extends DataType {
2391
2399
  client: string;
2392
2400
  identity: string;
@@ -3013,12 +3021,24 @@ declare class GameRules extends DataType {
3013
3021
  static write(stream: BinaryStream, value: Array<GameRules>): void;
3014
3022
  }
3015
3023
 
3016
- declare class BlockProperty extends DataType {
3017
- name: string;
3018
- nbt: CompoundTag<unknown>;
3019
- constructor(name: string, nbt: CompoundTag<unknown>);
3020
- static read(stream: BinaryStream): Array<BlockProperty>;
3021
- static write(stream: BinaryStream, value: Array<BlockProperty>): void;
3024
+ declare class NetworkBlockTypeDefinition extends DataType {
3025
+ /**
3026
+ * The identifier of the block type definition.
3027
+ */
3028
+ readonly identifier: string;
3029
+ /**
3030
+ * The nbt data for the block type definition.
3031
+ * This includes the states, permutations, and other properties of the block type.
3032
+ */
3033
+ readonly nbt: CompoundTag<unknown>;
3034
+ /**
3035
+ * Create a new block definition.
3036
+ * @param identifier The identifier of the block type definition.
3037
+ * @param nbt The nbt data for the block type definition.
3038
+ */
3039
+ constructor(identifier: string, nbt: CompoundTag<unknown>);
3040
+ static read(stream: BinaryStream): Array<NetworkBlockTypeDefinition>;
3041
+ static write(stream: BinaryStream, value: Array<NetworkBlockTypeDefinition>): void;
3022
3042
  }
3023
3043
 
3024
3044
  declare class ItemData extends DataType {
@@ -6325,7 +6345,10 @@ declare class StartGamePacket extends DataPacket {
6325
6345
  serverAuthoritativeBlockBreaking: boolean;
6326
6346
  currentTick: bigint;
6327
6347
  enchantmentSeed: number;
6328
- blockProperties: Array<BlockProperty>;
6348
+ /**
6349
+ * The custom block type definitions that will be used in the world.
6350
+ */
6351
+ blockTypeDefinitions: Array<NetworkBlockTypeDefinition>;
6329
6352
  items: Array<ItemData>;
6330
6353
  multiplayerCorrelationId: string;
6331
6354
  serverAuthoritativeInventory: boolean;
@@ -7042,4 +7065,4 @@ declare const MINECRAFT_VERSION = "1.21.51";
7042
7065
  declare const MINECRAFT_TICK_SPEED = 50;
7043
7066
  declare const SHIELD_NETWORK_ID = 380;
7044
7067
 
7045
- export { AbilityIndex, AbilityLayer, AbilityLayerType, AbilitySet, AbilitySetId, ActorDamageCause, ActorDataId, ActorDataType, ActorEvent, ActorEventPacket, ActorFlag, ActorLink, ActorLinkType, AddEntityPacket, AddItemActorPacket, AddPlayerPacket, AnimateAction, AnimateEntity, AnimateEntityPacket, AnimateId, AnimatePacket, Attribute, AttributeModifier, AttributeName, AvailableActorIdentifiersPacket, AvailableCommandsPacket, AwardAchievementPacket, BehaviorPackInfo, BiomeDefinitionListPacket, BlockAction, BlockActorDataPacket, BlockEventPacket, BlockEventType, BlockFace, BlockPickRequestPacket, BlockPosition, BlockProperty, BookActions, BookEditAction, BookEditPacket, BossEventAdd, BossEventColor, BossEventPacket, BossEventUpdate, BossEventUpdateType, CameraAudioListener, CameraFadeDuration, CameraFadeInstruction, CameraInstructions, CameraInstructionsPacket, CameraPreset, CameraPresetsPacket, CameraSetEasing, CameraSetInstruction, CameraShakePacket, ChainedSubcommandValues, ChangeDimensionPacket, ChunkCoords, ChunkRadiusUpdatePacket, ClientBoundDebugRendererPacket, ClientBoundMapItemDataPacket, type ClientData, ClientPredictedVehicle, ClientToServerHandshakePacket, ClientboundCloseFormPacket, Color, CommandBlockActorRuntimeId, CommandBlockMode, CommandBlockSettings, CommandBlockUpdatePacket, CommandOriginData, CommandOutputData, CommandOutputMessage, CommandOutputPacket, CommandParameterType, CommandPermissionLevel, CommandRequestPacket, Commands, CompletedUsingItemPacket, ComplexInventoryTransaction, ComponentItem, CompressionMethod, ContainerClosePacket, ContainerDataType, ContainerId, ContainerMixDataEntry, ContainerName, ContainerOpenPacket, ContainerSetDataPacket, ContainerType, CorrectPlayerMovePredictionPacket, CraftingDataEntry, CraftingDataEntryType, CraftingDataPacket, CreativeContentPacket, CreativeItems, CurrectStructureFeaturePacket, DataItem, DataPacket, DeathInfoPacket, DeathParameters, DebugEventPacket, DebugInfoPacket, DebuggerProtocolVersion, DefaultAbilityValues, DeviceOS, Difficulty, DimensionDataPacket, DimensionDefinition, DimensionDefinitionGroup, DimensionType, DisconnectMessage, DisconnectPacket, DisconnectReason, DisplaySlotType, DynamicEnums, EasingType, EffectType, EmoteFlags, EmoteListPacket, EmotePacket, Emotes, EnchantOption, Enchantment, EntityAttributes, EntityPickRequestPacket, EnumConstraints, EnumValues, Enums, EquipmentSlot, Experiments, Fogs, Framer, FullContainerName, FurnanceRecipe, GameRule, GameRuleType, GameRules, GameRulesChangedPacket, Gamemode, GeneratorType, HudElement, HudElementData, HudVisibility, HurtArmorPacket, type IPosition, type IdentityData, InputData, InputLockFlags, InputMode, InputTransaction, InteractAction, InteractPacket, InteractPosition, InteractionMode, InternalType, InventoryAction, InventoryContentPacket, InventoryLayout, InventoryLeftTab, InventoryRightTab, InventorySlotPacket, InventorySource, InventorySourceType, InventoryTransaction, InventoryTransactionPacket, ItemComponentPacket, ItemData, ItemInstanceUserData, ItemReleaseInventoryTransaction, ItemReleaseInventoryTransactionType, ItemStackActionTakePlace, type ItemStackContainer, ItemStackRequest, ItemStackRequestAction, ItemStackRequestActionBeanconPayment, ItemStackRequestActionCraftCreative, ItemStackRequestActionCraftGrindstoneRequest, ItemStackRequestActionCraftLoomRequest, ItemStackRequestActionCraftRecipe, ItemStackRequestActionCraftRecipeAuto, ItemStackRequestActionCreate, ItemStackRequestActionDestroyConsume, ItemStackRequestActionDrop, ItemStackRequestActionMineBlock, ItemStackRequestActionOptional, ItemStackRequestActionResultsDeprecated, ItemStackRequestActionSwap, ItemStackRequestActionType, ItemStackRequestPacket, ItemStackRequestSlotInfo, ItemStackResponsePacket, ItemStackResponses, ItemStackStatus, ItemStacks, ItemTrackedType, ItemUseInventoryTransaction, ItemUseInventoryTransactionType, ItemUseMethod, ItemUseOnEntityInventoryTransaction, ItemUseOnEntityInventoryTransactionType, type LegacyTelemetryEventData, LegacyTelemetryEventPacket, LegacyTransaction, LevelChunkPacket, LevelEvent, LevelEventGenericPacket, LevelEventPacket, LevelSoundEvent, LevelSoundEventPacket, Links, LoginPacket, type LoginTokenData, LoginTokens, MINECRAFT_TICK_SPEED, MINECRAFT_VERSION, MapCreationBits, MapDecoration, MapDecorationBits, MapDecorationType, MapInfoRequestPacket, MapPixel, MapScale, MapTextureUpdateBits, MapTrackedItems, MaterialReducerDataEntry, Materials, MemoryTier, MobArmorEquipmentPacket, MobEffectEvents, MobEffectPacket, MobEquipmentPacket, ModalFormCanceled, ModalFormCanceledReason, ModalFormData, ModalFormRequestPacket, ModalFormResponsePacket, ModalFormType, MoveActorAbsolutePacket, MoveActorDeltaPacket, MoveDeltaFlags, MoveMode, MovePlayerPacket, MovementEffectPacket, MovementEffectType, NbtLoop, NetworkChunkPublisherUpdatePacket, NetworkItemInstanceDescriptor, NetworkItemStackDescriptor, NetworkSettingsPacket, NetworkStackLatencyPacket, NpcDialogueAction, NpcDialoguePacket, NpcRequestPacket, NpcRequestType, ObjectiveSortOrder, OnScreenTextureAnimationPacket, OpenSignPacket, Optional, PROTOCOL_VERSION, PackLinks, PackType, Packet, PacketViolationWarningPacket, Packets, Patterns, PermissionFlag, PermissionLevel, PlayMode, PlaySoundPacket, PlayStatus, PlayStatusPacket, PlayerActionPacket, PlayerActionType, PlayerAuthInputData, PlayerAuthInputPacket, PlayerAuthInputTransaction, PlayerAuthItemStackRequest, PlayerBlockActionData, PlayerBlockActions, PlayerEnchantOptionsPacket, PlayerFogPacket, PlayerHotbarPacket, PlayerInputTick, PlayerListAction, PlayerListPacket, PlayerListRecord, PlayerSkinPacket, PlayerStartItemCooldownPacket, PostFixes, PotionMixDataEntry, PredictedResult, PredictionType, PropertySyncData, RecipeIngredient, RecipeUnlockingRequirement, RemoveEntityPacket, RemoveObjectivePacket, RequestChunkRadiusPacket, RequestNetworkSettingsPacket, RequestPermissionsPacket, ResourceIdVersions, ResourcePackChunkDataPacket, ResourcePackChunkRequestPacket, ResourcePackClientResponsePacket, ResourcePackDataInfoPacket, ResourcePackIds, ResourcePackResponse, ResourcePackStackPacket, ResourcePacksInfoPacket, RespawnPacket, RespawnState, RiderJumpPacket, Rotation, RotationByte, SHIELD_NETWORK_ID, ScoreEntry, ScoreboardActionType, ScoreboardIdentity, ScoreboardIdentityAction, ScoreboardIdentityType, ScriptMessagePacket, SerializedSkin, ServerAuthMovementMode, ServerSettingsResponsePacket, ServerToClientHandshakePacket, ServerboundDiagnosticsPacket, ServerboundLoadingScreenPacketPacket, ServerboundLoadingScreenType, SetActorDataPacket, SetActorLinkPacket, SetActorMotionPacket, SetCommandsEnabledPacket, SetDifficultyPacket, SetDisplayObjectivePacket, SetHealthPacket, SetHudPacket, SetLocalPlayerAsInitializedPacket, SetPlayerGameTypePacket, SetPlayerInventoryOptionsPacket, SetScorePacket, SetScoreboardIdentityPacket, SetSpawnPositionPacket, SetTimePacket, SetTitlePacket, ShakeAction, ShakeType, ShapedRecipe, ShapelessRecipe, ShowCreditsPacket, ShowProfilePacket, SignedBlockPosition, SkinAnimation, SkinImage, SkinPersonaPiece, SkinPersonaTintPiece, SpawnParticleEffectPacket, SpawnType, StartGamePacket, StopSoundPacket, StructureBlockUpdatePacket, StructureEditorData, StructureSettings, Subcommands, SyncActorPropertyPacket, TakeItemActorPacket, TelemetryEventType, TeleportCause, TextPacket, TextPacketType, TextParameters, TextSource, TexturePackInfo, TitleType, ToastRequestPacket, TradeOffer, TransactionSourceType, TransferPacket, TriggerType, type TrimDataMaterial, TrimDataPacket, type TrimDataPattern, UnlockedRecipesEntry, UnlockedRecipesPacket, UnlockedRecipesType, UnlockingContext, UpdateAbilitiesPacket, UpdateAdventureSettingsPacket, UpdateAttributesPacket, UpdateBlockFlagsType, UpdateBlockLayerType, UpdateBlockPacket, UpdateClientInputLocksPacket, UpdateTradePacket, UserDataShapelessRecipe, VariableStringArray as VarStringArray, Vector2f, Vector3f, ViolationSeverity, ViolationType, getPacketId };
7068
+ export { AbilityIndex, AbilityLayer, AbilityLayerType, AbilitySet, AbilitySetId, ActorDamageCause, ActorDataId, ActorDataType, ActorEvent, ActorEventPacket, ActorFlag, ActorLink, ActorLinkType, AddEntityPacket, AddItemActorPacket, AddPlayerPacket, AnimateAction, AnimateEntity, AnimateEntityPacket, AnimateId, AnimatePacket, Attribute, AttributeModifier, AttributeName, AvailableActorIdentifiersPacket, AvailableCommandsPacket, AwardAchievementPacket, BehaviorPackInfo, BiomeDefinitionListPacket, BlockAction, BlockActorDataPacket, BlockEventPacket, BlockEventType, BlockFace, BlockPickRequestPacket, BlockPosition, BookActions, BookEditAction, BookEditPacket, BossEventAdd, BossEventColor, BossEventPacket, BossEventUpdate, BossEventUpdateType, CameraAudioListener, CameraFadeDuration, CameraFadeInstruction, CameraInstructions, CameraInstructionsPacket, CameraPreset, CameraPresetsPacket, CameraSetEasing, CameraSetInstruction, CameraShakePacket, ChainedSubcommandValues, ChangeDimensionPacket, ChunkCoords, ChunkRadiusUpdatePacket, ClientBoundDebugRendererPacket, ClientBoundMapItemDataPacket, type ClientData, ClientPredictedVehicle, ClientToServerHandshakePacket, ClientboundCloseFormPacket, Color, CommandBlockActorRuntimeId, CommandBlockMode, CommandBlockSettings, CommandBlockUpdatePacket, CommandOriginData, CommandOutputData, CommandOutputMessage, CommandOutputPacket, CommandParameterType, CommandPermissionLevel, CommandRequestPacket, Commands, CompletedUsingItemPacket, ComplexInventoryTransaction, ComponentItem, CompressionMethod, ContainerClosePacket, ContainerDataType, ContainerId, ContainerMixDataEntry, ContainerName, ContainerOpenPacket, ContainerSetDataPacket, ContainerType, CorrectPlayerMovePredictionPacket, CraftingDataEntry, CraftingDataEntryType, CraftingDataPacket, CreativeContentPacket, CreativeItems, CurrectStructureFeaturePacket, DataItem, DataPacket, DeathInfoPacket, DeathParameters, DebugEventPacket, DebugInfoPacket, DebuggerProtocolVersion, DefaultAbilityValues, DeviceOS, Difficulty, DimensionDataPacket, DimensionDefinition, DimensionDefinitionGroup, DimensionType, DisconnectMessage, DisconnectPacket, DisconnectReason, DisplaySlotType, DynamicEnums, EasingType, EffectType, EmoteFlags, EmoteListPacket, EmotePacket, Emotes, EnchantOption, Enchantment, EntityAttributes, EntityPickRequestPacket, EnumConstraints, EnumValues, Enums, EquipmentSlot, Experiments, Fogs, Framer, FullContainerName, FurnanceRecipe, GameRule, GameRuleType, GameRules, GameRulesChangedPacket, Gamemode, GeneratorType, HudElement, HudElementData, HudVisibility, HurtArmorPacket, type IPosition, type IdentityData, InputData, InputLockFlags, InputMode, InputTransaction, InteractAction, InteractPacket, InteractPosition, InteractionMode, InternalType, InventoryAction, InventoryContentPacket, InventoryLayout, InventoryLeftTab, InventoryRightTab, InventorySlotPacket, InventorySource, InventorySourceType, InventoryTransaction, InventoryTransactionPacket, ItemComponentPacket, ItemData, ItemInstanceUserData, ItemReleaseInventoryTransaction, ItemReleaseInventoryTransactionType, ItemStackActionTakePlace, type ItemStackContainer, ItemStackRequest, ItemStackRequestAction, ItemStackRequestActionBeanconPayment, ItemStackRequestActionCraftCreative, ItemStackRequestActionCraftGrindstoneRequest, ItemStackRequestActionCraftLoomRequest, ItemStackRequestActionCraftRecipe, ItemStackRequestActionCraftRecipeAuto, ItemStackRequestActionCreate, ItemStackRequestActionDestroyConsume, ItemStackRequestActionDrop, ItemStackRequestActionMineBlock, ItemStackRequestActionOptional, ItemStackRequestActionResultsDeprecated, ItemStackRequestActionSwap, ItemStackRequestActionType, ItemStackRequestPacket, ItemStackRequestSlotInfo, ItemStackResponsePacket, ItemStackResponses, ItemStackStatus, ItemStacks, ItemTrackedType, ItemUseInventoryTransaction, ItemUseInventoryTransactionType, ItemUseMethod, ItemUseOnEntityInventoryTransaction, ItemUseOnEntityInventoryTransactionType, type LegacyTelemetryEventData, LegacyTelemetryEventPacket, LegacyTransaction, LevelChunkPacket, LevelEvent, LevelEventGenericPacket, LevelEventPacket, LevelSoundEvent, LevelSoundEventPacket, Links, LoginPacket, type LoginTokenData, LoginTokens, MINECRAFT_TICK_SPEED, MINECRAFT_VERSION, MapCreationBits, MapDecoration, MapDecorationBits, MapDecorationType, MapInfoRequestPacket, MapPixel, MapScale, MapTextureUpdateBits, MapTrackedItems, MaterialReducerDataEntry, MaterialRenderMethod, Materials, MemoryTier, MobArmorEquipmentPacket, MobEffectEvents, MobEffectPacket, MobEquipmentPacket, ModalFormCanceled, ModalFormCanceledReason, ModalFormData, ModalFormRequestPacket, ModalFormResponsePacket, ModalFormType, MoveActorAbsolutePacket, MoveActorDeltaPacket, MoveDeltaFlags, MoveMode, MovePlayerPacket, MovementEffectPacket, MovementEffectType, NbtLoop, NetworkBlockTypeDefinition, NetworkChunkPublisherUpdatePacket, NetworkItemInstanceDescriptor, NetworkItemStackDescriptor, NetworkSettingsPacket, NetworkStackLatencyPacket, NpcDialogueAction, NpcDialoguePacket, NpcRequestPacket, NpcRequestType, ObjectiveSortOrder, OnScreenTextureAnimationPacket, OpenSignPacket, Optional, PROTOCOL_VERSION, PackLinks, PackType, Packet, PacketViolationWarningPacket, Packets, Patterns, PermissionFlag, PermissionLevel, PlayMode, PlaySoundPacket, PlayStatus, PlayStatusPacket, PlayerActionPacket, PlayerActionType, PlayerAuthInputData, PlayerAuthInputPacket, PlayerAuthInputTransaction, PlayerAuthItemStackRequest, PlayerBlockActionData, PlayerBlockActions, PlayerEnchantOptionsPacket, PlayerFogPacket, PlayerHotbarPacket, PlayerInputTick, PlayerListAction, PlayerListPacket, PlayerListRecord, PlayerSkinPacket, PlayerStartItemCooldownPacket, PostFixes, PotionMixDataEntry, PredictedResult, PredictionType, PropertySyncData, RecipeIngredient, RecipeUnlockingRequirement, RemoveEntityPacket, RemoveObjectivePacket, RequestChunkRadiusPacket, RequestNetworkSettingsPacket, RequestPermissionsPacket, ResourceIdVersions, ResourcePackChunkDataPacket, ResourcePackChunkRequestPacket, ResourcePackClientResponsePacket, ResourcePackDataInfoPacket, ResourcePackIds, ResourcePackResponse, ResourcePackStackPacket, ResourcePacksInfoPacket, RespawnPacket, RespawnState, RiderJumpPacket, Rotation, RotationByte, SHIELD_NETWORK_ID, ScoreEntry, ScoreboardActionType, ScoreboardIdentity, ScoreboardIdentityAction, ScoreboardIdentityType, ScriptMessagePacket, SerializedSkin, ServerAuthMovementMode, ServerSettingsResponsePacket, ServerToClientHandshakePacket, ServerboundDiagnosticsPacket, ServerboundLoadingScreenPacketPacket, ServerboundLoadingScreenType, SetActorDataPacket, SetActorLinkPacket, SetActorMotionPacket, SetCommandsEnabledPacket, SetDifficultyPacket, SetDisplayObjectivePacket, SetHealthPacket, SetHudPacket, SetLocalPlayerAsInitializedPacket, SetPlayerGameTypePacket, SetPlayerInventoryOptionsPacket, SetScorePacket, SetScoreboardIdentityPacket, SetSpawnPositionPacket, SetTimePacket, SetTitlePacket, ShakeAction, ShakeType, ShapedRecipe, ShapelessRecipe, ShowCreditsPacket, ShowProfilePacket, SignedBlockPosition, SkinAnimation, SkinImage, SkinPersonaPiece, SkinPersonaTintPiece, SpawnParticleEffectPacket, SpawnType, StartGamePacket, StopSoundPacket, StructureBlockUpdatePacket, StructureEditorData, StructureSettings, Subcommands, SyncActorPropertyPacket, TakeItemActorPacket, TelemetryEventType, TeleportCause, TextPacket, TextPacketType, TextParameters, TextSource, TexturePackInfo, TitleType, ToastRequestPacket, TradeOffer, TransactionSourceType, TransferPacket, TriggerType, type TrimDataMaterial, TrimDataPacket, type TrimDataPattern, UnlockedRecipesEntry, UnlockedRecipesPacket, UnlockedRecipesType, UnlockingContext, UpdateAbilitiesPacket, UpdateAdventureSettingsPacket, UpdateAttributesPacket, UpdateBlockFlagsType, UpdateBlockLayerType, UpdateBlockPacket, UpdateClientInputLocksPacket, UpdateTradePacket, UserDataShapelessRecipe, VariableStringArray as VarStringArray, Vector2f, Vector3f, ViolationSeverity, ViolationType, getPacketId };
package/dist/index.d.ts CHANGED
@@ -2387,6 +2387,14 @@ declare enum GameRule {
2387
2387
  TNTExplosionDropDecay = "tntExplosionDropDecay"
2388
2388
  }
2389
2389
 
2390
+ declare enum MaterialRenderMethod {
2391
+ AlphaTest = "alpha_test",
2392
+ AlphaTestSingleSided = "alpha_test_single_sided",
2393
+ Blend = "blend",
2394
+ DoubleSided = "double_sided",
2395
+ Opaque = "opaque"
2396
+ }
2397
+
2390
2398
  declare class LoginTokens extends DataType {
2391
2399
  client: string;
2392
2400
  identity: string;
@@ -3013,12 +3021,24 @@ declare class GameRules extends DataType {
3013
3021
  static write(stream: BinaryStream, value: Array<GameRules>): void;
3014
3022
  }
3015
3023
 
3016
- declare class BlockProperty extends DataType {
3017
- name: string;
3018
- nbt: CompoundTag<unknown>;
3019
- constructor(name: string, nbt: CompoundTag<unknown>);
3020
- static read(stream: BinaryStream): Array<BlockProperty>;
3021
- static write(stream: BinaryStream, value: Array<BlockProperty>): void;
3024
+ declare class NetworkBlockTypeDefinition extends DataType {
3025
+ /**
3026
+ * The identifier of the block type definition.
3027
+ */
3028
+ readonly identifier: string;
3029
+ /**
3030
+ * The nbt data for the block type definition.
3031
+ * This includes the states, permutations, and other properties of the block type.
3032
+ */
3033
+ readonly nbt: CompoundTag<unknown>;
3034
+ /**
3035
+ * Create a new block definition.
3036
+ * @param identifier The identifier of the block type definition.
3037
+ * @param nbt The nbt data for the block type definition.
3038
+ */
3039
+ constructor(identifier: string, nbt: CompoundTag<unknown>);
3040
+ static read(stream: BinaryStream): Array<NetworkBlockTypeDefinition>;
3041
+ static write(stream: BinaryStream, value: Array<NetworkBlockTypeDefinition>): void;
3022
3042
  }
3023
3043
 
3024
3044
  declare class ItemData extends DataType {
@@ -6325,7 +6345,10 @@ declare class StartGamePacket extends DataPacket {
6325
6345
  serverAuthoritativeBlockBreaking: boolean;
6326
6346
  currentTick: bigint;
6327
6347
  enchantmentSeed: number;
6328
- blockProperties: Array<BlockProperty>;
6348
+ /**
6349
+ * The custom block type definitions that will be used in the world.
6350
+ */
6351
+ blockTypeDefinitions: Array<NetworkBlockTypeDefinition>;
6329
6352
  items: Array<ItemData>;
6330
6353
  multiplayerCorrelationId: string;
6331
6354
  serverAuthoritativeInventory: boolean;
@@ -7042,4 +7065,4 @@ declare const MINECRAFT_VERSION = "1.21.51";
7042
7065
  declare const MINECRAFT_TICK_SPEED = 50;
7043
7066
  declare const SHIELD_NETWORK_ID = 380;
7044
7067
 
7045
- export { AbilityIndex, AbilityLayer, AbilityLayerType, AbilitySet, AbilitySetId, ActorDamageCause, ActorDataId, ActorDataType, ActorEvent, ActorEventPacket, ActorFlag, ActorLink, ActorLinkType, AddEntityPacket, AddItemActorPacket, AddPlayerPacket, AnimateAction, AnimateEntity, AnimateEntityPacket, AnimateId, AnimatePacket, Attribute, AttributeModifier, AttributeName, AvailableActorIdentifiersPacket, AvailableCommandsPacket, AwardAchievementPacket, BehaviorPackInfo, BiomeDefinitionListPacket, BlockAction, BlockActorDataPacket, BlockEventPacket, BlockEventType, BlockFace, BlockPickRequestPacket, BlockPosition, BlockProperty, BookActions, BookEditAction, BookEditPacket, BossEventAdd, BossEventColor, BossEventPacket, BossEventUpdate, BossEventUpdateType, CameraAudioListener, CameraFadeDuration, CameraFadeInstruction, CameraInstructions, CameraInstructionsPacket, CameraPreset, CameraPresetsPacket, CameraSetEasing, CameraSetInstruction, CameraShakePacket, ChainedSubcommandValues, ChangeDimensionPacket, ChunkCoords, ChunkRadiusUpdatePacket, ClientBoundDebugRendererPacket, ClientBoundMapItemDataPacket, type ClientData, ClientPredictedVehicle, ClientToServerHandshakePacket, ClientboundCloseFormPacket, Color, CommandBlockActorRuntimeId, CommandBlockMode, CommandBlockSettings, CommandBlockUpdatePacket, CommandOriginData, CommandOutputData, CommandOutputMessage, CommandOutputPacket, CommandParameterType, CommandPermissionLevel, CommandRequestPacket, Commands, CompletedUsingItemPacket, ComplexInventoryTransaction, ComponentItem, CompressionMethod, ContainerClosePacket, ContainerDataType, ContainerId, ContainerMixDataEntry, ContainerName, ContainerOpenPacket, ContainerSetDataPacket, ContainerType, CorrectPlayerMovePredictionPacket, CraftingDataEntry, CraftingDataEntryType, CraftingDataPacket, CreativeContentPacket, CreativeItems, CurrectStructureFeaturePacket, DataItem, DataPacket, DeathInfoPacket, DeathParameters, DebugEventPacket, DebugInfoPacket, DebuggerProtocolVersion, DefaultAbilityValues, DeviceOS, Difficulty, DimensionDataPacket, DimensionDefinition, DimensionDefinitionGroup, DimensionType, DisconnectMessage, DisconnectPacket, DisconnectReason, DisplaySlotType, DynamicEnums, EasingType, EffectType, EmoteFlags, EmoteListPacket, EmotePacket, Emotes, EnchantOption, Enchantment, EntityAttributes, EntityPickRequestPacket, EnumConstraints, EnumValues, Enums, EquipmentSlot, Experiments, Fogs, Framer, FullContainerName, FurnanceRecipe, GameRule, GameRuleType, GameRules, GameRulesChangedPacket, Gamemode, GeneratorType, HudElement, HudElementData, HudVisibility, HurtArmorPacket, type IPosition, type IdentityData, InputData, InputLockFlags, InputMode, InputTransaction, InteractAction, InteractPacket, InteractPosition, InteractionMode, InternalType, InventoryAction, InventoryContentPacket, InventoryLayout, InventoryLeftTab, InventoryRightTab, InventorySlotPacket, InventorySource, InventorySourceType, InventoryTransaction, InventoryTransactionPacket, ItemComponentPacket, ItemData, ItemInstanceUserData, ItemReleaseInventoryTransaction, ItemReleaseInventoryTransactionType, ItemStackActionTakePlace, type ItemStackContainer, ItemStackRequest, ItemStackRequestAction, ItemStackRequestActionBeanconPayment, ItemStackRequestActionCraftCreative, ItemStackRequestActionCraftGrindstoneRequest, ItemStackRequestActionCraftLoomRequest, ItemStackRequestActionCraftRecipe, ItemStackRequestActionCraftRecipeAuto, ItemStackRequestActionCreate, ItemStackRequestActionDestroyConsume, ItemStackRequestActionDrop, ItemStackRequestActionMineBlock, ItemStackRequestActionOptional, ItemStackRequestActionResultsDeprecated, ItemStackRequestActionSwap, ItemStackRequestActionType, ItemStackRequestPacket, ItemStackRequestSlotInfo, ItemStackResponsePacket, ItemStackResponses, ItemStackStatus, ItemStacks, ItemTrackedType, ItemUseInventoryTransaction, ItemUseInventoryTransactionType, ItemUseMethod, ItemUseOnEntityInventoryTransaction, ItemUseOnEntityInventoryTransactionType, type LegacyTelemetryEventData, LegacyTelemetryEventPacket, LegacyTransaction, LevelChunkPacket, LevelEvent, LevelEventGenericPacket, LevelEventPacket, LevelSoundEvent, LevelSoundEventPacket, Links, LoginPacket, type LoginTokenData, LoginTokens, MINECRAFT_TICK_SPEED, MINECRAFT_VERSION, MapCreationBits, MapDecoration, MapDecorationBits, MapDecorationType, MapInfoRequestPacket, MapPixel, MapScale, MapTextureUpdateBits, MapTrackedItems, MaterialReducerDataEntry, Materials, MemoryTier, MobArmorEquipmentPacket, MobEffectEvents, MobEffectPacket, MobEquipmentPacket, ModalFormCanceled, ModalFormCanceledReason, ModalFormData, ModalFormRequestPacket, ModalFormResponsePacket, ModalFormType, MoveActorAbsolutePacket, MoveActorDeltaPacket, MoveDeltaFlags, MoveMode, MovePlayerPacket, MovementEffectPacket, MovementEffectType, NbtLoop, NetworkChunkPublisherUpdatePacket, NetworkItemInstanceDescriptor, NetworkItemStackDescriptor, NetworkSettingsPacket, NetworkStackLatencyPacket, NpcDialogueAction, NpcDialoguePacket, NpcRequestPacket, NpcRequestType, ObjectiveSortOrder, OnScreenTextureAnimationPacket, OpenSignPacket, Optional, PROTOCOL_VERSION, PackLinks, PackType, Packet, PacketViolationWarningPacket, Packets, Patterns, PermissionFlag, PermissionLevel, PlayMode, PlaySoundPacket, PlayStatus, PlayStatusPacket, PlayerActionPacket, PlayerActionType, PlayerAuthInputData, PlayerAuthInputPacket, PlayerAuthInputTransaction, PlayerAuthItemStackRequest, PlayerBlockActionData, PlayerBlockActions, PlayerEnchantOptionsPacket, PlayerFogPacket, PlayerHotbarPacket, PlayerInputTick, PlayerListAction, PlayerListPacket, PlayerListRecord, PlayerSkinPacket, PlayerStartItemCooldownPacket, PostFixes, PotionMixDataEntry, PredictedResult, PredictionType, PropertySyncData, RecipeIngredient, RecipeUnlockingRequirement, RemoveEntityPacket, RemoveObjectivePacket, RequestChunkRadiusPacket, RequestNetworkSettingsPacket, RequestPermissionsPacket, ResourceIdVersions, ResourcePackChunkDataPacket, ResourcePackChunkRequestPacket, ResourcePackClientResponsePacket, ResourcePackDataInfoPacket, ResourcePackIds, ResourcePackResponse, ResourcePackStackPacket, ResourcePacksInfoPacket, RespawnPacket, RespawnState, RiderJumpPacket, Rotation, RotationByte, SHIELD_NETWORK_ID, ScoreEntry, ScoreboardActionType, ScoreboardIdentity, ScoreboardIdentityAction, ScoreboardIdentityType, ScriptMessagePacket, SerializedSkin, ServerAuthMovementMode, ServerSettingsResponsePacket, ServerToClientHandshakePacket, ServerboundDiagnosticsPacket, ServerboundLoadingScreenPacketPacket, ServerboundLoadingScreenType, SetActorDataPacket, SetActorLinkPacket, SetActorMotionPacket, SetCommandsEnabledPacket, SetDifficultyPacket, SetDisplayObjectivePacket, SetHealthPacket, SetHudPacket, SetLocalPlayerAsInitializedPacket, SetPlayerGameTypePacket, SetPlayerInventoryOptionsPacket, SetScorePacket, SetScoreboardIdentityPacket, SetSpawnPositionPacket, SetTimePacket, SetTitlePacket, ShakeAction, ShakeType, ShapedRecipe, ShapelessRecipe, ShowCreditsPacket, ShowProfilePacket, SignedBlockPosition, SkinAnimation, SkinImage, SkinPersonaPiece, SkinPersonaTintPiece, SpawnParticleEffectPacket, SpawnType, StartGamePacket, StopSoundPacket, StructureBlockUpdatePacket, StructureEditorData, StructureSettings, Subcommands, SyncActorPropertyPacket, TakeItemActorPacket, TelemetryEventType, TeleportCause, TextPacket, TextPacketType, TextParameters, TextSource, TexturePackInfo, TitleType, ToastRequestPacket, TradeOffer, TransactionSourceType, TransferPacket, TriggerType, type TrimDataMaterial, TrimDataPacket, type TrimDataPattern, UnlockedRecipesEntry, UnlockedRecipesPacket, UnlockedRecipesType, UnlockingContext, UpdateAbilitiesPacket, UpdateAdventureSettingsPacket, UpdateAttributesPacket, UpdateBlockFlagsType, UpdateBlockLayerType, UpdateBlockPacket, UpdateClientInputLocksPacket, UpdateTradePacket, UserDataShapelessRecipe, VariableStringArray as VarStringArray, Vector2f, Vector3f, ViolationSeverity, ViolationType, getPacketId };
7068
+ export { AbilityIndex, AbilityLayer, AbilityLayerType, AbilitySet, AbilitySetId, ActorDamageCause, ActorDataId, ActorDataType, ActorEvent, ActorEventPacket, ActorFlag, ActorLink, ActorLinkType, AddEntityPacket, AddItemActorPacket, AddPlayerPacket, AnimateAction, AnimateEntity, AnimateEntityPacket, AnimateId, AnimatePacket, Attribute, AttributeModifier, AttributeName, AvailableActorIdentifiersPacket, AvailableCommandsPacket, AwardAchievementPacket, BehaviorPackInfo, BiomeDefinitionListPacket, BlockAction, BlockActorDataPacket, BlockEventPacket, BlockEventType, BlockFace, BlockPickRequestPacket, BlockPosition, BookActions, BookEditAction, BookEditPacket, BossEventAdd, BossEventColor, BossEventPacket, BossEventUpdate, BossEventUpdateType, CameraAudioListener, CameraFadeDuration, CameraFadeInstruction, CameraInstructions, CameraInstructionsPacket, CameraPreset, CameraPresetsPacket, CameraSetEasing, CameraSetInstruction, CameraShakePacket, ChainedSubcommandValues, ChangeDimensionPacket, ChunkCoords, ChunkRadiusUpdatePacket, ClientBoundDebugRendererPacket, ClientBoundMapItemDataPacket, type ClientData, ClientPredictedVehicle, ClientToServerHandshakePacket, ClientboundCloseFormPacket, Color, CommandBlockActorRuntimeId, CommandBlockMode, CommandBlockSettings, CommandBlockUpdatePacket, CommandOriginData, CommandOutputData, CommandOutputMessage, CommandOutputPacket, CommandParameterType, CommandPermissionLevel, CommandRequestPacket, Commands, CompletedUsingItemPacket, ComplexInventoryTransaction, ComponentItem, CompressionMethod, ContainerClosePacket, ContainerDataType, ContainerId, ContainerMixDataEntry, ContainerName, ContainerOpenPacket, ContainerSetDataPacket, ContainerType, CorrectPlayerMovePredictionPacket, CraftingDataEntry, CraftingDataEntryType, CraftingDataPacket, CreativeContentPacket, CreativeItems, CurrectStructureFeaturePacket, DataItem, DataPacket, DeathInfoPacket, DeathParameters, DebugEventPacket, DebugInfoPacket, DebuggerProtocolVersion, DefaultAbilityValues, DeviceOS, Difficulty, DimensionDataPacket, DimensionDefinition, DimensionDefinitionGroup, DimensionType, DisconnectMessage, DisconnectPacket, DisconnectReason, DisplaySlotType, DynamicEnums, EasingType, EffectType, EmoteFlags, EmoteListPacket, EmotePacket, Emotes, EnchantOption, Enchantment, EntityAttributes, EntityPickRequestPacket, EnumConstraints, EnumValues, Enums, EquipmentSlot, Experiments, Fogs, Framer, FullContainerName, FurnanceRecipe, GameRule, GameRuleType, GameRules, GameRulesChangedPacket, Gamemode, GeneratorType, HudElement, HudElementData, HudVisibility, HurtArmorPacket, type IPosition, type IdentityData, InputData, InputLockFlags, InputMode, InputTransaction, InteractAction, InteractPacket, InteractPosition, InteractionMode, InternalType, InventoryAction, InventoryContentPacket, InventoryLayout, InventoryLeftTab, InventoryRightTab, InventorySlotPacket, InventorySource, InventorySourceType, InventoryTransaction, InventoryTransactionPacket, ItemComponentPacket, ItemData, ItemInstanceUserData, ItemReleaseInventoryTransaction, ItemReleaseInventoryTransactionType, ItemStackActionTakePlace, type ItemStackContainer, ItemStackRequest, ItemStackRequestAction, ItemStackRequestActionBeanconPayment, ItemStackRequestActionCraftCreative, ItemStackRequestActionCraftGrindstoneRequest, ItemStackRequestActionCraftLoomRequest, ItemStackRequestActionCraftRecipe, ItemStackRequestActionCraftRecipeAuto, ItemStackRequestActionCreate, ItemStackRequestActionDestroyConsume, ItemStackRequestActionDrop, ItemStackRequestActionMineBlock, ItemStackRequestActionOptional, ItemStackRequestActionResultsDeprecated, ItemStackRequestActionSwap, ItemStackRequestActionType, ItemStackRequestPacket, ItemStackRequestSlotInfo, ItemStackResponsePacket, ItemStackResponses, ItemStackStatus, ItemStacks, ItemTrackedType, ItemUseInventoryTransaction, ItemUseInventoryTransactionType, ItemUseMethod, ItemUseOnEntityInventoryTransaction, ItemUseOnEntityInventoryTransactionType, type LegacyTelemetryEventData, LegacyTelemetryEventPacket, LegacyTransaction, LevelChunkPacket, LevelEvent, LevelEventGenericPacket, LevelEventPacket, LevelSoundEvent, LevelSoundEventPacket, Links, LoginPacket, type LoginTokenData, LoginTokens, MINECRAFT_TICK_SPEED, MINECRAFT_VERSION, MapCreationBits, MapDecoration, MapDecorationBits, MapDecorationType, MapInfoRequestPacket, MapPixel, MapScale, MapTextureUpdateBits, MapTrackedItems, MaterialReducerDataEntry, MaterialRenderMethod, Materials, MemoryTier, MobArmorEquipmentPacket, MobEffectEvents, MobEffectPacket, MobEquipmentPacket, ModalFormCanceled, ModalFormCanceledReason, ModalFormData, ModalFormRequestPacket, ModalFormResponsePacket, ModalFormType, MoveActorAbsolutePacket, MoveActorDeltaPacket, MoveDeltaFlags, MoveMode, MovePlayerPacket, MovementEffectPacket, MovementEffectType, NbtLoop, NetworkBlockTypeDefinition, NetworkChunkPublisherUpdatePacket, NetworkItemInstanceDescriptor, NetworkItemStackDescriptor, NetworkSettingsPacket, NetworkStackLatencyPacket, NpcDialogueAction, NpcDialoguePacket, NpcRequestPacket, NpcRequestType, ObjectiveSortOrder, OnScreenTextureAnimationPacket, OpenSignPacket, Optional, PROTOCOL_VERSION, PackLinks, PackType, Packet, PacketViolationWarningPacket, Packets, Patterns, PermissionFlag, PermissionLevel, PlayMode, PlaySoundPacket, PlayStatus, PlayStatusPacket, PlayerActionPacket, PlayerActionType, PlayerAuthInputData, PlayerAuthInputPacket, PlayerAuthInputTransaction, PlayerAuthItemStackRequest, PlayerBlockActionData, PlayerBlockActions, PlayerEnchantOptionsPacket, PlayerFogPacket, PlayerHotbarPacket, PlayerInputTick, PlayerListAction, PlayerListPacket, PlayerListRecord, PlayerSkinPacket, PlayerStartItemCooldownPacket, PostFixes, PotionMixDataEntry, PredictedResult, PredictionType, PropertySyncData, RecipeIngredient, RecipeUnlockingRequirement, RemoveEntityPacket, RemoveObjectivePacket, RequestChunkRadiusPacket, RequestNetworkSettingsPacket, RequestPermissionsPacket, ResourceIdVersions, ResourcePackChunkDataPacket, ResourcePackChunkRequestPacket, ResourcePackClientResponsePacket, ResourcePackDataInfoPacket, ResourcePackIds, ResourcePackResponse, ResourcePackStackPacket, ResourcePacksInfoPacket, RespawnPacket, RespawnState, RiderJumpPacket, Rotation, RotationByte, SHIELD_NETWORK_ID, ScoreEntry, ScoreboardActionType, ScoreboardIdentity, ScoreboardIdentityAction, ScoreboardIdentityType, ScriptMessagePacket, SerializedSkin, ServerAuthMovementMode, ServerSettingsResponsePacket, ServerToClientHandshakePacket, ServerboundDiagnosticsPacket, ServerboundLoadingScreenPacketPacket, ServerboundLoadingScreenType, SetActorDataPacket, SetActorLinkPacket, SetActorMotionPacket, SetCommandsEnabledPacket, SetDifficultyPacket, SetDisplayObjectivePacket, SetHealthPacket, SetHudPacket, SetLocalPlayerAsInitializedPacket, SetPlayerGameTypePacket, SetPlayerInventoryOptionsPacket, SetScorePacket, SetScoreboardIdentityPacket, SetSpawnPositionPacket, SetTimePacket, SetTitlePacket, ShakeAction, ShakeType, ShapedRecipe, ShapelessRecipe, ShowCreditsPacket, ShowProfilePacket, SignedBlockPosition, SkinAnimation, SkinImage, SkinPersonaPiece, SkinPersonaTintPiece, SpawnParticleEffectPacket, SpawnType, StartGamePacket, StopSoundPacket, StructureBlockUpdatePacket, StructureEditorData, StructureSettings, Subcommands, SyncActorPropertyPacket, TakeItemActorPacket, TelemetryEventType, TeleportCause, TextPacket, TextPacketType, TextParameters, TextSource, TexturePackInfo, TitleType, ToastRequestPacket, TradeOffer, TransactionSourceType, TransferPacket, TriggerType, type TrimDataMaterial, TrimDataPacket, type TrimDataPattern, UnlockedRecipesEntry, UnlockedRecipesPacket, UnlockedRecipesType, UnlockingContext, UpdateAbilitiesPacket, UpdateAdventureSettingsPacket, UpdateAttributesPacket, UpdateBlockFlagsType, UpdateBlockLayerType, UpdateBlockPacket, UpdateClientInputLocksPacket, UpdateTradePacket, UserDataShapelessRecipe, VariableStringArray as VarStringArray, Vector2f, Vector3f, ViolationSeverity, ViolationType, getPacketId };