1.18.2: add resource/_or_tag CommandNodes, from https://wiki.vg/index.php?title=Command_Data&oldid=17429

This commit is contained in:
ice_iix 2022-08-07 17:03:36 -07:00
parent 0c74fb29a7
commit bb9cb7a837
1 changed files with 12 additions and 0 deletions

View File

@ -3525,6 +3525,12 @@ pub enum CommandProperty {
EntitySummon,
Dimension,
UUID,
ResourceOrTag {
registry: String,
},
Resource {
registry: String,
},
ForgeModId,
ForgeEnum {
cls: String,
@ -3658,6 +3664,12 @@ impl Serializable for CommandNode {
"minecraft:entity_summon" => CommandProperty::EntitySummon,
"minecraft:dimension" => CommandProperty::Dimension,
"minecraft:uuid" => CommandProperty::UUID,
"minecraft:resource_or_tag" => CommandProperty::ResourceOrTag {
registry: Serializable::read_from(buf)?,
},
"minecraft:resource" => CommandProperty::Resource {
registry: Serializable::read_from(buf)?,
},
"forge:modid" => CommandProperty::ForgeModId,
"forge:enum" => CommandProperty::ForgeEnum {
cls: Serializable::read_from(buf)?,