Rename Slot classinfo name to Slot and not Inventory Slot #5931
Labels
completed
The issue has been fully resolved and the change will be in the next Skript update.
enhancement
Feature request, an issue about something that could be improved, or a PR improving something.
priority: lowest
"Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).
Suggestion
Change the
.name()
of classinfo Slot to "Slot" instead of "Inventory Slot"Skript/src/main/java/ch/njol/skript/classes/data/SkriptClasses.java
Lines 479 to 483 in 7b0bfce
Why?
A slot classinfo will not always have an inventory reference, and having the classinfo name being "Inventory Slot" doesn't make sense when classes like
DroppedItemSlot
,ThrowableProjectileSlot
andItemFrameSlot
don't have an inventory reference but say they return "Inventory Slot"Other
up for debates, but helps with clarity of return types
Agreement
The text was updated successfully, but these errors were encountered: