pub struct DimensionType {Show 38 fields
pub key: Identifier,
pub fixed_time: Option<i64>,
pub has_skylight: bool,
pub has_ceiling: bool,
pub coordinate_scale: f64,
pub min_y: i32,
pub height: i32,
pub logical_height: i32,
pub infiniburn: &'static str,
pub ambient_light: f32,
pub default_clock: Option<&'static str>,
pub timelines: Option<&'static str>,
pub has_ender_dragon_fight: bool,
pub monster_spawn_light_level: MonsterSpawnLightLevel,
pub monster_spawn_block_light_limit: i32,
pub skybox: Option<&'static str>,
pub cardinal_light: Option<&'static str>,
pub sky_color: Option<&'static str>,
pub fog_color: Option<&'static str>,
pub cloud_color: Option<&'static str>,
pub cloud_height: Option<f32>,
pub ambient_light_color: Option<&'static str>,
pub sky_light_color: Option<&'static str>,
pub sky_light_factor: Option<f32>,
pub fog_start_distance: Option<f32>,
pub fog_end_distance: Option<f32>,
pub default_dripstone_particle: Option<&'static str>,
pub respawn_anchor_works: bool,
pub can_start_raid: bool,
pub fast_lava: bool,
pub piglins_zombify: bool,
pub sky_light_level: Option<f32>,
pub snow_golem_melts: bool,
pub water_evaporates: bool,
pub nether_portal_spawns_piglin: bool,
pub bed_rule: BedRule,
pub mood_sound: Option<MoodSound>,
pub background_music: Option<BackgroundMusic>,
}Expand description
Represents a full dimension type definition from a data pack JSON file.
Fields§
§key: Identifier§fixed_time: Option<i64>§has_skylight: bool§has_ceiling: bool§coordinate_scale: f64§min_y: i32§height: i32§logical_height: i32§infiniburn: &'static str§ambient_light: f32§default_clock: Option<&'static str>§timelines: Option<&'static str>§has_ender_dragon_fight: bool§monster_spawn_light_level: MonsterSpawnLightLevel§monster_spawn_block_light_limit: i32§skybox: Option<&'static str>§cardinal_light: Option<&'static str>§sky_color: Option<&'static str>§fog_color: Option<&'static str>§cloud_color: Option<&'static str>§cloud_height: Option<f32>§ambient_light_color: Option<&'static str>§sky_light_color: Option<&'static str>§sky_light_factor: Option<f32>§fog_start_distance: Option<f32>§fog_end_distance: Option<f32>§default_dripstone_particle: Option<&'static str>§respawn_anchor_works: bool§can_start_raid: bool§fast_lava: bool§piglins_zombify: bool§sky_light_level: Option<f32>§snow_golem_melts: bool§water_evaporates: bool§nether_portal_spawns_piglin: bool§bed_rule: BedRule§mood_sound: Option<MoodSound>§background_music: Option<BackgroundMusic>Trait Implementations§
Source§impl Debug for DimensionType
impl Debug for DimensionType
Source§impl RegistryEntry for DimensionType
impl RegistryEntry for DimensionType
Source§impl ToNbtTag for &DimensionType
impl ToNbtTag for &DimensionType
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Auto Trait Implementations§
impl Freeze for DimensionType
impl RefUnwindSafe for DimensionType
impl Send for DimensionType
impl Sync for DimensionType
impl Unpin for DimensionType
impl UnsafeUnpin 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