pub struct EnderchestConfig {
pub enabled: bool,
pub gamemodes: Vec<GameMode>,
pub actions: Vec<InteractAction>,
}Expand description
Configuration for the enderchest mechanics module.
Fields§
§enabled: boolWhether this module is active.
gamemodes: Vec<GameMode>List of gamemodes allowed to use enderchests. Use variant names like “Survival”, “Creative”, etc. Leave empty to allow all.
actions: Vec<InteractAction>List of interaction actions that trigger opening the enderchest. Use variant names like “RightClickBlock”, “RightClickAir”, etc. Leave empty to allow all.
Trait Implementations§
Source§impl Clone for EnderchestConfig
impl Clone for EnderchestConfig
Source§fn clone(&self) -> EnderchestConfig
fn clone(&self) -> EnderchestConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnderchestConfig
impl Debug for EnderchestConfig
Source§impl Default for EnderchestConfig
impl Default for EnderchestConfig
Source§impl<'de> Deserialize<'de> for EnderchestConfig
impl<'de> Deserialize<'de> for EnderchestConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EnderchestConfig
impl RefUnwindSafe for EnderchestConfig
impl Send for EnderchestConfig
impl Sync for EnderchestConfig
impl Unpin for EnderchestConfig
impl UnsafeUnpin for EnderchestConfig
impl UnwindSafe for EnderchestConfig
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