Enum TooltipPlacement
pub enum TooltipPlacement {
BeforeAll,
Before(String),
After(String),
AfterAll,
}Expand description
Where a component’s lines go among the other components’ lines (NeoForge’s
registerComponentAppenderBeforeAll, Before, After and AfterAll). Before and After
name a component detail the game lists (minecraft:lore, minecraft:enchantments…); any
other id refuses the mods at startup. Only the 23 vanilla details are anchors;
the registerAppender(TooltipLocation, ...) overload is not represented.
Variants§
BeforeAll
Before every component’s lines, after the item’s own lines.
Before(String)
Just before the lines of the component named.
After(String)
Just after the lines of the component named.
AfterAll
After every component’s lines, before the durability and advanced lines.
Trait Implementations§
§impl Clone for TooltipPlacement
impl Clone for TooltipPlacement
§fn clone(&self) -> TooltipPlacement
fn clone(&self) -> TooltipPlacement
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 TooltipPlacement
impl Debug for TooltipPlacement
impl Eq for TooltipPlacement
§impl PartialEq for TooltipPlacement
impl PartialEq for TooltipPlacement
impl StructuralPartialEq for TooltipPlacement
Auto Trait Implementations§
impl Freeze for TooltipPlacement
impl RefUnwindSafe for TooltipPlacement
impl Send for TooltipPlacement
impl Sync for TooltipPlacement
impl Unpin for TooltipPlacement
impl UnsafeUnpin for TooltipPlacement
impl UnwindSafe for TooltipPlacement
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