Skip to content

Commit

Permalink
Fix document comments
Browse files Browse the repository at this point in the history
  • Loading branch information
YocyCraft committed Dec 20, 2024
1 parent ab69646 commit a21bb5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ public boolean cycleDisabled(int slot) {
}

/**
* 判断指定槽位是否允许放入指定物品堆栈
* 判断指定槽位是否允许放入指定物品堆叠
*
* @param slot 槽位
* @param stack 物品堆栈
* @return 指定槽位是否允许放入指定物品堆栈
* @param stack 物品堆叠
* @return 指定槽位是否允许放入指定物品堆叠
*/
public boolean isFiltered(int slot, ItemStack stack) {
ItemStack filter = this.filteredItems.get(slot);
Expand All @@ -156,7 +156,7 @@ public boolean isFiltered(int slot, ItemStack stack) {
* 设置指定槽位的过滤
*
* @param slot 槽位
* @param stack 过滤物品堆栈(不检查NBT)
* @param stack 过滤物品堆叠(不检查NBT)
*/
public boolean setFilter(int slot, @NotNull ItemStack stack) {
if (slot < 0 || slot >= this.filteredItems.size()) return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ default void renderDisabledSlot(@NotNull GuiGraphics guiGraphics, @NotNull Slot
*
* @param guiGraphics 画布
* @param slot 槽位
* @param stack 物品堆栈
* @param stack 物品堆叠
*/
default void renderFilterItem(@NotNull GuiGraphics guiGraphics, @NotNull Slot slot, @NotNull ItemStack stack) {
int i = slot.x;
Expand Down

0 comments on commit a21bb5d

Please sign in to comment.