Struct valence_registry::dimension_type::DimensionType
source · pub struct DimensionType {Show 18 fields
pub ambient_light: f32,
pub bed_works: bool,
pub coordinate_scale: f64,
pub effects: DimensionEffects,
pub fixed_time: Option<i32>,
pub has_ceiling: bool,
pub has_raids: bool,
pub has_skylight: bool,
pub height: i32,
pub infiniburn: String,
pub logical_height: i32,
pub min_y: i32,
pub monster_spawn_block_light_limit: i32,
pub monster_spawn_light_level: MonsterSpawnLightLevel,
pub natural: bool,
pub piglin_safe: bool,
pub respawn_anchor_works: bool,
pub ultrawarm: bool,
}
Fields§
§ambient_light: f32
§bed_works: bool
§coordinate_scale: f64
§effects: DimensionEffects
§fixed_time: Option<i32>
§has_ceiling: bool
§has_raids: bool
§has_skylight: bool
§height: i32
§infiniburn: String
§logical_height: i32
§min_y: i32
§monster_spawn_block_light_limit: i32
§monster_spawn_light_level: MonsterSpawnLightLevel
§natural: bool
§piglin_safe: bool
§respawn_anchor_works: bool
§ultrawarm: bool
Trait Implementations§
source§impl Clone for DimensionType
impl Clone for DimensionType
source§fn clone(&self) -> DimensionType
fn clone(&self) -> DimensionType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DimensionType
impl Debug for DimensionType
source§impl Default for DimensionType
impl Default for DimensionType
source§impl<'de> Deserialize<'de> for DimensionType
impl<'de> Deserialize<'de> for DimensionType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for DimensionType
impl PartialEq for DimensionType
source§impl Serialize for DimensionType
impl Serialize for DimensionType
impl StructuralPartialEq for DimensionType
Auto Trait Implementations§
impl Freeze for DimensionType
impl RefUnwindSafe for DimensionType
impl Send for DimensionType
impl Sync for DimensionType
impl Unpin for DimensionType
impl UnwindSafe for DimensionType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&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)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates
Self
using data from the given [World
].