mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
* Implement MC version 1.16.2 basic support
All packets ID update done
Tested in 1.16.2 craftbukkit server
* Implement MC 1.16.2 entity handling
New EntityPalette
* Add back protocol version checking for entity handling
Was removed during testing and forgot to add it back
* Implement inventory handling for MC 1.16+
Item ID got changed in 1.16+ so a palette is needed.
* Fix ChangeSlot command
What a joke
* Handle 1.16 new entity properties name
Convert new naming style to old style
* Revert "Handle 1.16 new entity properties name"
This reverts commit 52c7d29062.
* Update AutoAttack to use the new entity properties key
* Fix item type to ID conversion
* Sort item types by name
* Remove ZombiePigmanSpawnEgg
User ZombifiedPiglinSpawnEgg instead (new name for same item)
* Add missing 1.16.2 version strings
* Remove old ItemTypeGenerator
* Sort entity types by name
* Palette loading, instructions, NotImplemented err
Co-authored-by: ORelio <ORelio@users.noreply.github.com>
127 lines
2.9 KiB
C#
127 lines
2.9 KiB
C#
namespace MinecraftClient.Mapping
|
|
{
|
|
/// <summary>
|
|
/// Represents Minecraft Entity Types
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Generated from registries.json using EntityPaletteGenerator.cs.
|
|
/// Typical steps to handle new entity IDs for newer Minecraft versions:
|
|
/// 1. Generate registries.json using data reporting on Vanilla Minecraft (https://wiki.vg/Data_Generators)
|
|
/// 2. Generate temporary EntityTypeXXX.cs and EntityPaletteXXX.cs using EntityPaletteGenerator.cs
|
|
/// 3. Perform a diff with existing versions, add missing entries in EntityType.cs and EntityTypeExtensions.cs
|
|
/// 4. If existing entity IDs were not randomized by Mojang, simply add missing entries to the latest existing EntityPaletteXXX.cs
|
|
/// 5. If existing entity IDs were randomized, add a new palette as EntityPaletteXXX.cs into the codebase (worst case)
|
|
/// </remarks>
|
|
public enum EntityType
|
|
{
|
|
AreaEffectCloud,
|
|
ArmorStand,
|
|
Arrow,
|
|
Bat,
|
|
Bee,
|
|
Blaze,
|
|
Boat,
|
|
Cat,
|
|
CaveSpider,
|
|
ChestMinecart,
|
|
Chicken,
|
|
Cod,
|
|
CommandBlockMinecart,
|
|
Cow,
|
|
Creeper,
|
|
Dolphin,
|
|
Donkey,
|
|
DragonFireball,
|
|
Drowned,
|
|
Egg,
|
|
ElderGuardian,
|
|
EndCrystal,
|
|
EnderDragon,
|
|
Enderman,
|
|
Endermite,
|
|
EnderPearl,
|
|
Evoker,
|
|
EvokerFangs,
|
|
ExperienceBottle,
|
|
ExperienceOrb,
|
|
EyeOfEnder,
|
|
FallingBlock,
|
|
Fireball,
|
|
FireworkRocket,
|
|
FishingBobber,
|
|
Fox,
|
|
FurnaceMinecart,
|
|
Ghast,
|
|
Giant,
|
|
Guardian,
|
|
Hoglin,
|
|
HopperMinecart,
|
|
Horse,
|
|
Husk,
|
|
Illusioner,
|
|
IronGolem,
|
|
Item,
|
|
ItemFrame,
|
|
LeashKnot,
|
|
LightningBolt,
|
|
Llama,
|
|
LlamaSpit,
|
|
MagmaCube,
|
|
Minecart,
|
|
Mooshroom,
|
|
Mule,
|
|
Ocelot,
|
|
Painting,
|
|
Panda,
|
|
Parrot,
|
|
Phantom,
|
|
Pig,
|
|
Piglin,
|
|
PiglinBrute,
|
|
Pillager,
|
|
Player,
|
|
PolarBear,
|
|
Potion,
|
|
Pufferfish,
|
|
Rabbit,
|
|
Ravager,
|
|
Salmon,
|
|
Sheep,
|
|
Shulker,
|
|
ShulkerBullet,
|
|
Silverfish,
|
|
Skeleton,
|
|
SkeletonHorse,
|
|
Slime,
|
|
SmallFireball,
|
|
Snowball,
|
|
SnowGolem,
|
|
SpawnerMinecart,
|
|
SpectralArrow,
|
|
Spider,
|
|
Squid,
|
|
Stray,
|
|
Strider,
|
|
Tnt,
|
|
TntMinecart,
|
|
TraderLlama,
|
|
Trident,
|
|
TropicalFish,
|
|
Turtle,
|
|
Vex,
|
|
Villager,
|
|
Vindicator,
|
|
WanderingTrader,
|
|
Witch,
|
|
Wither,
|
|
WitherSkeleton,
|
|
WitherSkull,
|
|
Wolf,
|
|
Zoglin,
|
|
Zombie,
|
|
ZombieHorse,
|
|
ZombiePigman,
|
|
ZombieVillager,
|
|
ZombifiedPiglin,
|
|
}
|
|
}
|