pub struct Timeline {
pub key: Identifier,
pub clock: Option<Identifier>,
pub period_ticks: Option<i64>,
pub tracks: &'static [Track],
pub time_markers: &'static [TimeMarker],
}Expand description
Represents a timeline definition from a data pack JSON file.
Fields§
§key: Identifier§clock: Option<Identifier>§period_ticks: Option<i64>§tracks: &'static [Track]§time_markers: &'static [TimeMarker]Trait Implementations§
Source§impl RegistryEntry for Timeline
impl RegistryEntry for Timeline
Source§impl ToNbtTag for &Timeline
impl ToNbtTag for &Timeline
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Auto Trait Implementations§
impl Freeze for Timeline
impl RefUnwindSafe for Timeline
impl Send for Timeline
impl Sync for Timeline
impl Unpin for Timeline
impl UnsafeUnpin for Timeline
impl UnwindSafe for Timeline
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