Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quantityProperty() in Inventory should be read-only to avoid external modifications #1350

Open
AlmasB opened this issue Feb 24, 2024 · 0 comments
Assignees

Comments

@AlmasB
Copy link
Owner

AlmasB commented Feb 24, 2024

/**
 * @return property with the total sum of all [item] stack quantities
 */
fun itemQuantityProperty(item: T): IntegerProperty

IntegerProperty -> ReadOnlyIntegerProperty

and the corresponding quantityProperty() in ItemData

@AlmasB AlmasB self-assigned this Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant