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<WorldClockRef>,
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<WorldClockRef>§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>Implementations§
Source§impl DimensionType
impl DimensionType
Sourcepub fn get_teleportation_scale(
last_dimension_type: &Self,
new_dimension_type: &Self,
) -> f64
pub fn get_teleportation_scale( last_dimension_type: &Self, new_dimension_type: &Self, ) -> f64
Returns vanilla DimensionType.getTeleportationScale.
Trait Implementations§
Source§impl Debug for DimensionType
impl Debug for DimensionType
impl Eq for DimensionType
Source§impl PartialEq for DimensionType
impl PartialEq 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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>