Enum memory_module_type

Source
#[repr(u8)]
pub enum memory_module_type {
Show 106 variants dummy = 0, home = 1, job_site = 2, potential_job_site = 3, meeting_point = 4, secondary_job_site = 5, mobs = 6, visible_mobs = 7, visible_villager_babies = 8, nearest_players = 9, nearest_visible_player = 10, nearest_visible_targetable_player = 11, walk_target = 12, look_target = 13, attack_target = 14, attack_cooling_down = 15, interaction_target = 16, breed_target = 17, ride_target = 18, path = 19, interactable_doors = 20, doors_to_close = 21, nearest_bed = 22, hurt_by = 23, hurt_by_entity = 24, avoid_target = 25, nearest_hostile = 26, nearest_attackable = 27, hiding_place = 28, heard_bell_time = 29, cant_reach_walk_target_since = 30, golem_detected_recently = 31, danger_detected_recently = 32, last_slept = 33, last_woken = 34, last_worked_at_poi = 35, nearest_visible_adult = 36, nearest_visible_wanted_item = 37, nearest_visible_nemesis = 38, play_dead_ticks = 39, tempting_player = 40, temptation_cooldown_ticks = 41, gaze_cooldown_ticks = 42, is_tempted = 43, long_jump_cooling_down = 44, long_jump_mid_jump = 45, has_hunting_cooldown = 46, ram_cooldown_ticks = 47, ram_target = 48, is_in_water = 49, is_pregnant = 50, is_panicking = 51, unreachable_tongue_targets = 52, angry_at = 53, universal_anger = 54, admiring_item = 55, time_trying_to_reach_admire_item = 56, disable_walk_to_admire_item = 57, admiring_disabled = 58, hunted_recently = 59, celebrate_location = 60, dancing = 61, nearest_visible_huntable_hoglin = 62, nearest_visible_baby_hoglin = 63, nearest_targetable_player_not_wearing_gold = 64, nearby_adult_piglins = 65, nearest_visible_adult_piglins = 66, nearest_visible_adult_hoglins = 67, nearest_visible_adult_piglin = 68, nearest_visible_zombified = 69, visible_adult_piglin_count = 70, visible_adult_hoglin_count = 71, nearest_player_holding_wanted_item = 72, ate_recently = 73, nearest_repellent = 74, pacified = 75, roar_target = 76, disturbance_location = 77, recent_projectile = 78, is_sniffing = 79, is_emerging = 80, roar_sound_delay = 81, dig_cooldown = 82, roar_sound_cooldown = 83, sniff_cooldown = 84, touch_cooldown = 85, vibration_cooldown = 86, sonic_boom_cooldown = 87, sonic_boom_sound_cooldown = 88, sonic_boom_sound_delay = 89, liked_player = 90, liked_noteblock = 91, liked_noteblock_cooldown_ticks = 92, item_pickup_cooldown_ticks = 93, sniffer_explored_positions = 94, sniffer_sniffing_target = 95, sniffer_digging = 96, sniffer_happy = 97, breeze_jump_cooldown = 98, breeze_shoot = 99, breeze_shoot_charging = 100, breeze_shoot_recover = 101, breeze_shoot_cooldown = 102, breeze_jump_inhaling = 103, breeze_jump_target = 104, breeze_leaving_water = 105,
}

Variants§

§

dummy = 0

§

home = 1

§

job_site = 2

§

potential_job_site = 3

§

meeting_point = 4

§

secondary_job_site = 5

§

mobs = 6

§

visible_mobs = 7

§

visible_villager_babies = 8

§

nearest_players = 9

§

nearest_visible_player = 10

§

nearest_visible_targetable_player = 11

§

walk_target = 12

§

look_target = 13

§

attack_target = 14

§

attack_cooling_down = 15

§

interaction_target = 16

§

breed_target = 17

§

ride_target = 18

§

path = 19

§

interactable_doors = 20

§

doors_to_close = 21

§

nearest_bed = 22

§

hurt_by = 23

§

hurt_by_entity = 24

§

avoid_target = 25

§

nearest_hostile = 26

§

nearest_attackable = 27

§

hiding_place = 28

§

heard_bell_time = 29

§

cant_reach_walk_target_since = 30

§

golem_detected_recently = 31

§

danger_detected_recently = 32

§

last_slept = 33

§

last_woken = 34

§

last_worked_at_poi = 35

§

nearest_visible_adult = 36

§

nearest_visible_wanted_item = 37

§

nearest_visible_nemesis = 38

§

play_dead_ticks = 39

§

tempting_player = 40

§

temptation_cooldown_ticks = 41

§

gaze_cooldown_ticks = 42

§

is_tempted = 43

§

long_jump_cooling_down = 44

§

long_jump_mid_jump = 45

§

has_hunting_cooldown = 46

§

ram_cooldown_ticks = 47

§

ram_target = 48

§

is_in_water = 49

§

is_pregnant = 50

§

is_panicking = 51

§

unreachable_tongue_targets = 52

§

angry_at = 53

§

universal_anger = 54

§

admiring_item = 55

§

time_trying_to_reach_admire_item = 56

§

disable_walk_to_admire_item = 57

§

admiring_disabled = 58

§

hunted_recently = 59

§

celebrate_location = 60

§

dancing = 61

§

nearest_visible_huntable_hoglin = 62

§

nearest_visible_baby_hoglin = 63

§

nearest_targetable_player_not_wearing_gold = 64

§

nearby_adult_piglins = 65

§

nearest_visible_adult_piglins = 66

§

nearest_visible_adult_hoglins = 67

§

nearest_visible_adult_piglin = 68

§

nearest_visible_zombified = 69

§

visible_adult_piglin_count = 70

§

visible_adult_hoglin_count = 71

§

nearest_player_holding_wanted_item = 72

§

ate_recently = 73

§

nearest_repellent = 74

§

pacified = 75

§

roar_target = 76

§

disturbance_location = 77

§

recent_projectile = 78

§

is_sniffing = 79

§

is_emerging = 80

§

roar_sound_delay = 81

§

dig_cooldown = 82

§

roar_sound_cooldown = 83

§

sniff_cooldown = 84

§

touch_cooldown = 85

§

vibration_cooldown = 86

§

sonic_boom_cooldown = 87

§

sonic_boom_sound_cooldown = 88

§

sonic_boom_sound_delay = 89

§

liked_player = 90

§

liked_noteblock = 91

§

liked_noteblock_cooldown_ticks = 92

§

item_pickup_cooldown_ticks = 93

§

sniffer_explored_positions = 94

§

sniffer_sniffing_target = 95

§

sniffer_digging = 96

§

sniffer_happy = 97

§

breeze_jump_cooldown = 98

§

breeze_shoot = 99

§

breeze_shoot_charging = 100

§

breeze_shoot_recover = 101

§

breeze_shoot_cooldown = 102

§

breeze_jump_inhaling = 103

§

breeze_jump_target = 104

§

breeze_leaving_water = 105

Implementations§

Source§

impl memory_module_type

Source

pub const fn id(self) -> u8

Source

pub const fn new(x: u8) -> Self

Source§

impl memory_module_type

Source

pub const MAX: usize = 105usize

Source§

impl memory_module_type

Source

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

Source

pub fn parse(name: &[u8]) -> Option<Self>

Trait Implementations§

Source§

impl Clone for memory_module_type

Source§

fn clone(&self) -> memory_module_type

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for memory_module_type

Source§

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

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

impl Display for memory_module_type

Source§

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

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

impl Hash for memory_module_type

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 PartialEq for memory_module_type

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Read for memory_module_type

Source§

fn read(n: &mut &[u8]) -> Option<Self>

Source§

impl Write for memory_module_type

Source§

unsafe fn sz(&self) -> usize

Safety Read more
Source§

unsafe fn write(&self, w: &mut UnsafeWriter)

Safety Read more
Source§

impl Copy for memory_module_type

Source§

impl Eq for memory_module_type

Source§

impl StructuralPartialEq for memory_module_type

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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.