Struct WorldRenderView
#[non_exhaustive]pub struct WorldRenderView {
pub camera: [f64; 3],
pub partial_tick: f32,
pub game_time: i64,
}Expand description
Immutable, minimal extracted state for custom world geometry submission. This initial view does not expose NeoForge’s full level state or visible sections.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.camera: [f64; 3]Camera origin in world-space blocks. Subtraction precedes f32 conversion.
partial_tick: f32The frame’s interpolation fraction.
game_time: i64Level game time in ticks.
Implementations§
§impl WorldRenderView
impl WorldRenderView
Trait Implementations§
§impl Clone for WorldRenderView
impl Clone for WorldRenderView
§fn clone(&self) -> WorldRenderView
fn clone(&self) -> WorldRenderView
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 WorldRenderView
§impl Debug for WorldRenderView
impl Debug for WorldRenderView
§impl PartialEq for WorldRenderView
impl PartialEq for WorldRenderView
impl StructuralPartialEq for WorldRenderView
Auto Trait Implementations§
impl Freeze for WorldRenderView
impl RefUnwindSafe for WorldRenderView
impl Send for WorldRenderView
impl Sync for WorldRenderView
impl Unpin for WorldRenderView
impl UnsafeUnpin for WorldRenderView
impl UnwindSafe for WorldRenderView
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