#[repr(u32)]pub enum MenuKind {
Show 25 variants
Generic9x1 = 0,
Generic9x2 = 1,
Generic9x3 = 2,
Generic9x4 = 3,
Generic9x5 = 4,
Generic9x6 = 5,
Generic3x3 = 6,
Crafter3x3 = 7,
Anvil = 8,
Beacon = 9,
BlastFurnace = 10,
BrewingStand = 11,
Crafting = 12,
Enchantment = 13,
Furnace = 14,
Grindstone = 15,
Hopper = 16,
Lectern = 17,
Loom = 18,
Merchant = 19,
ShulkerBox = 20,
Smithing = 21,
Smoker = 22,
CartographyTable = 23,
Stonecutter = 24,
}
Variants§
Generic9x1 = 0
Generic9x2 = 1
Generic9x3 = 2
Generic9x4 = 3
Generic9x5 = 4
Generic9x6 = 5
Generic3x3 = 6
Crafter3x3 = 7
Anvil = 8
Beacon = 9
BlastFurnace = 10
BrewingStand = 11
Crafting = 12
Enchantment = 13
Furnace = 14
Grindstone = 15
Hopper = 16
Lectern = 17
Loom = 18
Merchant = 19
ShulkerBox = 20
Smithing = 21
Smoker = 22
CartographyTable = 23
Stonecutter = 24
Implementations§
Source§impl MenuKind
impl MenuKind
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MenuKind
impl<'de> Deserialize<'de> for MenuKind
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 MenuKind
impl FromNbtTag for MenuKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl McBufReadable for MenuKind
impl McBufReadable for MenuKind
Source§impl McBufWritable for MenuKind
impl McBufWritable for MenuKind
Source§impl ToNbtTag for MenuKind
impl ToNbtTag for MenuKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
impl Copy for MenuKind
impl Eq for MenuKind
impl StructuralPartialEq for MenuKind
Auto Trait Implementations§
impl Freeze for MenuKind
impl RefUnwindSafe for MenuKind
impl Send for MenuKind
impl Sync for MenuKind
impl Unpin for MenuKind
impl UnwindSafe for MenuKind
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
)