Struct EntitySpectatorShader
pub struct EntitySpectatorShader {
pub entity: String,
pub shader: String,
}Expand description
A post effect registered by Hooks::register_entity_spectator_shaders: the screen effect
spectating an entity of type entity puts on, as vanilla’s creeper, spider and enderman do.
Fields§
§entity: StringThe spectated entity type (mymod:wisp).
shader: StringThe post effect, the chain at assets/<namespace>/post_effect/<path>.json
(mymod:wisp_vision), as a resource pack or the mod’s assets supply it.
Trait Implementations§
§impl Clone for EntitySpectatorShader
impl Clone for EntitySpectatorShader
§fn clone(&self) -> EntitySpectatorShader
fn clone(&self) -> EntitySpectatorShader
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 EntitySpectatorShader
impl Debug for EntitySpectatorShader
impl Eq for EntitySpectatorShader
§impl PartialEq for EntitySpectatorShader
impl PartialEq for EntitySpectatorShader
impl StructuralPartialEq for EntitySpectatorShader
Auto Trait Implementations§
impl Freeze for EntitySpectatorShader
impl RefUnwindSafe for EntitySpectatorShader
impl Send for EntitySpectatorShader
impl Sync for EntitySpectatorShader
impl Unpin for EntitySpectatorShader
impl UnsafeUnpin for EntitySpectatorShader
impl UnwindSafe for EntitySpectatorShader
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