ResourceLocation record struct
A namespaced identifier, like minecraft:entity.pig.ambient. One read without a namespace is vanilla's.
public readonly record struct ResourceLocation : IEquatable<ResourceLocation>
In Obsidian.API.
Constructors
ResourceLocation(string, string)
public ResourceLocation(string Namespace, string Path);A namespaced identifier, like minecraft:entity.pig.ambient. One read without a namespace is vanilla's.
Properties
public string Namespace { get; init; }public string Path { get; init; }Methods
public override string ToString();TryParse(string, ResourceLocation?)
public static bool TryParse(string text, out ResourceLocation? location);Reads an identifier, which like vanilla's has lowercase letters, digits and _-., and / in its path.
Fields
public const string DefaultNamespace = "minecraft";