Enum valence::block::BlockEntityKind
pub enum BlockEntityKind {
Show 41 variants
Furnace,
Chest,
TrappedChest,
EnderChest,
Jukebox,
Dispenser,
Dropper,
Sign,
HangingSign,
MobSpawner,
Piston,
BrewingStand,
EnchantingTable,
EndPortal,
Beacon,
Skull,
DaylightDetector,
Hopper,
Comparator,
Banner,
StructureBlock,
EndGateway,
CommandBlock,
ShulkerBox,
Bed,
Conduit,
Barrel,
Smoker,
BlastFurnace,
Lectern,
Bell,
Jigsaw,
Campfire,
Beehive,
SculkSensor,
CalibratedSculkSensor,
SculkCatalyst,
SculkShrieker,
ChiseledBookshelf,
BrushableBlock,
DecoratedPot,
}
Variants§
Furnace
The block entity type furnace
(ID 0).
Chest
The block entity type chest
(ID 1).
TrappedChest
The block entity type trapped_chest
(ID 2).
EnderChest
The block entity type ender_chest
(ID 3).
Jukebox
The block entity type jukebox
(ID 4).
Dispenser
The block entity type dispenser
(ID 5).
Dropper
The block entity type dropper
(ID 6).
Sign
The block entity type sign
(ID 7).
HangingSign
The block entity type hanging_sign
(ID 8).
MobSpawner
The block entity type mob_spawner
(ID 9).
Piston
The block entity type piston
(ID 10).
BrewingStand
The block entity type brewing_stand
(ID 11).
EnchantingTable
The block entity type enchanting_table
(ID 12).
EndPortal
The block entity type end_portal
(ID 13).
Beacon
The block entity type beacon
(ID 14).
Skull
The block entity type skull
(ID 15).
DaylightDetector
The block entity type daylight_detector
(ID 16).
Hopper
The block entity type hopper
(ID 17).
Comparator
The block entity type comparator
(ID 18).
Banner
The block entity type banner
(ID 19).
StructureBlock
The block entity type structure_block
(ID 20).
EndGateway
The block entity type end_gateway
(ID 21).
CommandBlock
The block entity type command_block
(ID 22).
ShulkerBox
The block entity type shulker_box
(ID 23).
Bed
The block entity type bed
(ID 24).
Conduit
The block entity type conduit
(ID 25).
Barrel
The block entity type barrel
(ID 26).
Smoker
The block entity type smoker
(ID 27).
BlastFurnace
The block entity type blast_furnace
(ID 28).
Lectern
The block entity type lectern
(ID 29).
Bell
The block entity type bell
(ID 30).
Jigsaw
The block entity type jigsaw
(ID 31).
Campfire
The block entity type campfire
(ID 32).
Beehive
The block entity type beehive
(ID 33).
SculkSensor
The block entity type sculk_sensor
(ID 34).
CalibratedSculkSensor
The block entity type calibrated_sculk_sensor
(ID 35).
SculkCatalyst
The block entity type sculk_catalyst
(ID 36).
SculkShrieker
The block entity type sculk_shrieker
(ID 37).
ChiseledBookshelf
The block entity type chiseled_bookshelf
(ID 38).
BrushableBlock
The block entity type brushable_block
(ID 39).
DecoratedPot
The block entity type decorated_pot
(ID 40).
Implementations§
§impl BlockEntityKind
impl BlockEntityKind
pub const fn from_id(num: u32) -> Option<BlockEntityKind>
pub const fn id(self) -> u32
pub fn from_ident(ident: Ident<&str>) -> Option<BlockEntityKind>
pub fn ident(self) -> Ident<&'static str>
Trait Implementations§
§impl Clone for BlockEntityKind
impl Clone for BlockEntityKind
§fn clone(&self) -> BlockEntityKind
fn clone(&self) -> BlockEntityKind
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for BlockEntityKind
impl Debug for BlockEntityKind
§impl<'a> Decode<'a> for BlockEntityKind
impl<'a> Decode<'a> for BlockEntityKind
§impl Encode for BlockEntityKind
impl Encode for BlockEntityKind
§impl Hash for BlockEntityKind
impl Hash for BlockEntityKind
§impl Ord for BlockEntityKind
impl Ord for BlockEntityKind
§impl PartialEq for BlockEntityKind
impl PartialEq for BlockEntityKind
§impl PartialOrd for BlockEntityKind
impl PartialOrd 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
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)
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.