Struct BlockFaceTexture
#[non_exhaustive]pub struct BlockFaceTexture {
pub texture: String,
pub tint_index: i32,
}Expand description
A model face’s texture name and tint selector, as block drawing helpers accept them.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.texture: StringTexture name, for example block/oak_planks or a mod’s namespaced texture.
tint_index: i32Model tint index; -1 means no tint.
Implementations§
§impl BlockFaceTexture
impl BlockFaceTexture
pub fn new(texture: String, tint_index: i32) -> BlockFaceTexture
pub fn new(texture: String, tint_index: i32) -> BlockFaceTexture
Describe a face texture without exposing the renderer’s atlas or model types.
Trait Implementations§
§impl Clone for BlockFaceTexture
impl Clone for BlockFaceTexture
§fn clone(&self) -> BlockFaceTexture
fn clone(&self) -> BlockFaceTexture
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 BlockFaceTexture
impl Debug for BlockFaceTexture
impl Eq for BlockFaceTexture
§impl PartialEq for BlockFaceTexture
impl PartialEq for BlockFaceTexture
impl StructuralPartialEq for BlockFaceTexture
Auto Trait Implementations§
impl Freeze for BlockFaceTexture
impl RefUnwindSafe for BlockFaceTexture
impl Send for BlockFaceTexture
impl Sync for BlockFaceTexture
impl Unpin for BlockFaceTexture
impl UnsafeUnpin for BlockFaceTexture
impl UnwindSafe for BlockFaceTexture
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