Enum RecipeSlotDisplay
pub enum RecipeSlotDisplay {
Empty,
AnyFuel,
Item(String),
ItemStack(ItemStack),
Tag(String),
WithAnyPotion(Box<RecipeSlotDisplay>),
OnlyWithComponent {
source: Box<RecipeSlotDisplay>,
component: String,
},
Dyed {
dye: Box<RecipeSlotDisplay>,
target: Box<RecipeSlotDisplay>,
},
SmithingTrim {
base: Box<RecipeSlotDisplay>,
material: Box<RecipeSlotDisplay>,
pattern: String,
},
WithRemainder {
input: Box<RecipeSlotDisplay>,
remainder: Box<RecipeSlotDisplay>,
},
Composite(Vec<RecipeSlotDisplay>),
}Expand description
What one slot in a recipe display shows. Resource references use names, never process-local registry ordinals. The host resolves these at recipe load.
Variants§
Empty
AnyFuel
Item(String)
ItemStack(ItemStack)
Tag(String)
WithAnyPotion(Box<RecipeSlotDisplay>)
OnlyWithComponent
Dyed
SmithingTrim
WithRemainder
Composite(Vec<RecipeSlotDisplay>)
Trait Implementations§
§impl Clone for RecipeSlotDisplay
impl Clone for RecipeSlotDisplay
§fn clone(&self) -> RecipeSlotDisplay
fn clone(&self) -> RecipeSlotDisplay
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 RecipeSlotDisplay
impl Debug for RecipeSlotDisplay
§impl PartialEq for RecipeSlotDisplay
impl PartialEq for RecipeSlotDisplay
impl StructuralPartialEq for RecipeSlotDisplay
Auto Trait Implementations§
impl Freeze for RecipeSlotDisplay
impl RefUnwindSafe for RecipeSlotDisplay
impl Send for RecipeSlotDisplay
impl Sync for RecipeSlotDisplay
impl Unpin for RecipeSlotDisplay
impl UnsafeUnpin for RecipeSlotDisplay
impl UnwindSafe for RecipeSlotDisplay
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