pub enum StructureConfigData {
Jigsaw(JigsawConfig),
Mineshaft {
mineshaft_type: MineshaftTypeData,
},
Shipwreck {
is_beached: bool,
},
OceanRuin {
biome_temp: OceanRuinBiomeTempData,
large_probability: f32,
cluster_probability: f32,
},
RuinedPortal {
setups: Vec<RuinedPortalSetupData>,
},
NetherFossil {
height: HeightProviderData,
},
Empty,
}Expand description
Type-specific structure config.
Variants§
Jigsaw(JigsawConfig)
minecraft:jigsaw.
Mineshaft
minecraft:mineshaft.
Fields
§
mineshaft_type: MineshaftTypeDataShipwreck
minecraft:shipwreck.
OceanRuin
minecraft:ocean_ruin.
RuinedPortal
minecraft:ruined_portal.
Fields
§
setups: Vec<RuinedPortalSetupData>NetherFossil
minecraft:nether_fossil.
Fields
§
height: HeightProviderDataEmpty
Structure types with only common settings, or whose config is still unused.
Implementations§
Source§impl StructureConfigData
impl StructureConfigData
pub fn as_jigsaw(&self) -> Option<&JigsawConfig>
Trait Implementations§
Source§impl Clone for StructureConfigData
impl Clone for StructureConfigData
Source§fn clone(&self) -> StructureConfigData
fn clone(&self) -> StructureConfigData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StructureConfigData
impl RefUnwindSafe for StructureConfigData
impl Send for StructureConfigData
impl Sync for StructureConfigData
impl Unpin for StructureConfigData
impl UnsafeUnpin for StructureConfigData
impl UnwindSafe for StructureConfigData
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