#[repr(u32)]pub enum MemoryModuleKind {
Show 106 variants
Dummy = 0,
Home = 1,
JobSite = 2,
PotentialJobSite = 3,
MeetingPoint = 4,
SecondaryJobSite = 5,
Mobs = 6,
VisibleMobs = 7,
VisibleVillagerBabies = 8,
NearestPlayers = 9,
NearestVisiblePlayer = 10,
NearestVisibleTargetablePlayer = 11,
WalkTarget = 12,
LookTarget = 13,
AttackTarget = 14,
AttackCoolingDown = 15,
InteractionTarget = 16,
BreedTarget = 17,
RideTarget = 18,
Path = 19,
InteractableDoors = 20,
DoorsToClose = 21,
NearestBed = 22,
HurtBy = 23,
HurtByEntity = 24,
AvoidTarget = 25,
NearestHostile = 26,
NearestAttackable = 27,
HidingPlace = 28,
HeardBellTime = 29,
CantReachWalkTargetSince = 30,
GolemDetectedRecently = 31,
DangerDetectedRecently = 32,
LastSlept = 33,
LastWoken = 34,
LastWorkedAtPoi = 35,
NearestVisibleAdult = 36,
NearestVisibleWantedItem = 37,
NearestVisibleNemesis = 38,
PlayDeadTicks = 39,
TemptingPlayer = 40,
TemptationCooldownTicks = 41,
GazeCooldownTicks = 42,
IsTempted = 43,
LongJumpCoolingDown = 44,
LongJumpMidJump = 45,
HasHuntingCooldown = 46,
RamCooldownTicks = 47,
RamTarget = 48,
IsInWater = 49,
IsPregnant = 50,
IsPanicking = 51,
UnreachableTongueTargets = 52,
AngryAt = 53,
UniversalAnger = 54,
AdmiringItem = 55,
TimeTryingToReachAdmireItem = 56,
DisableWalkToAdmireItem = 57,
AdmiringDisabled = 58,
HuntedRecently = 59,
CelebrateLocation = 60,
Dancing = 61,
NearestVisibleHuntableHoglin = 62,
NearestVisibleBabyHoglin = 63,
NearestTargetablePlayerNotWearingGold = 64,
NearbyAdultPiglins = 65,
NearestVisibleAdultPiglins = 66,
NearestVisibleAdultHoglins = 67,
NearestVisibleAdultPiglin = 68,
NearestVisibleZombified = 69,
VisibleAdultPiglinCount = 70,
VisibleAdultHoglinCount = 71,
NearestPlayerHoldingWantedItem = 72,
AteRecently = 73,
NearestRepellent = 74,
Pacified = 75,
RoarTarget = 76,
DisturbanceLocation = 77,
RecentProjectile = 78,
IsSniffing = 79,
IsEmerging = 80,
RoarSoundDelay = 81,
DigCooldown = 82,
RoarSoundCooldown = 83,
SniffCooldown = 84,
TouchCooldown = 85,
VibrationCooldown = 86,
SonicBoomCooldown = 87,
SonicBoomSoundCooldown = 88,
SonicBoomSoundDelay = 89,
LikedPlayer = 90,
LikedNoteblock = 91,
LikedNoteblockCooldownTicks = 92,
ItemPickupCooldownTicks = 93,
SnifferExploredPositions = 94,
SnifferSniffingTarget = 95,
SnifferDigging = 96,
SnifferHappy = 97,
BreezeJumpCooldown = 98,
BreezeShoot = 99,
BreezeShootCharging = 100,
BreezeShootRecover = 101,
BreezeShootCooldown = 102,
BreezeJumpInhaling = 103,
BreezeJumpTarget = 104,
BreezeLeavingWater = 105,
}
Variants§
Dummy = 0
Home = 1
JobSite = 2
PotentialJobSite = 3
MeetingPoint = 4
SecondaryJobSite = 5
Mobs = 6
VisibleMobs = 7
VisibleVillagerBabies = 8
NearestPlayers = 9
NearestVisiblePlayer = 10
NearestVisibleTargetablePlayer = 11
WalkTarget = 12
LookTarget = 13
AttackTarget = 14
AttackCoolingDown = 15
InteractionTarget = 16
BreedTarget = 17
RideTarget = 18
Path = 19
InteractableDoors = 20
DoorsToClose = 21
NearestBed = 22
HurtBy = 23
HurtByEntity = 24
AvoidTarget = 25
NearestHostile = 26
NearestAttackable = 27
HidingPlace = 28
HeardBellTime = 29
CantReachWalkTargetSince = 30
GolemDetectedRecently = 31
DangerDetectedRecently = 32
LastSlept = 33
LastWoken = 34
LastWorkedAtPoi = 35
NearestVisibleAdult = 36
NearestVisibleWantedItem = 37
NearestVisibleNemesis = 38
PlayDeadTicks = 39
TemptingPlayer = 40
TemptationCooldownTicks = 41
GazeCooldownTicks = 42
IsTempted = 43
LongJumpCoolingDown = 44
LongJumpMidJump = 45
HasHuntingCooldown = 46
RamCooldownTicks = 47
RamTarget = 48
IsInWater = 49
IsPregnant = 50
IsPanicking = 51
UnreachableTongueTargets = 52
AngryAt = 53
UniversalAnger = 54
AdmiringItem = 55
TimeTryingToReachAdmireItem = 56
DisableWalkToAdmireItem = 57
AdmiringDisabled = 58
HuntedRecently = 59
CelebrateLocation = 60
Dancing = 61
NearestVisibleHuntableHoglin = 62
NearestVisibleBabyHoglin = 63
NearestTargetablePlayerNotWearingGold = 64
NearbyAdultPiglins = 65
NearestVisibleAdultPiglins = 66
NearestVisibleAdultHoglins = 67
NearestVisibleAdultPiglin = 68
NearestVisibleZombified = 69
VisibleAdultPiglinCount = 70
VisibleAdultHoglinCount = 71
NearestPlayerHoldingWantedItem = 72
AteRecently = 73
NearestRepellent = 74
Pacified = 75
RoarTarget = 76
DisturbanceLocation = 77
RecentProjectile = 78
IsSniffing = 79
IsEmerging = 80
RoarSoundDelay = 81
DigCooldown = 82
RoarSoundCooldown = 83
SniffCooldown = 84
TouchCooldown = 85
VibrationCooldown = 86
SonicBoomCooldown = 87
SonicBoomSoundCooldown = 88
SonicBoomSoundDelay = 89
LikedPlayer = 90
LikedNoteblock = 91
LikedNoteblockCooldownTicks = 92
ItemPickupCooldownTicks = 93
SnifferExploredPositions = 94
SnifferSniffingTarget = 95
SnifferDigging = 96
SnifferHappy = 97
BreezeJumpCooldown = 98
BreezeShoot = 99
BreezeShootCharging = 100
BreezeShootRecover = 101
BreezeShootCooldown = 102
BreezeJumpInhaling = 103
BreezeJumpTarget = 104
BreezeLeavingWater = 105
Implementations§
Source§impl MemoryModuleKind
impl MemoryModuleKind
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl MemoryModuleKind
impl MemoryModuleKind
Sourcepub unsafe fn from_u32_unchecked(id: u32) -> Self
pub unsafe fn from_u32_unchecked(id: u32) -> Self
pub fn is_valid_id(id: u32) -> bool
Trait Implementations§
Source§impl Clone for MemoryModuleKind
impl Clone for MemoryModuleKind
Source§fn clone(&self) -> MemoryModuleKind
fn clone(&self) -> MemoryModuleKind
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 MemoryModuleKind
impl Debug for MemoryModuleKind
Source§impl<'de> Deserialize<'de> for MemoryModuleKind
impl<'de> Deserialize<'de> for MemoryModuleKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MemoryModuleKind
impl Display for MemoryModuleKind
Source§impl FromNbtTag for MemoryModuleKind
impl FromNbtTag for MemoryModuleKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for MemoryModuleKind
impl FromStr for MemoryModuleKind
Source§impl Hash for MemoryModuleKind
impl Hash for MemoryModuleKind
Source§impl McBufReadable for MemoryModuleKind
impl McBufReadable for MemoryModuleKind
Source§impl McBufWritable for MemoryModuleKind
impl McBufWritable for MemoryModuleKind
Source§impl PartialEq for MemoryModuleKind
impl PartialEq for MemoryModuleKind
Source§impl Registry for MemoryModuleKind
impl Registry for MemoryModuleKind
Source§impl Serialize for MemoryModuleKind
impl Serialize for MemoryModuleKind
Source§impl ToNbtTag for MemoryModuleKind
impl ToNbtTag for MemoryModuleKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for MemoryModuleKind
impl TryFrom<u32> for MemoryModuleKind
impl Copy for MemoryModuleKind
impl Eq for MemoryModuleKind
impl StructuralPartialEq for MemoryModuleKind
Auto Trait Implementations§
impl Freeze for MemoryModuleKind
impl RefUnwindSafe for MemoryModuleKind
impl Send for MemoryModuleKind
impl Sync for MemoryModuleKind
impl Unpin for MemoryModuleKind
impl UnwindSafe for MemoryModuleKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)