Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

impl enums for v662 #68

Merged
merged 135 commits into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
44c6737
[enum] abilities_index.rs
OmniacDev Nov 5, 2024
f359400
[enum] actor_block_sync_message.rs
OmniacDev Nov 5, 2024
47f4d56
[enum] actor_damage_cause.rs
OmniacDev Nov 5, 2024
6c7cbdf
[enum] actor_data_ids.rs
OmniacDev Nov 5, 2024
adb4791
[enum] actor_event.rs
OmniacDev Nov 5, 2024
888b45c
[enum] actor_flags.rs
OmniacDev Nov 5, 2024
c0148e8
[enum] actor_link_type.rs
OmniacDev Nov 5, 2024
26aa546
[enum] actor_type.rs
OmniacDev Nov 5, 2024
67fb711
[enum] agent_action_type.rs
OmniacDev Nov 5, 2024
5d909f3
[enum] animate_packet.rs (MOD)
OmniacDev Nov 5, 2024
dde182c
[enum] animation_mode.rs
OmniacDev Nov 5, 2024
76fea36
[enum] attribute_modifier_operation.rs
OmniacDev Nov 5, 2024
abbe599
[enum] attribute_operands.rs
OmniacDev Nov 5, 2024
9b355de
[enum] book_edit_action.rs
OmniacDev Nov 5, 2024
fcdf775
[enum] boss_event_update_type.rs
OmniacDev Nov 5, 2024
5e980ab
[enum] build_platform.rs
OmniacDev Nov 5, 2024
8dc93eb
[enum] camera_preset.rs (MOD)
OmniacDev Nov 5, 2024
9d2ce01
[enum] camera_shake_action.rs
OmniacDev Nov 5, 2024
43b5703
[enum] camera_shake_type.rs
OmniacDev Nov 5, 2024
f191f01
[enum] chat_restriction_level.rs
OmniacDev Nov 5, 2024
cd19f79
[enum] client_play_mode.rs
OmniacDev Nov 5, 2024
737ff76
[enum] clientbound_debug_renderer_packet.rs (MOD)
OmniacDev Nov 5, 2024
6d11e87
[enum] clientbound_map_item_data_packet.rs (MOD)
OmniacDev Nov 5, 2024
7c2d2f0
[enum] code_builder_storage_query_options.rs (MOD)
OmniacDev Nov 5, 2024
5901f18
[enum] command_block_mode.rs
OmniacDev Nov 5, 2024
ea9ff0e
Merge branch 'bedrock-crustaceans:proto_rework' into proto_rework
OmniacDev Nov 5, 2024
931876a
[enum] command_origin_type.rs
OmniacDev Nov 5, 2024
a39e6d6
[enum] command_output_type.rs
OmniacDev Nov 5, 2024
73c275a
[enum] command_parameter_option.rs
OmniacDev Nov 5, 2024
d671d03
[enum] command_permission_level.rs
OmniacDev Nov 5, 2024
a1d8578
Merge remote-tracking branch 'origin/proto_rework' into proto_rework
OmniacDev Nov 5, 2024
3b79266
format
OmniacDev Nov 5, 2024
8355e99
[enum] complex_inventory_transaction.rs (MOD)
OmniacDev Nov 5, 2024
ab597e3
[enum] connection.rs (MOD)
OmniacDev Nov 5, 2024
5f2fea6
[enum] container_enum_name.rs
OmniacDev Nov 5, 2024
63f00a8
[enum] container_id.rs
OmniacDev Nov 5, 2024
5b8f67d
format
OmniacDev Nov 5, 2024
319e884
[enum] container_type.rs
OmniacDev Nov 5, 2024
525cf33
[enum] craftin_data_entry_type.rs
OmniacDev Nov 5, 2024
51a6a06
[enum] crafting_type.rs
OmniacDev Nov 5, 2024
f040d9b
[enum] data_item_type.rs
OmniacDev Nov 21, 2024
0865147
[enum] difficulty.rs
OmniacDev Nov 21, 2024
af06543
[enum] easing_type.rs
OmniacDev Nov 21, 2024
c64537a
[enum] editor.rs (MOD)
OmniacDev Nov 21, 2024
f3d3d99
[enum] education_edition_offer.rs
OmniacDev Nov 21, 2024
ea95516
[enum] emote_packet.rs (MOD)
OmniacDev Nov 21, 2024
809041c
[enum] enchant.rs (MOD)
OmniacDev Nov 21, 2024
b911652
[enum] game_rule.rs (MOD)
OmniacDev Nov 21, 2024
b6f1356
[enum] game_type.rs
OmniacDev Nov 21, 2024
f326af1
[enum] generator_type.rs
OmniacDev Nov 21, 2024
8553a60
[enum] hud_element.rs
OmniacDev Nov 21, 2024
0e7ef6b
[enum] hud_visibility.rs
OmniacDev Nov 21, 2024
2106a82
[enum] identity_definition.rs (MOD)
OmniacDev Nov 21, 2024
251d062
[enum] input_mode.rs
OmniacDev Nov 21, 2024
8c47b5f
[enum] interact_packet.rs (MOD)
OmniacDev Nov 21, 2024
8cb0ec9
[enum] inventory_layout.rs
OmniacDev Nov 21, 2024
981ff7b
[enum] inventory_left_tab_index.rs
OmniacDev Nov 21, 2024
b3bfff2
[enum] inventory_right_tab_index.rs
OmniacDev Nov 21, 2024
8bc11d6
[enum] inventory_source.rs (MOD)
OmniacDev Nov 21, 2024
2fea3b6
[enum] inventory_source_type.rs (TODO)
OmniacDev Nov 21, 2024
5bd74df
[enum] item_descriptor.rs (MOD)
OmniacDev Nov 21, 2024
0459d72
[enum] item_release_inventory_transaction.rs (MOD)
OmniacDev Nov 21, 2024
d924d18
[enum] item_stack_net_result.rs
OmniacDev Nov 21, 2024
10f9b41
[enum] item_stack_request_action_type.rs
OmniacDev Nov 21, 2024
382d7f2
[enum] item_use_inventory_transaction.rs (MOD)
OmniacDev Nov 21, 2024
d3d8219
[enum] item_use_method.rs
OmniacDev Nov 21, 2024
317a1c6
[enum] item_use_on_actor_inventory_transaction.rs (MOD)
OmniacDev Nov 21, 2024
c69e68d
[enum] lab_table_packet.rs (MOD)
OmniacDev Nov 21, 2024
ee51480
[enum] lab_table_reaction_type.rs
OmniacDev Nov 21, 2024
027b213
[enum] legacy_telemetry_event_packet.rs (MOD)
OmniacDev Nov 21, 2024
bb72a6a
[enum] legacy_telemetry_event_packet.rs (MOD)
OmniacDev Nov 21, 2024
5f936e5
[enum] lesson_action.rs
OmniacDev Nov 21, 2024
90729e6
[enum] level_event.rs
OmniacDev Nov 21, 2024
1fd5fec
[enum] map_decoration.rs (MOD)
OmniacDev Nov 21, 2024
b87558d
[enum] map_item_tracked_actor.rs (MOD)
OmniacDev Nov 21, 2024
c5cd3a3
[enum] map_item_tracked_actor.rs (MOD)
OmniacDev Nov 21, 2024
2b508e9
[enum] minecraft_eventing.rs (MOD)
OmniacDev Nov 21, 2024
6da2aef
[enum] minecraft_packet_ids.rs
OmniacDev Nov 21, 2024
06b30f9
[enum] mirror.rs
OmniacDev Nov 21, 2024
8e8ce5c
[enum] mob_effect_packet.rs (MOD)
OmniacDev Nov 21, 2024
ff1dfcc
[enum] modal_form_cancel_reason.rs
OmniacDev Nov 21, 2024
c4c4558
[enum] molang_version.rs
OmniacDev Nov 21, 2024
8c9ff00
[enum] multiplayer_settings_packet_type.rs
OmniacDev Nov 21, 2024
eb6d519
[enum] new_interaction_model.rs
OmniacDev Nov 21, 2024
8bd2bf2
[enum] npc_dialogue_packet.rs (MOD)
OmniacDev Nov 21, 2024
2a789d1
[enum] npc_request_packet.rs (MOD)
OmniacDev Nov 21, 2024
5c299bf
[enum] objective_sort_order.rs
OmniacDev Nov 21, 2024
a6ac5c2
[enum] pack_type.rs
OmniacDev Nov 21, 2024
fbf3fb9
[enum] packet_compression_algorithm.rs
OmniacDev Nov 21, 2024
9e758f4
[enum] packet_violation_severity.rs
OmniacDev Nov 21, 2024
b6620e8
[enum] packet_violation_type.rs
OmniacDev Nov 21, 2024
98ac21b
[enum] particle_type.rs
OmniacDev Nov 21, 2024
236fead
[enum] photo_type.rs
OmniacDev Nov 21, 2024
5cdac8d
[enum] play_status.rs
OmniacDev Nov 21, 2024
c49572c
[enum] player_action_type.rs
OmniacDev Nov 21, 2024
0b59340
[enum] player_auth_input_packet.rs (MOD)
OmniacDev Nov 21, 2024
ff792ed
[enum] player_list_packet_type.rs
OmniacDev Nov 21, 2024
a9d0a23
[enum] player_permission_level.rs
OmniacDev Nov 21, 2024
4b82e8d
[enum] player_position_mode_component.rs (MOD)
OmniacDev Nov 21, 2024
cf3d067
[enum] player_respawn_state.rs
OmniacDev Nov 21, 2024
3ea5d20
[enum] position_tracking_db_client_request_packet.rs (MOD)
OmniacDev Nov 21, 2024
ada2a36
[enum] position_tracking_db_server_broadcast_packet.rs (MOD)
OmniacDev Nov 21, 2024
baa7d90
[enum] puv.rs (MOD)
OmniacDev Nov 21, 2024
a19f6c6
[enum] request_ability_packet.rs (MOD)
OmniacDev Nov 21, 2024
50bbb25
[enum] resource_pack_response.rs
OmniacDev Nov 21, 2024
0bc3a53
[enum] rotation.rs
OmniacDev Nov 21, 2024
4638cf4
[enum] score_packet_type.rs
OmniacDev Nov 21, 2024
32777a3
[enum] scoreboard_identity_packet_type.rs
OmniacDev Nov 21, 2024
165dea5
[enum] serialized_abilities_data.rs (MOD)
OmniacDev Nov 21, 2024
f063249
[enum] server_auth_movement_mode.rs
OmniacDev Nov 21, 2024
a9d6a1a
[enum] set_title_packet.rs (MOD)
OmniacDev Nov 21, 2024
1830ba9
[enum] show_credits_packet.rs (MOD)
OmniacDev Nov 21, 2024
5fe3643
[enum] show_store_offer_redirect_type.rs
OmniacDev Nov 21, 2024
cba5d22
[enum] simple_event_packet.rs (MOD)
OmniacDev Nov 21, 2024
6390196
[enum] simulation_type.rs
OmniacDev Nov 21, 2024
17ece9e
[enum] social.rs (MOD)
OmniacDev Nov 21, 2024
aa5f0e7
[enum] soft_enum_update_type.rs
OmniacDev Nov 21, 2024
7221ae7
[enum] spawn_biome_type.rs
OmniacDev Nov 21, 2024
e86c720
[enum] spawn_position_type.rs
OmniacDev Nov 21, 2024
ebe5cc0
[enum] structure_block_type.rs
OmniacDev Nov 21, 2024
28c1b8c
[enum] structure_redstone_save_mode.rs
OmniacDev Nov 21, 2024
45ee9d6
[enum] inventory_source_type.rs
OmniacDev Nov 21, 2024
7ef10f0
[enum] structure_template_request_operation.rs
OmniacDev Nov 21, 2024
e3606fd
[enum] structure_template_response_type.rs
OmniacDev Nov 21, 2024
8110c2c
[enum] sub_chunk_packet.rs (MOD)
OmniacDev Nov 21, 2024
9f7fdbd
[enum] tag.rs (MOD)
OmniacDev Nov 21, 2024
43ac7e2
[enum] text_packet_type.rs
OmniacDev Nov 21, 2024
ceb0778
[enum] text_processing_event_origin.rs
OmniacDev Nov 21, 2024
419226e
[enum] ui_profile.rs
OmniacDev Nov 21, 2024
48cedda
[enum] persona.rs (MOD)
OmniacDev Nov 21, 2024
ae75c64
[enum] mod.rs
OmniacDev Nov 21, 2024
7a66043
[enum] mod.rs
OmniacDev Nov 21, 2024
76c7f66
[enum] minecraft_packet_ids.rs
OmniacDev Nov 21, 2024
48572f0
add #[deprecated] tags
OmniacDev Nov 21, 2024
2976365
[enum] position_tracking_db_server_broadcast_packet.rs
OmniacDev Nov 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions crates/proto/src/version/v662/enums/abilities_index.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
pub enum AbilitiesIndex {
Invalid = -1,
Build = 0,
Mine = 1,
DoorsAndSwitches = 2,
OpenContainers = 3,
AttackPlayers = 4,
AttackMobs = 5,
OperatorCommands = 6,
Teleport = 7,
Invulnerable = 8,
Flying = 9,
MayFly = 10,
Instabuild = 11,
Lightning = 12,
FlySpeed = 13,
WalkSpeed = 14,
Muted = 15,
WorldBuilder = 16,
NoClip = 17,
PrivilegedBuilder = 18,
AbilityCount = 19,
}
10 changes: 10 additions & 0 deletions crates/proto/src/version/v662/enums/actor_block_sync_message.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pub mod ActorBlockSyncMessage {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for the additional mod, you can just rename the type to ActorBlockSyncMessageId :)

use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
pub enum MessageId {
NONE = 0,
CREATE = 1,
DESTROY = 2,
}
}
41 changes: 41 additions & 0 deletions crates/proto/src/version/v662/enums/actor_damage_cause.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
pub enum ActorDamageCause {
None = -1,
Override = 0,
Contact = 1,
EntityAttack = 2,
Projectile = 3,
Suffocation = 4,
Fall = 5,
Fire = 6,
FireTick = 7,
Lava = 8,
Drowning = 9,
BlockExplosion = 10,
EntityExplosion = 11,
Void = 12,
SelfDestruct = 13,
Magic = 14,
Wither = 15,
Starve = 16,
Anvil = 17,
Thorns = 18,
FallingBlock = 19,
Piston = 20,
FlyIntoWall = 21,
Magma = 22,
Fireworks = 23,
Lightning = 24,
Charging = 25,
Temperature = 26,
Freezing = 27,
Stalactite = 28,
Stalagmite = 29,
RamAttack = 30,
SonicBoom = 31,
Campfire = 32,
SoulCampfire = 33,
All = 34,
}
137 changes: 137 additions & 0 deletions crates/proto/src/version/v662/enums/actor_data_ids.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
pub enum ActorDataIDs {
Reserved0 = 0,
StructuralIntegrity = 1,
Variant = 2,
ColorIndex = 3,
Name = 4,
Owner = 5,
Target = 6,
AirSupply = 7,
EffectColor = 8,
EffectAmbience = 9,
Reserved010 = 10,
Hurt = 11,
HurtDir = 12,
RowTimeLeft = 13,
RowTimeRight = 14,
Value = 15,
DisplayTileRuntimeId = 16,
DisplayOffset = 17,
CustomDisplay = 18,
Swell = 19,
OldSwell = 20,
SwellDir = 21,
ChargeAmount = 22,
CarryBlockRuntimeId = 23,
ClientEvent = 24,
UsingItem = 25,
PlayerFlags = 26,
PlayerIndex = 27,
BedPosition = 28,
XPower = 29,
YPower = 30,
ZPower = 31,
AuxPower = 32,
FishX = 33,
FishZ = 34,
FishAngle = 35,
AuxValueData = 36,
LeashHolder = 37,
Reserved038 = 38,
HasNpc = 39,
NpcData = 40,
Actions = 41,
AirSupplyMax = 42,
MarkVariant = 43,
ContainerType = 44,
ContainerSize = 45,
ContainerStrengthModifier = 46,
BlockTarget = 47,
Inv = 48,
TargetA = 49,
TargetB = 50,
TargetC = 51,
AerialAttack = 52,
Reserved053 = 53,
Reserved054 = 54,
FuseTime = 55,
Reserved056 = 56,
SeatLockPassengerRotation = 57,
SeatLockPassengerRotationDegrees = 58,
SeatRotationOffset = 59,
SeatRotationOffsetDegrees = 60,
DataRadius = 61,
DataWaiting = 62,
DataParticle = 63,
PeekId = 64,
AttachFace = 65,
Attached = 66,
AttachPos = 67,
TradeTarget = 68,
Career = 69,
HasCommandBlock = 70,
CommandName = 71,
LastCommandOutput = 72,
TrackCommandOutput = 73,
Reserved074 = 74,
Strength = 75,
StrengthMax = 76,
DataSpellCastingColor = 77,
DataLifetimeTicks = 78,
PoseIndex = 79,
DataTickOffset = 80,
NametagAlwaysShow = 81,
Color2Index = 82,
NameAuthor = 83,
Score = 84,
BalloonAnchor = 85,
PuffedState = 86,
BubbleTime = 87,
Agent = 88,
SittingAmount = 89,
SittingAmountPrevious = 90,
EatingCounter = 91,
Reserved092 = 92,
LayingAmount = 93,
LayingAmountPrevious = 94,
DataDuration = 95,
DataSpawnTime = 96,
DataChangeRate = 97,
DataChangeOnPickup = 98,
DataPickupCount = 99,
InteractText = 100,
TradeTier = 101,
MaxTradeTier = 102,
TradeExperience = 103,
SkinId = 104,
SpawningFrames = 105,
CommandBlockTickDelay = 106,
CommandBlockExecuteOnFirstTick = 107,
AmbientSoundInterval = 108,
AmbientSoundIntervalRange = 109,
AmbientSoundEventName = 110,
FallDamageMultiplier = 111,
NameRawText = 112,
CanRideTarget = 113,
LowTierCuredTradeDiscount = 114,
HighTierCuredTradeDiscount = 115,
NearbyCuredTradeDiscount = 116,
NearbyCuredDiscountTimeStamp = 117,
Hitbox = 118,
IsBuoyant = 119,
FreezingEffectStrength = 120,
BuoyancyData = 121,
GoatHornCount = 122,
BaseRuntimeId = 123,
MovementSoundDistanceOffset = 124,
HeartbeatIntervalTicks = 125,
HeartbeatSoundEvent = 126,
PlayerLastDeathPos = 127,
PlayerLastDeathDimension = 128,
PlayerHasDied = 129,
CollisionBox = 130,
Count = 131,
}
63 changes: 63 additions & 0 deletions crates/proto/src/version/v662/enums/actor_event.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
pub enum ActorEvent {
None = 0,
Jump = 1,
Hurt = 2,
Death = 3,
StartAttacking = 4,
StopAttacking = 5,
TamingFailed = 6,
TamingSucceeded = 7,
ShakeWetness = 8,
EatGrass = 10,
FishhookBubble = 11,
FishhookFishpos = 12,
FishhookHooktime = 13,
FishhookTease = 14,
SquidFleeing = 15,
ZombieConverting = 16,
PlayAmbient = 17,
SpawnAlive = 18,
StartOfferFlower = 19,
StopOfferFlower = 20,
LoveHearts = 21,
VillagerAngry = 22,
VillagerHappy = 23,
WitchHatMagic = 24,
FireworksExplode = 25,
InLoveHearts = 26,
SilverfishMergeAnim = 27,
GuardianAttackSound = 28,
DrinkPotion = 29,
ThrowPotion = 30,
PrimeTntcart = 31,
PrimeCreeper = 32,
AirSupply = 33,
AddPlayerLevels = 34,
GuardianMiningFatigue = 35,
AgentSwingArm = 36,
DragonStartDeathAnim = 37,
GroundDust = 38,
Shake = 39,
Feed = 57,
BabyAge = 60,
InstantDeath = 61,
NotifyTrade = 62,
LeashDestroyed = 63,
CaravanUpdated = 64,
TalismanActivate = 65,
UpdateStructureFeature = 66,
PlayerSpawnedMob = 67,
Puke = 68,
UpdateStackSize = 69,
StartSwimming = 70,
BalloonPop = 71,
TreasureHunt = 72,
SummonAgent = 73,
FinishedChargingItem = 74,
ActorGrowUp = 76,
VibrationDetected = 77,
DrinkMilk = 78,
}
Loading
Loading