#[non_exhaustive]pub enum CreativeTab {
Inventory,
Items,
}Expand description
The page the creative inventory screen shows (1.8.9 – 1.16.5).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Inventory
The survival inventory tab: window 0’s slots (5 ..) and the delete slot
(Inventory::creative_delete_slot). Clicks use window 0’s slot numbers.
Items
Any item tab (building blocks, tools, …): the menu (slots 0..45, clicked with
Inventory::creative_menu_click) and the hotbar row (slots 45..54).
Trait Implementations§
Source§impl Clone for CreativeTab
impl Clone for CreativeTab
impl Copy for CreativeTab
Source§impl Debug for CreativeTab
impl Debug for CreativeTab
impl Eq for CreativeTab
Source§impl Hash for CreativeTab
impl Hash for CreativeTab
Source§impl PartialEq for CreativeTab
impl PartialEq for CreativeTab
impl StructuralPartialEq for CreativeTab
Auto Trait Implementations§
impl Forget for CreativeTab
impl Freeze for CreativeTab
impl Move for CreativeTab
impl RefUnwindSafe for CreativeTab
impl Send for CreativeTab
impl Sync for CreativeTab
impl Unpin for CreativeTab
impl UnsafeUnpin for CreativeTab
impl UnwindSafe for CreativeTab
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