#[repr(u8)]
pub enum entity_type {
Show 127 variants allay = 0, area_effect_cloud = 1, armadillo = 2, armor_stand = 3, arrow = 4, axolotl = 5, bat = 6, bee = 7, blaze = 8, block_display = 9, boat = 10, breeze = 11, camel = 12, cat = 13, cave_spider = 14, chest_boat = 15, chest_minecart = 16, chicken = 17, cod = 18, command_block_minecart = 19, cow = 20, creeper = 21, dolphin = 22, donkey = 23, dragon_fireball = 24, drowned = 25, egg = 26, elder_guardian = 27, end_crystal = 28, ender_dragon = 29, ender_pearl = 30, enderman = 31, endermite = 32, evoker = 33, evoker_fangs = 34, experience_bottle = 35, experience_orb = 36, eye_of_ender = 37, falling_block = 38, firework_rocket = 39, fox = 40, frog = 41, furnace_minecart = 42, ghast = 43, giant = 44, glow_item_frame = 45, glow_squid = 46, goat = 47, guardian = 48, hoglin = 49, hopper_minecart = 50, horse = 51, husk = 52, illusioner = 53, interaction = 54, iron_golem = 55, item = 56, item_display = 57, item_frame = 58, fireball = 59, leash_knot = 60, lightning_bolt = 61, llama = 62, llama_spit = 63, magma_cube = 64, marker = 65, minecart = 66, mooshroom = 67, mule = 68, ocelot = 69, painting = 70, panda = 71, parrot = 72, phantom = 73, pig = 74, piglin = 75, piglin_brute = 76, pillager = 77, polar_bear = 78, potion = 79, pufferfish = 80, rabbit = 81, ravager = 82, salmon = 83, sheep = 84, shulker = 85, shulker_bullet = 86, silverfish = 87, skeleton = 88, skeleton_horse = 89, slime = 90, small_fireball = 91, sniffer = 92, snow_golem = 93, snowball = 94, spawner_minecart = 95, spectral_arrow = 96, spider = 97, squid = 98, stray = 99, strider = 100, tadpole = 101, text_display = 102, tnt = 103, tnt_minecart = 104, trader_llama = 105, trident = 106, tropical_fish = 107, turtle = 108, vex = 109, villager = 110, vindicator = 111, wandering_trader = 112, warden = 113, wind_charge = 114, witch = 115, wither = 116, wither_skeleton = 117, wither_skull = 118, wolf = 119, zoglin = 120, zombie = 121, zombie_horse = 122, zombie_villager = 123, zombified_piglin = 124, player = 125, fishing_bobber = 126,
}

Variants§

§

allay = 0

§

area_effect_cloud = 1

§

armadillo = 2

§

armor_stand = 3

§

arrow = 4

§

axolotl = 5

§

bat = 6

§

bee = 7

§

blaze = 8

§

block_display = 9

§

boat = 10

§

breeze = 11

§

camel = 12

§

cat = 13

§

cave_spider = 14

§

chest_boat = 15

§

chest_minecart = 16

§

chicken = 17

§

cod = 18

§

command_block_minecart = 19

§

cow = 20

§

creeper = 21

§

dolphin = 22

§

donkey = 23

§

dragon_fireball = 24

§

drowned = 25

§

egg = 26

§

elder_guardian = 27

§

end_crystal = 28

§

ender_dragon = 29

§

ender_pearl = 30

§

enderman = 31

§

endermite = 32

§

evoker = 33

§

evoker_fangs = 34

§

experience_bottle = 35

§

experience_orb = 36

§

eye_of_ender = 37

§

falling_block = 38

§

firework_rocket = 39

§

fox = 40

§

frog = 41

§

furnace_minecart = 42

§

ghast = 43

§

giant = 44

§

glow_item_frame = 45

§

glow_squid = 46

§

goat = 47

§

guardian = 48

§

hoglin = 49

§

hopper_minecart = 50

§

horse = 51

§

husk = 52

§

illusioner = 53

§

interaction = 54

§

iron_golem = 55

§

item = 56

§

item_display = 57

§

item_frame = 58

§

fireball = 59

§

leash_knot = 60

§

lightning_bolt = 61

§

llama = 62

§

llama_spit = 63

§

magma_cube = 64

§

marker = 65

§

minecart = 66

§

mooshroom = 67

§

mule = 68

§

ocelot = 69

§

painting = 70

§

panda = 71

§

parrot = 72

§

phantom = 73

§

pig = 74

§

piglin = 75

§

piglin_brute = 76

§

pillager = 77

§

polar_bear = 78

§

potion = 79

§

pufferfish = 80

§

rabbit = 81

§

ravager = 82

§

salmon = 83

§

sheep = 84

§

shulker = 85

§

shulker_bullet = 86

§

silverfish = 87

§

skeleton = 88

§

skeleton_horse = 89

§

slime = 90

§

small_fireball = 91

§

sniffer = 92

§

snow_golem = 93

§

snowball = 94

§

spawner_minecart = 95

§

spectral_arrow = 96

§

spider = 97

§

squid = 98

§

stray = 99

§

strider = 100

§

tadpole = 101

§

text_display = 102

§

tnt = 103

§

tnt_minecart = 104

§

trader_llama = 105

§

trident = 106

§

tropical_fish = 107

§

turtle = 108

§

vex = 109

§

villager = 110

§

vindicator = 111

§

wandering_trader = 112

§

warden = 113

§

wind_charge = 114

§

witch = 115

§

wither = 116

§

wither_skeleton = 117

§

wither_skull = 118

§

wolf = 119

§

zoglin = 120

§

zombie = 121

§

zombie_horse = 122

§

zombie_villager = 123

§

zombified_piglin = 124

§

player = 125

§

fishing_bobber = 126

Implementations§

source§

impl entity_type

source

pub const fn id(self) -> u8

source

pub const fn new(x: u8) -> Self

source§

impl entity_type

source

pub const MAX: usize = 126usize

source§

impl entity_type

source

pub const fn name(self) -> &'static str

source

pub fn parse(name: &[u8]) -> Option<Self>

Trait Implementations§

source§

impl Clone for entity_type

source§

fn clone(&self) -> entity_type

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for entity_type

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for entity_type

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for entity_type

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for entity_type

source§

fn eq(&self, other: &entity_type) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Read for entity_type

source§

fn read(n: &mut &[u8]) -> Option<Self>

source§

impl Write for entity_type

source§

fn len(&self) -> usize

source§

fn write(&self, w: &mut UnsafeWriter)

source§

impl Copy for entity_type

source§

impl Eq for entity_type

source§

impl StructuralEq for entity_type

source§

impl StructuralPartialEq for entity_type

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.