pub struct TextureOverride {
pub id: String,
pub replaces: String,
pub license: LicenseEvidence,
}Expand description
One vanilla texture a campaign replaces (spec-0084 §3.1). The row is a judgement and nothing more: width, height and frame count are read off the file and the pinned client’s census, and the namespace is fixed.
Fields§
§id: StringA bare kebab token, unique among the campaign’s textures (DW0190). The
image is textures/<id>.png in the campaign directory (DW0309), and a
textures/<id>.png.mcmeta beside it ships with it as the animation.
replaces: StringThe texture replaced, as a resource location in the minecraft
namespace without textures/ and without .png — the path vanilla’s own
models and atlases use (e.g. minecraft:entity/zombie/drowned,
minecraft:environment/celestial/moon/full_moon). It must name a texture
the pinned client ships (DW0939).
license: LicenseEvidenceWhere the image came from and under what licence (ADR-0013): original
work (spdx and source both original), or an allowlisted third-party
image with its url, and its attribution for CC BY (DW0741).
Trait Implementations§
Source§impl Clone for TextureOverride
impl Clone for TextureOverride
Source§impl Debug for TextureOverride
impl Debug for TextureOverride
Source§impl<'de> Deserialize<'de> for TextureOverride
impl<'de> Deserialize<'de> for TextureOverride
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for TextureOverride
Source§impl JsonSchema for TextureOverride
impl JsonSchema for TextureOverride
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more