#[repr(u32)]pub enum EntitySubPredicateKind {
Show 20 variants
Lightning = 0,
FishingHook = 1,
Player = 2,
Slime = 3,
Raider = 4,
Sheep = 5,
Axolotl = 6,
Fox = 7,
Mooshroom = 8,
Rabbit = 9,
Horse = 10,
Llama = 11,
Villager = 12,
Parrot = 13,
Salmon = 14,
TropicalFish = 15,
Painting = 16,
Cat = 17,
Frog = 18,
Wolf = 19,
}
Variants§
Lightning = 0
FishingHook = 1
Player = 2
Slime = 3
Raider = 4
Sheep = 5
Axolotl = 6
Fox = 7
Mooshroom = 8
Rabbit = 9
Horse = 10
Llama = 11
Villager = 12
Parrot = 13
Salmon = 14
TropicalFish = 15
Painting = 16
Cat = 17
Frog = 18
Wolf = 19
Implementations§
Source§impl EntitySubPredicateKind
impl EntitySubPredicateKind
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl EntitySubPredicateKind
impl EntitySubPredicateKind
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 EntitySubPredicateKind
impl Clone for EntitySubPredicateKind
Source§fn clone(&self) -> EntitySubPredicateKind
fn clone(&self) -> EntitySubPredicateKind
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 EntitySubPredicateKind
impl Debug for EntitySubPredicateKind
Source§impl<'de> Deserialize<'de> for EntitySubPredicateKind
impl<'de> Deserialize<'de> for EntitySubPredicateKind
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 EntitySubPredicateKind
impl Display for EntitySubPredicateKind
Source§impl FromNbtTag for EntitySubPredicateKind
impl FromNbtTag for EntitySubPredicateKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for EntitySubPredicateKind
impl FromStr for EntitySubPredicateKind
Source§impl Hash for EntitySubPredicateKind
impl Hash for EntitySubPredicateKind
Source§impl PartialEq for EntitySubPredicateKind
impl PartialEq for EntitySubPredicateKind
Source§impl Registry for EntitySubPredicateKind
impl Registry for EntitySubPredicateKind
Source§impl Serialize for EntitySubPredicateKind
impl Serialize for EntitySubPredicateKind
Source§impl ToNbtTag for EntitySubPredicateKind
impl ToNbtTag for EntitySubPredicateKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for EntitySubPredicateKind
impl TryFrom<u32> for EntitySubPredicateKind
impl Copy for EntitySubPredicateKind
impl Eq for EntitySubPredicateKind
impl StructuralPartialEq for EntitySubPredicateKind
Auto Trait Implementations§
impl Freeze for EntitySubPredicateKind
impl RefUnwindSafe for EntitySubPredicateKind
impl Send for EntitySubPredicateKind
impl Sync for EntitySubPredicateKind
impl Unpin for EntitySubPredicateKind
impl UnwindSafe for EntitySubPredicateKind
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
)