Enum entity_type

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

Variants§

§

acacia_boat = 0

§

acacia_chest_boat = 1

§

allay = 2

§

area_effect_cloud = 3

§

armadillo = 4

§

armor_stand = 5

§

arrow = 6

§

axolotl = 7

§

bamboo_chest_raft = 8

§

bamboo_raft = 9

§

bat = 10

§

bee = 11

§

birch_boat = 12

§

birch_chest_boat = 13

§

blaze = 14

§

block_display = 15

§

bogged = 16

§

breeze = 17

§

breeze_wind_charge = 18

§

camel = 19

§

cat = 20

§

cave_spider = 21

§

cherry_boat = 22

§

cherry_chest_boat = 23

§

chest_minecart = 24

§

chicken = 25

§

cod = 26

§

command_block_minecart = 27

§

cow = 28

§

creaking = 29

§

creeper = 30

§

dark_oak_boat = 31

§

dark_oak_chest_boat = 32

§

dolphin = 33

§

donkey = 34

§

dragon_fireball = 35

§

drowned = 36

§

egg = 37

§

elder_guardian = 38

§

enderman = 39

§

endermite = 40

§

ender_dragon = 41

§

ender_pearl = 42

§

end_crystal = 43

§

evoker = 44

§

evoker_fangs = 45

§

experience_bottle = 46

§

experience_orb = 47

§

eye_of_ender = 48

§

falling_block = 49

§

fireball = 50

§

firework_rocket = 51

§

fox = 52

§

frog = 53

§

furnace_minecart = 54

§

ghast = 55

§

giant = 56

§

glow_item_frame = 57

§

glow_squid = 58

§

goat = 59

§

guardian = 60

§

hoglin = 61

§

hopper_minecart = 62

§

horse = 63

§

husk = 64

§

illusioner = 65

§

interaction = 66

§

iron_golem = 67

§

item = 68

§

item_display = 69

§

item_frame = 70

§

jungle_boat = 71

§

jungle_chest_boat = 72

§

leash_knot = 73

§

lightning_bolt = 74

§

llama = 75

§

llama_spit = 76

§

magma_cube = 77

§

mangrove_boat = 78

§

mangrove_chest_boat = 79

§

marker = 80

§

minecart = 81

§

mooshroom = 82

§

mule = 83

§

oak_boat = 84

§

oak_chest_boat = 85

§

ocelot = 86

§

ominous_item_spawner = 87

§

painting = 88

§

pale_oak_boat = 89

§

pale_oak_chest_boat = 90

§

panda = 91

§

parrot = 92

§

phantom = 93

§

pig = 94

§

piglin = 95

§

piglin_brute = 96

§

pillager = 97

§

polar_bear = 98

§

potion = 99

§

pufferfish = 100

§

rabbit = 101

§

ravager = 102

§

salmon = 103

§

sheep = 104

§

shulker = 105

§

shulker_bullet = 106

§

silverfish = 107

§

skeleton = 108

§

skeleton_horse = 109

§

slime = 110

§

small_fireball = 111

§

sniffer = 112

§

snowball = 113

§

snow_golem = 114

§

spawner_minecart = 115

§

spectral_arrow = 116

§

spider = 117

§

spruce_boat = 118

§

spruce_chest_boat = 119

§

squid = 120

§

stray = 121

§

strider = 122

§

tadpole = 123

§

text_display = 124

§

tnt = 125

§

tnt_minecart = 126

§

trader_llama = 127

§

trident = 128

§

tropical_fish = 129

§

turtle = 130

§

vex = 131

§

villager = 132

§

vindicator = 133

§

wandering_trader = 134

§

warden = 135

§

wind_charge = 136

§

witch = 137

§

wither = 138

§

wither_skeleton = 139

§

wither_skull = 140

§

wolf = 141

§

zoglin = 142

§

zombie = 143

§

zombie_horse = 144

§

zombie_villager = 145

§

zombified_piglin = 146

§

player = 147

§

fishing_bobber = 148

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 = 148usize

Source§

impl entity_type

Source

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

Source

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

Source§

impl entity_type

Source

pub const fn width(self) -> f32

Source

pub const fn height(self) -> f32

Source

pub const fn fixed(self) -> bool

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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§

unsafe fn sz(&self) -> usize

Safety Read more
Source§

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

Safety Read more
Source§

impl Copy for entity_type

Source§

impl Eq 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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,

Source§

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§

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>,

Source§

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>,

Source§

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.