#[repr(u32)]pub enum Activity {
Show 26 variants
Core = 0,
Idle = 1,
Work = 2,
Play = 3,
Rest = 4,
Meet = 5,
Panic = 6,
Raid = 7,
PreRaid = 8,
Hide = 9,
Fight = 10,
Celebrate = 11,
AdmireItem = 12,
Avoid = 13,
Ride = 14,
PlayDead = 15,
LongJump = 16,
Ram = 17,
Tongue = 18,
Swim = 19,
LaySpawn = 20,
Sniff = 21,
Investigate = 22,
Roar = 23,
Emerge = 24,
Dig = 25,
}
Expand description
The AI code that’s currently being executed for the entity.
Variants§
Core = 0
Idle = 1
Work = 2
Play = 3
Rest = 4
Meet = 5
Panic = 6
Raid = 7
PreRaid = 8
Hide = 9
Fight = 10
Celebrate = 11
AdmireItem = 12
Avoid = 13
Ride = 14
PlayDead = 15
LongJump = 16
Ram = 17
Tongue = 18
Swim = 19
LaySpawn = 20
Sniff = 21
Investigate = 22
Roar = 23
Emerge = 24
Dig = 25
Implementations§
Source§impl Activity
impl Activity
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Activity
impl<'de> Deserialize<'de> for Activity
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 FromNbtTag for Activity
impl FromNbtTag for Activity
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl McBufReadable for Activity
impl McBufReadable for Activity
Source§impl McBufWritable for Activity
impl McBufWritable for Activity
Source§impl ToNbtTag for Activity
impl ToNbtTag for Activity
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
impl Copy for Activity
impl Eq for Activity
impl StructuralPartialEq for Activity
Auto Trait Implementations§
impl Freeze for Activity
impl RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl UnwindSafe for Activity
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
)