[ci skip] Cleanup events (#10202)

This commit is contained in:
Lulu13022002
2024-02-01 10:15:57 +01:00
parent d676979ea0
commit f7e469eb2e
187 changed files with 2415 additions and 2258 deletions

View File

@@ -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;
+ }
+}