Enum minecraft_data::trigger_type
source · #[repr(u8)]pub enum trigger_type {
Show 52 variants
impossible = 0,
player_killed_entity = 1,
entity_killed_player = 2,
enter_block = 3,
inventory_changed = 4,
recipe_unlocked = 5,
player_hurt_entity = 6,
entity_hurt_player = 7,
enchanted_item = 8,
filled_bucket = 9,
brewed_potion = 10,
construct_beacon = 11,
used_ender_eye = 12,
summoned_entity = 13,
bred_animals = 14,
location = 15,
slept_in_bed = 16,
cured_zombie_villager = 17,
villager_trade = 18,
item_durability_changed = 19,
levitation = 20,
changed_dimension = 21,
tick = 22,
tame_animal = 23,
placed_block = 24,
consume_item = 25,
effects_changed = 26,
used_totem = 27,
nether_travel = 28,
fishing_rod_hooked = 29,
channeled_lightning = 30,
shot_crossbow = 31,
killed_by_crossbow = 32,
hero_of_the_village = 33,
voluntary_exile = 34,
slide_down_block = 35,
bee_nest_destroyed = 36,
target_hit = 37,
item_used_on_block = 38,
player_generates_container_loot = 39,
thrown_item_picked_up_by_entity = 40,
thrown_item_picked_up_by_player = 41,
player_interacted_with_entity = 42,
started_riding = 43,
lightning_strike = 44,
using_item = 45,
fall_from_height = 46,
ride_entity_in_lava = 47,
kill_mob_near_sculk_catalyst = 48,
allay_drop_item_on_block = 49,
avoid_vibration = 50,
recipe_crafted = 51,
}Variants§
impossible = 0
player_killed_entity = 1
entity_killed_player = 2
enter_block = 3
inventory_changed = 4
recipe_unlocked = 5
player_hurt_entity = 6
entity_hurt_player = 7
enchanted_item = 8
filled_bucket = 9
brewed_potion = 10
construct_beacon = 11
used_ender_eye = 12
summoned_entity = 13
bred_animals = 14
location = 15
slept_in_bed = 16
cured_zombie_villager = 17
villager_trade = 18
item_durability_changed = 19
levitation = 20
changed_dimension = 21
tick = 22
tame_animal = 23
placed_block = 24
consume_item = 25
effects_changed = 26
used_totem = 27
nether_travel = 28
fishing_rod_hooked = 29
channeled_lightning = 30
shot_crossbow = 31
killed_by_crossbow = 32
hero_of_the_village = 33
voluntary_exile = 34
slide_down_block = 35
bee_nest_destroyed = 36
target_hit = 37
item_used_on_block = 38
player_generates_container_loot = 39
thrown_item_picked_up_by_entity = 40
thrown_item_picked_up_by_player = 41
player_interacted_with_entity = 42
started_riding = 43
lightning_strike = 44
using_item = 45
fall_from_height = 46
ride_entity_in_lava = 47
kill_mob_near_sculk_catalyst = 48
allay_drop_item_on_block = 49
avoid_vibration = 50
recipe_crafted = 51
Implementations§
Trait Implementations§
source§impl Clone for trigger_type
impl Clone for trigger_type
source§fn clone(&self) -> trigger_type
fn clone(&self) -> trigger_type
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for trigger_type
impl Debug for trigger_type
source§impl Display for trigger_type
impl Display for trigger_type
source§impl Hash for trigger_type
impl Hash for trigger_type
source§impl PartialEq for trigger_type
impl PartialEq for trigger_type
source§fn eq(&self, other: &trigger_type) -> bool
fn eq(&self, other: &trigger_type) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Write for trigger_type
impl Write for trigger_type
impl Copy for trigger_type
impl Eq for trigger_type
impl StructuralEq for trigger_type
impl StructuralPartialEq for trigger_type
Auto Trait Implementations§
impl RefUnwindSafe for trigger_type
impl Send for trigger_type
impl Sync for trigger_type
impl Unpin for trigger_type
impl UnwindSafe for trigger_type
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