pub enum StructureData {
Show 14 variants EndCity { basic_data: BasicStructureData, children: Vec<EndCityElement>, }, JungleTemple { basic_data: BasicStructureData, children: Vec<JungleTempleElement>, }, Stronghold { basic_data: BasicStructureData, }, Igloo { basic_data: BasicStructureData, }, NetherFortress { basic_data: BasicStructureData, }, Mineshaft { basic_data: BasicStructureData, }, OceanMonument { basic_data: BasicStructureData, }, OceanRuin { basic_data: BasicStructureData, }, ShipWrack { basic_data: BasicStructureData, }, SwarmpHut { basic_data: BasicStructureData, }, BurriedTreasure { basic_data: BasicStructureData, }, WoodlandMansion { basic_data: BasicStructureData, }, DessertTemple { basic_data: BasicStructureData, }, Bastion {},
}
Expand description

An enum of the differenct types of structure data

§Sources

Variants§

§

EndCity

Structure data of an end city

Fields

§basic_data: BasicStructureData

The basic data of a structure

§children: Vec<EndCityElement>

All elements of the end city

§

JungleTemple

Structure data of a JungleTemple

Fields

§basic_data: BasicStructureData

The basic data of a structure

§children: Vec<JungleTempleElement>

The elements of the jungle temple (always one)

§

Stronghold

Structure data of a Stronghold

Fields

§basic_data: BasicStructureData

The basic data of a structure

§

Igloo

Structure data of a Igloo

Fields

§basic_data: BasicStructureData

The basic data of a structure

§

NetherFortress

Structure data of a NetherFortress

Fields

§basic_data: BasicStructureData

The basic data of a structure

§

Mineshaft

Structure data of a Mineshaft

Fields

§basic_data: BasicStructureData

The basic data of a structure

§

OceanMonument

Structure data of a OceanMonument

Fields

§basic_data: BasicStructureData

The basic data of a structure

§

OceanRuin

Structure data of a OceanRuin

Fields

§basic_data: BasicStructureData

The basic data of a structure

§

ShipWrack

Structure data of a ShipWrack

Fields

§basic_data: BasicStructureData

The basic data of a structure

§

SwarmpHut

Structure data of a SwarmpHut

Fields

§basic_data: BasicStructureData

The basic data of a structure

§

BurriedTreasure

Structure data of a BurriedTreasure

Fields

§basic_data: BasicStructureData

The basic data of a structure

§

WoodlandMansion

Structure data of a WoodlandMansion

Fields

§basic_data: BasicStructureData

The basic data of a structure

§

DessertTemple

Structure data of a DessertTemple

Fields

§basic_data: BasicStructureData

The basic data of a structure

§

Bastion

Structure data of a Bastion

Implementations§

source§

impl StructureData

source

pub fn from_nbt( name: String, values: HashMap<String, NbtValue> ) -> Result<Self, ()>
where Self: Sized,

creates basic structure data from the nbt data

Trait Implementations§

source§

impl Debug for StructureData

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for StructureData

§

type Target = BasicStructureData

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl PartialEq for StructureData

source§

fn eq(&self, other: &StructureData) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for StructureData

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.