#[repr(u32)]pub enum BlockEntityKind {
Show 45 variants
Furnace = 0,
Chest = 1,
TrappedChest = 2,
EnderChest = 3,
Jukebox = 4,
Dispenser = 5,
Dropper = 6,
Sign = 7,
HangingSign = 8,
MobSpawner = 9,
CreakingHeart = 10,
Piston = 11,
BrewingStand = 12,
EnchantingTable = 13,
EndPortal = 14,
Beacon = 15,
Skull = 16,
DaylightDetector = 17,
Hopper = 18,
Comparator = 19,
Banner = 20,
StructureBlock = 21,
EndGateway = 22,
CommandBlock = 23,
ShulkerBox = 24,
Bed = 25,
Conduit = 26,
Barrel = 27,
Smoker = 28,
BlastFurnace = 29,
Lectern = 30,
Bell = 31,
Jigsaw = 32,
Campfire = 33,
Beehive = 34,
SculkSensor = 35,
CalibratedSculkSensor = 36,
SculkCatalyst = 37,
SculkShrieker = 38,
ChiseledBookshelf = 39,
BrushableBlock = 40,
DecoratedPot = 41,
Crafter = 42,
TrialSpawner = 43,
Vault = 44,
}
Expand description
An enum that contains every type of block entity. A block entity is a block that contains data that can’t be represented as just a block state, like how chests store items.
Variants§
Furnace = 0
Chest = 1
TrappedChest = 2
EnderChest = 3
Jukebox = 4
Dispenser = 5
Dropper = 6
Sign = 7
HangingSign = 8
MobSpawner = 9
CreakingHeart = 10
Piston = 11
BrewingStand = 12
EnchantingTable = 13
EndPortal = 14
Beacon = 15
Skull = 16
DaylightDetector = 17
Hopper = 18
Comparator = 19
Banner = 20
StructureBlock = 21
EndGateway = 22
CommandBlock = 23
ShulkerBox = 24
Bed = 25
Conduit = 26
Barrel = 27
Smoker = 28
BlastFurnace = 29
Lectern = 30
Bell = 31
Jigsaw = 32
Campfire = 33
Beehive = 34
SculkSensor = 35
CalibratedSculkSensor = 36
SculkCatalyst = 37
SculkShrieker = 38
ChiseledBookshelf = 39
BrushableBlock = 40
DecoratedPot = 41
Crafter = 42
TrialSpawner = 43
Vault = 44
Implementations§
Source§impl BlockEntityKind
impl BlockEntityKind
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl BlockEntityKind
impl BlockEntityKind
Sourcepub unsafe fn from_u32_unchecked(id: u32) -> Self
pub unsafe fn from_u32_unchecked(id: u32) -> Self
pub fn is_valid_id(id: u32) -> bool
Trait Implementations§
Source§impl Clone for BlockEntityKind
impl Clone for BlockEntityKind
Source§fn clone(&self) -> BlockEntityKind
fn clone(&self) -> BlockEntityKind
Returns a copy 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 BlockEntityKind
impl Debug for BlockEntityKind
Source§impl<'de> Deserialize<'de> for BlockEntityKind
impl<'de> Deserialize<'de> for BlockEntityKind
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 Display for BlockEntityKind
impl Display for BlockEntityKind
Source§impl FromNbtTag for BlockEntityKind
impl FromNbtTag for BlockEntityKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for BlockEntityKind
impl FromStr for BlockEntityKind
Source§impl Hash for BlockEntityKind
impl Hash for BlockEntityKind
Source§impl McBufReadable for BlockEntityKind
impl McBufReadable for BlockEntityKind
Source§impl McBufWritable for BlockEntityKind
impl McBufWritable for BlockEntityKind
Source§impl PartialEq for BlockEntityKind
impl PartialEq for BlockEntityKind
Source§impl Registry for BlockEntityKind
impl Registry for BlockEntityKind
Source§impl Serialize for BlockEntityKind
impl Serialize for BlockEntityKind
Source§impl ToNbtTag for BlockEntityKind
impl ToNbtTag for BlockEntityKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for BlockEntityKind
impl TryFrom<u32> for BlockEntityKind
impl Copy for BlockEntityKind
impl Eq for BlockEntityKind
impl StructuralPartialEq for BlockEntityKind
Auto Trait Implementations§
impl Freeze for BlockEntityKind
impl RefUnwindSafe for BlockEntityKind
impl Send for BlockEntityKind
impl Sync for BlockEntityKind
impl Unpin for BlockEntityKind
impl UnwindSafe for BlockEntityKind
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
)