#[non_exhaustive]pub enum SignRules {
Legacy {
json: bool,
},
FirstTickCheck,
Sided,
}Expand description
The sign rules of a version (crate::version::Capabilities::sign_editor).
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.
Legacy
1.8.9 (JSON lines) and 1.12.2 (plain lines): the editor always opens (the client makes up a sign block entity where it has none) and only the player closes it.
FirstTickCheck
1.16.5: as SignRules::Legacy (plain lines), but an editor opened where the client
has no sign closes on the screen’s first tick.
Sided
1.20+: the editor opens only on a sign the client has (front or back side) and closes when the sign is gone or the player is too far.
Trait Implementations§
impl Copy for SignRules
impl Eq for SignRules
impl StructuralPartialEq for SignRules
Auto Trait Implementations§
impl Forget for SignRules
impl Freeze for SignRules
impl Move for SignRules
impl RefUnwindSafe for SignRules
impl Send for SignRules
impl Sync for SignRules
impl Unpin for SignRules
impl UnsafeUnpin for SignRules
impl UnwindSafe for SignRules
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