Add support for Minecraft 1.16.2 (#1214)

* 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>
This commit is contained in:
ReinforceZwei 2020-08-17 23:08:50 +08:00 committed by GitHub
parent ee5199f760
commit 6bbb7236e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 4296 additions and 988 deletions

View file

@ -23,52 +23,53 @@ namespace MinecraftClient.Mapping
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,
Fireball,
LeashKnot,
LightningBolt,
Llama,
LlamaSpit,
MagmaCube,
Minecart,
ChestMinecart,
CommandBlockMinecart,
FurnaceMinecart,
HopperMinecart,
SpawnerMinecart,
TntMinecart,
Mule,
Mooshroom,
Mule,
Ocelot,
Painting,
Panda,
@ -76,9 +77,11 @@ namespace MinecraftClient.Mapping
Phantom,
Pig,
Piglin,
PiglinBrute,
Pillager,
Player,
PolarBear,
Tnt,
Potion,
Pufferfish,
Rabbit,
Ravager,
@ -91,20 +94,18 @@ namespace MinecraftClient.Mapping
SkeletonHorse,
Slime,
SmallFireball,
SnowGolem,
Snowball,
SnowGolem,
SpawnerMinecart,
SpectralArrow,
Spider,
Squid,
Stray,
Strider,
Egg,
EnderPearl,
ExperienceBottle,
Player,
Potion,
Trident,
Tnt,
TntMinecart,
TraderLlama,
Trident,
TropicalFish,
Turtle,
Vex,
@ -119,7 +120,8 @@ namespace MinecraftClient.Mapping
Zoglin,
Zombie,
ZombieHorse,
ZombieVillager,
ZombiePigman,
ZombieVillager,
ZombifiedPiglin,
}
}