This commit is contained in:
Auxilor
2022-09-29 17:33:45 +01:00
parent 1bb47a9f13
commit 753d148d1b
5 changed files with 10 additions and 10 deletions

View File

@@ -72,7 +72,7 @@ public abstract class CustomSlot implements Slot {
* This is not required to add the slot to a menu, but is instead used internally.
*
* @return The slot.
* @deprecated Replaced with {@link Slot#getRealSlot(Player, Menu)}
* @deprecated Replaced with {@link Slot#getActionableSlot(Player, Menu)}
*/
@Deprecated(since = "6.43.0", forRemoval = true)
public Slot getDelegate() {
@@ -80,8 +80,8 @@ public abstract class CustomSlot implements Slot {
}
@Override
public final Slot getRealSlot(@NotNull final Player player,
@NotNull final Menu menu) {
public final Slot getActionableSlot(@NotNull final Player player,
@NotNull final Menu menu) {
return delegate;
}

View File

@@ -39,8 +39,8 @@ public abstract class ReactiveSlot implements Slot {
}
@Override
public final Slot getRealSlot(@NotNull final Player player,
@NotNull final Menu menu) {
public final Slot getActionableSlot(@NotNull final Player player,
@NotNull final Menu menu) {
return getSlot(player, menu);
}

View File

@@ -35,7 +35,7 @@ public interface Slot extends GUIComponent {
boolean isCaptive();
/**
* Get the real slot to be shown.
* Get the actionable slot to be shown.
* <p>
* This is mostly internal, if you want to implement custom slots you should
* turn to {@link CustomSlot} or {@link ReactiveSlot}, which abstract this
@@ -48,8 +48,8 @@ public interface Slot extends GUIComponent {
* @param menu The menu.
* @return The slot.
*/
Slot getRealSlot(@NotNull final Player player,
@NotNull final Menu menu);
Slot getActionableSlot(@NotNull final Player player,
@NotNull final Menu menu);
/**
* If the slot is not captive for a player.