[−][src]Struct ozelot::clientbound::UnlockRecipes
Methods
impl UnlockRecipes
[src]
pub fn new_raw(
action: i32,
crafting_book_open: bool,
crafting_book_filter: bool,
smelting_book_open: bool,
smelting_book_filter: bool,
recipes: Vec<String>,
recipes2: Vec<String>
) -> ClientboundPacket
[src]
action: i32,
crafting_book_open: bool,
crafting_book_filter: bool,
smelting_book_open: bool,
smelting_book_filter: bool,
recipes: Vec<String>,
recipes2: Vec<String>
) -> ClientboundPacket
pub fn get_action(&self) -> &i32
[src]
Get the action enum ID
pub fn get_crafting_book_open(&self) -> &bool
[src]
Get whether the crafting book shall open when the player opens their inventory
pub fn get_crafting_book_filter(&self) -> &bool
[src]
Get whether to filter for only craftable items
pub fn get_smelting_book_open(&self) -> &bool
[src]
Get whether the smelting recipe book shall open when the player opens their inventory
pub fn get_smelting_book_filter(&self) -> &bool
[src]
Get whether to filter the smelting recipe book
pub fn get_recipes(&self) -> &Vec<String>
[src]
Get all the recipes in list 1
pub fn get_recipes2(&self) -> &Vec<String>
[src]
Get all the recipes in list 2. Is empty unless action == 0
Trait Implementations
impl Clone for UnlockRecipes
[src]
fn clone(&self) -> UnlockRecipes
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UnlockRecipes
[src]
impl PartialEq<UnlockRecipes> for UnlockRecipes
[src]
fn eq(&self, other: &UnlockRecipes) -> bool
[src]
fn ne(&self, other: &UnlockRecipes) -> bool
[src]
impl StructuralPartialEq for UnlockRecipes
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnlockRecipes
impl Send for UnlockRecipes
impl Sync for UnlockRecipes
impl Unpin for UnlockRecipes
impl UnwindSafe for UnlockRecipes
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,