Enum TintLayer
pub enum TintLayer {
Vanilla(VanillaTint),
Source(Arc<dyn BlockTintSource>),
}Expand description
One layer of a block’s tint list: one of vanilla’s sources or a mod’s own.
Variants§
Vanilla(VanillaTint)
A vanilla source, evaluated by the game as for its own blocks.
Source(Arc<dyn BlockTintSource>)
A mod’s source.
Trait Implementations§
§impl<T> From<Arc<T>> for TintLayerwhere
T: BlockTintSource,
impl<T> From<Arc<T>> for TintLayerwhere
T: BlockTintSource,
§impl From<VanillaTint> for TintLayer
impl From<VanillaTint> for TintLayer
§fn from(tint: VanillaTint) -> TintLayer
fn from(tint: VanillaTint) -> TintLayer
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TintLayer
impl !UnwindSafe for TintLayer
impl Freeze for TintLayer
impl Send for TintLayer
impl Sync for TintLayer
impl Unpin for TintLayer
impl UnsafeUnpin for TintLayer
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