Refactor
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user