Struct RuntimeSprite
pub struct RuntimeSprite {
pub atlas: TextureAtlas,
pub id: Identifier,
pub png: Vec<u8>,
}Expand description
A mod-generated PNG to stitch into the next client resource generation.
Fields§
§atlas: TextureAtlasThe target client atlas.
id: IdentifierA namespaced texture id including the block/ or gui/ path prefix.
png: Vec<u8>A static PNG. Images must be at most 256 pixels wide and high.
Trait Implementations§
§impl Clone for RuntimeSprite
impl Clone for RuntimeSprite
§fn clone(&self) -> RuntimeSprite
fn clone(&self) -> RuntimeSprite
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 RuntimeSprite
impl Debug for RuntimeSprite
impl Eq for RuntimeSprite
§impl PartialEq for RuntimeSprite
impl PartialEq for RuntimeSprite
impl StructuralPartialEq for RuntimeSprite
Auto Trait Implementations§
impl Freeze for RuntimeSprite
impl RefUnwindSafe for RuntimeSprite
impl Send for RuntimeSprite
impl Sync for RuntimeSprite
impl Unpin for RuntimeSprite
impl UnsafeUnpin for RuntimeSprite
impl UnwindSafe for RuntimeSprite
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