mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Added palettes
This commit is contained in:
parent
046cb15c75
commit
2e55a6bc85
7 changed files with 3128 additions and 8 deletions
1246
MinecraftClient/Inventory/ItemPalettes/ItemPalette1194.cs
Normal file
1246
MinecraftClient/Inventory/ItemPalettes/ItemPalette1194.cs
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -171,6 +171,7 @@
|
|||
BrownStainedGlassPane,
|
||||
BrownTerracotta,
|
||||
BrownWool,
|
||||
Brush,
|
||||
BubbleCoral,
|
||||
BubbleCoralBlock,
|
||||
BubbleCoralFan,
|
||||
|
|
@ -197,6 +198,23 @@
|
|||
ChainmailHelmet,
|
||||
ChainmailLeggings,
|
||||
Charcoal,
|
||||
CherryBoat,
|
||||
CherryButton,
|
||||
CherryChestBoat,
|
||||
CherryDoor,
|
||||
CherryFence,
|
||||
CherryFenceGate,
|
||||
CherryHangingSign,
|
||||
CherryLeaves,
|
||||
CherryLog,
|
||||
CherryPlanks,
|
||||
CherryPressurePlate,
|
||||
CherrySapling,
|
||||
CherrySign,
|
||||
CherrySlab,
|
||||
CherryStairs,
|
||||
CherryTrapdoor,
|
||||
CherryWood,
|
||||
Chest,
|
||||
ChestMinecart,
|
||||
Chicken,
|
||||
|
|
@ -220,6 +238,7 @@
|
|||
CoalBlock,
|
||||
CoalOre,
|
||||
CoarseDirt,
|
||||
CoastArmorTrimSmithingTemplate,
|
||||
CobbledDeepslate,
|
||||
CobbledDeepslateSlab,
|
||||
CobbledDeepslateStairs,
|
||||
|
|
@ -339,6 +358,7 @@
|
|||
DeadTubeCoralBlock,
|
||||
DeadTubeCoralFan,
|
||||
DebugStick,
|
||||
DecoratedPot,
|
||||
Deepslate,
|
||||
DeepslateBrickSlab,
|
||||
DeepslateBrickStairs,
|
||||
|
|
@ -388,6 +408,7 @@
|
|||
DripstoneBlock,
|
||||
Dropper,
|
||||
DrownedSpawnEgg,
|
||||
DuneArmorTrimSmithingTemplate,
|
||||
EchoShard,
|
||||
Egg,
|
||||
ElderGuardianSpawnEgg,
|
||||
|
|
@ -418,6 +439,7 @@
|
|||
ExposedCutCopper,
|
||||
ExposedCutCopperSlab,
|
||||
ExposedCutCopperStairs,
|
||||
EyeArmorTrimSmithingTemplate,
|
||||
Farmland,
|
||||
Feather,
|
||||
FermentedSpiderEye,
|
||||
|
|
@ -748,6 +770,7 @@
|
|||
NetheriteScrap,
|
||||
NetheriteShovel,
|
||||
NetheriteSword,
|
||||
NetheriteUpgradeSmithingTemplate,
|
||||
Netherrack,
|
||||
NoteBlock,
|
||||
OakBoat,
|
||||
|
|
@ -815,6 +838,7 @@
|
|||
PinkConcretePowder,
|
||||
PinkDye,
|
||||
PinkGlazedTerracotta,
|
||||
PinkPetals,
|
||||
PinkShulkerBox,
|
||||
PinkStainedGlass,
|
||||
PinkStainedGlassPane,
|
||||
|
|
@ -856,6 +880,10 @@
|
|||
Porkchop,
|
||||
Potato,
|
||||
Potion,
|
||||
PotteryShardArcher,
|
||||
PotteryShardArmsUp,
|
||||
PotteryShardPrize,
|
||||
PotteryShardSkull,
|
||||
PowderSnowBucket,
|
||||
PoweredRail,
|
||||
Prismarine,
|
||||
|
|
@ -944,6 +972,7 @@
|
|||
Repeater,
|
||||
RepeatingCommandBlock,
|
||||
RespawnAnchor,
|
||||
RibArmorTrimSmithingTemplate,
|
||||
RootedDirt,
|
||||
RoseBush,
|
||||
RottenFlesh,
|
||||
|
|
@ -966,6 +995,7 @@
|
|||
SeaLantern,
|
||||
SeaPickle,
|
||||
Seagrass,
|
||||
SentryArmorTrimSmithingTemplate,
|
||||
Shears,
|
||||
SheepSpawnEgg,
|
||||
Shield,
|
||||
|
|
@ -997,6 +1027,8 @@
|
|||
SmoothSandstoneStairs,
|
||||
SmoothStone,
|
||||
SmoothStoneSlab,
|
||||
SnifferSpawnEgg,
|
||||
SnoutArmorTrimSmithingTemplate,
|
||||
Snow,
|
||||
SnowBlock,
|
||||
SnowGolemSpawnEgg,
|
||||
|
|
@ -1010,6 +1042,7 @@
|
|||
SpectralArrow,
|
||||
SpiderEye,
|
||||
SpiderSpawnEgg,
|
||||
SpireArmorTrimSmithingTemplate,
|
||||
SplashPotion,
|
||||
Sponge,
|
||||
SporeBlossom,
|
||||
|
|
@ -1057,6 +1090,8 @@
|
|||
StrippedBambooBlock,
|
||||
StrippedBirchLog,
|
||||
StrippedBirchWood,
|
||||
StrippedCherryLog,
|
||||
StrippedCherryWood,
|
||||
StrippedCrimsonHyphae,
|
||||
StrippedCrimsonStem,
|
||||
StrippedDarkOakLog,
|
||||
|
|
@ -1076,6 +1111,7 @@
|
|||
Sugar,
|
||||
SugarCane,
|
||||
Sunflower,
|
||||
SuspiciousSand,
|
||||
SuspiciousStew,
|
||||
SweetBerries,
|
||||
TadpoleBucket,
|
||||
|
|
@ -1083,11 +1119,14 @@
|
|||
TallGrass,
|
||||
Target,
|
||||
Terracotta,
|
||||
TideArmorTrimSmithingTemplate,
|
||||
TintedGlass,
|
||||
TippedArrow,
|
||||
Tnt,
|
||||
TntMinecart,
|
||||
Torch,
|
||||
Torchflower,
|
||||
TorchflowerSeeds,
|
||||
TotemOfUndying,
|
||||
TraderLlamaSpawnEgg,
|
||||
TrappedChest,
|
||||
|
|
@ -1105,11 +1144,13 @@
|
|||
TurtleSpawnEgg,
|
||||
TwistingVines,
|
||||
VerdantFroglight,
|
||||
VexArmorTrimSmithingTemplate,
|
||||
VexSpawnEgg,
|
||||
VillagerSpawnEgg,
|
||||
VindicatorSpawnEgg,
|
||||
Vine,
|
||||
WanderingTraderSpawnEgg,
|
||||
WardArmorTrimSmithingTemplate,
|
||||
WardenSpawnEgg,
|
||||
WarpedButton,
|
||||
WarpedDoor,
|
||||
|
|
@ -1168,6 +1209,7 @@
|
|||
WhiteTerracotta,
|
||||
WhiteTulip,
|
||||
WhiteWool,
|
||||
WildArmorTrimSmithingTemplate,
|
||||
WitchSpawnEgg,
|
||||
WitherRose,
|
||||
WitherSkeletonSkull,
|
||||
|
|
|
|||
1653
MinecraftClient/Mapping/BlockPalettes/Palette1194.cs
Normal file
1653
MinecraftClient/Mapping/BlockPalettes/Palette1194.cs
Normal file
File diff suppressed because it is too large
Load diff
142
MinecraftClient/Mapping/EntityPalettes/EntityPalette11194.cs
Normal file
142
MinecraftClient/Mapping/EntityPalettes/EntityPalette11194.cs
Normal file
|
|
@ -0,0 +1,142 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace MinecraftClient.Mapping.EntityPalettes
|
||||
{
|
||||
public class EntityPalette1194 : EntityPalette
|
||||
{
|
||||
private static readonly Dictionary<int, EntityType> mappings = new();
|
||||
|
||||
static EntityPalette1194()
|
||||
{
|
||||
mappings[0] = EntityType.Allay;
|
||||
mappings[1] = EntityType.AreaEffectCloud;
|
||||
mappings[2] = EntityType.ArmorStand;
|
||||
mappings[3] = EntityType.Arrow;
|
||||
mappings[4] = EntityType.Axolotl;
|
||||
mappings[5] = EntityType.Bat;
|
||||
mappings[6] = EntityType.Bee;
|
||||
mappings[7] = EntityType.Blaze;
|
||||
mappings[8] = EntityType.BlockDisplay;
|
||||
mappings[9] = EntityType.Boat;
|
||||
mappings[10] = EntityType.Camel;
|
||||
mappings[11] = EntityType.Cat;
|
||||
mappings[12] = EntityType.CaveSpider;
|
||||
mappings[13] = EntityType.ChestBoat;
|
||||
mappings[14] = EntityType.ChestMinecart;
|
||||
mappings[15] = EntityType.Chicken;
|
||||
mappings[16] = EntityType.Cod;
|
||||
mappings[17] = EntityType.CommandBlockMinecart;
|
||||
mappings[18] = EntityType.Cow;
|
||||
mappings[19] = EntityType.Creeper;
|
||||
mappings[20] = EntityType.Dolphin;
|
||||
mappings[21] = EntityType.Donkey;
|
||||
mappings[22] = EntityType.DragonFireball;
|
||||
mappings[23] = EntityType.Drowned;
|
||||
mappings[24] = EntityType.Egg;
|
||||
mappings[25] = EntityType.ElderGuardian;
|
||||
mappings[26] = EntityType.EndCrystal;
|
||||
mappings[27] = EntityType.EnderDragon;
|
||||
mappings[28] = EntityType.EnderPearl;
|
||||
mappings[29] = EntityType.Enderman;
|
||||
mappings[30] = EntityType.Endermite;
|
||||
mappings[31] = EntityType.Evoker;
|
||||
mappings[32] = EntityType.EvokerFangs;
|
||||
mappings[33] = EntityType.ExperienceBottle;
|
||||
mappings[34] = EntityType.ExperienceOrb;
|
||||
mappings[35] = EntityType.EyeOfEnder;
|
||||
mappings[36] = EntityType.FallingBlock;
|
||||
mappings[57] = EntityType.Fireball;
|
||||
mappings[37] = EntityType.FireworkRocket;
|
||||
mappings[123] = EntityType.FishingBobber;
|
||||
mappings[38] = EntityType.Fox;
|
||||
mappings[39] = EntityType.Frog;
|
||||
mappings[40] = EntityType.FurnaceMinecart;
|
||||
mappings[41] = EntityType.Ghast;
|
||||
mappings[42] = EntityType.Giant;
|
||||
mappings[43] = EntityType.GlowItemFrame;
|
||||
mappings[44] = EntityType.GlowSquid;
|
||||
mappings[45] = EntityType.Goat;
|
||||
mappings[46] = EntityType.Guardian;
|
||||
mappings[47] = EntityType.Hoglin;
|
||||
mappings[48] = EntityType.HopperMinecart;
|
||||
mappings[49] = EntityType.Horse;
|
||||
mappings[50] = EntityType.Husk;
|
||||
mappings[51] = EntityType.Illusioner;
|
||||
mappings[52] = EntityType.Interaction;
|
||||
mappings[53] = EntityType.IronGolem;
|
||||
mappings[54] = EntityType.Item;
|
||||
mappings[55] = EntityType.ItemDisplay;
|
||||
mappings[56] = EntityType.ItemFrame;
|
||||
mappings[58] = EntityType.LeashKnot;
|
||||
mappings[59] = EntityType.LightningBolt;
|
||||
mappings[60] = EntityType.Llama;
|
||||
mappings[61] = EntityType.LlamaSpit;
|
||||
mappings[62] = EntityType.MagmaCube;
|
||||
mappings[63] = EntityType.Marker;
|
||||
mappings[64] = EntityType.Minecart;
|
||||
mappings[65] = EntityType.Mooshroom;
|
||||
mappings[66] = EntityType.Mule;
|
||||
mappings[67] = EntityType.Ocelot;
|
||||
mappings[68] = EntityType.Painting;
|
||||
mappings[69] = EntityType.Panda;
|
||||
mappings[70] = EntityType.Parrot;
|
||||
mappings[71] = EntityType.Phantom;
|
||||
mappings[72] = EntityType.Pig;
|
||||
mappings[73] = EntityType.Piglin;
|
||||
mappings[74] = EntityType.PiglinBrute;
|
||||
mappings[75] = EntityType.Pillager;
|
||||
mappings[122] = EntityType.Player;
|
||||
mappings[76] = EntityType.PolarBear;
|
||||
mappings[77] = EntityType.Potion;
|
||||
mappings[78] = EntityType.Pufferfish;
|
||||
mappings[79] = EntityType.Rabbit;
|
||||
mappings[80] = EntityType.Ravager;
|
||||
mappings[81] = EntityType.Salmon;
|
||||
mappings[82] = EntityType.Sheep;
|
||||
mappings[83] = EntityType.Shulker;
|
||||
mappings[84] = EntityType.ShulkerBullet;
|
||||
mappings[85] = EntityType.Silverfish;
|
||||
mappings[86] = EntityType.Skeleton;
|
||||
mappings[87] = EntityType.SkeletonHorse;
|
||||
mappings[88] = EntityType.Slime;
|
||||
mappings[89] = EntityType.SmallFireball;
|
||||
mappings[90] = EntityType.Sniffer;
|
||||
mappings[91] = EntityType.SnowGolem;
|
||||
mappings[92] = EntityType.Snowball;
|
||||
mappings[93] = EntityType.SpawnerMinecart;
|
||||
mappings[94] = EntityType.SpectralArrow;
|
||||
mappings[95] = EntityType.Spider;
|
||||
mappings[96] = EntityType.Squid;
|
||||
mappings[97] = EntityType.Stray;
|
||||
mappings[98] = EntityType.Strider;
|
||||
mappings[99] = EntityType.Tadpole;
|
||||
mappings[100] = EntityType.TextDisplay;
|
||||
mappings[101] = EntityType.Tnt;
|
||||
mappings[102] = EntityType.TntMinecart;
|
||||
mappings[103] = EntityType.TraderLlama;
|
||||
mappings[104] = EntityType.Trident;
|
||||
mappings[105] = EntityType.TropicalFish;
|
||||
mappings[106] = EntityType.Turtle;
|
||||
mappings[107] = EntityType.Vex;
|
||||
mappings[108] = EntityType.Villager;
|
||||
mappings[109] = EntityType.Vindicator;
|
||||
mappings[110] = EntityType.WanderingTrader;
|
||||
mappings[111] = EntityType.Warden;
|
||||
mappings[112] = EntityType.Witch;
|
||||
mappings[113] = EntityType.Wither;
|
||||
mappings[114] = EntityType.WitherSkeleton;
|
||||
mappings[115] = EntityType.WitherSkull;
|
||||
mappings[116] = EntityType.Wolf;
|
||||
mappings[117] = EntityType.Zoglin;
|
||||
mappings[118] = EntityType.Zombie;
|
||||
mappings[119] = EntityType.ZombieHorse;
|
||||
mappings[120] = EntityType.ZombieVillager;
|
||||
mappings[121] = EntityType.ZombifiedPiglin;
|
||||
}
|
||||
|
||||
protected override Dictionary<int, EntityType> GetDict()
|
||||
{
|
||||
return mappings;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -22,6 +22,7 @@
|
|||
Bat,
|
||||
Bee,
|
||||
Blaze,
|
||||
BlockDisplay,
|
||||
Boat,
|
||||
Camel,
|
||||
Cat,
|
||||
|
|
@ -67,8 +68,10 @@
|
|||
Horse,
|
||||
Husk,
|
||||
Illusioner,
|
||||
Interaction,
|
||||
IronGolem,
|
||||
Item,
|
||||
ItemDisplay,
|
||||
ItemFrame,
|
||||
LeashKnot,
|
||||
LightningBolt,
|
||||
|
|
@ -103,6 +106,7 @@
|
|||
SkeletonHorse,
|
||||
Slime,
|
||||
SmallFireball,
|
||||
Sniffer,
|
||||
SnowGolem,
|
||||
Snowball,
|
||||
SpawnerMinecart,
|
||||
|
|
@ -112,6 +116,7 @@
|
|||
Stray,
|
||||
Strider,
|
||||
Tadpole,
|
||||
TextDisplay,
|
||||
Tnt,
|
||||
TntMinecart,
|
||||
TraderLlama,
|
||||
|
|
|
|||
|
|
@ -177,6 +177,23 @@
|
|||
CaveVinesPlant,
|
||||
Chain,
|
||||
ChainCommandBlock,
|
||||
CherryButton,
|
||||
CherryDoor,
|
||||
CherryFence,
|
||||
CherryFenceGate,
|
||||
CherryHangingSign,
|
||||
CherryLeaves,
|
||||
CherryLog,
|
||||
CherryPlanks,
|
||||
CherryPressurePlate,
|
||||
CherrySapling,
|
||||
CherrySign,
|
||||
CherrySlab,
|
||||
CherryStairs,
|
||||
CherryTrapdoor,
|
||||
CherryWallHangingSign,
|
||||
CherryWallSign,
|
||||
CherryWood,
|
||||
Chest,
|
||||
ChippedAnvil,
|
||||
ChiseledBookshelf,
|
||||
|
|
@ -302,6 +319,7 @@
|
|||
DeadTubeCoralBlock,
|
||||
DeadTubeCoralFan,
|
||||
DeadTubeCoralWallFan,
|
||||
DecoratedPot,
|
||||
Deepslate,
|
||||
DeepslateBrickSlab,
|
||||
DeepslateBrickStairs,
|
||||
|
|
@ -638,6 +656,7 @@
|
|||
PinkConcrete,
|
||||
PinkConcretePowder,
|
||||
PinkGlazedTerracotta,
|
||||
PinkPetals,
|
||||
PinkShulkerBox,
|
||||
PinkStainedGlass,
|
||||
PinkStainedGlassPane,
|
||||
|
|
@ -686,6 +705,7 @@
|
|||
PottedBlueOrchid,
|
||||
PottedBrownMushroom,
|
||||
PottedCactus,
|
||||
PottedCherrySapling,
|
||||
PottedCornflower,
|
||||
PottedCrimsonFungus,
|
||||
PottedCrimsonRoots,
|
||||
|
|
@ -705,6 +725,7 @@
|
|||
PottedRedMushroom,
|
||||
PottedRedTulip,
|
||||
PottedSpruceSapling,
|
||||
PottedTorchflower,
|
||||
PottedWarpedFungus,
|
||||
PottedWarpedRoots,
|
||||
PottedWhiteTulip,
|
||||
|
|
@ -866,6 +887,8 @@
|
|||
StrippedBambooBlock,
|
||||
StrippedBirchLog,
|
||||
StrippedBirchWood,
|
||||
StrippedCherryLog,
|
||||
StrippedCherryWood,
|
||||
StrippedCrimsonHyphae,
|
||||
StrippedCrimsonStem,
|
||||
StrippedDarkOakLog,
|
||||
|
|
@ -884,6 +907,7 @@
|
|||
StructureVoid,
|
||||
SugarCane,
|
||||
Sunflower,
|
||||
SuspiciousSand,
|
||||
SweetBerryBush,
|
||||
TallGrass,
|
||||
TallSeagrass,
|
||||
|
|
@ -892,6 +916,8 @@
|
|||
TintedGlass,
|
||||
Tnt,
|
||||
Torch,
|
||||
Torchflower,
|
||||
TorchflowerCrop,
|
||||
TrappedChest,
|
||||
Tripwire,
|
||||
TripwireHook,
|
||||
|
|
|
|||
|
|
@ -110,13 +110,13 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
randomGen = RandomNumberGenerator.Create();
|
||||
lastSeenMessagesCollector = protocolVersion >= MC_1_19_3_Version ? new(20) : new(5);
|
||||
|
||||
if (handler.GetTerrainEnabled() && protocolVersion > MC_1_19_3_Version)
|
||||
if (handler.GetTerrainEnabled() && protocolVersion > MC_1_19_4_Version)
|
||||
{
|
||||
log.Error("§c" + Translations.extra_terrainandmovement_disabled);
|
||||
handler.SetTerrainEnabled(false);
|
||||
}
|
||||
|
||||
if (handler.GetInventoryEnabled() && (protocolVersion < MC_1_10_Version || protocolVersion > MC_1_19_3_Version))
|
||||
if (handler.GetInventoryEnabled() && (protocolVersion < MC_1_10_Version || protocolVersion > MC_1_19_4_Version))
|
||||
{
|
||||
log.Error("§c" + Translations.extra_inventory_disabled);
|
||||
handler.SetInventoryEnabled(false);
|
||||
|
|
@ -128,10 +128,12 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
}
|
||||
|
||||
// Block palette
|
||||
if (protocolVersion > MC_1_19_3_Version && handler.GetTerrainEnabled())
|
||||
if (protocolVersion > MC_1_19_4_Version && handler.GetTerrainEnabled())
|
||||
throw new NotImplementedException(Translations.exception_palette_block);
|
||||
|
||||
if (protocolVersion >= MC_1_19_3_Version)
|
||||
if (protocolVersion >= MC_1_19_4_Version)
|
||||
Block.Palette = new Palette1194();
|
||||
else if (protocolVersion >= MC_1_19_3_Version)
|
||||
Block.Palette = new Palette1193();
|
||||
else if (protocolVersion >= MC_1_19_Version)
|
||||
Block.Palette = new Palette119();
|
||||
|
|
@ -149,10 +151,12 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
Block.Palette = new Palette112();
|
||||
|
||||
// Entity palette
|
||||
if (protocolVersion > MC_1_19_3_Version && handler.GetEntityHandlingEnabled())
|
||||
if (protocolVersion > MC_1_19_4_Version && handler.GetEntityHandlingEnabled())
|
||||
throw new NotImplementedException(Translations.exception_palette_entity);
|
||||
|
||||
if (protocolVersion >= MC_1_19_3_Version)
|
||||
if (protocolVersion >= MC_1_19_4_Version)
|
||||
entityPalette = new EntityPalette1194();
|
||||
else if (protocolVersion >= MC_1_19_3_Version)
|
||||
entityPalette = new EntityPalette1193();
|
||||
else if (protocolVersion >= MC_1_19_Version)
|
||||
entityPalette = new EntityPalette119();
|
||||
|
|
@ -172,10 +176,12 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
entityPalette = new EntityPalette112();
|
||||
|
||||
// Item palette
|
||||
if (protocolVersion > MC_1_19_3_Version && handler.GetInventoryEnabled())
|
||||
if (protocolVersion > MC_1_19_4_Version && handler.GetInventoryEnabled())
|
||||
throw new NotImplementedException(Translations.exception_palette_item);
|
||||
|
||||
if (protocolVersion >= MC_1_19_3_Version)
|
||||
if (protocolVersion >= MC_1_19_4_Version)
|
||||
itemPalette = new ItemPalette1194();
|
||||
else if (protocolVersion >= MC_1_19_3_Version)
|
||||
itemPalette = new ItemPalette1193();
|
||||
else if (protocolVersion >= MC_1_19_Version)
|
||||
itemPalette = new ItemPalette119();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue