mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
feat: add 26.1 palette files and new enum values
Add item, block, entity, and entity metadata palettes for Minecraft 26.1. New enums: GoldenDandelion (item/block), PottedGoldenDandelion (block), CatSoundVariant, CowSoundVariant, PigSoundVariant, ChickenSoundVariant (entity metadata). Update gen_entity_metadata_palette.py FIELD_TO_ENUM mapping for the new sound variant types. Made-with: Cursor
This commit is contained in:
parent
052993a2c1
commit
e3d3a86ac2
8 changed files with 4139 additions and 5 deletions
1524
MinecraftClient/Inventory/ItemPalettes/ItemPalette261.cs
Normal file
1524
MinecraftClient/Inventory/ItemPalettes/ItemPalette261.cs
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -578,6 +578,7 @@ namespace MinecraftClient.Inventory
|
||||||
GoldenAxe,
|
GoldenAxe,
|
||||||
GoldenBoots,
|
GoldenBoots,
|
||||||
GoldenCarrot,
|
GoldenCarrot,
|
||||||
|
GoldenDandelion,
|
||||||
GoldenChestplate,
|
GoldenChestplate,
|
||||||
GoldenHelmet,
|
GoldenHelmet,
|
||||||
GoldenHoe,
|
GoldenHoe,
|
||||||
|
|
|
||||||
2354
MinecraftClient/Mapping/BlockPalettes/Palette261.cs
Normal file
2354
MinecraftClient/Mapping/BlockPalettes/Palette261.cs
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -57,10 +57,18 @@ public enum EntityMetaDataType
|
||||||
/// </summary>
|
/// </summary>
|
||||||
CatVariant,
|
CatVariant,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// VarInt (1.21.5+)
|
||||||
|
/// </summary>
|
||||||
|
CatSoundVariant,
|
||||||
|
/// <summary>
|
||||||
/// VarInt (1.20.6+)
|
/// VarInt (1.20.6+)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
CowVariant,
|
CowVariant,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// VarInt (1.21.5+)
|
||||||
|
/// </summary>
|
||||||
|
CowSoundVariant,
|
||||||
|
/// <summary>
|
||||||
/// VarInt (1.20.6+)
|
/// VarInt (1.20.6+)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
WolfVariant,
|
WolfVariant,
|
||||||
|
|
@ -76,8 +84,16 @@ public enum EntityMetaDataType
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// VarInt (1.21.5+)
|
/// VarInt (1.21.5+)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
PigSoundVariant,
|
||||||
|
/// <summary>
|
||||||
|
/// VarInt (1.21.5+)
|
||||||
|
/// </summary>
|
||||||
ChickenVariant,
|
ChickenVariant,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// VarInt (1.21.5+)
|
||||||
|
/// </summary>
|
||||||
|
ChickenSoundVariant,
|
||||||
|
/// <summary>
|
||||||
/// String + Position
|
/// String + Position
|
||||||
/// </summary>
|
/// </summary>
|
||||||
GlobalPosition,
|
GlobalPosition,
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,58 @@
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace MinecraftClient.Mapping.EntityMetadataPalettes;
|
||||||
|
|
||||||
|
public class EntityMetadataPalette261 : 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.CatSoundVariant },
|
||||||
|
{ 23, EntityMetaDataType.CowVariant },
|
||||||
|
{ 24, EntityMetaDataType.CowSoundVariant },
|
||||||
|
{ 25, EntityMetaDataType.WolfVariant },
|
||||||
|
{ 26, EntityMetaDataType.WolfSoundVariant },
|
||||||
|
{ 27, EntityMetaDataType.FrogVariant },
|
||||||
|
{ 28, EntityMetaDataType.PigVariant },
|
||||||
|
{ 29, EntityMetaDataType.PigSoundVariant },
|
||||||
|
{ 30, EntityMetaDataType.ChickenVariant },
|
||||||
|
{ 31, EntityMetaDataType.ChickenSoundVariant },
|
||||||
|
{ 32, EntityMetaDataType.ZombieNautilusVariant },
|
||||||
|
{ 33, EntityMetaDataType.OptionalGlobalPosition },
|
||||||
|
{ 34, EntityMetaDataType.PaintingVariant },
|
||||||
|
{ 35, EntityMetaDataType.SnifferState },
|
||||||
|
{ 36, EntityMetaDataType.ArmadilloState },
|
||||||
|
{ 37, EntityMetaDataType.CopperGolemState },
|
||||||
|
{ 38, EntityMetaDataType.WeatheringCopperState },
|
||||||
|
{ 39, EntityMetaDataType.Vector3 },
|
||||||
|
{ 40, EntityMetaDataType.Quaternion },
|
||||||
|
{ 41, EntityMetaDataType.ResolvableProfile },
|
||||||
|
{ 42, EntityMetaDataType.HumanoidArm },
|
||||||
|
};
|
||||||
|
|
||||||
|
public override Dictionary<int, EntityMetaDataType> GetEntityMetadataMappingsList()
|
||||||
|
{
|
||||||
|
return entityMetadataMappings;
|
||||||
|
}
|
||||||
|
}
|
||||||
175
MinecraftClient/Mapping/EntityPalettes/EntityPalette261.cs
Normal file
175
MinecraftClient/Mapping/EntityPalettes/EntityPalette261.cs
Normal file
|
|
@ -0,0 +1,175 @@
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace MinecraftClient.Mapping.EntityPalettes
|
||||||
|
{
|
||||||
|
public class EntityPalette261 : EntityPalette
|
||||||
|
{
|
||||||
|
private static readonly Dictionary<int, EntityType> mappings = new();
|
||||||
|
|
||||||
|
static EntityPalette261()
|
||||||
|
{
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -431,6 +431,7 @@ namespace MinecraftClient.Mapping
|
||||||
Glowstone,
|
Glowstone,
|
||||||
GoldBlock,
|
GoldBlock,
|
||||||
GoldOre,
|
GoldOre,
|
||||||
|
GoldenDandelion,
|
||||||
Granite,
|
Granite,
|
||||||
GraniteSlab,
|
GraniteSlab,
|
||||||
GraniteStairs,
|
GraniteStairs,
|
||||||
|
|
@ -799,6 +800,7 @@ namespace MinecraftClient.Mapping
|
||||||
PottedDeadBush,
|
PottedDeadBush,
|
||||||
PottedFern,
|
PottedFern,
|
||||||
PottedFloweringAzaleaBush,
|
PottedFloweringAzaleaBush,
|
||||||
|
PottedGoldenDandelion,
|
||||||
PottedJungleSapling,
|
PottedJungleSapling,
|
||||||
PottedLilyOfTheValley,
|
PottedLilyOfTheValley,
|
||||||
PottedMangrovePropagule,
|
PottedMangrovePropagule,
|
||||||
|
|
|
||||||
|
|
@ -46,13 +46,17 @@ FIELD_TO_ENUM = {
|
||||||
"VILLAGER_DATA": "VillagerData",
|
"VILLAGER_DATA": "VillagerData",
|
||||||
"OPTIONAL_UNSIGNED_INT": "OptionalVarInt",
|
"OPTIONAL_UNSIGNED_INT": "OptionalVarInt",
|
||||||
"POSE": "Pose",
|
"POSE": "Pose",
|
||||||
|
"CAT_SOUND_VARIANT": "CatSoundVariant",
|
||||||
"CAT_VARIANT": "CatVariant",
|
"CAT_VARIANT": "CatVariant",
|
||||||
"COW_VARIANT": "CowVariant",
|
"CHICKEN_SOUND_VARIANT": "ChickenSoundVariant",
|
||||||
"WOLF_VARIANT": "WolfVariant",
|
|
||||||
"WOLF_SOUND_VARIANT": "WolfSoundVariant",
|
|
||||||
"FROG_VARIANT": "FrogVariant",
|
|
||||||
"PIG_VARIANT": "PigVariant",
|
|
||||||
"CHICKEN_VARIANT": "ChickenVariant",
|
"CHICKEN_VARIANT": "ChickenVariant",
|
||||||
|
"COW_SOUND_VARIANT": "CowSoundVariant",
|
||||||
|
"COW_VARIANT": "CowVariant",
|
||||||
|
"FROG_VARIANT": "FrogVariant",
|
||||||
|
"PIG_SOUND_VARIANT": "PigSoundVariant",
|
||||||
|
"PIG_VARIANT": "PigVariant",
|
||||||
|
"WOLF_SOUND_VARIANT": "WolfSoundVariant",
|
||||||
|
"WOLF_VARIANT": "WolfVariant",
|
||||||
"OPTIONAL_GLOBAL_POS": "OptionalGlobalPosition",
|
"OPTIONAL_GLOBAL_POS": "OptionalGlobalPosition",
|
||||||
"PAINTING_VARIANT": "PaintingVariant",
|
"PAINTING_VARIANT": "PaintingVariant",
|
||||||
"SNIFFER_STATE": "SnifferState",
|
"SNIFFER_STATE": "SnifferState",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue