package Ġcom . jam ies wh ites hir t . responsive inventory . client . item diff . state Ċ Ċ import Ġnet . minecraft . entity . player . Inventory Player Ċ Ċ data Ġclass ĠPlayer Inventory State ( ĊĠĠĠĠĠĠĠ Ġval Ġcurrent Item : ĠItemStack State , ĊĠĠĠĠĠĠĠ Ġval Ġitem Stack : ĠItemStack State , ĊĠĠĠĠĠĠĠ Ġval Ġmain Inventory : ĠList < ItemStack State >, ĊĠĠĠĠĠĠĠ Ġval Ġarm or Inventory : ĠList < ItemStack State >, ĊĠĠĠĠĠĠĠ Ġval Ġoff Hand Inventory : ĠList < ItemStack State > Ċ ) Ġ{ ĊĠĠĠ Ġconstructor ( inventory : ĠInventory Player ) Ġ: Ġthis ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠItemStack State ( inventory . main Inventory [ inventory . currentItem ]), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠItemStack State ( inventory . item Stack ), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġinventory . main Inventory . map (:: ItemStack State ), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġinventory . armor Inventory . map (:: ItemStack State ), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġinventory . off Hand Inventory . map (:: ItemStack State ) ĊĠĠĠ Ġ) Ċ } Ċ