pub struct FuelValues {
burn_durations: Vec<i32>,
}Expand description
Fuel durations indexed by item registry ID.
Fields§
§burn_durations: Vec<i32>Implementations§
Source§impl FuelValues
impl FuelValues
Sourcepub fn builder() -> FuelValuesBuilder
pub fn builder() -> FuelValuesBuilder
Creates an empty table sized for the currently frozen item registry.
Sourcepub fn burn_duration(&self, item: ItemRef) -> i32
pub fn burn_duration(&self, item: ItemRef) -> i32
Returns the item’s burn duration in game ticks, or zero when it is not fuel.
Auto Trait Implementations§
impl Freeze for FuelValues
impl RefUnwindSafe for FuelValues
impl Send for FuelValues
impl Sync for FuelValues
impl Unpin for FuelValues
impl UnsafeUnpin for FuelValues
impl UnwindSafe for FuelValues
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>