Struct ItemModelLevel
pub struct ItemModelLevel {
pub dimension: Identifier,
pub game_time: i64,
pub sun_angle: f32,
pub moon_phase: i32,
pub respawn: Option<GlobalPos>,
pub runs_normally: bool,
}Expand description
The level an item is drawn in (ClientLevel), as the item model reads it.
Fields§
§dimension: IdentifierThe dimension’s key (minecraft:overworld).
game_time: i64getGameTime.
sun_angle: f32EnvironmentAttributes.SUN_ANGLE at the owner, in degrees.
moon_phase: i32EnvironmentAttributes.MOON_PHASE index at the owner.
respawn: Option<GlobalPos>The world’s respawn point, when set.
runs_normally: booltickRateManager().runsNormally().
Trait Implementations§
§impl Clone for ItemModelLevel
impl Clone for ItemModelLevel
§fn clone(&self) -> ItemModelLevel
fn clone(&self) -> ItemModelLevel
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 more§impl Debug for ItemModelLevel
impl Debug for ItemModelLevel
§impl PartialEq for ItemModelLevel
impl PartialEq for ItemModelLevel
impl StructuralPartialEq for ItemModelLevel
Auto Trait Implementations§
impl Freeze for ItemModelLevel
impl RefUnwindSafe for ItemModelLevel
impl Send for ItemModelLevel
impl Sync for ItemModelLevel
impl Unpin for ItemModelLevel
impl UnsafeUnpin for ItemModelLevel
impl UnwindSafe for ItemModelLevel
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