Skip to main content

SlotComponentType

Struct SlotComponentType 

Source
#[non_exhaustive]
pub struct SlotComponentType(pub i32);
Expand description

Mapped i32 value; unknown values are kept as-is.

Tuple Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§0: i32

Implementations§

Source§

impl SlotComponentType

Source

pub const CUSTOM_DATA: Self

custom_data

Source

pub const MAX_STACK_SIZE: Self

max_stack_size

Source

pub const MAX_DAMAGE: Self

max_damage

Source

pub const DAMAGE: Self

damage

Source

pub const UNBREAKABLE: Self

unbreakable

Source

pub const USE_EFFECTS: Self

use_effects

Source

pub const CUSTOM_NAME: Self

custom_name

Source

pub const MINIMUM_ATTACK_CHARGE: Self

minimum_attack_charge

Source

pub const DAMAGE_TYPE: Self

damage_type

Source

pub const ITEM_NAME: Self

item_name

Source

pub const ITEM_MODEL: Self

item_model

Source

pub const LORE: Self

lore

Source

pub const RARITY: Self

rarity

Source

pub const ENCHANTMENTS: Self

enchantments

Source

pub const CAN_PLACE_ON: Self

can_place_on

Source

pub const CAN_BREAK: Self

can_break

Source

pub const ATTRIBUTE_MODIFIERS: Self

attribute_modifiers

Source

pub const CUSTOM_MODEL_DATA: Self

custom_model_data

Source

pub const TOOLTIP_DISPLAY: Self

tooltip_display

Source

pub const REPAIR_COST: Self

repair_cost

Source

pub const CREATIVE_SLOT_LOCK: Self

creative_slot_lock

Source

pub const ENCHANTMENT_GLINT_OVERRIDE: Self

enchantment_glint_override

Source

pub const INTANGIBLE_PROJECTILE: Self

intangible_projectile

Source

pub const FOOD: Self

food

Source

pub const CONSUMABLE: Self

consumable

Source

pub const USE_REMAINDER: Self

use_remainder

Source

pub const USE_COOLDOWN: Self

use_cooldown

Source

pub const DAMAGE_RESISTANT: Self

damage_resistant

Source

pub const TOOL: Self

tool

Source

pub const WEAPON: Self

weapon

Source

pub const ATTACK_RANGE: Self

attack_range

Source

pub const ENCHANTABLE: Self

enchantable

Source

pub const EQUIPPABLE: Self

equippable

Source

pub const REPAIRABLE: Self

repairable

Source

pub const GLIDER: Self

glider

Source

pub const TOOLTIP_STYLE: Self

tooltip_style

Source

pub const DEATH_PROTECTION: Self

death_protection

Source

pub const BLOCKS_ATTACKS: Self

blocks_attacks

Source

pub const PIERCING_WEAPON: Self

piercing_weapon

Source

pub const KINETIC_WEAPON: Self

kinetic_weapon

Source

pub const SWING_ANIMATION: Self

swing_animation

Source

pub const ADDITIONAL_TRADE_COST: Self

additional_trade_cost

Source

pub const STORED_ENCHANTMENTS: Self

stored_enchantments

Source

pub const DYE: Self

dye

Source

pub const DYED_COLOR: Self

dyed_color

Source

pub const MAP_COLOR: Self

map_color

Source

pub const MAP_ID: Self

map_id

Source

pub const MAP_DECORATIONS: Self

map_decorations

Source

pub const MAP_POST_PROCESSING: Self

map_post_processing

Source

pub const CHARGED_PROJECTILES: Self

charged_projectiles

Source

pub const BUNDLE_CONTENTS: Self

bundle_contents

Source

pub const POTION_CONTENTS: Self

potion_contents

Source

pub const POTION_DURATION_SCALE: Self

potion_duration_scale

Source

pub const SUSPICIOUS_STEW_EFFECTS: Self

suspicious_stew_effects

Source

pub const WRITABLE_BOOK_CONTENT: Self

writable_book_content

Source

pub const WRITTEN_BOOK_CONTENT: Self

written_book_content

Source

pub const TRIM: Self

trim

Source

pub const DEBUG_STICK_STATE: Self

debug_stick_state

Source

pub const ENTITY_DATA: Self

entity_data

Source

pub const BUCKET_ENTITY_DATA: Self

bucket_entity_data

Source

pub const BLOCK_ENTITY_DATA: Self

block_entity_data

Source

pub const INSTRUMENT: Self

instrument

Source

pub const PROVIDES_TRIM_MATERIAL: Self

provides_trim_material

Source

pub const OMINOUS_BOTTLE_AMPLIFIER: Self

ominous_bottle_amplifier

Source

pub const JUKEBOX_PLAYABLE: Self

jukebox_playable

Source

pub const PROVIDES_BANNER_PATTERNS: Self

provides_banner_patterns

Source

pub const RECIPES: Self

recipes

Source

pub const LODESTONE_TRACKER: Self

lodestone_tracker

Source

pub const FIREWORK_EXPLOSION: Self

firework_explosion

Source

pub const FIREWORKS: Self

fireworks

Source

pub const PROFILE: Self

profile

Source

pub const NOTE_BLOCK_SOUND: Self

note_block_sound

Source

pub const BANNER_PATTERNS: Self

banner_patterns

Source

pub const BASE_COLOR: Self

base_color

Source

pub const POT_DECORATIONS: Self

pot_decorations

Source

pub const CONTAINER: Self

container

Source

pub const BLOCK_STATE: Self

block_state

Source

pub const BEES: Self

bees

Source

pub const SULFUR_CUBE_CONTENT: Self

sulfur_cube_content

Source

pub const LOCK: Self

lock

Source

pub const CONTAINER_LOOT: Self

container_loot

Source

pub const BREAK_SOUND: Self

break_sound

Source

pub const VILLAGER_VARIANT: Self

villager/variant

Source

pub const WOLF_VARIANT: Self

wolf/variant

Source

pub const WOLF_SOUND_VARIANT: Self

wolf/sound_variant

Source

pub const WOLF_COLLAR: Self

wolf/collar

Source

pub const FOX_VARIANT: Self

fox/variant

Source

pub const SALMON_SIZE: Self

salmon/size

Source

pub const PARROT_VARIANT: Self

parrot/variant

Source

pub const TROPICAL_FISH_PATTERN: Self

tropical_fish/pattern

Source

pub const TROPICAL_FISH_BASE_COLOR: Self

tropical_fish/base_color

Source

pub const TROPICAL_FISH_PATTERN_COLOR: Self

tropical_fish/pattern_color

Source

pub const MOOSHROOM_VARIANT: Self

mooshroom/variant

Source

pub const RABBIT_VARIANT: Self

rabbit/variant

Source

pub const PIG_VARIANT: Self

pig/variant

Source

pub const PIG_SOUND_VARIANT: Self

pig/sound_variant

Source

pub const COW_VARIANT: Self

cow/variant

Source

pub const COW_SOUND_VARIANT: Self

cow/sound_variant

Source

pub const CHICKEN_VARIANT: Self

chicken/variant

Source

pub const CHICKEN_SOUND_VARIANT: Self

chicken/sound_variant

Source

pub const ZOMBIE_NAUTILUS_VARIANT: Self

zombie_nautilus/variant

Source

pub const FROG_VARIANT: Self

frog/variant

Source

pub const HORSE_VARIANT: Self

horse/variant

Source

pub const PAINTING_VARIANT: Self

painting/variant

Source

pub const LLAMA_VARIANT: Self

llama/variant

Source

pub const AXOLOTL_VARIANT: Self

axolotl/variant

Source

pub const CAT_VARIANT: Self

cat/variant

Source

pub const CAT_SOUND_VARIANT: Self

cat/sound_variant

Source

pub const CAT_COLLAR: Self

cat/collar

Source

pub const SHEEP_COLOR: Self

sheep/color

Source

pub const SHULKER_COLOR: Self

shulker/color

Source

pub const fn new(v: i32) -> Self

The value with wire number v.

Source

pub const fn name(self) -> Option<&'static str>

minecraft-data name of the value, if known.

Trait Implementations§

Source§

impl Clone for SlotComponentType

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for SlotComponentType

Source§

impl Debug for SlotComponentType

Available on crate feature v26_2 only.
Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SlotComponentType

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for SlotComponentType

Source§

impl Hash for SlotComponentType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for SlotComponentType

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

fn clamp_to<R>(self, range: R) -> Self
where Self: Sized, R: ClampBounds<Self>,

🔬This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range. Read more
Source§

impl PartialEq for SlotComponentType

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for SlotComponentType

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for SlotComponentType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.