Fixed spelling

This commit is contained in:
NichtStudioCode 2021-08-26 23:44:51 +02:00
parent d0bddc126b
commit 9972805d04
5 changed files with 11 additions and 11 deletions

@ -117,7 +117,7 @@ public interface GUI extends GUIParent {
boolean hasSlotElement(int index); boolean hasSlotElement(int index);
/** /**
* Gets a all {@link SlotElement}s of this {@link GUI} in an Array. * Gets all {@link SlotElement}s of this {@link GUI} in an Array.
* *
* @return All {@link SlotElement}s of this {@link GUI} * @return All {@link SlotElement}s of this {@link GUI}
*/ */
@ -175,7 +175,7 @@ public interface GUI extends GUIParent {
void setBackground(@Nullable ItemProvider itemProvider); void setBackground(@Nullable ItemProvider itemProvider);
/** /**
* Gets the {@link ItemProvider} that will used if nothing else * Gets the {@link ItemProvider} that will be used if nothing else
* is placed on a slot. * is placed on a slot.
* *
* @return The {@link ItemProvider} * @return The {@link ItemProvider}
@ -311,7 +311,7 @@ public interface GUI extends GUIParent {
void fill(@Nullable Item item, boolean replaceExisting); void fill(@Nullable Item item, boolean replaceExisting);
/** /**
* Fills one row with an specific {@link Item} * Fills one row with a specific {@link Item}
* *
* @param row The row * @param row The row
* @param item The {@link Item} that should be used or null to remove an existing item. * @param item The {@link Item} that should be used or null to remove an existing item.
@ -320,7 +320,7 @@ public interface GUI extends GUIParent {
void fillRow(int row, @Nullable Item item, boolean replaceExisting); void fillRow(int row, @Nullable Item item, boolean replaceExisting);
/** /**
* Fills one column with an specific {@link Item} * Fills one column with a specific {@link Item}
* *
* @param column The column * @param column The column
* @param item The {@link Item} that should be used or null to remove an existing item. * @param item The {@link Item} that should be used or null to remove an existing item.
@ -329,7 +329,7 @@ public interface GUI extends GUIParent {
void fillColumn(int column, @Nullable Item item, boolean replaceExisting); void fillColumn(int column, @Nullable Item item, boolean replaceExisting);
/** /**
* Fills the borders of this {@link GUI} with an specific {@link Item} * Fills the borders of this {@link GUI} with a specific {@link Item}
* *
* @param item The {@link Item} that should be used or null to remove an existing item. * @param item The {@link Item} that should be used or null to remove an existing item.
* @param replaceExisting If existing {@link Item}s should be replaced. * @param replaceExisting If existing {@link Item}s should be replaced.
@ -337,7 +337,7 @@ public interface GUI extends GUIParent {
void fillBorders(@Nullable Item item, boolean replaceExisting); void fillBorders(@Nullable Item item, boolean replaceExisting);
/** /**
* Fills a rectangle in this {@link GUI} with an specific {@link Item} * Fills a rectangle in this {@link GUI} with a specific {@link Item}
* *
* @param x The x coordinate where the rectangle should start. * @param x The x coordinate where the rectangle should start.
* @param y The y coordinate where the rectangle should start. * @param y The y coordinate where the rectangle should start.

@ -155,7 +155,7 @@ public abstract class BaseGUI implements GUI, Controllable {
if (inventory.setItemStack(updateReason, slot, null)) if (inventory.setItemStack(updateReason, slot, null))
event.setCursor(clicked); event.setCursor(clicked);
} else if (clicked == null || cursor.isSimilar(clicked)) { } else if (clicked == null || cursor.isSimilar(clicked)) {
// if there are no items or they're similar to the cursor, add the cursor items to the stack // if there are no items, or they're similar to the cursor, add the cursor items to the stack
int remains = inventory.putItemStack(updateReason, slot, cursor); int remains = inventory.putItemStack(updateReason, slot, cursor);
if (remains == 0) { if (remains == 0) {
event.setCursor(null); event.setCursor(null);

@ -11,7 +11,7 @@ import org.jetbrains.annotations.Nullable;
import java.util.function.Consumer; import java.util.function.Consumer;
/** /**
* An {@link Item} that cycles trough a predefined array of {@link ItemProvider}s when clicked. * An {@link Item} that cycles through a predefined array of {@link ItemProvider}s when clicked.
*/ */
public class CycleItem extends BaseItem { public class CycleItem extends BaseItem {

@ -37,7 +37,7 @@ public class VirtualInventory implements ConfigurationSerializable {
* @param uuid The {@link UUID} of this {@link VirtualInventory}. Can be null, only used for serialization. * @param uuid The {@link UUID} of this {@link VirtualInventory}. Can be null, only used for serialization.
* @param size The amount of slots this {@link VirtualInventory} has. * @param size The amount of slots this {@link VirtualInventory} has.
* @param items A predefined array of content. Can be null. Will not get copied! * @param items A predefined array of content. Can be null. Will not get copied!
* @param stackSizes An array of maximum allowed stack sizes for the each slot in the {@link VirtualInventory}. * @param stackSizes An array of maximum allowed stack sizes for each slot in the {@link VirtualInventory}.
*/ */
public VirtualInventory(@Nullable UUID uuid, int size, @Nullable ItemStack[] items, int[] stackSizes) { public VirtualInventory(@Nullable UUID uuid, int size, @Nullable ItemStack[] items, int[] stackSizes) {
this.uuid = uuid; this.uuid = uuid;

@ -144,7 +144,7 @@ public interface Window extends GUIParent {
void closeForViewer(); void closeForViewer();
/** /**
* Shows the window to a the player. * Shows the window to the player.
*/ */
void show(); void show();
@ -184,7 +184,7 @@ public interface Window extends GUIParent {
Player getViewer(); Player getViewer();
/** /**
* Gets a the current {@link Player} that is viewing this * Gets the current {@link Player} that is viewing this
* {@link Window} or null of there isn't one. * {@link Window} or null of there isn't one.
* *
* @return The current viewer of this {@link Window} (can be null) * @return The current viewer of this {@link Window} (can be null)