Enum ExplosionInteraction
#[non_exhaustive]pub enum ExplosionInteraction {
None,
Block,
Tnt,
}Expand description
What an explosion a mod sets off does to blocks
(Level.ExplosionInteraction).
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.
None
Blocks stay; entities are hurt and pushed (NONE).
Block
Blocks break and drop by the block_explosion_drop_decay rule (BLOCK).
Tnt
Blocks break and drop by the tnt_explosion_drop_decay rule (TNT).
Trait Implementations§
§impl Clone for ExplosionInteraction
impl Clone for ExplosionInteraction
§fn clone(&self) -> ExplosionInteraction
fn clone(&self) -> ExplosionInteraction
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 ExplosionInteraction
§impl Debug for ExplosionInteraction
impl Debug for ExplosionInteraction
§impl Default for ExplosionInteraction
impl Default for ExplosionInteraction
§fn default() -> ExplosionInteraction
fn default() -> ExplosionInteraction
Returns the “default value” for a type. Read more
impl Eq for ExplosionInteraction
§impl PartialEq for ExplosionInteraction
impl PartialEq for ExplosionInteraction
impl StructuralPartialEq for ExplosionInteraction
Auto Trait Implementations§
impl Freeze for ExplosionInteraction
impl RefUnwindSafe for ExplosionInteraction
impl Send for ExplosionInteraction
impl Sync for ExplosionInteraction
impl Unpin for ExplosionInteraction
impl UnsafeUnpin for ExplosionInteraction
impl UnwindSafe for ExplosionInteraction
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