#[repr(u32)]pub enum EntityKind {
Show 157 variants
AcaciaBoat = 0,
AcaciaChestBoat = 1,
Allay = 2,
AreaEffectCloud = 3,
Armadillo = 4,
ArmorStand = 5,
Arrow = 6,
Axolotl = 7,
BambooChestRaft = 8,
BambooRaft = 9,
Bat = 10,
Bee = 11,
BirchBoat = 12,
BirchChestBoat = 13,
Blaze = 14,
BlockDisplay = 15,
Bogged = 16,
Breeze = 17,
BreezeWindCharge = 18,
Camel = 19,
CamelHusk = 20,
Cat = 21,
CaveSpider = 22,
CherryBoat = 23,
CherryChestBoat = 24,
ChestMinecart = 25,
Chicken = 26,
Cod = 27,
CopperGolem = 28,
CommandBlockMinecart = 29,
Cow = 30,
Creaking = 31,
Creeper = 32,
DarkOakBoat = 33,
DarkOakChestBoat = 34,
Dolphin = 35,
Donkey = 36,
DragonFireball = 37,
Drowned = 38,
Egg = 39,
ElderGuardian = 40,
Enderman = 41,
Endermite = 42,
EnderDragon = 43,
EnderPearl = 44,
EndCrystal = 45,
Evoker = 46,
EvokerFangs = 47,
ExperienceBottle = 48,
ExperienceOrb = 49,
EyeOfEnder = 50,
FallingBlock = 51,
Fireball = 52,
FireworkRocket = 53,
Fox = 54,
Frog = 55,
FurnaceMinecart = 56,
Ghast = 57,
HappyGhast = 58,
Giant = 59,
GlowItemFrame = 60,
GlowSquid = 61,
Goat = 62,
Guardian = 63,
Hoglin = 64,
HopperMinecart = 65,
Horse = 66,
Husk = 67,
Illusioner = 68,
Interaction = 69,
IronGolem = 70,
Item = 71,
ItemDisplay = 72,
ItemFrame = 73,
JungleBoat = 74,
JungleChestBoat = 75,
LeashKnot = 76,
LightningBolt = 77,
Llama = 78,
LlamaSpit = 79,
MagmaCube = 80,
MangroveBoat = 81,
MangroveChestBoat = 82,
Mannequin = 83,
Marker = 84,
Minecart = 85,
Mooshroom = 86,
Mule = 87,
Nautilus = 88,
OakBoat = 89,
OakChestBoat = 90,
Ocelot = 91,
OminousItemSpawner = 92,
Painting = 93,
PaleOakBoat = 94,
PaleOakChestBoat = 95,
Panda = 96,
Parched = 97,
Parrot = 98,
Phantom = 99,
Pig = 100,
Piglin = 101,
PiglinBrute = 102,
Pillager = 103,
PolarBear = 104,
SplashPotion = 105,
LingeringPotion = 106,
Pufferfish = 107,
Rabbit = 108,
Ravager = 109,
Salmon = 110,
Sheep = 111,
Shulker = 112,
ShulkerBullet = 113,
Silverfish = 114,
Skeleton = 115,
SkeletonHorse = 116,
Slime = 117,
SmallFireball = 118,
Sniffer = 119,
Snowball = 120,
SnowGolem = 121,
SpawnerMinecart = 122,
SpectralArrow = 123,
Spider = 124,
SpruceBoat = 125,
SpruceChestBoat = 126,
Squid = 127,
Stray = 128,
Strider = 129,
Tadpole = 130,
TextDisplay = 131,
Tnt = 132,
TntMinecart = 133,
TraderLlama = 134,
Trident = 135,
TropicalFish = 136,
Turtle = 137,
Vex = 138,
Villager = 139,
Vindicator = 140,
WanderingTrader = 141,
Warden = 142,
WindCharge = 143,
Witch = 144,
Wither = 145,
WitherSkeleton = 146,
WitherSkull = 147,
Wolf = 148,
Zoglin = 149,
Zombie = 150,
ZombieHorse = 151,
ZombieNautilus = 152,
ZombieVillager = 153,
ZombifiedPiglin = 154,
Player = 155,
FishingBobber = 156,
}Expand description
An enum that contains every type of entity.
Variants§
AcaciaBoat = 0
AcaciaChestBoat = 1
Allay = 2
AreaEffectCloud = 3
Armadillo = 4
ArmorStand = 5
Arrow = 6
Axolotl = 7
BambooChestRaft = 8
BambooRaft = 9
Bat = 10
Bee = 11
BirchBoat = 12
BirchChestBoat = 13
Blaze = 14
BlockDisplay = 15
Bogged = 16
Breeze = 17
BreezeWindCharge = 18
Camel = 19
CamelHusk = 20
Cat = 21
CaveSpider = 22
CherryBoat = 23
CherryChestBoat = 24
ChestMinecart = 25
Chicken = 26
Cod = 27
CopperGolem = 28
CommandBlockMinecart = 29
Cow = 30
Creaking = 31
Creeper = 32
DarkOakBoat = 33
DarkOakChestBoat = 34
Dolphin = 35
Donkey = 36
DragonFireball = 37
Drowned = 38
Egg = 39
ElderGuardian = 40
Enderman = 41
Endermite = 42
EnderDragon = 43
EnderPearl = 44
EndCrystal = 45
Evoker = 46
EvokerFangs = 47
ExperienceBottle = 48
ExperienceOrb = 49
EyeOfEnder = 50
FallingBlock = 51
Fireball = 52
FireworkRocket = 53
Fox = 54
Frog = 55
FurnaceMinecart = 56
Ghast = 57
HappyGhast = 58
Giant = 59
GlowItemFrame = 60
GlowSquid = 61
Goat = 62
Guardian = 63
Hoglin = 64
HopperMinecart = 65
Horse = 66
Husk = 67
Illusioner = 68
Interaction = 69
IronGolem = 70
Item = 71
ItemDisplay = 72
ItemFrame = 73
JungleBoat = 74
JungleChestBoat = 75
LeashKnot = 76
LightningBolt = 77
Llama = 78
LlamaSpit = 79
MagmaCube = 80
MangroveBoat = 81
MangroveChestBoat = 82
Mannequin = 83
Marker = 84
Minecart = 85
Mooshroom = 86
Mule = 87
Nautilus = 88
OakBoat = 89
OakChestBoat = 90
Ocelot = 91
OminousItemSpawner = 92
Painting = 93
PaleOakBoat = 94
PaleOakChestBoat = 95
Panda = 96
Parched = 97
Parrot = 98
Phantom = 99
Pig = 100
Piglin = 101
PiglinBrute = 102
Pillager = 103
PolarBear = 104
SplashPotion = 105
LingeringPotion = 106
Pufferfish = 107
Rabbit = 108
Ravager = 109
Salmon = 110
Sheep = 111
Shulker = 112
ShulkerBullet = 113
Silverfish = 114
Skeleton = 115
SkeletonHorse = 116
Slime = 117
SmallFireball = 118
Sniffer = 119
Snowball = 120
SnowGolem = 121
SpawnerMinecart = 122
SpectralArrow = 123
Spider = 124
SpruceBoat = 125
SpruceChestBoat = 126
Squid = 127
Stray = 128
Strider = 129
Tadpole = 130
TextDisplay = 131
Tnt = 132
TntMinecart = 133
TraderLlama = 134
Trident = 135
TropicalFish = 136
Turtle = 137
Vex = 138
Villager = 139
Vindicator = 140
WanderingTrader = 141
Warden = 142
WindCharge = 143
Witch = 144
Wither = 145
WitherSkeleton = 146
WitherSkull = 147
Wolf = 148
Zoglin = 149
Zombie = 150
ZombieHorse = 151
ZombieNautilus = 152
ZombieVillager = 153
ZombifiedPiglin = 154
Player = 155
FishingBobber = 156
Implementations§
Source§impl EntityKind
impl EntityKind
pub fn azalea_read_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl EntityKind
impl EntityKind
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 AzaleaRead for EntityKind
impl AzaleaRead for EntityKind
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl AzaleaWrite for EntityKind
impl AzaleaWrite for EntityKind
Source§impl Clone for EntityKind
impl Clone for EntityKind
Source§fn clone(&self) -> EntityKind
fn clone(&self) -> EntityKind
Returns a duplicate 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 EntityKind
impl Debug for EntityKind
Source§impl<'de> Deserialize<'de> for EntityKind
Available on crate feature serde only.
impl<'de> Deserialize<'de> for EntityKind
Available on crate feature
serde only.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 EntityKind
impl Display for EntityKind
Source§impl FromNbtTag for EntityKind
impl FromNbtTag for EntityKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for EntityKind
impl FromStr for EntityKind
Source§impl Hash for EntityKind
impl Hash for EntityKind
Source§impl Ord for EntityKind
impl Ord for EntityKind
Source§fn cmp(&self, other: &EntityKind) -> Ordering
fn cmp(&self, other: &EntityKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EntityKind
impl PartialEq for EntityKind
Source§impl PartialOrd for EntityKind
impl PartialOrd for EntityKind
Source§impl Registry for EntityKind
impl Registry for EntityKind
Source§impl Serialize for EntityKind
Available on crate feature serde only.
impl Serialize for EntityKind
Available on crate feature
serde only.Source§impl ToNbtTag for EntityKind
impl ToNbtTag for EntityKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for EntityKind
impl TryFrom<u32> for EntityKind
impl Copy for EntityKind
impl Eq for EntityKind
impl StructuralPartialEq for EntityKind
Auto Trait Implementations§
impl Freeze for EntityKind
impl RefUnwindSafe for EntityKind
impl Send for EntityKind
impl Sync for EntityKind
impl Unpin for EntityKind
impl UnwindSafe for EntityKind
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.