Skip to content

Commit 703d120

Browse files
committed
1 parent 2086949 commit 703d120

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

protocol/packet.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2584,6 +2584,7 @@ pub enum CommandProperty {
25842584
},
25852585
GameProfile,
25862586
BlockPos,
2587+
ColumnPos,
25872588
Vec3,
25882589
Vec2,
25892590
BlockState,
@@ -2614,7 +2615,11 @@ pub enum CommandProperty {
26142615
Range {
26152616
decimals: bool,
26162617
},
2618+
IntRange,
2619+
FloatRange,
26172620
ItemEnchantment,
2621+
EntitySummon,
2622+
Dimension,
26182623
}
26192624

26202625

@@ -2679,6 +2684,7 @@ impl Serializable for CommandNode {
26792684
},
26802685
"minecraft:game_profile" => CommandProperty::GameProfile,
26812686
"minecraft:block_pos" => CommandProperty::BlockPos,
2687+
"minecraft:column_pos" => CommandProperty::ColumnPos,
26822688
"minecraft:vec3" => CommandProperty::Vec3,
26832689
"minecraft:vec2" => CommandProperty::Vec2,
26842690
"minecraft:block_state" => CommandProperty::BlockState,
@@ -2709,7 +2715,11 @@ impl Serializable for CommandNode {
27092715
"minecraft:range" => {
27102716
CommandProperty::Range { decimals: Serializable::read_from(buf)? }
27112717
},
2718+
"minecraft:int_range" => CommandProperty::IntRange,
2719+
"minecraft:float_range" => CommandProperty::FloatRange,
27122720
"minecraft:item_enchantment" => CommandProperty::ItemEnchantment,
2721+
"minecraft:entity_summon" => CommandProperty::EntitySummon,
2722+
"minecraft:dimension" => CommandProperty::Dimension,
27132723
_ => panic!("unsupported command node parser {}", parse),
27142724
})
27152725
} else {

0 commit comments

Comments
 (0)