Struct RecipeBookCategory
pub struct RecipeBookCategory {
pub id: String,
pub recipe_type: String,
pub icon: String,
pub target_menu: String,
pub book: RecipeBookTypeKey,
pub search_group: String,
pub displays: Vec<RecipeBookDisplayEntry>,
}Expand description
A mod’s book category and displays for one custom recipe type.
Fields§
§id: StringA namespaced category id outside minecraft:.
recipe_type: StringA custom type present in the current recipe table.
icon: StringA registered item id used as the category’s icon.
The menu whose screen owns this category.
book: RecipeBookTypeKeyRegistered book identity, separate from category identity and settings. Declaring a category does not itself register a book or change its flags.
search_group: StringSearch category aggregating exactly this book’s categories.
displays: Vec<RecipeBookDisplayEntry>Recipe-type supplied displays, rebuilt with this declaration on reload.
Trait Implementations§
§impl Clone for RecipeBookCategory
impl Clone for RecipeBookCategory
§fn clone(&self) -> RecipeBookCategory
fn clone(&self) -> RecipeBookCategory
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 RecipeBookCategory
impl Debug for RecipeBookCategory
§impl PartialEq for RecipeBookCategory
impl PartialEq for RecipeBookCategory
impl StructuralPartialEq for RecipeBookCategory
Auto Trait Implementations§
impl Freeze for RecipeBookCategory
impl RefUnwindSafe for RecipeBookCategory
impl Send for RecipeBookCategory
impl Sync for RecipeBookCategory
impl Unpin for RecipeBookCategory
impl UnsafeUnpin for RecipeBookCategory
impl UnwindSafe for RecipeBookCategory
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