-
Notifications
You must be signed in to change notification settings - Fork 17
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
theaddonn
merged 135 commits into
bedrock-crustaceans:proto_rework
from
OmniacDev:proto_rework
Nov 23, 2024
Merged
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 f359400
[enum] actor_block_sync_message.rs
OmniacDev 47f4d56
[enum] actor_damage_cause.rs
OmniacDev 6c7cbdf
[enum] actor_data_ids.rs
OmniacDev adb4791
[enum] actor_event.rs
OmniacDev 888b45c
[enum] actor_flags.rs
OmniacDev c0148e8
[enum] actor_link_type.rs
OmniacDev 26aa546
[enum] actor_type.rs
OmniacDev 67fb711
[enum] agent_action_type.rs
OmniacDev 5d909f3
[enum] animate_packet.rs (MOD)
OmniacDev dde182c
[enum] animation_mode.rs
OmniacDev 76fea36
[enum] attribute_modifier_operation.rs
OmniacDev abbe599
[enum] attribute_operands.rs
OmniacDev 9b355de
[enum] book_edit_action.rs
OmniacDev fcdf775
[enum] boss_event_update_type.rs
OmniacDev 5e980ab
[enum] build_platform.rs
OmniacDev 8dc93eb
[enum] camera_preset.rs (MOD)
OmniacDev 9d2ce01
[enum] camera_shake_action.rs
OmniacDev 43b5703
[enum] camera_shake_type.rs
OmniacDev f191f01
[enum] chat_restriction_level.rs
OmniacDev cd19f79
[enum] client_play_mode.rs
OmniacDev 737ff76
[enum] clientbound_debug_renderer_packet.rs (MOD)
OmniacDev 6d11e87
[enum] clientbound_map_item_data_packet.rs (MOD)
OmniacDev 7c2d2f0
[enum] code_builder_storage_query_options.rs (MOD)
OmniacDev 5901f18
[enum] command_block_mode.rs
OmniacDev ea9ff0e
Merge branch 'bedrock-crustaceans:proto_rework' into proto_rework
OmniacDev 931876a
[enum] command_origin_type.rs
OmniacDev a39e6d6
[enum] command_output_type.rs
OmniacDev 73c275a
[enum] command_parameter_option.rs
OmniacDev d671d03
[enum] command_permission_level.rs
OmniacDev a1d8578
Merge remote-tracking branch 'origin/proto_rework' into proto_rework
OmniacDev 3b79266
format
OmniacDev 8355e99
[enum] complex_inventory_transaction.rs (MOD)
OmniacDev ab597e3
[enum] connection.rs (MOD)
OmniacDev 5f2fea6
[enum] container_enum_name.rs
OmniacDev 63f00a8
[enum] container_id.rs
OmniacDev 5b8f67d
format
OmniacDev 319e884
[enum] container_type.rs
OmniacDev 525cf33
[enum] craftin_data_entry_type.rs
OmniacDev 51a6a06
[enum] crafting_type.rs
OmniacDev f040d9b
[enum] data_item_type.rs
OmniacDev 0865147
[enum] difficulty.rs
OmniacDev af06543
[enum] easing_type.rs
OmniacDev c64537a
[enum] editor.rs (MOD)
OmniacDev f3d3d99
[enum] education_edition_offer.rs
OmniacDev ea95516
[enum] emote_packet.rs (MOD)
OmniacDev 809041c
[enum] enchant.rs (MOD)
OmniacDev b911652
[enum] game_rule.rs (MOD)
OmniacDev b6f1356
[enum] game_type.rs
OmniacDev f326af1
[enum] generator_type.rs
OmniacDev 8553a60
[enum] hud_element.rs
OmniacDev 0e7ef6b
[enum] hud_visibility.rs
OmniacDev 2106a82
[enum] identity_definition.rs (MOD)
OmniacDev 251d062
[enum] input_mode.rs
OmniacDev 8c47b5f
[enum] interact_packet.rs (MOD)
OmniacDev 8cb0ec9
[enum] inventory_layout.rs
OmniacDev 981ff7b
[enum] inventory_left_tab_index.rs
OmniacDev b3bfff2
[enum] inventory_right_tab_index.rs
OmniacDev 8bc11d6
[enum] inventory_source.rs (MOD)
OmniacDev 2fea3b6
[enum] inventory_source_type.rs (TODO)
OmniacDev 5bd74df
[enum] item_descriptor.rs (MOD)
OmniacDev 0459d72
[enum] item_release_inventory_transaction.rs (MOD)
OmniacDev d924d18
[enum] item_stack_net_result.rs
OmniacDev 10f9b41
[enum] item_stack_request_action_type.rs
OmniacDev 382d7f2
[enum] item_use_inventory_transaction.rs (MOD)
OmniacDev d3d8219
[enum] item_use_method.rs
OmniacDev 317a1c6
[enum] item_use_on_actor_inventory_transaction.rs (MOD)
OmniacDev c69e68d
[enum] lab_table_packet.rs (MOD)
OmniacDev ee51480
[enum] lab_table_reaction_type.rs
OmniacDev 027b213
[enum] legacy_telemetry_event_packet.rs (MOD)
OmniacDev bb72a6a
[enum] legacy_telemetry_event_packet.rs (MOD)
OmniacDev 5f936e5
[enum] lesson_action.rs
OmniacDev 90729e6
[enum] level_event.rs
OmniacDev 1fd5fec
[enum] map_decoration.rs (MOD)
OmniacDev b87558d
[enum] map_item_tracked_actor.rs (MOD)
OmniacDev c5cd3a3
[enum] map_item_tracked_actor.rs (MOD)
OmniacDev 2b508e9
[enum] minecraft_eventing.rs (MOD)
OmniacDev 6da2aef
[enum] minecraft_packet_ids.rs
OmniacDev 06b30f9
[enum] mirror.rs
OmniacDev 8e8ce5c
[enum] mob_effect_packet.rs (MOD)
OmniacDev ff1dfcc
[enum] modal_form_cancel_reason.rs
OmniacDev c4c4558
[enum] molang_version.rs
OmniacDev 8c9ff00
[enum] multiplayer_settings_packet_type.rs
OmniacDev eb6d519
[enum] new_interaction_model.rs
OmniacDev 8bd2bf2
[enum] npc_dialogue_packet.rs (MOD)
OmniacDev 2a789d1
[enum] npc_request_packet.rs (MOD)
OmniacDev 5c299bf
[enum] objective_sort_order.rs
OmniacDev a6ac5c2
[enum] pack_type.rs
OmniacDev fbf3fb9
[enum] packet_compression_algorithm.rs
OmniacDev 9e758f4
[enum] packet_violation_severity.rs
OmniacDev b6620e8
[enum] packet_violation_type.rs
OmniacDev 98ac21b
[enum] particle_type.rs
OmniacDev 236fead
[enum] photo_type.rs
OmniacDev 5cdac8d
[enum] play_status.rs
OmniacDev c49572c
[enum] player_action_type.rs
OmniacDev 0b59340
[enum] player_auth_input_packet.rs (MOD)
OmniacDev ff792ed
[enum] player_list_packet_type.rs
OmniacDev a9d0a23
[enum] player_permission_level.rs
OmniacDev 4b82e8d
[enum] player_position_mode_component.rs (MOD)
OmniacDev cf3d067
[enum] player_respawn_state.rs
OmniacDev 3ea5d20
[enum] position_tracking_db_client_request_packet.rs (MOD)
OmniacDev ada2a36
[enum] position_tracking_db_server_broadcast_packet.rs (MOD)
OmniacDev baa7d90
[enum] puv.rs (MOD)
OmniacDev a19f6c6
[enum] request_ability_packet.rs (MOD)
OmniacDev 50bbb25
[enum] resource_pack_response.rs
OmniacDev 0bc3a53
[enum] rotation.rs
OmniacDev 4638cf4
[enum] score_packet_type.rs
OmniacDev 32777a3
[enum] scoreboard_identity_packet_type.rs
OmniacDev 165dea5
[enum] serialized_abilities_data.rs (MOD)
OmniacDev f063249
[enum] server_auth_movement_mode.rs
OmniacDev a9d6a1a
[enum] set_title_packet.rs (MOD)
OmniacDev 1830ba9
[enum] show_credits_packet.rs (MOD)
OmniacDev 5fe3643
[enum] show_store_offer_redirect_type.rs
OmniacDev cba5d22
[enum] simple_event_packet.rs (MOD)
OmniacDev 6390196
[enum] simulation_type.rs
OmniacDev 17ece9e
[enum] social.rs (MOD)
OmniacDev aa5f0e7
[enum] soft_enum_update_type.rs
OmniacDev 7221ae7
[enum] spawn_biome_type.rs
OmniacDev e86c720
[enum] spawn_position_type.rs
OmniacDev ebe5cc0
[enum] structure_block_type.rs
OmniacDev 28c1b8c
[enum] structure_redstone_save_mode.rs
OmniacDev 45ee9d6
[enum] inventory_source_type.rs
OmniacDev 7ef10f0
[enum] structure_template_request_operation.rs
OmniacDev e3606fd
[enum] structure_template_response_type.rs
OmniacDev 8110c2c
[enum] sub_chunk_packet.rs (MOD)
OmniacDev 9f7fdbd
[enum] tag.rs (MOD)
OmniacDev 43ac7e2
[enum] text_packet_type.rs
OmniacDev ceb0778
[enum] text_processing_event_origin.rs
OmniacDev 419226e
[enum] ui_profile.rs
OmniacDev 48cedda
[enum] persona.rs (MOD)
OmniacDev ae75c64
[enum] mod.rs
OmniacDev 7a66043
[enum] mod.rs
OmniacDev 76c7f66
[enum] minecraft_packet_ids.rs
OmniacDev 48572f0
add #[deprecated] tags
OmniacDev 2976365
[enum] position_tracking_db_server_broadcast_packet.rs
OmniacDev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
10
crates/proto/src/version/v662/enums/actor_block_sync_message.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
pub mod ActorBlockSyncMessage { | ||
use bedrockrs_macros::ProtoCodec; | ||
|
||
#[derive(ProtoCodec)] | ||
pub enum MessageId { | ||
NONE = 0, | ||
CREATE = 1, | ||
DESTROY = 2, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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 toActorBlockSyncMessageId
:)