mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
feat: add palettes and enums for MC 1.21.11 (protocol 774)
Add 17 new items (spears, nautilus armor, spawn eggs, netherite horse armor), 4 new entities (CamelHusk, Nautilus, Parched, ZombieNautilus), and 2 new entity metadata serializer types (ZombieNautilusVariant, HumanoidArm). Generated ItemPalette12111 (1505 items), EntityPalette12111 (157 entities), and EntityMetadataPalette12111 (39 serializers) from server reports. Made-with: Cursor
This commit is contained in:
parent
34671fdab2
commit
50b4b3c8fe
7 changed files with 1784 additions and 1 deletions
1523
MinecraftClient/Inventory/ItemPalettes/ItemPalette12111.cs
Normal file
1523
MinecraftClient/Inventory/ItemPalettes/ItemPalette12111.cs
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -208,6 +208,7 @@ namespace MinecraftClient.Inventory
|
|||
Cake,
|
||||
Calcite,
|
||||
CalibratedSculkSensor,
|
||||
CamelHuskSpawnEgg,
|
||||
CamelSpawnEgg,
|
||||
Campfire,
|
||||
Candle,
|
||||
|
|
@ -318,9 +319,11 @@ namespace MinecraftClient.Inventory
|
|||
CopperLantern,
|
||||
CopperLeggings,
|
||||
CopperNugget,
|
||||
CopperNautilusArmor,
|
||||
CopperOre,
|
||||
CopperPickaxe,
|
||||
CopperShovel,
|
||||
CopperSpear,
|
||||
CopperSword,
|
||||
CopperTorch,
|
||||
CopperTrapdoor,
|
||||
|
|
@ -449,8 +452,10 @@ namespace MinecraftClient.Inventory
|
|||
DiamondHoe,
|
||||
DiamondHorseArmor,
|
||||
DiamondLeggings,
|
||||
DiamondNautilusArmor,
|
||||
DiamondOre,
|
||||
DiamondPickaxe,
|
||||
DiamondSpear,
|
||||
DiamondShovel,
|
||||
DiamondSword,
|
||||
Diorite,
|
||||
|
|
@ -578,8 +583,10 @@ namespace MinecraftClient.Inventory
|
|||
GoldenHoe,
|
||||
GoldenHorseArmor,
|
||||
GoldenLeggings,
|
||||
GoldenNautilusArmor,
|
||||
GoldenPickaxe,
|
||||
GoldenShovel,
|
||||
GoldenSpear,
|
||||
GoldenSword,
|
||||
Granite,
|
||||
GraniteSlab,
|
||||
|
|
@ -666,9 +673,11 @@ namespace MinecraftClient.Inventory
|
|||
IronHorseArmor,
|
||||
IronIngot,
|
||||
IronLeggings,
|
||||
IronNautilusArmor,
|
||||
IronNugget,
|
||||
IronOre,
|
||||
IronPickaxe,
|
||||
IronSpear,
|
||||
IronShovel,
|
||||
IronSword,
|
||||
IronTrapdoor,
|
||||
|
|
@ -862,6 +871,7 @@ namespace MinecraftClient.Inventory
|
|||
Mycelium,
|
||||
NameTag,
|
||||
NautilusShell,
|
||||
NautilusSpawnEgg,
|
||||
NetherBrick,
|
||||
NetherBrickFence,
|
||||
NetherBrickSlab,
|
||||
|
|
@ -880,11 +890,14 @@ namespace MinecraftClient.Inventory
|
|||
NetheriteChestplate,
|
||||
NetheriteHelmet,
|
||||
NetheriteHoe,
|
||||
NetheriteHorseArmor,
|
||||
NetheriteIngot,
|
||||
NetheriteLeggings,
|
||||
NetheriteNautilusArmor,
|
||||
NetheritePickaxe,
|
||||
NetheriteScrap,
|
||||
NetheriteShovel,
|
||||
NetheriteSpear,
|
||||
NetheriteSword,
|
||||
NetheriteUpgradeSmithingTemplate,
|
||||
Netherrack,
|
||||
|
|
@ -972,6 +985,7 @@ namespace MinecraftClient.Inventory
|
|||
PaleOakWood,
|
||||
PandaSpawnEgg,
|
||||
Paper,
|
||||
ParchedSpawnEgg,
|
||||
ParrotSpawnEgg,
|
||||
PearlescentFroglight,
|
||||
Peony,
|
||||
|
|
@ -1261,6 +1275,7 @@ namespace MinecraftClient.Inventory
|
|||
StonePressurePlate,
|
||||
StoneShovel,
|
||||
StoneSlab,
|
||||
StoneSpear,
|
||||
StoneStairs,
|
||||
StoneSword,
|
||||
Stonecutter,
|
||||
|
|
@ -1480,6 +1495,7 @@ namespace MinecraftClient.Inventory
|
|||
WoodenAxe,
|
||||
WoodenHoe,
|
||||
WoodenPickaxe,
|
||||
WoodenSpear,
|
||||
WoodenShovel,
|
||||
WoodenSword,
|
||||
WritableBook,
|
||||
|
|
@ -1503,6 +1519,7 @@ namespace MinecraftClient.Inventory
|
|||
ZombieHead,
|
||||
ZombieHorseSpawnEgg,
|
||||
ZombieSpawnEgg,
|
||||
ZombieNautilusSpawnEgg,
|
||||
ZombieVillagerSpawnEgg,
|
||||
ZombifiedPiglinSpawnEgg,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -116,5 +116,13 @@ public enum EntityMetaDataType
|
|||
/// <summary>
|
||||
/// Either<GameProfile, Partial> + PlayerSkin.Patch (1.21.9+)
|
||||
/// </summary>
|
||||
ResolvableProfile
|
||||
ResolvableProfile,
|
||||
/// <summary>
|
||||
/// VarInt (1.21.11+, holder registry ID)
|
||||
/// </summary>
|
||||
ZombieNautilusVariant,
|
||||
/// <summary>
|
||||
/// VarInt (1.21.11+, 0=LEFT, 1=RIGHT)
|
||||
/// </summary>
|
||||
HumanoidArm
|
||||
}
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace MinecraftClient.Mapping.EntityMetadataPalettes;
|
||||
|
||||
public class EntityMetadataPalette12111 : EntityMetadataPalette
|
||||
{
|
||||
private readonly Dictionary<int, EntityMetaDataType> entityMetadataMappings = new()
|
||||
{
|
||||
{ 0, EntityMetaDataType.Byte },
|
||||
{ 1, EntityMetaDataType.VarInt },
|
||||
{ 2, EntityMetaDataType.VarLong },
|
||||
{ 3, EntityMetaDataType.Float },
|
||||
{ 4, EntityMetaDataType.String },
|
||||
{ 5, EntityMetaDataType.Chat },
|
||||
{ 6, EntityMetaDataType.OptionalChat },
|
||||
{ 7, EntityMetaDataType.Slot },
|
||||
{ 8, EntityMetaDataType.Boolean },
|
||||
{ 9, EntityMetaDataType.Rotation },
|
||||
{ 10, EntityMetaDataType.Position },
|
||||
{ 11, EntityMetaDataType.OptionalPosition },
|
||||
{ 12, EntityMetaDataType.Direction },
|
||||
{ 13, EntityMetaDataType.OptionalLivingEntityReference },
|
||||
{ 14, EntityMetaDataType.BlockId },
|
||||
{ 15, EntityMetaDataType.OptionalBlockId },
|
||||
{ 16, EntityMetaDataType.Particle },
|
||||
{ 17, EntityMetaDataType.Particles },
|
||||
{ 18, EntityMetaDataType.VillagerData },
|
||||
{ 19, EntityMetaDataType.OptionalVarInt },
|
||||
{ 20, EntityMetaDataType.Pose },
|
||||
{ 21, EntityMetaDataType.CatVariant },
|
||||
{ 22, EntityMetaDataType.CowVariant },
|
||||
{ 23, EntityMetaDataType.WolfVariant },
|
||||
{ 24, EntityMetaDataType.WolfSoundVariant },
|
||||
{ 25, EntityMetaDataType.FrogVariant },
|
||||
{ 26, EntityMetaDataType.PigVariant },
|
||||
{ 27, EntityMetaDataType.ChickenVariant },
|
||||
{ 28, EntityMetaDataType.ZombieNautilusVariant },
|
||||
{ 29, EntityMetaDataType.OptionalGlobalPosition },
|
||||
{ 30, EntityMetaDataType.PaintingVariant },
|
||||
{ 31, EntityMetaDataType.SnifferState },
|
||||
{ 32, EntityMetaDataType.ArmadilloState },
|
||||
{ 33, EntityMetaDataType.CopperGolemState },
|
||||
{ 34, EntityMetaDataType.WeatheringCopperState },
|
||||
{ 35, EntityMetaDataType.Vector3 },
|
||||
{ 36, EntityMetaDataType.Quaternion },
|
||||
{ 37, EntityMetaDataType.ResolvableProfile },
|
||||
{ 38, EntityMetaDataType.HumanoidArm },
|
||||
};
|
||||
|
||||
public override Dictionary<int, EntityMetaDataType> GetEntityMetadataMappingsList()
|
||||
{
|
||||
return entityMetadataMappings;
|
||||
}
|
||||
}
|
||||
175
MinecraftClient/Mapping/EntityPalettes/EntityPalette12111.cs
Normal file
175
MinecraftClient/Mapping/EntityPalettes/EntityPalette12111.cs
Normal file
|
|
@ -0,0 +1,175 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace MinecraftClient.Mapping.EntityPalettes
|
||||
{
|
||||
public class EntityPalette12111 : EntityPalette
|
||||
{
|
||||
private static readonly Dictionary<int, EntityType> mappings = new();
|
||||
|
||||
static EntityPalette12111()
|
||||
{
|
||||
mappings[0] = EntityType.AcaciaBoat;
|
||||
mappings[1] = EntityType.AcaciaChestBoat;
|
||||
mappings[2] = EntityType.Allay;
|
||||
mappings[3] = EntityType.AreaEffectCloud;
|
||||
mappings[4] = EntityType.Armadillo;
|
||||
mappings[5] = EntityType.ArmorStand;
|
||||
mappings[6] = EntityType.Arrow;
|
||||
mappings[7] = EntityType.Axolotl;
|
||||
mappings[8] = EntityType.BambooChestRaft;
|
||||
mappings[9] = EntityType.BambooRaft;
|
||||
mappings[10] = EntityType.Bat;
|
||||
mappings[11] = EntityType.Bee;
|
||||
mappings[12] = EntityType.BirchBoat;
|
||||
mappings[13] = EntityType.BirchChestBoat;
|
||||
mappings[14] = EntityType.Blaze;
|
||||
mappings[15] = EntityType.BlockDisplay;
|
||||
mappings[16] = EntityType.Bogged;
|
||||
mappings[17] = EntityType.Breeze;
|
||||
mappings[18] = EntityType.BreezeWindCharge;
|
||||
mappings[19] = EntityType.Camel;
|
||||
mappings[20] = EntityType.CamelHusk;
|
||||
mappings[21] = EntityType.Cat;
|
||||
mappings[22] = EntityType.CaveSpider;
|
||||
mappings[23] = EntityType.CherryBoat;
|
||||
mappings[24] = EntityType.CherryChestBoat;
|
||||
mappings[25] = EntityType.ChestMinecart;
|
||||
mappings[26] = EntityType.Chicken;
|
||||
mappings[27] = EntityType.Cod;
|
||||
mappings[28] = EntityType.CopperGolem;
|
||||
mappings[29] = EntityType.CommandBlockMinecart;
|
||||
mappings[30] = EntityType.Cow;
|
||||
mappings[31] = EntityType.Creaking;
|
||||
mappings[32] = EntityType.Creeper;
|
||||
mappings[33] = EntityType.DarkOakBoat;
|
||||
mappings[34] = EntityType.DarkOakChestBoat;
|
||||
mappings[35] = EntityType.Dolphin;
|
||||
mappings[36] = EntityType.Donkey;
|
||||
mappings[37] = EntityType.DragonFireball;
|
||||
mappings[38] = EntityType.Drowned;
|
||||
mappings[39] = EntityType.Egg;
|
||||
mappings[40] = EntityType.ElderGuardian;
|
||||
mappings[41] = EntityType.Enderman;
|
||||
mappings[42] = EntityType.Endermite;
|
||||
mappings[43] = EntityType.EnderDragon;
|
||||
mappings[44] = EntityType.EnderPearl;
|
||||
mappings[45] = EntityType.EndCrystal;
|
||||
mappings[46] = EntityType.Evoker;
|
||||
mappings[47] = EntityType.EvokerFangs;
|
||||
mappings[48] = EntityType.ExperienceBottle;
|
||||
mappings[49] = EntityType.ExperienceOrb;
|
||||
mappings[50] = EntityType.EyeOfEnder;
|
||||
mappings[51] = EntityType.FallingBlock;
|
||||
mappings[52] = EntityType.Fireball;
|
||||
mappings[53] = EntityType.FireworkRocket;
|
||||
mappings[54] = EntityType.Fox;
|
||||
mappings[55] = EntityType.Frog;
|
||||
mappings[56] = EntityType.FurnaceMinecart;
|
||||
mappings[57] = EntityType.Ghast;
|
||||
mappings[58] = EntityType.HappyGhast;
|
||||
mappings[59] = EntityType.Giant;
|
||||
mappings[60] = EntityType.GlowItemFrame;
|
||||
mappings[61] = EntityType.GlowSquid;
|
||||
mappings[62] = EntityType.Goat;
|
||||
mappings[63] = EntityType.Guardian;
|
||||
mappings[64] = EntityType.Hoglin;
|
||||
mappings[65] = EntityType.HopperMinecart;
|
||||
mappings[66] = EntityType.Horse;
|
||||
mappings[67] = EntityType.Husk;
|
||||
mappings[68] = EntityType.Illusioner;
|
||||
mappings[69] = EntityType.Interaction;
|
||||
mappings[70] = EntityType.IronGolem;
|
||||
mappings[71] = EntityType.Item;
|
||||
mappings[72] = EntityType.ItemDisplay;
|
||||
mappings[73] = EntityType.ItemFrame;
|
||||
mappings[74] = EntityType.JungleBoat;
|
||||
mappings[75] = EntityType.JungleChestBoat;
|
||||
mappings[76] = EntityType.LeashKnot;
|
||||
mappings[77] = EntityType.LightningBolt;
|
||||
mappings[78] = EntityType.Llama;
|
||||
mappings[79] = EntityType.LlamaSpit;
|
||||
mappings[80] = EntityType.MagmaCube;
|
||||
mappings[81] = EntityType.MangroveBoat;
|
||||
mappings[82] = EntityType.MangroveChestBoat;
|
||||
mappings[83] = EntityType.Mannequin;
|
||||
mappings[84] = EntityType.Marker;
|
||||
mappings[85] = EntityType.Minecart;
|
||||
mappings[86] = EntityType.Mooshroom;
|
||||
mappings[87] = EntityType.Mule;
|
||||
mappings[88] = EntityType.Nautilus;
|
||||
mappings[89] = EntityType.OakBoat;
|
||||
mappings[90] = EntityType.OakChestBoat;
|
||||
mappings[91] = EntityType.Ocelot;
|
||||
mappings[92] = EntityType.OminousItemSpawner;
|
||||
mappings[93] = EntityType.Painting;
|
||||
mappings[94] = EntityType.PaleOakBoat;
|
||||
mappings[95] = EntityType.PaleOakChestBoat;
|
||||
mappings[96] = EntityType.Panda;
|
||||
mappings[97] = EntityType.Parched;
|
||||
mappings[98] = EntityType.Parrot;
|
||||
mappings[99] = EntityType.Phantom;
|
||||
mappings[100] = EntityType.Pig;
|
||||
mappings[101] = EntityType.Piglin;
|
||||
mappings[102] = EntityType.PiglinBrute;
|
||||
mappings[103] = EntityType.Pillager;
|
||||
mappings[104] = EntityType.PolarBear;
|
||||
mappings[105] = EntityType.SplashPotion;
|
||||
mappings[106] = EntityType.LingeringPotion;
|
||||
mappings[107] = EntityType.Pufferfish;
|
||||
mappings[108] = EntityType.Rabbit;
|
||||
mappings[109] = EntityType.Ravager;
|
||||
mappings[110] = EntityType.Salmon;
|
||||
mappings[111] = EntityType.Sheep;
|
||||
mappings[112] = EntityType.Shulker;
|
||||
mappings[113] = EntityType.ShulkerBullet;
|
||||
mappings[114] = EntityType.Silverfish;
|
||||
mappings[115] = EntityType.Skeleton;
|
||||
mappings[116] = EntityType.SkeletonHorse;
|
||||
mappings[117] = EntityType.Slime;
|
||||
mappings[118] = EntityType.SmallFireball;
|
||||
mappings[119] = EntityType.Sniffer;
|
||||
mappings[120] = EntityType.Snowball;
|
||||
mappings[121] = EntityType.SnowGolem;
|
||||
mappings[122] = EntityType.SpawnerMinecart;
|
||||
mappings[123] = EntityType.SpectralArrow;
|
||||
mappings[124] = EntityType.Spider;
|
||||
mappings[125] = EntityType.SpruceBoat;
|
||||
mappings[126] = EntityType.SpruceChestBoat;
|
||||
mappings[127] = EntityType.Squid;
|
||||
mappings[128] = EntityType.Stray;
|
||||
mappings[129] = EntityType.Strider;
|
||||
mappings[130] = EntityType.Tadpole;
|
||||
mappings[131] = EntityType.TextDisplay;
|
||||
mappings[132] = EntityType.Tnt;
|
||||
mappings[133] = EntityType.TntMinecart;
|
||||
mappings[134] = EntityType.TraderLlama;
|
||||
mappings[135] = EntityType.Trident;
|
||||
mappings[136] = EntityType.TropicalFish;
|
||||
mappings[137] = EntityType.Turtle;
|
||||
mappings[138] = EntityType.Vex;
|
||||
mappings[139] = EntityType.Villager;
|
||||
mappings[140] = EntityType.Vindicator;
|
||||
mappings[141] = EntityType.WanderingTrader;
|
||||
mappings[142] = EntityType.Warden;
|
||||
mappings[143] = EntityType.WindCharge;
|
||||
mappings[144] = EntityType.Witch;
|
||||
mappings[145] = EntityType.Wither;
|
||||
mappings[146] = EntityType.WitherSkeleton;
|
||||
mappings[147] = EntityType.WitherSkull;
|
||||
mappings[148] = EntityType.Wolf;
|
||||
mappings[149] = EntityType.Zoglin;
|
||||
mappings[150] = EntityType.Zombie;
|
||||
mappings[151] = EntityType.ZombieHorse;
|
||||
mappings[152] = EntityType.ZombieNautilus;
|
||||
mappings[153] = EntityType.ZombieVillager;
|
||||
mappings[154] = EntityType.ZombifiedPiglin;
|
||||
mappings[155] = EntityType.Player;
|
||||
mappings[156] = EntityType.FishingBobber;
|
||||
}
|
||||
|
||||
protected override Dictionary<int, EntityType> GetDict()
|
||||
{
|
||||
return mappings;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -35,6 +35,7 @@ namespace MinecraftClient.Mapping
|
|||
Breeze,
|
||||
BreezeWindCharge,
|
||||
Camel,
|
||||
CamelHusk,
|
||||
Cat,
|
||||
CaveSpider,
|
||||
CherryBoat,
|
||||
|
|
@ -105,6 +106,7 @@ namespace MinecraftClient.Mapping
|
|||
Minecart,
|
||||
Mooshroom,
|
||||
Mule,
|
||||
Nautilus,
|
||||
OakBoat,
|
||||
OakChestBoat,
|
||||
Ocelot,
|
||||
|
|
@ -113,6 +115,7 @@ namespace MinecraftClient.Mapping
|
|||
PaleOakBoat,
|
||||
PaleOakChestBoat,
|
||||
Panda,
|
||||
Parched,
|
||||
Parrot,
|
||||
Phantom,
|
||||
Pig,
|
||||
|
|
@ -169,6 +172,7 @@ namespace MinecraftClient.Mapping
|
|||
Zoglin,
|
||||
Zombie,
|
||||
ZombieHorse,
|
||||
ZombieNautilus,
|
||||
ZombieVillager,
|
||||
ZombifiedPiglin,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,6 +62,8 @@ FIELD_TO_ENUM = {
|
|||
"VECTOR3": "Vector3",
|
||||
"QUATERNION": "Quaternion",
|
||||
"RESOLVABLE_PROFILE": "ResolvableProfile",
|
||||
"ZOMBIE_NAUTILUS_VARIANT": "ZombieNautilusVariant",
|
||||
"HUMANOID_ARM": "HumanoidArm",
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue