funkce pro inventář getItemCount() #5

Closed
opened 1 year ago by jakub · 0 comments
jakub commented 1 year ago
Owner

Funkce getItemCount() bude mít vstup Inventory a ItemStack a výstup int.

Funkce spočítá kolik se daného itemu v inventáři nachází

Poznámka:

  • pro porovnání itemStacků použít isSimilar()! funkce equals() by vydala false pokud by se lišil počet vzorového itemStacku a porovnávaného itemStacku
  • funkce by měla být v classe inventoryTools
Funkce getItemCount() bude mít vstup Inventory a ItemStack a výstup int. Funkce spočítá kolik se daného itemu v inventáři nachází ### Poznámka: - pro porovnání itemStacků použít isSimilar()! funkce equals() by vydala false pokud by se lišil počet vzorového itemStacku a porovnávaného itemStacku - funkce by měla být v classe inventoryTools
jakub added this to the Práce project 1 year ago
jakub added reference get_item_count 1 year ago
Gioth self-assigned this 1 year ago
jakub locked as Resolved and limited conversation to collaborators 1 year ago
jakub closed this issue 1 year ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: Mineconomia/MineconomiaCoreRedone#5
Loading…
There is no content yet.