Enum minecraft_json::minecraft::data::meta::McMeta[][src]

pub enum McMeta {
    Pack {
        description: TextComponent,
        pack_format: i64,
    },
}
Expand description

A data pack is identified by Minecraft based on the presence of the pack.mcmeta file in the root directory of the data pack, which contains data in JSON format.

Variants

Pack

Holds the data pack information.

Show fields

Fields of Pack

description: TextComponent

A JSON text that appears when hovering over the data pack’s name in the list given by the /datapack list command, or when viewing the pack in the Create World screen.

pack_format: i64

Pack version: If this number does not match the current required number, the data pack displays a warning and requires additional confirmation to load the pack.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.