Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
OmniacDev committed Dec 9, 2024
1 parent 6577883 commit 2f1270b
Show file tree
Hide file tree
Showing 372 changed files with 531 additions and 602 deletions.
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/abilities_index.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i8)]
#[repr(i8)]
pub enum AbilitiesIndex {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub mod ActorBlockSyncMessage {
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i64)]
#[enum_endianness(var)]
#[repr(i64)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/actor_damage_cause.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i32)]
#[enum_endianness(var)]
#[repr(i32)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/actor_data_ids.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
pub enum ActorDataIDs {
Reserved0 = 0,
StructuralIntegrity = 1,
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/actor_event.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i8)]
#[repr(i8)]
pub enum ActorEvent {
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/actor_flags.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
pub enum ActorFlags {
Unknown = -1,
OnFire = 0,
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/actor_link_type.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i8)]
#[repr(i8)]
pub enum ActorLinkType {
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/actor_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ bitflags! {
}
}

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i32)]
#[enum_endianness(var)]
#[repr(i32)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/agent_action_type.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i32)]
#[enum_endianness(le)]
#[repr(i32)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/animation_mode.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i8)]
#[repr(i8)]
pub enum AnimationMode {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec, Eq, PartialEq)]
#[derive(ProtoCodec, Clone, Debug, Eq, PartialEq)]
#[enum_repr(i32)]
#[enum_endianness(le)]
#[repr(i32)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/attribute_operands.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec, Eq, PartialEq)]
#[derive(ProtoCodec, Clone, Debug, Eq, PartialEq)]
#[enum_repr(i32)]
#[enum_endianness(le)]
#[repr(i32)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/book_edit_action.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i8)]
#[repr(i8)]
pub enum BookEditAction {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::version::v662::types::ActorUniqueID;
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i32)]
#[enum_endianness(le)]
#[repr(i32)]
Expand Down
4 changes: 2 additions & 2 deletions crates/proto/src/version/v662/enums/build_platform.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i32)]
#[enum_endianness(le)]
#[repr(i32)]
pub enum BuildPlatform {
Google = 1,
iOS = 2,
IOS = 2,
OSX = 3,
Amazon = 4,
GearVR = 5,
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/camera_preset.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub mod CameraPreset {
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
pub enum AudioListener {
Camera = 0,
Player = 1,
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/camera_shake_action.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i8)]
#[repr(i8)]
pub enum CameraShakeAction {
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/camera_shake_type.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i8)]
#[repr(i8)]
pub enum CameraShakeType {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i8)]
#[repr(i8)]
pub enum ChatRestrictionLevel {
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/client_play_mode.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(u32)]
#[enum_endianness(var)]
#[repr(u32)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
pub mod CodeBuilderStorageQueryOptions {
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i8)]
#[repr(i8)]
pub enum Category {
None = 0,
CodeStatus = 1,
Instantiation = 2,
}
#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i8)]
#[repr(i8)]
pub enum Operation {
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/command_block_mode.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(u32)]
#[enum_endianness(var)]
#[repr(u32)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/command_origin_type.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(u32)]
#[enum_endianness(var)]
#[repr(u32)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/command_output_type.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i8)]
#[repr(i8)]
pub enum CommandOutputType {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
pub enum CommandParameterOption {
None = 0,
EnumAutocompleteExpansion = 0x01,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i8)]
#[repr(i8)]
pub enum CommandPermissionLevel {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub mod ComplexInventoryTransaction {
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(u32)]
#[enum_endianness(var)]
#[repr(u32)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/connection.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub mod Connection {
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i32)]
#[enum_endianness(var)]
#[repr(i32)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/container_enum_name.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
pub enum ContainerEnumName {
AnvilInputContainer = 0,
AnvilMaterialContainer = 1,
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/container_id.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i8)]
#[repr(i8)]
pub enum ContainerID {
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/container_type.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i8)]
#[repr(i8)]
pub enum ContainerType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::version::v662::types::{NetworkItemInstanceDescriptor, ShapedChemistry
use bedrockrs_macros::ProtoCodec;
use uuid::Uuid;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i32)]
#[enum_endianness(var)]
#[repr(i32)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/crafting_type.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
pub enum CraftingType {
Inventory = 0,
Crafting = 1,
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/data_item_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::version::v662::types::BlockPos;
use bedrockrs_core::Vec3;
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i8)]
#[repr(i8)]
pub enum DataItemType {
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/difficulty.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i32)]
#[enum_endianness(var)]
#[repr(i32)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/easing_type.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
pub enum EasingType {
Linear = 0,
Spring = 1,
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/editor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub mod Editor {
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i32)]
#[enum_endianness(var)]
#[repr(i32)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i32)]
#[enum_endianness(var)]
#[repr(i32)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/enchant.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub mod Enchant {
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i8)]
#[repr(i8)]
pub enum Type {
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/game_rule.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub mod GameRule {
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]

Check failure on line 4 in crates/proto/src/version/v662/enums/game_rule.rs

View workflow job for this annotation

GitHub Actions / Check

proc-macro derive panicked

Check failure on line 4 in crates/proto/src/version/v662/enums/game_rule.rs

View workflow job for this annotation

GitHub Actions / Test Suite

proc-macro derive panicked
pub enum Type {
Invalid = 0,
Bool = 1,
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/game_type.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i32)]
#[enum_endianness(var)]
#[repr(i32)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/generator_type.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i32)]
#[enum_endianness(var)]
#[repr(i32)]
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/hud_element.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i32)]
#[enum_endianness(var)]
pub enum HudElement {
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/hud_visibility.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i32)]
#[enum_endianness(var)]
pub enum HudVisibility {
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/identity_definition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pub mod IdentityDefinition {
use crate::version::v662::types::ActorUniqueID;
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(i8)]
#[repr(i8)]
pub enum Type {
Expand Down
2 changes: 1 addition & 1 deletion crates/proto/src/version/v662/enums/input_mode.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bedrockrs_macros::ProtoCodec;

#[derive(ProtoCodec)]
#[derive(ProtoCodec, Clone, Debug)]
#[enum_repr(u32)]
#[enum_endianness(var)]
#[repr(u32)]
Expand Down
Loading

0 comments on commit 2f1270b

Please sign in to comment.