Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Adrigamer2950/AdriAPI
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.1.0
Choose a base ref
...
head repository: Adrigamer2950/AdriAPI
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.1.1
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Dec 25, 2024

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    devoncarew Devon Carew
    Copy the full SHA
    32081b4 View commit details
  2. release: 2.1.1

    Adrigamer2950 committed Dec 25, 2024

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    devoncarew Devon Carew
    Copy the full SHA
    3412a99 View commit details
Showing with 5 additions and 5 deletions.
  1. +1 −1 gradle.properties
  2. +4 −4 src/main/java/me/adrigamer2950/adriapi/api/inventory/Inventory.java
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version=2.1.0
version=2.1.1
description=An API aimed to simplify the development of Bukkit (better use Paper) plugins
author=Adrigamer2950
Original file line number Diff line number Diff line change
@@ -26,19 +26,19 @@ public abstract class Inventory implements InventoryHolder {
private final org.bukkit.inventory.Inventory inventory;
private final User user;

private Inventory(@NotNull User user) {
public Inventory(@NotNull User user) {
this(user, null);
}

private Inventory(@NotNull User user, @Nullable Component title) {
public Inventory(@NotNull User user, @Nullable Component title) {
this(user, title, InventorySize.THREE_ROWS);
}

private Inventory(@NotNull User user, @Nullable Component title, @NotNull InventorySize size) {
public Inventory(@NotNull User user, @Nullable Component title, @NotNull InventorySize size) {
this(user, title, size.getSize());
}

private Inventory(@NotNull @NonNull User user, @Nullable Component title, int size) {
public Inventory(@NotNull @NonNull User user, @Nullable Component title, int size) {
if (!user.isPlayer())
throw new IllegalArgumentException("User must be a player");