Saxonberg Server API
    Preparing search index...
    interface Tangible {
        getMass(): Quantity<"kg">;
        getMaterial(detailKey?: string): default | null;
        setMass(value: Quantity<"kg">): void;
        setMaterial(value: default | null, detailKey?: string): void;
    }
    Index

    Methods

    • Set the Stuff's mass. Strict on Quantity<'kg'>; callers holding a raw number wrap via Quantity.of(n, 'kg'). YAML authoring shapes (tag string, alt-unit literal, bare number) are absorbed by the QuantityMarshaller for kg, not by this runtime API.

      Parameters

      Returns void

    • Set the Material at detailKey, or the bulk default when detailKey is omitted. setMaterial(null, detailKey) removes the per-Detail override (later reads at that key fall through to the bulk default again). setMaterial(null) clears the bulk default AND every per-Detail override.

      Parameters

      • value: default | null
      • OptionaldetailKey: string

      Returns void