Struct DataMapType
pub struct DataMapType {
pub id: String,
pub registry: String,
}Expand description
A data map type a mod registers (RegisterDataMapTypesEvent).
Fields§
§id: Stringmod_id:name: not in the minecraft namespace. Its files are
data/<mod_id>/data_maps/<registry path>/<name>.json.
registry: StringThe registry it is for: minecraft:item or minecraft:block.
Trait Implementations§
§impl Clone for DataMapType
impl Clone for DataMapType
§fn clone(&self) -> DataMapType
fn clone(&self) -> DataMapType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for DataMapType
impl Debug for DataMapType
impl Eq for DataMapType
§impl PartialEq for DataMapType
impl PartialEq for DataMapType
impl StructuralPartialEq for DataMapType
Auto Trait Implementations§
impl Freeze for DataMapType
impl RefUnwindSafe for DataMapType
impl Send for DataMapType
impl Sync for DataMapType
impl Unpin for DataMapType
impl UnsafeUnpin for DataMapType
impl UnwindSafe for DataMapType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more