Struct BlockTintRegistry
pub struct BlockTintRegistry { /* private fields */ }Expand description
The game’s BlockTintSources: the registrations in order.
Implementations§
§impl BlockTintRegistry
impl BlockTintRegistry
pub fn into_layers(self) -> BTreeMap<String, Arc<[TintLayer]>>
pub fn into_layers(self) -> BTreeMap<String, Arc<[TintLayer]>>
Each block’s layers, the last registration for a block winning, in block-id order.
Trait Implementations§
§impl BlockTintSources for BlockTintRegistry
impl BlockTintSources for BlockTintRegistry
§fn register(&mut self, layers: Vec<TintLayer>, blocks: Vec<String>)
fn register(&mut self, layers: Vec<TintLayer>, blocks: Vec<String>)
register(sources, blocks...), vanilla’s BlockColors.register: layers[i] colours the
faces of blocks whose tintindex is i, and a face whose index is past the list is not
tinted. Blocks are ids, a mod’s (mymod:cable) or vanilla’s (minecraft:oak_leaves); a
later registration for a block replaces the earlier one, vanilla’s own included.§impl Default for BlockTintRegistry
impl Default for BlockTintRegistry
§fn default() -> BlockTintRegistry
fn default() -> BlockTintRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for BlockTintRegistry
impl !UnwindSafe for BlockTintRegistry
impl Freeze for BlockTintRegistry
impl Send for BlockTintRegistry
impl Sync for BlockTintRegistry
impl Unpin for BlockTintRegistry
impl UnsafeUnpin for BlockTintRegistry
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