pub struct Ops(pub Vec<u8>);Expand description
A mod’s answer: operations, written in order.
Tuple Fields§
§0: Vec<u8>Implementations§
Source§impl Ops
impl Ops
pub fn is_empty(&self) -> bool
Sourcepub fn root(&mut self, m: &Mat4)
pub fn root(&mut self, m: &Mat4)
Turns the whole body by m in entity space (after the body’s yaw).
Sourcepub fn bone(&mut self, bone: &str, op: &BoneOp)
pub fn bone(&mut self, bone: &str, op: &BoneOp)
Poses the vanilla part bone (after vanilla animated it).
Sourcepub fn mesh(
&mut self,
anchor: &Anchor,
texture: &str,
mode: Mode,
glint: bool,
argb: u32,
quads: &[Quad],
)
pub fn mesh( &mut self, anchor: &Anchor, texture: &str, mode: Mode, glint: bool, argb: u32, quads: &[Quad], )
Draws quads with texture at anchor. argb tints it (alpha
counts in Mode::Translucent); glint adds the enchantment shine.
Sourcepub fn disguise(&mut self, entity_type: &str)
pub fn disguise(&mut self, entity_type: &str)
Draws the entity as one of entity_type, animated like it.
Sourcepub fn capture(&mut self, source: &str)
pub fn capture(&mut self, source: &str)
Asks for the posed geometry of the entity ("self") or of a type
posed like it; it comes in the next frame’s Frame::captures.
Trait Implementations§
impl StructuralPartialEq for Ops
Auto Trait Implementations§
impl Freeze for Ops
impl RefUnwindSafe for Ops
impl Send for Ops
impl Sync for Ops
impl Unpin for Ops
impl UnsafeUnpin for Ops
impl UnwindSafe for Ops
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.