#[repr(u32)]pub enum EntityKind {
Show 158 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,
SulfurCube = 130,
Tadpole = 131,
TextDisplay = 132,
Tnt = 133,
TntMinecart = 134,
TraderLlama = 135,
Trident = 136,
TropicalFish = 137,
Turtle = 138,
Vex = 139,
Villager = 140,
Vindicator = 141,
WanderingTrader = 142,
Warden = 143,
WindCharge = 144,
Witch = 145,
Wither = 146,
WitherSkeleton = 147,
WitherSkull = 148,
Wolf = 149,
Zoglin = 150,
Zombie = 151,
ZombieHorse = 152,
ZombieNautilus = 153,
ZombieVillager = 154,
ZombifiedPiglin = 155,
Player = 156,
FishingBobber = 157,
}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
SulfurCube = 130
Tadpole = 131
TextDisplay = 132
Tnt = 133
TntMinecart = 134
TraderLlama = 135
Trident = 136
TropicalFish = 137
Turtle = 138
Vex = 139
Villager = 140
Vindicator = 141
WanderingTrader = 142
Warden = 143
WindCharge = 144
Witch = 145
Wither = 146
WitherSkeleton = 147
WitherSkull = 148
Wolf = 149
Zoglin = 150
Zombie = 151
ZombieHorse = 152
ZombieNautilus = 153
ZombieVillager = 154
ZombifiedPiglin = 155
Player = 156
FishingBobber = 157
Implementations§
Source§impl EntityKind
impl EntityKind
Sourcepub unsafe fn from_u32_unchecked(id: u32) -> Self
pub unsafe fn from_u32_unchecked(id: u32) -> Self
pub const fn is_valid_id(id: u32) -> bool
Trait Implementations§
Source§impl AzBuf for EntityKind
impl AzBuf for EntityKind
fn azalea_write(&self, buf: &mut impl Write) -> Result<(), Error>
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EntityKind
Source§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
impl Eq for EntityKind
Source§impl<'a> From<EntityKind> for Identifier
impl<'a> From<EntityKind> for Identifier
Source§fn from(value: EntityKind) -> Self
fn from(value: EntityKind) -> Self
Converts to this type from the input type.
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
Parse the value from a stringified identifier, formatted like
either "air" or "minecraft:air".
impl FromStr for EntityKind
Parse the value from a stringified identifier, formatted like
either "air" or "minecraft:air".
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 (const: unstable) · 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§fn eq(&self, other: &EntityKind) -> bool
fn eq(&self, other: &EntityKind) -> bool
Tests for
self and other values to be equal, and is used by ==.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.impl StructuralPartialEq for EntityKind
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<'a> TryFrom<&'a Identifier> for EntityKind
impl<'a> TryFrom<&'a Identifier> 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 UnsafeUnpin 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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
Checks if this value is equivalent to the given key. Read more
§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.