pub enum AreaMitigation {
NightVision,
}Expand description
A per-area darkness mitigation declaration (DSL v0.6).
The first-class answer to “this area is meant to be dark, and the players are
equipped for it”. Declaring it is what makes the compiler emit the mitigation
(a clocked effect give … night_vision scoped to the area’s placed bounds) and
what satisfies the DW0210 darkness gate — one declaration, one mechanism, no
gap between the check and the feature.
It replaces the pre-0.6 heuristic that read a class kit item’s display name
for night vision: that accepted a renamed water bottle, so the gate passed
while nothing in the world granted night vision (owner, island QA).
Variants§
NightVision
Every player inside the area’s placed bounds is kept under
minecraft:night_vision by a compiler-emitted 1 s clock.
Trait Implementations§
Source§impl Clone for AreaMitigation
impl Clone for AreaMitigation
impl Copy for AreaMitigation
Source§impl Debug for AreaMitigation
impl Debug for AreaMitigation
Source§impl<'de> Deserialize<'de> for AreaMitigation
impl<'de> Deserialize<'de> for AreaMitigation
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
impl Eq for AreaMitigation
Source§impl JsonSchema for AreaMitigation
impl JsonSchema for AreaMitigation
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AreaMitigation
impl PartialEq for AreaMitigation
Source§impl Serialize for AreaMitigation
impl Serialize for AreaMitigation
impl StructuralPartialEq for AreaMitigation
Auto Trait Implementations§
impl Freeze for AreaMitigation
impl RefUnwindSafe for AreaMitigation
impl Send for AreaMitigation
impl Sync for AreaMitigation
impl Unpin for AreaMitigation
impl UnsafeUnpin for AreaMitigation
impl UnwindSafe for AreaMitigation
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