[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
+ * Examples of this are letting go of the interact button when holding a bow, an edible item, or a spyglass.
+ */
+public class PlayerStopUsingItemEvent extends PlayerEvent {
+ private static final HandlerList handlers = new HandlerList();
+
+ private static final HandlerList HANDLER_LIST = new HandlerList();
+
+ @NotNull private final ItemStack item;
+ private final int ticksHeldFor;
+
@@ -40,7 +42,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ */
+ @NotNull
+ public ItemStack getItem() {
+ return item;
+ return this.item;
+ }
+
+ /**
@@ -49,17 +51,17 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ * @return int the number of ticks the item was held for
+ */
+ public int getTicksHeldFor() {
+ return ticksHeldFor;
+ return this.ticksHeldFor;
+ }
+
+ @NotNull
+ @Override
+ public HandlerList getHandlers() {
+ return handlers;
+ return HANDLER_LIST;
+ }
+
+ @NotNull
+ public static HandlerList getHandlerList() {
+ return handlers;
+ return HANDLER_LIST;
+ }
+}