#[non_exhaustive]pub enum PhysicsRules {
V1_8,
V1_12,
V1_16_5,
Modern26_1,
Modern26_2,
Modern26_3,
}Expand description
The physics rule set a version runs on (ghast-physics module).
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.
V1_8
ghast_physics::v1_8 (1.8 – 1.8.9).
V1_12
ghast_physics::v1_12 (1.12.1, 1.12.2).
V1_16_5
ghast_physics::v1_16_5 (1.16.2 – 1.16.5).
Modern26_1
ghast_physics::modern with the V26_1 rules (26.1 – 26.1.2).
Modern26_2
ghast_physics::modern with the V26_2 rules (26.2: collision restitution).
Modern26_3
ghast_physics::modern with the V26_3 rules (26.3: movement packets after the
level’s entities and block entities ticked, the teleport answer with the pose).
Trait Implementations§
Source§impl Clone for PhysicsRules
impl Clone for PhysicsRules
impl Copy for PhysicsRules
Source§impl Debug for PhysicsRules
impl Debug for PhysicsRules
impl Eq for PhysicsRules
Source§impl Hash for PhysicsRules
impl Hash for PhysicsRules
Source§impl PartialEq for PhysicsRules
impl PartialEq for PhysicsRules
impl StructuralPartialEq for PhysicsRules
Auto Trait Implementations§
impl Forget for PhysicsRules
impl Freeze for PhysicsRules
impl Move for PhysicsRules
impl RefUnwindSafe for PhysicsRules
impl Send for PhysicsRules
impl Sync for PhysicsRules
impl Unpin for PhysicsRules
impl UnsafeUnpin for PhysicsRules
impl UnwindSafe for PhysicsRules
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