pub enum BlockEntityDataAction {
Show 13 variants
SetMobSpawnerData,
SetCommandBlockText,
SetBeaconLevelAndPower,
SetMobHeadRotationAndSkin,
DeclareConduit,
SetBannerColorAndPatterns,
SetStructureTileEntityData,
SetEndGatewayDestination,
SetSignText,
DeclareBed,
SetJigsawBlockData,
SetCampfireItems,
BeehiveInformation,
}
Variants§
SetMobSpawnerData
SetCommandBlockText
SetBeaconLevelAndPower
SetMobHeadRotationAndSkin
DeclareConduit
SetBannerColorAndPatterns
SetStructureTileEntityData
SetEndGatewayDestination
SetSignText
DeclareBed
SetJigsawBlockData
SetCampfireItems
BeehiveInformation
Implementations§
Source§impl BlockEntityDataAction
impl BlockEntityDataAction
pub const fn variant_count() -> usize
pub fn deserialize_with_id<'a>( id: u8, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn name(&self) -> &str
pub fn id(&self) -> u8
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Clone for BlockEntityDataAction
impl Clone for BlockEntityDataAction
Source§fn clone(&self) -> BlockEntityDataAction
fn clone(&self) -> BlockEntityDataAction
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 BlockEntityDataAction
impl Debug for BlockEntityDataAction
Source§impl Deserialize for BlockEntityDataAction
impl Deserialize for BlockEntityDataAction
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl PartialEq for BlockEntityDataAction
impl PartialEq for BlockEntityDataAction
Source§impl Serialize for BlockEntityDataAction
impl Serialize for BlockEntityDataAction
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for BlockEntityDataAction
Auto Trait Implementations§
impl Freeze for BlockEntityDataAction
impl RefUnwindSafe for BlockEntityDataAction
impl Send for BlockEntityDataAction
impl Sync for BlockEntityDataAction
impl Unpin for BlockEntityDataAction
impl UnwindSafe for BlockEntityDataAction
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