mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
* adds villager trading support Adds handler for tradeList packet and selectTrade packet * added extra line at end * removed tab; removed size and hasSecondItem removed a mistakenly added tab instead of 4 spaces. SelectTrade was already added in 1.13. Removed unnecessary size and hasSecondItem from trade dataType. * Added VillagerInfo class and capitalized vars in Trade class * Update VillagerInfo.cs * Small formatting/naming adjustments Co-authored-by: ORelio <ORelio@users.noreply.github.com>
13 lines
326 B
C#
13 lines
326 B
C#
namespace MinecraftClient
|
|
{
|
|
/// <summary>
|
|
/// Information of a villager
|
|
/// </summary>
|
|
public class VillagerInfo
|
|
{
|
|
public int Level { get; set; }
|
|
public int Experience { get; set; }
|
|
public bool IsRegularVillager { get; set; }
|
|
public bool CanRestock { get; set; }
|
|
}
|
|
}
|