Enum StatType
#[non_exhaustive]pub enum StatType {
Mined,
Crafted,
Used,
Broken,
PickedUp,
Dropped,
Killed,
KilledBy,
Custom,
}Expand description
A statistic type (BuiltInRegistries.STAT_TYPE), for a player’s
statistics: what the stat’s key names (a block, an item, an entity type,
or a minecraft:custom stat).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Mined
minecraft:mined, keyed by block.
Crafted
minecraft:crafted, keyed by item.
Used
minecraft:used, keyed by item.
Broken
minecraft:broken, keyed by item.
PickedUp
minecraft:picked_up, keyed by item.
Dropped
minecraft:dropped, keyed by item.
Killed
minecraft:killed, keyed by entity type.
KilledBy
minecraft:killed_by, keyed by entity type.
Custom
minecraft:custom, keyed by custom stat (minecraft:jump…).
Implementations§
Trait Implementations§
impl Copy for StatType
impl Eq for StatType
impl StructuralPartialEq for StatType
Auto Trait Implementations§
impl Freeze for StatType
impl RefUnwindSafe for StatType
impl Send for StatType
impl Sync for StatType
impl Unpin for StatType
impl UnsafeUnpin for StatType
impl UnwindSafe for StatType
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