1.21.7 and entities and latest only.Expand description
Entity types for Minecraft 1.21.7.
The structs in this module represent the various superclasses of Entity, including those that
don’t have a corresponding EntityType specified. Each of them can add additional data to the NBT
which all its subclasses will also have. In order to replicate this inheritance structure, every
struct in this module has a parent field which holds an instance of the struct that represents
the superclass. They all eventually go down to Entity, which is the only struct wihout a
parent, as it is the base class of all the others. During (de)serialization this structure is
flattened to one level. This is best described with an example. Consider the following structure:
struct A { a: i32 }
struct B { b: f64, parent: A }
struct C { c: bool, parent: B }During (de)serialization an instance of C would be treated as if it was defined as:
struct C { a: i32, b: f64, c: bool }The same goes for B which would be seen as
struct B { a: i32, b: f64 }Structs§
- Abstract
Arrow - Abstract
Boat - Abstract
Chest Boat - Abstract
Chested Horse - Abstract
Cow - Abstract
Fish - Abstract
Golem - Abstract
Horse - Abstract
Hurting Projectile - Abstract
Illager - Abstract
Minecart - Abstract
Minecart Container - Abstract
Piglin - Abstract
Schooling Fish - Abstract
Skeleton - Abstract
Thrown Potion - Abstract
Villager - Abstract
Wind Charge - Ageable
Mob - Ageable
Water Creature - Allay
- Ambient
Creature - Animal
- Area
Effect Cloud - Armadillo
- Armor
Stand - Arrow
- Axolotl
- Bat
- Bee
- Blaze
- Block
Attached Entity - Block
Display - Boat
- Bogged
- Breeze
- Breeze
Wind Charge - Camel
- Cat
- Cave
Spider - Chest
Boat - Chest
Raft - Chicken
- Cod
- Cow
- Creaking
- Creeper
- Display
- Dolphin
- Donkey
- Dragon
Fireball - Drowned
- Elder
Guardian - EndCrystal
- Ender
Dragon - Ender
Man - Endermite
- Entity
- Evoker
- Evoker
Fangs - Experience
Orb - EyeOf
Ender - Falling
Block Entity - Fireball
- Firework
Rocket Entity - Fishing
Hook - Fox
- Frog
- Ghast
- Giant
- Glow
Item Frame - Glow
Squid - Goat
- Guardian
- Hanging
Entity - Happy
Ghast - Hoglin
- Horse
- Husk
- Illusioner
- Interaction
- Iron
Golem - Item
Display - Item
Entity - Item
Frame - Large
Fireball - Leash
Fence Knot Entity - Lightning
Bolt - Living
Entity - Llama
- Llama
Spit - Magma
Cube - Marker
- Minecart
- Minecart
Chest - Minecart
Command Block - Minecart
Furnace - Minecart
Hopper - Minecart
Spawner - MinecartTNT
- Mob
- Monster
- Mule
- Mushroom
Cow - Ocelot
- Ominous
Item Spawner - Painting
- Panda
- Parrot
- Pathfinder
Mob - Patrolling
Monster - Phantom
- Pig
- Piglin
- Piglin
Brute - Pillager
- Polar
Bear - Primed
Tnt - Projectile
- Pufferfish
- Rabbit
- Raft
- Raider
- Ravager
- Salmon
- Sheep
- Shoulder
Riding Entity - Shulker
- Shulker
Bullet - Silverfish
- Skeleton
- Skeleton
Horse - Slime
- Small
Fireball - Sniffer
- Snow
Golem - Snowball
- Spectral
Arrow - Spellcaster
Illager - Spider
- Squid
- Stray
- Strider
- Tadpole
- Tamable
Animal - Text
Display - Throwable
Item Projectile - Throwable
Projectile - Thrown
Egg - Thrown
Enderpearl - Thrown
Experience Bottle - Thrown
Lingering Potion - Thrown
Splash Potion - Thrown
Trident - Trader
Llama - Tropical
Fish - Turtle
- Vehicle
Entity - Vex
- Villager
- Vindicator
- Wandering
Trader - Warden
- Water
Animal - Wind
Charge - Witch
- Wither
Boss - Wither
Skeleton - Wither
Skull - Wolf
- Zoglin
- Zombie
- Zombie
Horse - Zombie
Villager - Zombified
Piglin