#[repr(u32)]pub enum Menu {
Show 24 variants
Generic9x1 = 0,
Generic9x2 = 1,
Generic9x3 = 2,
Generic9x4 = 3,
Generic9x5 = 4,
Generic9x6 = 5,
Generic3x3 = 6,
Anvil = 7,
Beacon = 8,
BlastFurnace = 9,
BrewingStand = 10,
Crafting = 11,
Enchantment = 12,
Furnace = 13,
Grindstone = 14,
Hopper = 15,
Lectern = 16,
Loom = 17,
Merchant = 18,
ShulkerBox = 19,
Smithing = 20,
Smoker = 21,
CartographyTable = 22,
Stonecutter = 23,
}
Variants§
Generic9x1 = 0
Generic9x2 = 1
Generic9x3 = 2
Generic9x4 = 3
Generic9x5 = 4
Generic9x6 = 5
Generic3x3 = 6
Anvil = 7
Beacon = 8
BlastFurnace = 9
BrewingStand = 10
Crafting = 11
Enchantment = 12
Furnace = 13
Grindstone = 14
Hopper = 15
Lectern = 16
Loom = 17
Merchant = 18
ShulkerBox = 19
Smithing = 20
Smoker = 21
CartographyTable = 22
Stonecutter = 23
Implementations§
Source§impl Menu
impl Menu
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Menu
impl<'de> Deserialize<'de> for Menu
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromNbtTag for Menu
impl FromNbtTag for Menu
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl McBufReadable for Menu
impl McBufReadable for Menu
Source§impl McBufWritable for Menu
impl McBufWritable for Menu
Source§impl ToNbtTag for Menu
impl ToNbtTag for Menu
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
impl Copy for Menu
impl Eq for Menu
impl StructuralPartialEq for Menu
Auto Trait Implementations§
impl Freeze for Menu
impl RefUnwindSafe for Menu
impl Send for Menu
impl Sync for Menu
impl Unpin for Menu
impl UnwindSafe for Menu
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)