pub enum WindowType {
Show 23 variants
GenericOneRow,
GenericTwoRow,
GenericThreeRow,
GenericFourRow,
GenericFiveRow,
GenericSixRow,
GenericSquare,
Anvil,
Beacon,
BlastFurnace,
BrewingStand,
CraftingTable,
EnchantmentTable,
Furnace,
Grindstone,
Hopper,
Lectern,
Loom,
Merchant,
ShulkerBox,
Smoker,
Cartography,
StoneCutter,
}
Variants§
GenericOneRow
GenericTwoRow
GenericThreeRow
GenericFourRow
GenericFiveRow
GenericSixRow
GenericSquare
Anvil
Beacon
BlastFurnace
BrewingStand
CraftingTable
EnchantmentTable
Furnace
Grindstone
Hopper
Lectern
Loom
Merchant
ShulkerBox
Smoker
Cartography
StoneCutter
Implementations§
Source§impl WindowType
impl WindowType
pub const fn variant_count() -> usize
pub fn deserialize_with_id<'a>( id: VarInt, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn name(&self) -> &str
pub fn id(&self) -> VarInt
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Clone for WindowType
impl Clone for WindowType
Source§fn clone(&self) -> WindowType
fn clone(&self) -> WindowType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WindowType
impl Debug for WindowType
Source§impl Deserialize for WindowType
impl Deserialize for WindowType
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl PartialEq for WindowType
impl PartialEq for WindowType
Source§impl Serialize for WindowType
impl Serialize for WindowType
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for WindowType
Auto Trait Implementations§
impl Freeze for WindowType
impl RefUnwindSafe for WindowType
impl Send for WindowType
impl Sync for WindowType
impl Unpin for WindowType
impl UnwindSafe for WindowType
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