mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-22 07:43:49 -07:00
[ci skip] Cleanup events (#10202)
This commit is contained in:
@@ -23,7 +23,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * Called when a slot contents change in a player's inventory.
|
||||
+ */
|
||||
+public class PlayerInventorySlotChangeEvent extends PlayerEvent {
|
||||
+ private static final HandlerList handlers = new HandlerList();
|
||||
+
|
||||
+ private static final HandlerList HANDLER_LIST = new HandlerList();
|
||||
+
|
||||
+ private final int rawSlot;
|
||||
+ private final int slot;
|
||||
+ private final ItemStack oldItemStack;
|
||||
@@ -44,7 +46,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * @return The raw slot number.
|
||||
+ */
|
||||
+ public int getRawSlot() {
|
||||
+ return rawSlot;
|
||||
+ return this.rawSlot;
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
@@ -57,7 +59,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * @return The slot number.
|
||||
+ */
|
||||
+ public int getSlot() {
|
||||
+ return slot;
|
||||
+ return this.slot;
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
@@ -67,7 +69,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ */
|
||||
+ @NotNull
|
||||
+ public ItemStack getOldItemStack() {
|
||||
+ return oldItemStack;
|
||||
+ return this.oldItemStack;
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
@@ -77,7 +79,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ */
|
||||
+ @NotNull
|
||||
+ public ItemStack getNewItemStack() {
|
||||
+ return newItemStack;
|
||||
+ return this.newItemStack;
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
@@ -86,7 +88,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * @return Whether the slot change advancements will be triggered.
|
||||
+ */
|
||||
+ public boolean shouldTriggerAdvancements() {
|
||||
+ return triggerAdvancements;
|
||||
+ return this.triggerAdvancements;
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
@@ -101,11 +103,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ @NotNull
|
||||
+ @Override
|
||||
+ public HandlerList getHandlers() {
|
||||
+ return handlers;
|
||||
+ return HANDLER_LIST;
|
||||
+ }
|
||||
+
|
||||
+ @NotNull
|
||||
+ public static HandlerList getHandlerList() {
|
||||
+ return handlers;
|
||||
+ return HANDLER_LIST;
|
||||
+ }
|
||||
+}
|
||||
|
Reference in New Issue
Block a user