#[non_exhaustive]pub enum TileEntityType {
TrainingDummy {
entity_idx: i16,
},
ItemFrame(Option<WorldItemSlot>),
LogicSensor {
check: Option<LogicCheck>,
is_on: bool,
},
DisplayDoll {
pose: DisplayDollPose,
helmet: ItemDyeRow,
breastplate: ItemDyeRow,
pants: ItemDyeRow,
accessories: [ItemDyeRow; 5],
mount: ItemDyeRow,
hand: Option<WorldItemSlot>,
},
WeaponRack(Option<WorldItemSlot>),
HatRack {
upper: ItemDyeRow,
lower: ItemDyeRow,
},
FoodPlatter(Option<WorldItemSlot>),
Pylon,
DisplayJar(Option<WorldItemSlot>),
KiteAnchor(Option<Item>),
CritterAnchor(Option<Item>),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TrainingDummy
ItemFrame(Option<WorldItemSlot>)
LogicSensor
DisplayDoll
Fields
§
pose: DisplayDollPose§
helmet: ItemDyeRow§
breastplate: ItemDyeRow§
pants: ItemDyeRow§
accessories: [ItemDyeRow; 5]§
mount: ItemDyeRow§
hand: Option<WorldItemSlot>WeaponRack(Option<WorldItemSlot>)
HatRack
FoodPlatter(Option<WorldItemSlot>)
Pylon
DisplayJar(Option<WorldItemSlot>)
KiteAnchor(Option<Item>)
CritterAnchor(Option<Item>)
Implementations§
Trait Implementations§
Source§impl Clone for TileEntityType
impl Clone for TileEntityType
Source§fn clone(&self) -> TileEntityType
fn clone(&self) -> TileEntityType
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 moreimpl Copy for TileEntityType
Source§impl Debug for TileEntityType
impl Debug for TileEntityType
impl Eq for TileEntityType
Source§impl Hash for TileEntityType
impl Hash for TileEntityType
Source§impl PartialEq for TileEntityType
impl PartialEq for TileEntityType
impl StructuralPartialEq for TileEntityType
Auto Trait Implementations§
impl Freeze for TileEntityType
impl RefUnwindSafe for TileEntityType
impl Send for TileEntityType
impl Sync for TileEntityType
impl Unpin for TileEntityType
impl UnsafeUnpin for TileEntityType
impl UnwindSafe for TileEntityType
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