[][src]Struct ozelot::clientbound::UnlockRecipes

pub struct UnlockRecipes { /* fields omitted */ }

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]

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]

impl Debug for UnlockRecipes[src]

impl PartialEq<UnlockRecipes> for UnlockRecipes[src]

impl StructuralPartialEq for UnlockRecipes[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.