Skip to main content

EntityDataValue

Enum EntityDataValue 

Source
pub enum EntityDataValue {
Show 43 variants Byte(u8), Int(i32), Long(i64), Float(f32), String(Box<str>), FormattedText(Box<FormattedText>), OptionalFormattedText(Option<Box<FormattedText>>), ItemStack(ItemStack), Boolean(bool), Rotations(Rotations), BlockPos(BlockPos), OptionalBlockPos(Option<BlockPos>), Direction(Direction), OptionalLivingEntityReference(Option<Uuid>), BlockState(BlockState), OptionalBlockState(BlockState), Particle(Particle), Particles(Box<[Particle]>), VillagerData(VillagerData), OptionalUnsignedInt(OptionalUnsignedInt), Pose(Pose), CatVariant(CatVariant), CatSoundVariant(CatSoundVariant), CowVariant(CowVariant), CowSoundVariant(CowSoundVariant), WolfVariant(WolfVariant), WolfSoundVariant(WolfSoundVariant), FrogVariant(FrogVariant), PigVariant(PigVariant), PigSoundVariant(PigSoundVariant), ChickenVariant(ChickenVariant), ChickenSoundVariant(ChickenSoundVariant), ZombieNautilusVariant(ZombieNautilusVariant), OptionalGlobalPos(Option<Box<GlobalPos>>), PaintingVariant(PaintingVariant), SnifferState(SnifferStateKind), ArmadilloState(ArmadilloStateKind), CopperGolemState(CopperGolemStateKind), WeatheringCopperState(WeatheringCopperStateKind), Vector3(Vec3f32), Quaternion(Quaternion), ResolvableProfile(Profile), HumanoidArm(HumanoidArm),
}

Variants§

§

Byte(u8)

§

Int(i32)

§

Long(i64)

§

Float(f32)

§

String(Box<str>)

§

FormattedText(Box<FormattedText>)

§

OptionalFormattedText(Option<Box<FormattedText>>)

§

ItemStack(ItemStack)

§

Boolean(bool)

§

Rotations(Rotations)

§

BlockPos(BlockPos)

§

OptionalBlockPos(Option<BlockPos>)

§

Direction(Direction)

§

OptionalLivingEntityReference(Option<Uuid>)

§

BlockState(BlockState)

§

OptionalBlockState(BlockState)

If this is air, that means it’s absent,

§

Particle(Particle)

§

Particles(Box<[Particle]>)

§

VillagerData(VillagerData)

§

OptionalUnsignedInt(OptionalUnsignedInt)

§

Pose(Pose)

§

CatVariant(CatVariant)

§

CatSoundVariant(CatSoundVariant)

§

CowVariant(CowVariant)

§

CowSoundVariant(CowSoundVariant)

§

WolfVariant(WolfVariant)

§

WolfSoundVariant(WolfSoundVariant)

§

FrogVariant(FrogVariant)

§

PigVariant(PigVariant)

§

PigSoundVariant(PigSoundVariant)

§

ChickenVariant(ChickenVariant)

§

ChickenSoundVariant(ChickenSoundVariant)

§

ZombieNautilusVariant(ZombieNautilusVariant)

§

OptionalGlobalPos(Option<Box<GlobalPos>>)

§

PaintingVariant(PaintingVariant)

§

SnifferState(SnifferStateKind)

§

ArmadilloState(ArmadilloStateKind)

§

CopperGolemState(CopperGolemStateKind)

§

WeatheringCopperState(WeatheringCopperStateKind)

§

Vector3(Vec3f32)

§

Quaternion(Quaternion)

§

ResolvableProfile(Profile)

§

HumanoidArm(HumanoidArm)

Implementations§

Source§

impl EntityDataValue

Source

pub fn is_byte(&self) -> bool

Returns true if this is a EntityDataValue::Byte, otherwise false

Source

pub fn as_byte_mut(&mut self) -> Option<&mut u8>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::Byte, otherwise None

Source

pub fn as_byte(&self) -> Option<&u8>

Optionally returns references to the inner fields if this is a EntityDataValue::Byte, otherwise None

Source

pub fn into_byte(self) -> Result<u8, Self>

Returns the inner fields if this is a EntityDataValue::Byte, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_byte_unchecked(self) -> u8

Unchecked return of the inner fields of EntityDataValue::Byte.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_byte_unchecked(&self) -> &u8

Unchecked reference of the inner fields of EntityDataValue::Byte.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_byte_mut_unchecked(&mut self) -> &mut u8

Unchecked mutable reference of the inner fields of EntityDataValue::Byte.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_int(&self) -> bool

Returns true if this is a EntityDataValue::Int, otherwise false

Source

pub fn as_int_mut(&mut self) -> Option<&mut i32>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::Int, otherwise None

Source

pub fn as_int(&self) -> Option<&i32>

Optionally returns references to the inner fields if this is a EntityDataValue::Int, otherwise None

Source

pub fn into_int(self) -> Result<i32, Self>

Returns the inner fields if this is a EntityDataValue::Int, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_int_unchecked(self) -> i32

Unchecked return of the inner fields of EntityDataValue::Int.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_int_unchecked(&self) -> &i32

Unchecked reference of the inner fields of EntityDataValue::Int.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_int_mut_unchecked(&mut self) -> &mut i32

Unchecked mutable reference of the inner fields of EntityDataValue::Int.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_long(&self) -> bool

Returns true if this is a EntityDataValue::Long, otherwise false

Source

pub fn as_long_mut(&mut self) -> Option<&mut i64>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::Long, otherwise None

Source

pub fn as_long(&self) -> Option<&i64>

Optionally returns references to the inner fields if this is a EntityDataValue::Long, otherwise None

Source

pub fn into_long(self) -> Result<i64, Self>

Returns the inner fields if this is a EntityDataValue::Long, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_long_unchecked(self) -> i64

Unchecked return of the inner fields of EntityDataValue::Long.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_long_unchecked(&self) -> &i64

Unchecked reference of the inner fields of EntityDataValue::Long.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_long_mut_unchecked(&mut self) -> &mut i64

Unchecked mutable reference of the inner fields of EntityDataValue::Long.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_float(&self) -> bool

Returns true if this is a EntityDataValue::Float, otherwise false

Source

pub fn as_float_mut(&mut self) -> Option<&mut f32>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::Float, otherwise None

Source

pub fn as_float(&self) -> Option<&f32>

Optionally returns references to the inner fields if this is a EntityDataValue::Float, otherwise None

Source

pub fn into_float(self) -> Result<f32, Self>

Returns the inner fields if this is a EntityDataValue::Float, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_float_unchecked(self) -> f32

Unchecked return of the inner fields of EntityDataValue::Float.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_float_unchecked(&self) -> &f32

Unchecked reference of the inner fields of EntityDataValue::Float.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_float_mut_unchecked(&mut self) -> &mut f32

Unchecked mutable reference of the inner fields of EntityDataValue::Float.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_string(&self) -> bool

Returns true if this is a EntityDataValue::String, otherwise false

Source

pub fn as_string_mut(&mut self) -> Option<&mut Box<str>>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::String, otherwise None

Source

pub fn as_string(&self) -> Option<&Box<str>>

Optionally returns references to the inner fields if this is a EntityDataValue::String, otherwise None

Source

pub fn into_string(self) -> Result<Box<str>, Self>

Returns the inner fields if this is a EntityDataValue::String, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_string_unchecked(self) -> Box<str>

Unchecked return of the inner fields of EntityDataValue::String.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_string_unchecked(&self) -> &Box<str>

Unchecked reference of the inner fields of EntityDataValue::String.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_string_mut_unchecked(&mut self) -> &mut Box<str>

Unchecked mutable reference of the inner fields of EntityDataValue::String.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_formatted_text(&self) -> bool

Returns true if this is a EntityDataValue::FormattedText, otherwise false

Source

pub fn as_formatted_text_mut(&mut self) -> Option<&mut Box<FormattedText>>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::FormattedText, otherwise None

Source

pub fn as_formatted_text(&self) -> Option<&Box<FormattedText>>

Optionally returns references to the inner fields if this is a EntityDataValue::FormattedText, otherwise None

Source

pub fn into_formatted_text(self) -> Result<Box<FormattedText>, Self>

Returns the inner fields if this is a EntityDataValue::FormattedText, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_formatted_text_unchecked(self) -> Box<FormattedText>

Unchecked return of the inner fields of EntityDataValue::FormattedText.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_formatted_text_unchecked(&self) -> &Box<FormattedText>

Unchecked reference of the inner fields of EntityDataValue::FormattedText.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_formatted_text_mut_unchecked( &mut self, ) -> &mut Box<FormattedText>

Unchecked mutable reference of the inner fields of EntityDataValue::FormattedText.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_optional_formatted_text(&self) -> bool

Returns true if this is a EntityDataValue::OptionalFormattedText, otherwise false

Source

pub fn as_optional_formatted_text_mut( &mut self, ) -> Option<&mut Option<Box<FormattedText>>>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::OptionalFormattedText, otherwise None

Source

pub fn as_optional_formatted_text(&self) -> Option<&Option<Box<FormattedText>>>

Optionally returns references to the inner fields if this is a EntityDataValue::OptionalFormattedText, otherwise None

Source

pub fn into_optional_formatted_text( self, ) -> Result<Option<Box<FormattedText>>, Self>

Returns the inner fields if this is a EntityDataValue::OptionalFormattedText, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_optional_formatted_text_unchecked( self, ) -> Option<Box<FormattedText>>

Unchecked return of the inner fields of EntityDataValue::OptionalFormattedText.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_optional_formatted_text_unchecked( &self, ) -> &Option<Box<FormattedText>>

Unchecked reference of the inner fields of EntityDataValue::OptionalFormattedText.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_optional_formatted_text_mut_unchecked( &mut self, ) -> &mut Option<Box<FormattedText>>

Unchecked mutable reference of the inner fields of EntityDataValue::OptionalFormattedText.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_item_stack(&self) -> bool

Returns true if this is a EntityDataValue::ItemStack, otherwise false

Source

pub fn as_item_stack_mut(&mut self) -> Option<&mut ItemStack>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::ItemStack, otherwise None

Source

pub fn as_item_stack(&self) -> Option<&ItemStack>

Optionally returns references to the inner fields if this is a EntityDataValue::ItemStack, otherwise None

Source

pub fn into_item_stack(self) -> Result<ItemStack, Self>

Returns the inner fields if this is a EntityDataValue::ItemStack, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_item_stack_unchecked(self) -> ItemStack

Unchecked return of the inner fields of EntityDataValue::ItemStack.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_item_stack_unchecked(&self) -> &ItemStack

Unchecked reference of the inner fields of EntityDataValue::ItemStack.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_item_stack_mut_unchecked(&mut self) -> &mut ItemStack

Unchecked mutable reference of the inner fields of EntityDataValue::ItemStack.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_boolean(&self) -> bool

Returns true if this is a EntityDataValue::Boolean, otherwise false

Source

pub fn as_boolean_mut(&mut self) -> Option<&mut bool>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::Boolean, otherwise None

Source

pub fn as_boolean(&self) -> Option<&bool>

Optionally returns references to the inner fields if this is a EntityDataValue::Boolean, otherwise None

Source

pub fn into_boolean(self) -> Result<bool, Self>

Returns the inner fields if this is a EntityDataValue::Boolean, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_boolean_unchecked(self) -> bool

Unchecked return of the inner fields of EntityDataValue::Boolean.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_boolean_unchecked(&self) -> &bool

Unchecked reference of the inner fields of EntityDataValue::Boolean.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_boolean_mut_unchecked(&mut self) -> &mut bool

Unchecked mutable reference of the inner fields of EntityDataValue::Boolean.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_rotations(&self) -> bool

Returns true if this is a EntityDataValue::Rotations, otherwise false

Source

pub fn as_rotations_mut(&mut self) -> Option<&mut Rotations>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::Rotations, otherwise None

Source

pub fn as_rotations(&self) -> Option<&Rotations>

Optionally returns references to the inner fields if this is a EntityDataValue::Rotations, otherwise None

Source

pub fn into_rotations(self) -> Result<Rotations, Self>

Returns the inner fields if this is a EntityDataValue::Rotations, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_rotations_unchecked(self) -> Rotations

Unchecked return of the inner fields of EntityDataValue::Rotations.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_rotations_unchecked(&self) -> &Rotations

Unchecked reference of the inner fields of EntityDataValue::Rotations.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_rotations_mut_unchecked(&mut self) -> &mut Rotations

Unchecked mutable reference of the inner fields of EntityDataValue::Rotations.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_block_pos(&self) -> bool

Returns true if this is a EntityDataValue::BlockPos, otherwise false

Source

pub fn as_block_pos_mut(&mut self) -> Option<&mut BlockPos>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::BlockPos, otherwise None

Source

pub fn as_block_pos(&self) -> Option<&BlockPos>

Optionally returns references to the inner fields if this is a EntityDataValue::BlockPos, otherwise None

Source

pub fn into_block_pos(self) -> Result<BlockPos, Self>

Returns the inner fields if this is a EntityDataValue::BlockPos, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_block_pos_unchecked(self) -> BlockPos

Unchecked return of the inner fields of EntityDataValue::BlockPos.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_block_pos_unchecked(&self) -> &BlockPos

Unchecked reference of the inner fields of EntityDataValue::BlockPos.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_block_pos_mut_unchecked(&mut self) -> &mut BlockPos

Unchecked mutable reference of the inner fields of EntityDataValue::BlockPos.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_optional_block_pos(&self) -> bool

Returns true if this is a EntityDataValue::OptionalBlockPos, otherwise false

Source

pub fn as_optional_block_pos_mut(&mut self) -> Option<&mut Option<BlockPos>>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::OptionalBlockPos, otherwise None

Source

pub fn as_optional_block_pos(&self) -> Option<&Option<BlockPos>>

Optionally returns references to the inner fields if this is a EntityDataValue::OptionalBlockPos, otherwise None

Source

pub fn into_optional_block_pos(self) -> Result<Option<BlockPos>, Self>

Returns the inner fields if this is a EntityDataValue::OptionalBlockPos, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_optional_block_pos_unchecked(self) -> Option<BlockPos>

Unchecked return of the inner fields of EntityDataValue::OptionalBlockPos.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_optional_block_pos_unchecked(&self) -> &Option<BlockPos>

Unchecked reference of the inner fields of EntityDataValue::OptionalBlockPos.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_optional_block_pos_mut_unchecked( &mut self, ) -> &mut Option<BlockPos>

Unchecked mutable reference of the inner fields of EntityDataValue::OptionalBlockPos.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_direction(&self) -> bool

Returns true if this is a EntityDataValue::Direction, otherwise false

Source

pub fn as_direction_mut(&mut self) -> Option<&mut Direction>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::Direction, otherwise None

Source

pub fn as_direction(&self) -> Option<&Direction>

Optionally returns references to the inner fields if this is a EntityDataValue::Direction, otherwise None

Source

pub fn into_direction(self) -> Result<Direction, Self>

Returns the inner fields if this is a EntityDataValue::Direction, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_direction_unchecked(self) -> Direction

Unchecked return of the inner fields of EntityDataValue::Direction.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_direction_unchecked(&self) -> &Direction

Unchecked reference of the inner fields of EntityDataValue::Direction.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_direction_mut_unchecked(&mut self) -> &mut Direction

Unchecked mutable reference of the inner fields of EntityDataValue::Direction.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_optional_living_entity_reference(&self) -> bool

Returns true if this is a EntityDataValue::OptionalLivingEntityReference, otherwise false

Source

pub fn as_optional_living_entity_reference_mut( &mut self, ) -> Option<&mut Option<Uuid>>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::OptionalLivingEntityReference, otherwise None

Source

pub fn as_optional_living_entity_reference(&self) -> Option<&Option<Uuid>>

Optionally returns references to the inner fields if this is a EntityDataValue::OptionalLivingEntityReference, otherwise None

Source

pub fn into_optional_living_entity_reference(self) -> Result<Option<Uuid>, Self>

Returns the inner fields if this is a EntityDataValue::OptionalLivingEntityReference, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_optional_living_entity_reference_unchecked( self, ) -> Option<Uuid>

Unchecked return of the inner fields of EntityDataValue::OptionalLivingEntityReference.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_optional_living_entity_reference_unchecked( &self, ) -> &Option<Uuid>

Unchecked reference of the inner fields of EntityDataValue::OptionalLivingEntityReference.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_optional_living_entity_reference_mut_unchecked( &mut self, ) -> &mut Option<Uuid>

Unchecked mutable reference of the inner fields of EntityDataValue::OptionalLivingEntityReference.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_block_state(&self) -> bool

Returns true if this is a EntityDataValue::BlockState, otherwise false

Source

pub fn as_block_state_mut(&mut self) -> Option<&mut BlockState>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::BlockState, otherwise None

Source

pub fn as_block_state(&self) -> Option<&BlockState>

Optionally returns references to the inner fields if this is a EntityDataValue::BlockState, otherwise None

Source

pub fn into_block_state(self) -> Result<BlockState, Self>

Returns the inner fields if this is a EntityDataValue::BlockState, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_block_state_unchecked(self) -> BlockState

Unchecked return of the inner fields of EntityDataValue::BlockState.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_block_state_unchecked(&self) -> &BlockState

Unchecked reference of the inner fields of EntityDataValue::BlockState.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_block_state_mut_unchecked(&mut self) -> &mut BlockState

Unchecked mutable reference of the inner fields of EntityDataValue::BlockState.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_optional_block_state(&self) -> bool

Returns true if this is a EntityDataValue::OptionalBlockState, otherwise false

Source

pub fn as_optional_block_state_mut(&mut self) -> Option<&mut BlockState>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::OptionalBlockState, otherwise None

Source

pub fn as_optional_block_state(&self) -> Option<&BlockState>

Optionally returns references to the inner fields if this is a EntityDataValue::OptionalBlockState, otherwise None

Source

pub fn into_optional_block_state(self) -> Result<BlockState, Self>

Returns the inner fields if this is a EntityDataValue::OptionalBlockState, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_optional_block_state_unchecked(self) -> BlockState

Unchecked return of the inner fields of EntityDataValue::OptionalBlockState.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_optional_block_state_unchecked(&self) -> &BlockState

Unchecked reference of the inner fields of EntityDataValue::OptionalBlockState.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_optional_block_state_mut_unchecked( &mut self, ) -> &mut BlockState

Unchecked mutable reference of the inner fields of EntityDataValue::OptionalBlockState.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_particle(&self) -> bool

Returns true if this is a EntityDataValue::Particle, otherwise false

Source

pub fn as_particle_mut(&mut self) -> Option<&mut Particle>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::Particle, otherwise None

Source

pub fn as_particle(&self) -> Option<&Particle>

Optionally returns references to the inner fields if this is a EntityDataValue::Particle, otherwise None

Source

pub fn into_particle(self) -> Result<Particle, Self>

Returns the inner fields if this is a EntityDataValue::Particle, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_particle_unchecked(self) -> Particle

Unchecked return of the inner fields of EntityDataValue::Particle.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_particle_unchecked(&self) -> &Particle

Unchecked reference of the inner fields of EntityDataValue::Particle.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_particle_mut_unchecked(&mut self) -> &mut Particle

Unchecked mutable reference of the inner fields of EntityDataValue::Particle.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_particles(&self) -> bool

Returns true if this is a EntityDataValue::Particles, otherwise false

Source

pub fn as_particles_mut(&mut self) -> Option<&mut Box<[Particle]>>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::Particles, otherwise None

Source

pub fn as_particles(&self) -> Option<&Box<[Particle]>>

Optionally returns references to the inner fields if this is a EntityDataValue::Particles, otherwise None

Source

pub fn into_particles(self) -> Result<Box<[Particle]>, Self>

Returns the inner fields if this is a EntityDataValue::Particles, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_particles_unchecked(self) -> Box<[Particle]>

Unchecked return of the inner fields of EntityDataValue::Particles.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_particles_unchecked(&self) -> &Box<[Particle]>

Unchecked reference of the inner fields of EntityDataValue::Particles.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_particles_mut_unchecked(&mut self) -> &mut Box<[Particle]>

Unchecked mutable reference of the inner fields of EntityDataValue::Particles.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_villager_data(&self) -> bool

Returns true if this is a EntityDataValue::VillagerData, otherwise false

Source

pub fn as_villager_data_mut(&mut self) -> Option<&mut VillagerData>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::VillagerData, otherwise None

Source

pub fn as_villager_data(&self) -> Option<&VillagerData>

Optionally returns references to the inner fields if this is a EntityDataValue::VillagerData, otherwise None

Source

pub fn into_villager_data(self) -> Result<VillagerData, Self>

Returns the inner fields if this is a EntityDataValue::VillagerData, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_villager_data_unchecked(self) -> VillagerData

Unchecked return of the inner fields of EntityDataValue::VillagerData.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_villager_data_unchecked(&self) -> &VillagerData

Unchecked reference of the inner fields of EntityDataValue::VillagerData.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_villager_data_mut_unchecked(&mut self) -> &mut VillagerData

Unchecked mutable reference of the inner fields of EntityDataValue::VillagerData.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_optional_unsigned_int(&self) -> bool

Returns true if this is a EntityDataValue::OptionalUnsignedInt, otherwise false

Source

pub fn as_optional_unsigned_int_mut( &mut self, ) -> Option<&mut OptionalUnsignedInt>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::OptionalUnsignedInt, otherwise None

Source

pub fn as_optional_unsigned_int(&self) -> Option<&OptionalUnsignedInt>

Optionally returns references to the inner fields if this is a EntityDataValue::OptionalUnsignedInt, otherwise None

Source

pub fn into_optional_unsigned_int(self) -> Result<OptionalUnsignedInt, Self>

Returns the inner fields if this is a EntityDataValue::OptionalUnsignedInt, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_optional_unsigned_int_unchecked(self) -> OptionalUnsignedInt

Unchecked return of the inner fields of EntityDataValue::OptionalUnsignedInt.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_optional_unsigned_int_unchecked(&self) -> &OptionalUnsignedInt

Unchecked reference of the inner fields of EntityDataValue::OptionalUnsignedInt.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_optional_unsigned_int_mut_unchecked( &mut self, ) -> &mut OptionalUnsignedInt

Unchecked mutable reference of the inner fields of EntityDataValue::OptionalUnsignedInt.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_pose(&self) -> bool

Returns true if this is a EntityDataValue::Pose, otherwise false

Source

pub fn as_pose_mut(&mut self) -> Option<&mut Pose>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::Pose, otherwise None

Source

pub fn as_pose(&self) -> Option<&Pose>

Optionally returns references to the inner fields if this is a EntityDataValue::Pose, otherwise None

Source

pub fn into_pose(self) -> Result<Pose, Self>

Returns the inner fields if this is a EntityDataValue::Pose, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_pose_unchecked(self) -> Pose

Unchecked return of the inner fields of EntityDataValue::Pose.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_pose_unchecked(&self) -> &Pose

Unchecked reference of the inner fields of EntityDataValue::Pose.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_pose_mut_unchecked(&mut self) -> &mut Pose

Unchecked mutable reference of the inner fields of EntityDataValue::Pose.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_cat_variant(&self) -> bool

Returns true if this is a EntityDataValue::CatVariant, otherwise false

Source

pub fn as_cat_variant_mut(&mut self) -> Option<&mut CatVariant>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::CatVariant, otherwise None

Source

pub fn as_cat_variant(&self) -> Option<&CatVariant>

Optionally returns references to the inner fields if this is a EntityDataValue::CatVariant, otherwise None

Source

pub fn into_cat_variant(self) -> Result<CatVariant, Self>

Returns the inner fields if this is a EntityDataValue::CatVariant, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_cat_variant_unchecked(self) -> CatVariant

Unchecked return of the inner fields of EntityDataValue::CatVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_cat_variant_unchecked(&self) -> &CatVariant

Unchecked reference of the inner fields of EntityDataValue::CatVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_cat_variant_mut_unchecked(&mut self) -> &mut CatVariant

Unchecked mutable reference of the inner fields of EntityDataValue::CatVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_cat_sound_variant(&self) -> bool

Returns true if this is a EntityDataValue::CatSoundVariant, otherwise false

Source

pub fn as_cat_sound_variant_mut(&mut self) -> Option<&mut CatSoundVariant>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::CatSoundVariant, otherwise None

Source

pub fn as_cat_sound_variant(&self) -> Option<&CatSoundVariant>

Optionally returns references to the inner fields if this is a EntityDataValue::CatSoundVariant, otherwise None

Source

pub fn into_cat_sound_variant(self) -> Result<CatSoundVariant, Self>

Returns the inner fields if this is a EntityDataValue::CatSoundVariant, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_cat_sound_variant_unchecked(self) -> CatSoundVariant

Unchecked return of the inner fields of EntityDataValue::CatSoundVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_cat_sound_variant_unchecked(&self) -> &CatSoundVariant

Unchecked reference of the inner fields of EntityDataValue::CatSoundVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_cat_sound_variant_mut_unchecked( &mut self, ) -> &mut CatSoundVariant

Unchecked mutable reference of the inner fields of EntityDataValue::CatSoundVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_cow_variant(&self) -> bool

Returns true if this is a EntityDataValue::CowVariant, otherwise false

Source

pub fn as_cow_variant_mut(&mut self) -> Option<&mut CowVariant>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::CowVariant, otherwise None

Source

pub fn as_cow_variant(&self) -> Option<&CowVariant>

Optionally returns references to the inner fields if this is a EntityDataValue::CowVariant, otherwise None

Source

pub fn into_cow_variant(self) -> Result<CowVariant, Self>

Returns the inner fields if this is a EntityDataValue::CowVariant, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_cow_variant_unchecked(self) -> CowVariant

Unchecked return of the inner fields of EntityDataValue::CowVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_cow_variant_unchecked(&self) -> &CowVariant

Unchecked reference of the inner fields of EntityDataValue::CowVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_cow_variant_mut_unchecked(&mut self) -> &mut CowVariant

Unchecked mutable reference of the inner fields of EntityDataValue::CowVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_cow_sound_variant(&self) -> bool

Returns true if this is a EntityDataValue::CowSoundVariant, otherwise false

Source

pub fn as_cow_sound_variant_mut(&mut self) -> Option<&mut CowSoundVariant>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::CowSoundVariant, otherwise None

Source

pub fn as_cow_sound_variant(&self) -> Option<&CowSoundVariant>

Optionally returns references to the inner fields if this is a EntityDataValue::CowSoundVariant, otherwise None

Source

pub fn into_cow_sound_variant(self) -> Result<CowSoundVariant, Self>

Returns the inner fields if this is a EntityDataValue::CowSoundVariant, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_cow_sound_variant_unchecked(self) -> CowSoundVariant

Unchecked return of the inner fields of EntityDataValue::CowSoundVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_cow_sound_variant_unchecked(&self) -> &CowSoundVariant

Unchecked reference of the inner fields of EntityDataValue::CowSoundVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_cow_sound_variant_mut_unchecked( &mut self, ) -> &mut CowSoundVariant

Unchecked mutable reference of the inner fields of EntityDataValue::CowSoundVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_wolf_variant(&self) -> bool

Returns true if this is a EntityDataValue::WolfVariant, otherwise false

Source

pub fn as_wolf_variant_mut(&mut self) -> Option<&mut WolfVariant>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::WolfVariant, otherwise None

Source

pub fn as_wolf_variant(&self) -> Option<&WolfVariant>

Optionally returns references to the inner fields if this is a EntityDataValue::WolfVariant, otherwise None

Source

pub fn into_wolf_variant(self) -> Result<WolfVariant, Self>

Returns the inner fields if this is a EntityDataValue::WolfVariant, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_wolf_variant_unchecked(self) -> WolfVariant

Unchecked return of the inner fields of EntityDataValue::WolfVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_wolf_variant_unchecked(&self) -> &WolfVariant

Unchecked reference of the inner fields of EntityDataValue::WolfVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_wolf_variant_mut_unchecked(&mut self) -> &mut WolfVariant

Unchecked mutable reference of the inner fields of EntityDataValue::WolfVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_wolf_sound_variant(&self) -> bool

Returns true if this is a EntityDataValue::WolfSoundVariant, otherwise false

Source

pub fn as_wolf_sound_variant_mut(&mut self) -> Option<&mut WolfSoundVariant>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::WolfSoundVariant, otherwise None

Source

pub fn as_wolf_sound_variant(&self) -> Option<&WolfSoundVariant>

Optionally returns references to the inner fields if this is a EntityDataValue::WolfSoundVariant, otherwise None

Source

pub fn into_wolf_sound_variant(self) -> Result<WolfSoundVariant, Self>

Returns the inner fields if this is a EntityDataValue::WolfSoundVariant, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_wolf_sound_variant_unchecked(self) -> WolfSoundVariant

Unchecked return of the inner fields of EntityDataValue::WolfSoundVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_wolf_sound_variant_unchecked(&self) -> &WolfSoundVariant

Unchecked reference of the inner fields of EntityDataValue::WolfSoundVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_wolf_sound_variant_mut_unchecked( &mut self, ) -> &mut WolfSoundVariant

Unchecked mutable reference of the inner fields of EntityDataValue::WolfSoundVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_frog_variant(&self) -> bool

Returns true if this is a EntityDataValue::FrogVariant, otherwise false

Source

pub fn as_frog_variant_mut(&mut self) -> Option<&mut FrogVariant>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::FrogVariant, otherwise None

Source

pub fn as_frog_variant(&self) -> Option<&FrogVariant>

Optionally returns references to the inner fields if this is a EntityDataValue::FrogVariant, otherwise None

Source

pub fn into_frog_variant(self) -> Result<FrogVariant, Self>

Returns the inner fields if this is a EntityDataValue::FrogVariant, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_frog_variant_unchecked(self) -> FrogVariant

Unchecked return of the inner fields of EntityDataValue::FrogVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_frog_variant_unchecked(&self) -> &FrogVariant

Unchecked reference of the inner fields of EntityDataValue::FrogVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_frog_variant_mut_unchecked(&mut self) -> &mut FrogVariant

Unchecked mutable reference of the inner fields of EntityDataValue::FrogVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_pig_variant(&self) -> bool

Returns true if this is a EntityDataValue::PigVariant, otherwise false

Source

pub fn as_pig_variant_mut(&mut self) -> Option<&mut PigVariant>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::PigVariant, otherwise None

Source

pub fn as_pig_variant(&self) -> Option<&PigVariant>

Optionally returns references to the inner fields if this is a EntityDataValue::PigVariant, otherwise None

Source

pub fn into_pig_variant(self) -> Result<PigVariant, Self>

Returns the inner fields if this is a EntityDataValue::PigVariant, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_pig_variant_unchecked(self) -> PigVariant

Unchecked return of the inner fields of EntityDataValue::PigVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_pig_variant_unchecked(&self) -> &PigVariant

Unchecked reference of the inner fields of EntityDataValue::PigVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_pig_variant_mut_unchecked(&mut self) -> &mut PigVariant

Unchecked mutable reference of the inner fields of EntityDataValue::PigVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_pig_sound_variant(&self) -> bool

Returns true if this is a EntityDataValue::PigSoundVariant, otherwise false

Source

pub fn as_pig_sound_variant_mut(&mut self) -> Option<&mut PigSoundVariant>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::PigSoundVariant, otherwise None

Source

pub fn as_pig_sound_variant(&self) -> Option<&PigSoundVariant>

Optionally returns references to the inner fields if this is a EntityDataValue::PigSoundVariant, otherwise None

Source

pub fn into_pig_sound_variant(self) -> Result<PigSoundVariant, Self>

Returns the inner fields if this is a EntityDataValue::PigSoundVariant, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_pig_sound_variant_unchecked(self) -> PigSoundVariant

Unchecked return of the inner fields of EntityDataValue::PigSoundVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_pig_sound_variant_unchecked(&self) -> &PigSoundVariant

Unchecked reference of the inner fields of EntityDataValue::PigSoundVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_pig_sound_variant_mut_unchecked( &mut self, ) -> &mut PigSoundVariant

Unchecked mutable reference of the inner fields of EntityDataValue::PigSoundVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_chicken_variant(&self) -> bool

Returns true if this is a EntityDataValue::ChickenVariant, otherwise false

Source

pub fn as_chicken_variant_mut(&mut self) -> Option<&mut ChickenVariant>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::ChickenVariant, otherwise None

Source

pub fn as_chicken_variant(&self) -> Option<&ChickenVariant>

Optionally returns references to the inner fields if this is a EntityDataValue::ChickenVariant, otherwise None

Source

pub fn into_chicken_variant(self) -> Result<ChickenVariant, Self>

Returns the inner fields if this is a EntityDataValue::ChickenVariant, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_chicken_variant_unchecked(self) -> ChickenVariant

Unchecked return of the inner fields of EntityDataValue::ChickenVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_chicken_variant_unchecked(&self) -> &ChickenVariant

Unchecked reference of the inner fields of EntityDataValue::ChickenVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_chicken_variant_mut_unchecked(&mut self) -> &mut ChickenVariant

Unchecked mutable reference of the inner fields of EntityDataValue::ChickenVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_chicken_sound_variant(&self) -> bool

Returns true if this is a EntityDataValue::ChickenSoundVariant, otherwise false

Source

pub fn as_chicken_sound_variant_mut( &mut self, ) -> Option<&mut ChickenSoundVariant>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::ChickenSoundVariant, otherwise None

Source

pub fn as_chicken_sound_variant(&self) -> Option<&ChickenSoundVariant>

Optionally returns references to the inner fields if this is a EntityDataValue::ChickenSoundVariant, otherwise None

Source

pub fn into_chicken_sound_variant(self) -> Result<ChickenSoundVariant, Self>

Returns the inner fields if this is a EntityDataValue::ChickenSoundVariant, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_chicken_sound_variant_unchecked(self) -> ChickenSoundVariant

Unchecked return of the inner fields of EntityDataValue::ChickenSoundVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_chicken_sound_variant_unchecked(&self) -> &ChickenSoundVariant

Unchecked reference of the inner fields of EntityDataValue::ChickenSoundVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_chicken_sound_variant_mut_unchecked( &mut self, ) -> &mut ChickenSoundVariant

Unchecked mutable reference of the inner fields of EntityDataValue::ChickenSoundVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_zombie_nautilus_variant(&self) -> bool

Returns true if this is a EntityDataValue::ZombieNautilusVariant, otherwise false

Source

pub fn as_zombie_nautilus_variant_mut( &mut self, ) -> Option<&mut ZombieNautilusVariant>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::ZombieNautilusVariant, otherwise None

Source

pub fn as_zombie_nautilus_variant(&self) -> Option<&ZombieNautilusVariant>

Optionally returns references to the inner fields if this is a EntityDataValue::ZombieNautilusVariant, otherwise None

Source

pub fn into_zombie_nautilus_variant(self) -> Result<ZombieNautilusVariant, Self>

Returns the inner fields if this is a EntityDataValue::ZombieNautilusVariant, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_zombie_nautilus_variant_unchecked( self, ) -> ZombieNautilusVariant

Unchecked return of the inner fields of EntityDataValue::ZombieNautilusVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_zombie_nautilus_variant_unchecked( &self, ) -> &ZombieNautilusVariant

Unchecked reference of the inner fields of EntityDataValue::ZombieNautilusVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_zombie_nautilus_variant_mut_unchecked( &mut self, ) -> &mut ZombieNautilusVariant

Unchecked mutable reference of the inner fields of EntityDataValue::ZombieNautilusVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_optional_global_pos(&self) -> bool

Returns true if this is a EntityDataValue::OptionalGlobalPos, otherwise false

Source

pub fn as_optional_global_pos_mut( &mut self, ) -> Option<&mut Option<Box<GlobalPos>>>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::OptionalGlobalPos, otherwise None

Source

pub fn as_optional_global_pos(&self) -> Option<&Option<Box<GlobalPos>>>

Optionally returns references to the inner fields if this is a EntityDataValue::OptionalGlobalPos, otherwise None

Source

pub fn into_optional_global_pos(self) -> Result<Option<Box<GlobalPos>>, Self>

Returns the inner fields if this is a EntityDataValue::OptionalGlobalPos, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_optional_global_pos_unchecked(self) -> Option<Box<GlobalPos>>

Unchecked return of the inner fields of EntityDataValue::OptionalGlobalPos.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_optional_global_pos_unchecked(&self) -> &Option<Box<GlobalPos>>

Unchecked reference of the inner fields of EntityDataValue::OptionalGlobalPos.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_optional_global_pos_mut_unchecked( &mut self, ) -> &mut Option<Box<GlobalPos>>

Unchecked mutable reference of the inner fields of EntityDataValue::OptionalGlobalPos.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_painting_variant(&self) -> bool

Returns true if this is a EntityDataValue::PaintingVariant, otherwise false

Source

pub fn as_painting_variant_mut(&mut self) -> Option<&mut PaintingVariant>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::PaintingVariant, otherwise None

Source

pub fn as_painting_variant(&self) -> Option<&PaintingVariant>

Optionally returns references to the inner fields if this is a EntityDataValue::PaintingVariant, otherwise None

Source

pub fn into_painting_variant(self) -> Result<PaintingVariant, Self>

Returns the inner fields if this is a EntityDataValue::PaintingVariant, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_painting_variant_unchecked(self) -> PaintingVariant

Unchecked return of the inner fields of EntityDataValue::PaintingVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_painting_variant_unchecked(&self) -> &PaintingVariant

Unchecked reference of the inner fields of EntityDataValue::PaintingVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_painting_variant_mut_unchecked( &mut self, ) -> &mut PaintingVariant

Unchecked mutable reference of the inner fields of EntityDataValue::PaintingVariant.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_sniffer_state(&self) -> bool

Returns true if this is a EntityDataValue::SnifferState, otherwise false

Source

pub fn as_sniffer_state_mut(&mut self) -> Option<&mut SnifferStateKind>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::SnifferState, otherwise None

Source

pub fn as_sniffer_state(&self) -> Option<&SnifferStateKind>

Optionally returns references to the inner fields if this is a EntityDataValue::SnifferState, otherwise None

Source

pub fn into_sniffer_state(self) -> Result<SnifferStateKind, Self>

Returns the inner fields if this is a EntityDataValue::SnifferState, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_sniffer_state_unchecked(self) -> SnifferStateKind

Unchecked return of the inner fields of EntityDataValue::SnifferState.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_sniffer_state_unchecked(&self) -> &SnifferStateKind

Unchecked reference of the inner fields of EntityDataValue::SnifferState.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_sniffer_state_mut_unchecked(&mut self) -> &mut SnifferStateKind

Unchecked mutable reference of the inner fields of EntityDataValue::SnifferState.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_armadillo_state(&self) -> bool

Returns true if this is a EntityDataValue::ArmadilloState, otherwise false

Source

pub fn as_armadillo_state_mut(&mut self) -> Option<&mut ArmadilloStateKind>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::ArmadilloState, otherwise None

Source

pub fn as_armadillo_state(&self) -> Option<&ArmadilloStateKind>

Optionally returns references to the inner fields if this is a EntityDataValue::ArmadilloState, otherwise None

Source

pub fn into_armadillo_state(self) -> Result<ArmadilloStateKind, Self>

Returns the inner fields if this is a EntityDataValue::ArmadilloState, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_armadillo_state_unchecked(self) -> ArmadilloStateKind

Unchecked return of the inner fields of EntityDataValue::ArmadilloState.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_armadillo_state_unchecked(&self) -> &ArmadilloStateKind

Unchecked reference of the inner fields of EntityDataValue::ArmadilloState.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_armadillo_state_mut_unchecked( &mut self, ) -> &mut ArmadilloStateKind

Unchecked mutable reference of the inner fields of EntityDataValue::ArmadilloState.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_copper_golem_state(&self) -> bool

Returns true if this is a EntityDataValue::CopperGolemState, otherwise false

Source

pub fn as_copper_golem_state_mut(&mut self) -> Option<&mut CopperGolemStateKind>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::CopperGolemState, otherwise None

Source

pub fn as_copper_golem_state(&self) -> Option<&CopperGolemStateKind>

Optionally returns references to the inner fields if this is a EntityDataValue::CopperGolemState, otherwise None

Source

pub fn into_copper_golem_state(self) -> Result<CopperGolemStateKind, Self>

Returns the inner fields if this is a EntityDataValue::CopperGolemState, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_copper_golem_state_unchecked(self) -> CopperGolemStateKind

Unchecked return of the inner fields of EntityDataValue::CopperGolemState.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_copper_golem_state_unchecked(&self) -> &CopperGolemStateKind

Unchecked reference of the inner fields of EntityDataValue::CopperGolemState.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_copper_golem_state_mut_unchecked( &mut self, ) -> &mut CopperGolemStateKind

Unchecked mutable reference of the inner fields of EntityDataValue::CopperGolemState.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_weathering_copper_state(&self) -> bool

Returns true if this is a EntityDataValue::WeatheringCopperState, otherwise false

Source

pub fn as_weathering_copper_state_mut( &mut self, ) -> Option<&mut WeatheringCopperStateKind>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::WeatheringCopperState, otherwise None

Source

pub fn as_weathering_copper_state(&self) -> Option<&WeatheringCopperStateKind>

Optionally returns references to the inner fields if this is a EntityDataValue::WeatheringCopperState, otherwise None

Source

pub fn into_weathering_copper_state( self, ) -> Result<WeatheringCopperStateKind, Self>

Returns the inner fields if this is a EntityDataValue::WeatheringCopperState, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_weathering_copper_state_unchecked( self, ) -> WeatheringCopperStateKind

Unchecked return of the inner fields of EntityDataValue::WeatheringCopperState.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_weathering_copper_state_unchecked( &self, ) -> &WeatheringCopperStateKind

Unchecked reference of the inner fields of EntityDataValue::WeatheringCopperState.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_weathering_copper_state_mut_unchecked( &mut self, ) -> &mut WeatheringCopperStateKind

Unchecked mutable reference of the inner fields of EntityDataValue::WeatheringCopperState.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_vector3(&self) -> bool

Returns true if this is a EntityDataValue::Vector3, otherwise false

Source

pub fn as_vector3_mut(&mut self) -> Option<&mut Vec3f32>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::Vector3, otherwise None

Source

pub fn as_vector3(&self) -> Option<&Vec3f32>

Optionally returns references to the inner fields if this is a EntityDataValue::Vector3, otherwise None

Source

pub fn into_vector3(self) -> Result<Vec3f32, Self>

Returns the inner fields if this is a EntityDataValue::Vector3, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_vector3_unchecked(self) -> Vec3f32

Unchecked return of the inner fields of EntityDataValue::Vector3.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_vector3_unchecked(&self) -> &Vec3f32

Unchecked reference of the inner fields of EntityDataValue::Vector3.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_vector3_mut_unchecked(&mut self) -> &mut Vec3f32

Unchecked mutable reference of the inner fields of EntityDataValue::Vector3.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_quaternion(&self) -> bool

Returns true if this is a EntityDataValue::Quaternion, otherwise false

Source

pub fn as_quaternion_mut(&mut self) -> Option<&mut Quaternion>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::Quaternion, otherwise None

Source

pub fn as_quaternion(&self) -> Option<&Quaternion>

Optionally returns references to the inner fields if this is a EntityDataValue::Quaternion, otherwise None

Source

pub fn into_quaternion(self) -> Result<Quaternion, Self>

Returns the inner fields if this is a EntityDataValue::Quaternion, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_quaternion_unchecked(self) -> Quaternion

Unchecked return of the inner fields of EntityDataValue::Quaternion.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_quaternion_unchecked(&self) -> &Quaternion

Unchecked reference of the inner fields of EntityDataValue::Quaternion.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_quaternion_mut_unchecked(&mut self) -> &mut Quaternion

Unchecked mutable reference of the inner fields of EntityDataValue::Quaternion.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_resolvable_profile(&self) -> bool

Returns true if this is a EntityDataValue::ResolvableProfile, otherwise false

Source

pub fn as_resolvable_profile_mut(&mut self) -> Option<&mut Profile>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::ResolvableProfile, otherwise None

Source

pub fn as_resolvable_profile(&self) -> Option<&Profile>

Optionally returns references to the inner fields if this is a EntityDataValue::ResolvableProfile, otherwise None

Source

pub fn into_resolvable_profile(self) -> Result<Profile, Self>

Returns the inner fields if this is a EntityDataValue::ResolvableProfile, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_resolvable_profile_unchecked(self) -> Profile

Unchecked return of the inner fields of EntityDataValue::ResolvableProfile.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_resolvable_profile_unchecked(&self) -> &Profile

Unchecked reference of the inner fields of EntityDataValue::ResolvableProfile.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_resolvable_profile_mut_unchecked(&mut self) -> &mut Profile

Unchecked mutable reference of the inner fields of EntityDataValue::ResolvableProfile.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_humanoid_arm(&self) -> bool

Returns true if this is a EntityDataValue::HumanoidArm, otherwise false

Source

pub fn as_humanoid_arm_mut(&mut self) -> Option<&mut HumanoidArm>

Optionally returns mutable references to the inner fields if this is a EntityDataValue::HumanoidArm, otherwise None

Source

pub fn as_humanoid_arm(&self) -> Option<&HumanoidArm>

Optionally returns references to the inner fields if this is a EntityDataValue::HumanoidArm, otherwise None

Source

pub fn into_humanoid_arm(self) -> Result<HumanoidArm, Self>

Returns the inner fields if this is a EntityDataValue::HumanoidArm, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_humanoid_arm_unchecked(self) -> HumanoidArm

Unchecked return of the inner fields of EntityDataValue::HumanoidArm.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_humanoid_arm_unchecked(&self) -> &HumanoidArm

Unchecked reference of the inner fields of EntityDataValue::HumanoidArm.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_humanoid_arm_mut_unchecked(&mut self) -> &mut HumanoidArm

Unchecked mutable reference of the inner fields of EntityDataValue::HumanoidArm.

§Safety

Results in undefined behavior when it is the incorrect variant.

Trait Implementations§

Source§

impl AzBuf for EntityDataValue

Source§

fn azalea_write(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl Clone for EntityDataValue

Source§

fn clone(&self) -> EntityDataValue

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EntityDataValue

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<EntityDataValue> for UpdateMetadataError

Source§

fn from(value: EntityDataValue) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for EntityDataValue

Source§

fn eq(&self, other: &EntityDataValue) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for EntityDataValue

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &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)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSend for T
where T: Any + Send,

§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoResult<T> for T

§

fn into_result(self) -> Result<T, RunSystemError>

Converts this type into the system output type.
§

impl<A> Is for A
where A: Any,

§

fn is<T>() -> bool
where T: Any,

Checks if the current type “is” another type, using a TypeId equality comparison. This is most useful in the context of generic logic. Read more
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> TypeData for T
where T: 'static + Send + Sync + Clone,

§

fn clone_type_data(&self) -> Box<dyn TypeData>

Creates a type-erased clone of this value.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> ConditionalSend for T
where T: Send,