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
impl EntityDataValue
Sourcepub fn as_byte_mut(&mut self) -> Option<&mut u8>
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
Sourcepub fn as_byte(&self) -> Option<&u8>
pub fn as_byte(&self) -> Option<&u8>
Optionally returns references to the inner fields if this is a EntityDataValue::Byte, otherwise None
Sourcepub fn into_byte(self) -> Result<u8, Self>
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
Sourcepub unsafe fn into_byte_unchecked(self) -> u8
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.
Sourcepub unsafe fn as_byte_unchecked(&self) -> &u8
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.
Sourcepub unsafe fn as_byte_mut_unchecked(&mut self) -> &mut u8
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.
Sourcepub fn as_int_mut(&mut self) -> Option<&mut i32>
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
Sourcepub fn as_int(&self) -> Option<&i32>
pub fn as_int(&self) -> Option<&i32>
Optionally returns references to the inner fields if this is a EntityDataValue::Int, otherwise None
Sourcepub fn into_int(self) -> Result<i32, Self>
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
Sourcepub unsafe fn into_int_unchecked(self) -> i32
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.
Sourcepub unsafe fn as_int_unchecked(&self) -> &i32
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.
Sourcepub unsafe fn as_int_mut_unchecked(&mut self) -> &mut i32
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.
Sourcepub fn as_long_mut(&mut self) -> Option<&mut i64>
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
Sourcepub fn as_long(&self) -> Option<&i64>
pub fn as_long(&self) -> Option<&i64>
Optionally returns references to the inner fields if this is a EntityDataValue::Long, otherwise None
Sourcepub fn into_long(self) -> Result<i64, Self>
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
Sourcepub unsafe fn into_long_unchecked(self) -> i64
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.
Sourcepub unsafe fn as_long_unchecked(&self) -> &i64
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.
Sourcepub unsafe fn as_long_mut_unchecked(&mut self) -> &mut i64
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.
Sourcepub fn is_float(&self) -> bool
pub fn is_float(&self) -> bool
Returns true if this is a EntityDataValue::Float, otherwise false
Sourcepub fn as_float_mut(&mut self) -> Option<&mut f32>
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
Sourcepub fn as_float(&self) -> Option<&f32>
pub fn as_float(&self) -> Option<&f32>
Optionally returns references to the inner fields if this is a EntityDataValue::Float, otherwise None
Sourcepub fn into_float(self) -> Result<f32, Self>
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
Sourcepub unsafe fn into_float_unchecked(self) -> f32
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.
Sourcepub unsafe fn as_float_unchecked(&self) -> &f32
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.
Sourcepub unsafe fn as_float_mut_unchecked(&mut self) -> &mut f32
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.
Sourcepub fn is_string(&self) -> bool
pub fn is_string(&self) -> bool
Returns true if this is a EntityDataValue::String, otherwise false
Sourcepub fn as_string_mut(&mut self) -> Option<&mut Box<str>>
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
Sourcepub fn as_string(&self) -> Option<&Box<str>>
pub fn as_string(&self) -> Option<&Box<str>>
Optionally returns references to the inner fields if this is a EntityDataValue::String, otherwise None
Sourcepub fn into_string(self) -> Result<Box<str>, Self>
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
Sourcepub unsafe fn into_string_unchecked(self) -> Box<str>
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.
Sourcepub unsafe fn as_string_unchecked(&self) -> &Box<str>
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.
Sourcepub unsafe fn as_string_mut_unchecked(&mut self) -> &mut Box<str>
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.
Sourcepub fn is_formatted_text(&self) -> bool
pub fn is_formatted_text(&self) -> bool
Returns true if this is a EntityDataValue::FormattedText, otherwise false
Sourcepub fn as_formatted_text_mut(&mut self) -> Option<&mut Box<FormattedText>>
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
Sourcepub fn as_formatted_text(&self) -> Option<&Box<FormattedText>>
pub fn as_formatted_text(&self) -> Option<&Box<FormattedText>>
Optionally returns references to the inner fields if this is a EntityDataValue::FormattedText, otherwise None
Sourcepub fn into_formatted_text(self) -> Result<Box<FormattedText>, Self>
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
Sourcepub unsafe fn into_formatted_text_unchecked(self) -> Box<FormattedText>
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.
Sourcepub unsafe fn as_formatted_text_unchecked(&self) -> &Box<FormattedText>
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.
Sourcepub unsafe fn as_formatted_text_mut_unchecked(
&mut self,
) -> &mut Box<FormattedText>
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.
Sourcepub fn is_optional_formatted_text(&self) -> bool
pub fn is_optional_formatted_text(&self) -> bool
Returns true if this is a EntityDataValue::OptionalFormattedText, otherwise false
Sourcepub fn as_optional_formatted_text_mut(
&mut self,
) -> Option<&mut Option<Box<FormattedText>>>
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
Sourcepub fn as_optional_formatted_text(&self) -> Option<&Option<Box<FormattedText>>>
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
Sourcepub fn into_optional_formatted_text(
self,
) -> Result<Option<Box<FormattedText>>, Self>
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
Sourcepub unsafe fn into_optional_formatted_text_unchecked(
self,
) -> Option<Box<FormattedText>>
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.
Sourcepub unsafe fn as_optional_formatted_text_unchecked(
&self,
) -> &Option<Box<FormattedText>>
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.
Sourcepub unsafe fn as_optional_formatted_text_mut_unchecked(
&mut self,
) -> &mut Option<Box<FormattedText>>
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.
Sourcepub fn is_item_stack(&self) -> bool
pub fn is_item_stack(&self) -> bool
Returns true if this is a EntityDataValue::ItemStack, otherwise false
Sourcepub fn as_item_stack_mut(&mut self) -> Option<&mut ItemStack>
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
Sourcepub fn as_item_stack(&self) -> Option<&ItemStack>
pub fn as_item_stack(&self) -> Option<&ItemStack>
Optionally returns references to the inner fields if this is a EntityDataValue::ItemStack, otherwise None
Sourcepub fn into_item_stack(self) -> Result<ItemStack, Self>
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
Sourcepub unsafe fn into_item_stack_unchecked(self) -> ItemStack
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.
Sourcepub unsafe fn as_item_stack_unchecked(&self) -> &ItemStack
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.
Sourcepub unsafe fn as_item_stack_mut_unchecked(&mut self) -> &mut ItemStack
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.
Sourcepub fn is_boolean(&self) -> bool
pub fn is_boolean(&self) -> bool
Returns true if this is a EntityDataValue::Boolean, otherwise false
Sourcepub fn as_boolean_mut(&mut self) -> Option<&mut bool>
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
Sourcepub fn as_boolean(&self) -> Option<&bool>
pub fn as_boolean(&self) -> Option<&bool>
Optionally returns references to the inner fields if this is a EntityDataValue::Boolean, otherwise None
Sourcepub fn into_boolean(self) -> Result<bool, Self>
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
Sourcepub unsafe fn into_boolean_unchecked(self) -> bool
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.
Sourcepub unsafe fn as_boolean_unchecked(&self) -> &bool
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.
Sourcepub unsafe fn as_boolean_mut_unchecked(&mut self) -> &mut bool
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.
Sourcepub fn is_rotations(&self) -> bool
pub fn is_rotations(&self) -> bool
Returns true if this is a EntityDataValue::Rotations, otherwise false
Sourcepub fn as_rotations_mut(&mut self) -> Option<&mut Rotations>
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
Sourcepub fn as_rotations(&self) -> Option<&Rotations>
pub fn as_rotations(&self) -> Option<&Rotations>
Optionally returns references to the inner fields if this is a EntityDataValue::Rotations, otherwise None
Sourcepub fn into_rotations(self) -> Result<Rotations, Self>
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
Sourcepub unsafe fn into_rotations_unchecked(self) -> Rotations
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.
Sourcepub unsafe fn as_rotations_unchecked(&self) -> &Rotations
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.
Sourcepub unsafe fn as_rotations_mut_unchecked(&mut self) -> &mut Rotations
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.
Sourcepub fn is_block_pos(&self) -> bool
pub fn is_block_pos(&self) -> bool
Returns true if this is a EntityDataValue::BlockPos, otherwise false
Sourcepub fn as_block_pos_mut(&mut self) -> Option<&mut BlockPos>
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
Sourcepub fn as_block_pos(&self) -> Option<&BlockPos>
pub fn as_block_pos(&self) -> Option<&BlockPos>
Optionally returns references to the inner fields if this is a EntityDataValue::BlockPos, otherwise None
Sourcepub fn into_block_pos(self) -> Result<BlockPos, Self>
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
Sourcepub unsafe fn into_block_pos_unchecked(self) -> BlockPos
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.
Sourcepub unsafe fn as_block_pos_unchecked(&self) -> &BlockPos
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.
Sourcepub unsafe fn as_block_pos_mut_unchecked(&mut self) -> &mut BlockPos
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.
Sourcepub fn is_optional_block_pos(&self) -> bool
pub fn is_optional_block_pos(&self) -> bool
Returns true if this is a EntityDataValue::OptionalBlockPos, otherwise false
Sourcepub fn as_optional_block_pos_mut(&mut self) -> Option<&mut Option<BlockPos>>
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
Sourcepub fn as_optional_block_pos(&self) -> Option<&Option<BlockPos>>
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
Sourcepub fn into_optional_block_pos(self) -> Result<Option<BlockPos>, Self>
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
Sourcepub unsafe fn into_optional_block_pos_unchecked(self) -> Option<BlockPos>
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.
Sourcepub unsafe fn as_optional_block_pos_unchecked(&self) -> &Option<BlockPos>
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.
Sourcepub unsafe fn as_optional_block_pos_mut_unchecked(
&mut self,
) -> &mut Option<BlockPos>
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.
Sourcepub fn is_direction(&self) -> bool
pub fn is_direction(&self) -> bool
Returns true if this is a EntityDataValue::Direction, otherwise false
Sourcepub fn as_direction_mut(&mut self) -> Option<&mut Direction>
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
Sourcepub fn as_direction(&self) -> Option<&Direction>
pub fn as_direction(&self) -> Option<&Direction>
Optionally returns references to the inner fields if this is a EntityDataValue::Direction, otherwise None
Sourcepub fn into_direction(self) -> Result<Direction, Self>
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
Sourcepub unsafe fn into_direction_unchecked(self) -> Direction
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.
Sourcepub unsafe fn as_direction_unchecked(&self) -> &Direction
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.
Sourcepub unsafe fn as_direction_mut_unchecked(&mut self) -> &mut Direction
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.
Sourcepub fn is_optional_living_entity_reference(&self) -> bool
pub fn is_optional_living_entity_reference(&self) -> bool
Returns true if this is a EntityDataValue::OptionalLivingEntityReference, otherwise false
Sourcepub fn as_optional_living_entity_reference_mut(
&mut self,
) -> Option<&mut Option<Uuid>>
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
Sourcepub fn as_optional_living_entity_reference(&self) -> Option<&Option<Uuid>>
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
Sourcepub fn into_optional_living_entity_reference(self) -> Result<Option<Uuid>, Self>
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
Sourcepub unsafe fn into_optional_living_entity_reference_unchecked(
self,
) -> Option<Uuid>
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.
Sourcepub unsafe fn as_optional_living_entity_reference_unchecked(
&self,
) -> &Option<Uuid>
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.
Sourcepub unsafe fn as_optional_living_entity_reference_mut_unchecked(
&mut self,
) -> &mut Option<Uuid>
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.
Sourcepub fn is_block_state(&self) -> bool
pub fn is_block_state(&self) -> bool
Returns true if this is a EntityDataValue::BlockState, otherwise false
Sourcepub fn as_block_state_mut(&mut self) -> Option<&mut BlockState>
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
Sourcepub fn as_block_state(&self) -> Option<&BlockState>
pub fn as_block_state(&self) -> Option<&BlockState>
Optionally returns references to the inner fields if this is a EntityDataValue::BlockState, otherwise None
Sourcepub fn into_block_state(self) -> Result<BlockState, Self>
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
Sourcepub unsafe fn into_block_state_unchecked(self) -> BlockState
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.
Sourcepub unsafe fn as_block_state_unchecked(&self) -> &BlockState
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.
Sourcepub unsafe fn as_block_state_mut_unchecked(&mut self) -> &mut BlockState
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.
Sourcepub fn is_optional_block_state(&self) -> bool
pub fn is_optional_block_state(&self) -> bool
Returns true if this is a EntityDataValue::OptionalBlockState, otherwise false
Sourcepub fn as_optional_block_state_mut(&mut self) -> Option<&mut BlockState>
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
Sourcepub fn as_optional_block_state(&self) -> Option<&BlockState>
pub fn as_optional_block_state(&self) -> Option<&BlockState>
Optionally returns references to the inner fields if this is a EntityDataValue::OptionalBlockState, otherwise None
Sourcepub fn into_optional_block_state(self) -> Result<BlockState, Self>
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
Sourcepub unsafe fn into_optional_block_state_unchecked(self) -> BlockState
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.
Sourcepub unsafe fn as_optional_block_state_unchecked(&self) -> &BlockState
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.
Sourcepub unsafe fn as_optional_block_state_mut_unchecked(
&mut self,
) -> &mut BlockState
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.
Sourcepub fn is_particle(&self) -> bool
pub fn is_particle(&self) -> bool
Returns true if this is a EntityDataValue::Particle, otherwise false
Sourcepub fn as_particle_mut(&mut self) -> Option<&mut Particle>
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
Sourcepub fn as_particle(&self) -> Option<&Particle>
pub fn as_particle(&self) -> Option<&Particle>
Optionally returns references to the inner fields if this is a EntityDataValue::Particle, otherwise None
Sourcepub fn into_particle(self) -> Result<Particle, Self>
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
Sourcepub unsafe fn into_particle_unchecked(self) -> Particle
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.
Sourcepub unsafe fn as_particle_unchecked(&self) -> &Particle
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.
Sourcepub unsafe fn as_particle_mut_unchecked(&mut self) -> &mut Particle
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.
Sourcepub fn is_particles(&self) -> bool
pub fn is_particles(&self) -> bool
Returns true if this is a EntityDataValue::Particles, otherwise false
Sourcepub fn as_particles_mut(&mut self) -> Option<&mut Box<[Particle]>>
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
Sourcepub fn as_particles(&self) -> Option<&Box<[Particle]>>
pub fn as_particles(&self) -> Option<&Box<[Particle]>>
Optionally returns references to the inner fields if this is a EntityDataValue::Particles, otherwise None
Sourcepub fn into_particles(self) -> Result<Box<[Particle]>, Self>
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
Sourcepub unsafe fn into_particles_unchecked(self) -> Box<[Particle]>
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.
Sourcepub unsafe fn as_particles_unchecked(&self) -> &Box<[Particle]>
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.
Sourcepub unsafe fn as_particles_mut_unchecked(&mut self) -> &mut Box<[Particle]>
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.
Sourcepub fn is_villager_data(&self) -> bool
pub fn is_villager_data(&self) -> bool
Returns true if this is a EntityDataValue::VillagerData, otherwise false
Sourcepub fn as_villager_data_mut(&mut self) -> Option<&mut VillagerData>
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
Sourcepub fn as_villager_data(&self) -> Option<&VillagerData>
pub fn as_villager_data(&self) -> Option<&VillagerData>
Optionally returns references to the inner fields if this is a EntityDataValue::VillagerData, otherwise None
Sourcepub fn into_villager_data(self) -> Result<VillagerData, Self>
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
Sourcepub unsafe fn into_villager_data_unchecked(self) -> VillagerData
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.
Sourcepub unsafe fn as_villager_data_unchecked(&self) -> &VillagerData
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.
Sourcepub unsafe fn as_villager_data_mut_unchecked(&mut self) -> &mut VillagerData
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.
Sourcepub fn is_optional_unsigned_int(&self) -> bool
pub fn is_optional_unsigned_int(&self) -> bool
Returns true if this is a EntityDataValue::OptionalUnsignedInt, otherwise false
Sourcepub fn as_optional_unsigned_int_mut(
&mut self,
) -> Option<&mut OptionalUnsignedInt>
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
Sourcepub fn as_optional_unsigned_int(&self) -> Option<&OptionalUnsignedInt>
pub fn as_optional_unsigned_int(&self) -> Option<&OptionalUnsignedInt>
Optionally returns references to the inner fields if this is a EntityDataValue::OptionalUnsignedInt, otherwise None
Sourcepub fn into_optional_unsigned_int(self) -> Result<OptionalUnsignedInt, Self>
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
Sourcepub unsafe fn into_optional_unsigned_int_unchecked(self) -> OptionalUnsignedInt
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.
Sourcepub unsafe fn as_optional_unsigned_int_unchecked(&self) -> &OptionalUnsignedInt
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.
Sourcepub unsafe fn as_optional_unsigned_int_mut_unchecked(
&mut self,
) -> &mut OptionalUnsignedInt
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.
Sourcepub fn as_pose_mut(&mut self) -> Option<&mut Pose>
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
Sourcepub fn as_pose(&self) -> Option<&Pose>
pub fn as_pose(&self) -> Option<&Pose>
Optionally returns references to the inner fields if this is a EntityDataValue::Pose, otherwise None
Sourcepub fn into_pose(self) -> Result<Pose, Self>
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
Sourcepub unsafe fn into_pose_unchecked(self) -> Pose
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.
Sourcepub unsafe fn as_pose_unchecked(&self) -> &Pose
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.
Sourcepub unsafe fn as_pose_mut_unchecked(&mut self) -> &mut Pose
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.
Sourcepub fn is_cat_variant(&self) -> bool
pub fn is_cat_variant(&self) -> bool
Returns true if this is a EntityDataValue::CatVariant, otherwise false
Sourcepub fn as_cat_variant_mut(&mut self) -> Option<&mut CatVariant>
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
Sourcepub fn as_cat_variant(&self) -> Option<&CatVariant>
pub fn as_cat_variant(&self) -> Option<&CatVariant>
Optionally returns references to the inner fields if this is a EntityDataValue::CatVariant, otherwise None
Sourcepub fn into_cat_variant(self) -> Result<CatVariant, Self>
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
Sourcepub unsafe fn into_cat_variant_unchecked(self) -> CatVariant
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.
Sourcepub unsafe fn as_cat_variant_unchecked(&self) -> &CatVariant
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.
Sourcepub unsafe fn as_cat_variant_mut_unchecked(&mut self) -> &mut CatVariant
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.
Sourcepub fn is_cat_sound_variant(&self) -> bool
pub fn is_cat_sound_variant(&self) -> bool
Returns true if this is a EntityDataValue::CatSoundVariant, otherwise false
Sourcepub fn as_cat_sound_variant_mut(&mut self) -> Option<&mut CatSoundVariant>
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
Sourcepub fn as_cat_sound_variant(&self) -> Option<&CatSoundVariant>
pub fn as_cat_sound_variant(&self) -> Option<&CatSoundVariant>
Optionally returns references to the inner fields if this is a EntityDataValue::CatSoundVariant, otherwise None
Sourcepub fn into_cat_sound_variant(self) -> Result<CatSoundVariant, Self>
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
Sourcepub unsafe fn into_cat_sound_variant_unchecked(self) -> CatSoundVariant
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.
Sourcepub unsafe fn as_cat_sound_variant_unchecked(&self) -> &CatSoundVariant
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.
Sourcepub unsafe fn as_cat_sound_variant_mut_unchecked(
&mut self,
) -> &mut CatSoundVariant
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.
Sourcepub fn is_cow_variant(&self) -> bool
pub fn is_cow_variant(&self) -> bool
Returns true if this is a EntityDataValue::CowVariant, otherwise false
Sourcepub fn as_cow_variant_mut(&mut self) -> Option<&mut CowVariant>
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
Sourcepub fn as_cow_variant(&self) -> Option<&CowVariant>
pub fn as_cow_variant(&self) -> Option<&CowVariant>
Optionally returns references to the inner fields if this is a EntityDataValue::CowVariant, otherwise None
Sourcepub fn into_cow_variant(self) -> Result<CowVariant, Self>
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
Sourcepub unsafe fn into_cow_variant_unchecked(self) -> CowVariant
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.
Sourcepub unsafe fn as_cow_variant_unchecked(&self) -> &CowVariant
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.
Sourcepub unsafe fn as_cow_variant_mut_unchecked(&mut self) -> &mut CowVariant
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.
Sourcepub fn is_cow_sound_variant(&self) -> bool
pub fn is_cow_sound_variant(&self) -> bool
Returns true if this is a EntityDataValue::CowSoundVariant, otherwise false
Sourcepub fn as_cow_sound_variant_mut(&mut self) -> Option<&mut CowSoundVariant>
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
Sourcepub fn as_cow_sound_variant(&self) -> Option<&CowSoundVariant>
pub fn as_cow_sound_variant(&self) -> Option<&CowSoundVariant>
Optionally returns references to the inner fields if this is a EntityDataValue::CowSoundVariant, otherwise None
Sourcepub fn into_cow_sound_variant(self) -> Result<CowSoundVariant, Self>
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
Sourcepub unsafe fn into_cow_sound_variant_unchecked(self) -> CowSoundVariant
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.
Sourcepub unsafe fn as_cow_sound_variant_unchecked(&self) -> &CowSoundVariant
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.
Sourcepub unsafe fn as_cow_sound_variant_mut_unchecked(
&mut self,
) -> &mut CowSoundVariant
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.
Sourcepub fn is_wolf_variant(&self) -> bool
pub fn is_wolf_variant(&self) -> bool
Returns true if this is a EntityDataValue::WolfVariant, otherwise false
Sourcepub fn as_wolf_variant_mut(&mut self) -> Option<&mut WolfVariant>
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
Sourcepub fn as_wolf_variant(&self) -> Option<&WolfVariant>
pub fn as_wolf_variant(&self) -> Option<&WolfVariant>
Optionally returns references to the inner fields if this is a EntityDataValue::WolfVariant, otherwise None
Sourcepub fn into_wolf_variant(self) -> Result<WolfVariant, Self>
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
Sourcepub unsafe fn into_wolf_variant_unchecked(self) -> WolfVariant
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.
Sourcepub unsafe fn as_wolf_variant_unchecked(&self) -> &WolfVariant
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.
Sourcepub unsafe fn as_wolf_variant_mut_unchecked(&mut self) -> &mut WolfVariant
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.
Sourcepub fn is_wolf_sound_variant(&self) -> bool
pub fn is_wolf_sound_variant(&self) -> bool
Returns true if this is a EntityDataValue::WolfSoundVariant, otherwise false
Sourcepub fn as_wolf_sound_variant_mut(&mut self) -> Option<&mut WolfSoundVariant>
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
Sourcepub fn as_wolf_sound_variant(&self) -> Option<&WolfSoundVariant>
pub fn as_wolf_sound_variant(&self) -> Option<&WolfSoundVariant>
Optionally returns references to the inner fields if this is a EntityDataValue::WolfSoundVariant, otherwise None
Sourcepub fn into_wolf_sound_variant(self) -> Result<WolfSoundVariant, Self>
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
Sourcepub unsafe fn into_wolf_sound_variant_unchecked(self) -> WolfSoundVariant
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.
Sourcepub unsafe fn as_wolf_sound_variant_unchecked(&self) -> &WolfSoundVariant
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.
Sourcepub unsafe fn as_wolf_sound_variant_mut_unchecked(
&mut self,
) -> &mut WolfSoundVariant
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.
Sourcepub fn is_frog_variant(&self) -> bool
pub fn is_frog_variant(&self) -> bool
Returns true if this is a EntityDataValue::FrogVariant, otherwise false
Sourcepub fn as_frog_variant_mut(&mut self) -> Option<&mut FrogVariant>
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
Sourcepub fn as_frog_variant(&self) -> Option<&FrogVariant>
pub fn as_frog_variant(&self) -> Option<&FrogVariant>
Optionally returns references to the inner fields if this is a EntityDataValue::FrogVariant, otherwise None
Sourcepub fn into_frog_variant(self) -> Result<FrogVariant, Self>
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
Sourcepub unsafe fn into_frog_variant_unchecked(self) -> FrogVariant
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.
Sourcepub unsafe fn as_frog_variant_unchecked(&self) -> &FrogVariant
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.
Sourcepub unsafe fn as_frog_variant_mut_unchecked(&mut self) -> &mut FrogVariant
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.
Sourcepub fn is_pig_variant(&self) -> bool
pub fn is_pig_variant(&self) -> bool
Returns true if this is a EntityDataValue::PigVariant, otherwise false
Sourcepub fn as_pig_variant_mut(&mut self) -> Option<&mut PigVariant>
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
Sourcepub fn as_pig_variant(&self) -> Option<&PigVariant>
pub fn as_pig_variant(&self) -> Option<&PigVariant>
Optionally returns references to the inner fields if this is a EntityDataValue::PigVariant, otherwise None
Sourcepub fn into_pig_variant(self) -> Result<PigVariant, Self>
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
Sourcepub unsafe fn into_pig_variant_unchecked(self) -> PigVariant
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.
Sourcepub unsafe fn as_pig_variant_unchecked(&self) -> &PigVariant
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.
Sourcepub unsafe fn as_pig_variant_mut_unchecked(&mut self) -> &mut PigVariant
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.
Sourcepub fn is_pig_sound_variant(&self) -> bool
pub fn is_pig_sound_variant(&self) -> bool
Returns true if this is a EntityDataValue::PigSoundVariant, otherwise false
Sourcepub fn as_pig_sound_variant_mut(&mut self) -> Option<&mut PigSoundVariant>
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
Sourcepub fn as_pig_sound_variant(&self) -> Option<&PigSoundVariant>
pub fn as_pig_sound_variant(&self) -> Option<&PigSoundVariant>
Optionally returns references to the inner fields if this is a EntityDataValue::PigSoundVariant, otherwise None
Sourcepub fn into_pig_sound_variant(self) -> Result<PigSoundVariant, Self>
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
Sourcepub unsafe fn into_pig_sound_variant_unchecked(self) -> PigSoundVariant
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.
Sourcepub unsafe fn as_pig_sound_variant_unchecked(&self) -> &PigSoundVariant
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.
Sourcepub unsafe fn as_pig_sound_variant_mut_unchecked(
&mut self,
) -> &mut PigSoundVariant
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.
Sourcepub fn is_chicken_variant(&self) -> bool
pub fn is_chicken_variant(&self) -> bool
Returns true if this is a EntityDataValue::ChickenVariant, otherwise false
Sourcepub fn as_chicken_variant_mut(&mut self) -> Option<&mut ChickenVariant>
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
Sourcepub fn as_chicken_variant(&self) -> Option<&ChickenVariant>
pub fn as_chicken_variant(&self) -> Option<&ChickenVariant>
Optionally returns references to the inner fields if this is a EntityDataValue::ChickenVariant, otherwise None
Sourcepub fn into_chicken_variant(self) -> Result<ChickenVariant, Self>
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
Sourcepub unsafe fn into_chicken_variant_unchecked(self) -> ChickenVariant
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.
Sourcepub unsafe fn as_chicken_variant_unchecked(&self) -> &ChickenVariant
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.
Sourcepub unsafe fn as_chicken_variant_mut_unchecked(&mut self) -> &mut ChickenVariant
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.
Sourcepub fn is_chicken_sound_variant(&self) -> bool
pub fn is_chicken_sound_variant(&self) -> bool
Returns true if this is a EntityDataValue::ChickenSoundVariant, otherwise false
Sourcepub fn as_chicken_sound_variant_mut(
&mut self,
) -> Option<&mut ChickenSoundVariant>
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
Sourcepub fn as_chicken_sound_variant(&self) -> Option<&ChickenSoundVariant>
pub fn as_chicken_sound_variant(&self) -> Option<&ChickenSoundVariant>
Optionally returns references to the inner fields if this is a EntityDataValue::ChickenSoundVariant, otherwise None
Sourcepub fn into_chicken_sound_variant(self) -> Result<ChickenSoundVariant, Self>
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
Sourcepub unsafe fn into_chicken_sound_variant_unchecked(self) -> ChickenSoundVariant
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.
Sourcepub unsafe fn as_chicken_sound_variant_unchecked(&self) -> &ChickenSoundVariant
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.
Sourcepub unsafe fn as_chicken_sound_variant_mut_unchecked(
&mut self,
) -> &mut ChickenSoundVariant
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.
Sourcepub fn is_zombie_nautilus_variant(&self) -> bool
pub fn is_zombie_nautilus_variant(&self) -> bool
Returns true if this is a EntityDataValue::ZombieNautilusVariant, otherwise false
Sourcepub fn as_zombie_nautilus_variant_mut(
&mut self,
) -> Option<&mut ZombieNautilusVariant>
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
Sourcepub fn as_zombie_nautilus_variant(&self) -> Option<&ZombieNautilusVariant>
pub fn as_zombie_nautilus_variant(&self) -> Option<&ZombieNautilusVariant>
Optionally returns references to the inner fields if this is a EntityDataValue::ZombieNautilusVariant, otherwise None
Sourcepub fn into_zombie_nautilus_variant(self) -> Result<ZombieNautilusVariant, Self>
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
Sourcepub unsafe fn into_zombie_nautilus_variant_unchecked(
self,
) -> ZombieNautilusVariant
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.
Sourcepub unsafe fn as_zombie_nautilus_variant_unchecked(
&self,
) -> &ZombieNautilusVariant
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.
Sourcepub unsafe fn as_zombie_nautilus_variant_mut_unchecked(
&mut self,
) -> &mut ZombieNautilusVariant
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.
Sourcepub fn is_optional_global_pos(&self) -> bool
pub fn is_optional_global_pos(&self) -> bool
Returns true if this is a EntityDataValue::OptionalGlobalPos, otherwise false
Sourcepub fn as_optional_global_pos_mut(
&mut self,
) -> Option<&mut Option<Box<GlobalPos>>>
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
Sourcepub fn as_optional_global_pos(&self) -> Option<&Option<Box<GlobalPos>>>
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
Sourcepub fn into_optional_global_pos(self) -> Result<Option<Box<GlobalPos>>, Self>
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
Sourcepub unsafe fn into_optional_global_pos_unchecked(self) -> Option<Box<GlobalPos>>
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.
Sourcepub unsafe fn as_optional_global_pos_unchecked(&self) -> &Option<Box<GlobalPos>>
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.
Sourcepub unsafe fn as_optional_global_pos_mut_unchecked(
&mut self,
) -> &mut Option<Box<GlobalPos>>
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.
Sourcepub fn is_painting_variant(&self) -> bool
pub fn is_painting_variant(&self) -> bool
Returns true if this is a EntityDataValue::PaintingVariant, otherwise false
Sourcepub fn as_painting_variant_mut(&mut self) -> Option<&mut PaintingVariant>
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
Sourcepub fn as_painting_variant(&self) -> Option<&PaintingVariant>
pub fn as_painting_variant(&self) -> Option<&PaintingVariant>
Optionally returns references to the inner fields if this is a EntityDataValue::PaintingVariant, otherwise None
Sourcepub fn into_painting_variant(self) -> Result<PaintingVariant, Self>
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
Sourcepub unsafe fn into_painting_variant_unchecked(self) -> PaintingVariant
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.
Sourcepub unsafe fn as_painting_variant_unchecked(&self) -> &PaintingVariant
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.
Sourcepub unsafe fn as_painting_variant_mut_unchecked(
&mut self,
) -> &mut PaintingVariant
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.
Sourcepub fn is_sniffer_state(&self) -> bool
pub fn is_sniffer_state(&self) -> bool
Returns true if this is a EntityDataValue::SnifferState, otherwise false
Sourcepub fn as_sniffer_state_mut(&mut self) -> Option<&mut SnifferStateKind>
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
Sourcepub fn as_sniffer_state(&self) -> Option<&SnifferStateKind>
pub fn as_sniffer_state(&self) -> Option<&SnifferStateKind>
Optionally returns references to the inner fields if this is a EntityDataValue::SnifferState, otherwise None
Sourcepub fn into_sniffer_state(self) -> Result<SnifferStateKind, Self>
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
Sourcepub unsafe fn into_sniffer_state_unchecked(self) -> SnifferStateKind
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.
Sourcepub unsafe fn as_sniffer_state_unchecked(&self) -> &SnifferStateKind
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.
Sourcepub unsafe fn as_sniffer_state_mut_unchecked(&mut self) -> &mut SnifferStateKind
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.
Sourcepub fn is_armadillo_state(&self) -> bool
pub fn is_armadillo_state(&self) -> bool
Returns true if this is a EntityDataValue::ArmadilloState, otherwise false
Sourcepub fn as_armadillo_state_mut(&mut self) -> Option<&mut ArmadilloStateKind>
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
Sourcepub fn as_armadillo_state(&self) -> Option<&ArmadilloStateKind>
pub fn as_armadillo_state(&self) -> Option<&ArmadilloStateKind>
Optionally returns references to the inner fields if this is a EntityDataValue::ArmadilloState, otherwise None
Sourcepub fn into_armadillo_state(self) -> Result<ArmadilloStateKind, Self>
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
Sourcepub unsafe fn into_armadillo_state_unchecked(self) -> ArmadilloStateKind
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.
Sourcepub unsafe fn as_armadillo_state_unchecked(&self) -> &ArmadilloStateKind
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.
Sourcepub unsafe fn as_armadillo_state_mut_unchecked(
&mut self,
) -> &mut ArmadilloStateKind
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.
Sourcepub fn is_copper_golem_state(&self) -> bool
pub fn is_copper_golem_state(&self) -> bool
Returns true if this is a EntityDataValue::CopperGolemState, otherwise false
Sourcepub fn as_copper_golem_state_mut(&mut self) -> Option<&mut CopperGolemStateKind>
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
Sourcepub fn as_copper_golem_state(&self) -> Option<&CopperGolemStateKind>
pub fn as_copper_golem_state(&self) -> Option<&CopperGolemStateKind>
Optionally returns references to the inner fields if this is a EntityDataValue::CopperGolemState, otherwise None
Sourcepub fn into_copper_golem_state(self) -> Result<CopperGolemStateKind, Self>
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
Sourcepub unsafe fn into_copper_golem_state_unchecked(self) -> CopperGolemStateKind
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.
Sourcepub unsafe fn as_copper_golem_state_unchecked(&self) -> &CopperGolemStateKind
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.
Sourcepub unsafe fn as_copper_golem_state_mut_unchecked(
&mut self,
) -> &mut CopperGolemStateKind
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.
Sourcepub fn is_weathering_copper_state(&self) -> bool
pub fn is_weathering_copper_state(&self) -> bool
Returns true if this is a EntityDataValue::WeatheringCopperState, otherwise false
Sourcepub fn as_weathering_copper_state_mut(
&mut self,
) -> Option<&mut WeatheringCopperStateKind>
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
Sourcepub fn as_weathering_copper_state(&self) -> Option<&WeatheringCopperStateKind>
pub fn as_weathering_copper_state(&self) -> Option<&WeatheringCopperStateKind>
Optionally returns references to the inner fields if this is a EntityDataValue::WeatheringCopperState, otherwise None
Sourcepub fn into_weathering_copper_state(
self,
) -> Result<WeatheringCopperStateKind, Self>
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
Sourcepub unsafe fn into_weathering_copper_state_unchecked(
self,
) -> WeatheringCopperStateKind
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.
Sourcepub unsafe fn as_weathering_copper_state_unchecked(
&self,
) -> &WeatheringCopperStateKind
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.
Sourcepub unsafe fn as_weathering_copper_state_mut_unchecked(
&mut self,
) -> &mut WeatheringCopperStateKind
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.
Sourcepub fn is_vector3(&self) -> bool
pub fn is_vector3(&self) -> bool
Returns true if this is a EntityDataValue::Vector3, otherwise false
Sourcepub fn as_vector3_mut(&mut self) -> Option<&mut Vec3f32>
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
Sourcepub fn as_vector3(&self) -> Option<&Vec3f32>
pub fn as_vector3(&self) -> Option<&Vec3f32>
Optionally returns references to the inner fields if this is a EntityDataValue::Vector3, otherwise None
Sourcepub fn into_vector3(self) -> Result<Vec3f32, Self>
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
Sourcepub unsafe fn into_vector3_unchecked(self) -> Vec3f32
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.
Sourcepub unsafe fn as_vector3_unchecked(&self) -> &Vec3f32
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.
Sourcepub unsafe fn as_vector3_mut_unchecked(&mut self) -> &mut Vec3f32
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.
Sourcepub fn is_quaternion(&self) -> bool
pub fn is_quaternion(&self) -> bool
Returns true if this is a EntityDataValue::Quaternion, otherwise false
Sourcepub fn as_quaternion_mut(&mut self) -> Option<&mut Quaternion>
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
Sourcepub fn as_quaternion(&self) -> Option<&Quaternion>
pub fn as_quaternion(&self) -> Option<&Quaternion>
Optionally returns references to the inner fields if this is a EntityDataValue::Quaternion, otherwise None
Sourcepub fn into_quaternion(self) -> Result<Quaternion, Self>
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
Sourcepub unsafe fn into_quaternion_unchecked(self) -> Quaternion
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.
Sourcepub unsafe fn as_quaternion_unchecked(&self) -> &Quaternion
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.
Sourcepub unsafe fn as_quaternion_mut_unchecked(&mut self) -> &mut Quaternion
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.
Sourcepub fn is_resolvable_profile(&self) -> bool
pub fn is_resolvable_profile(&self) -> bool
Returns true if this is a EntityDataValue::ResolvableProfile, otherwise false
Sourcepub fn as_resolvable_profile_mut(&mut self) -> Option<&mut Profile>
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
Sourcepub fn as_resolvable_profile(&self) -> Option<&Profile>
pub fn as_resolvable_profile(&self) -> Option<&Profile>
Optionally returns references to the inner fields if this is a EntityDataValue::ResolvableProfile, otherwise None
Sourcepub fn into_resolvable_profile(self) -> Result<Profile, Self>
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
Sourcepub unsafe fn into_resolvable_profile_unchecked(self) -> Profile
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.
Sourcepub unsafe fn as_resolvable_profile_unchecked(&self) -> &Profile
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.
Sourcepub unsafe fn as_resolvable_profile_mut_unchecked(&mut self) -> &mut Profile
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.
Sourcepub fn is_humanoid_arm(&self) -> bool
pub fn is_humanoid_arm(&self) -> bool
Returns true if this is a EntityDataValue::HumanoidArm, otherwise false
Sourcepub fn as_humanoid_arm_mut(&mut self) -> Option<&mut HumanoidArm>
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
Sourcepub fn as_humanoid_arm(&self) -> Option<&HumanoidArm>
pub fn as_humanoid_arm(&self) -> Option<&HumanoidArm>
Optionally returns references to the inner fields if this is a EntityDataValue::HumanoidArm, otherwise None
Sourcepub fn into_humanoid_arm(self) -> Result<HumanoidArm, Self>
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
Sourcepub unsafe fn into_humanoid_arm_unchecked(self) -> HumanoidArm
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.
Sourcepub unsafe fn as_humanoid_arm_unchecked(&self) -> &HumanoidArm
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.
Sourcepub unsafe fn as_humanoid_arm_mut_unchecked(&mut self) -> &mut HumanoidArm
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
impl AzBuf for EntityDataValue
fn azalea_write(&self, buf: &mut impl Write) -> Result<(), Error>
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl Clone for EntityDataValue
impl Clone for EntityDataValue
Source§fn clone(&self) -> EntityDataValue
fn clone(&self) -> EntityDataValue
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EntityDataValue
impl Debug for EntityDataValue
Source§impl From<EntityDataValue> for UpdateMetadataError
impl From<EntityDataValue> for UpdateMetadataError
Source§fn from(value: EntityDataValue) -> Self
fn from(value: EntityDataValue) -> Self
Source§impl PartialEq for EntityDataValue
impl PartialEq for EntityDataValue
impl StructuralPartialEq for EntityDataValue
Auto Trait Implementations§
impl Freeze for EntityDataValue
impl RefUnwindSafe for EntityDataValue
impl Send for EntityDataValue
impl Sync for EntityDataValue
impl Unpin for EntityDataValue
impl UnsafeUnpin for EntityDataValue
impl UnwindSafe for EntityDataValue
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,
§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>, which can then be
downcast into Box<dyn 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>, which 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.