[ci skip] Cleanup events (#10202)
This commit is contained in:
		
					parent
					
						
							
								d676979ea0
							
						
					
				
			
			
				commit
				
					
						f7e469eb2e
					
				
			
		
					 187 changed files with 2415 additions and 2258 deletions
				
			
		| 
						 | 
				
			
			@ -199,11 +199,17 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
 | 
			
		|||
+import org.bukkit.event.Cancellable;
 | 
			
		||||
+import org.bukkit.event.HandlerList;
 | 
			
		||||
+import org.bukkit.event.player.PlayerEvent;
 | 
			
		||||
+import org.jetbrains.annotations.ApiStatus;
 | 
			
		||||
+import org.jetbrains.annotations.NotNull;
 | 
			
		||||
+
 | 
			
		||||
+public class LootableInventoryReplenishEvent extends PlayerEvent implements Cancellable {
 | 
			
		||||
+    @NotNull private final LootableInventory inventory;
 | 
			
		||||
+
 | 
			
		||||
+    private static final HandlerList HANDLER_LIST = new HandlerList();
 | 
			
		||||
+
 | 
			
		||||
+    @NotNull private final LootableInventory inventory;
 | 
			
		||||
+    private boolean cancelled;
 | 
			
		||||
+
 | 
			
		||||
+    @ApiStatus.Internal
 | 
			
		||||
+    public LootableInventoryReplenishEvent(@NotNull Player player, @NotNull LootableInventory inventory) {
 | 
			
		||||
+        super(player);
 | 
			
		||||
+        this.inventory = inventory;
 | 
			
		||||
| 
						 | 
				
			
			@ -211,31 +217,27 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
 | 
			
		|||
+
 | 
			
		||||
+    @NotNull
 | 
			
		||||
+    public LootableInventory getInventory() {
 | 
			
		||||
+        return inventory;
 | 
			
		||||
+        return this.inventory;
 | 
			
		||||
+    }
 | 
			
		||||
+
 | 
			
		||||
+    private static final HandlerList handlers = new HandlerList();
 | 
			
		||||
+
 | 
			
		||||
+    @NotNull
 | 
			
		||||
+    public HandlerList getHandlers() {
 | 
			
		||||
+        return handlers;
 | 
			
		||||
+    }
 | 
			
		||||
+
 | 
			
		||||
+    @NotNull
 | 
			
		||||
+    public static HandlerList getHandlerList() {
 | 
			
		||||
+        return handlers;
 | 
			
		||||
+    }
 | 
			
		||||
+
 | 
			
		||||
+    private boolean cancelled = false;
 | 
			
		||||
+
 | 
			
		||||
+    @Override
 | 
			
		||||
+    public boolean isCancelled() {
 | 
			
		||||
+        return cancelled;
 | 
			
		||||
+        return this.cancelled;
 | 
			
		||||
+    }
 | 
			
		||||
+
 | 
			
		||||
+    @Override
 | 
			
		||||
+    public void setCancelled(boolean cancel) {
 | 
			
		||||
+        cancelled = cancel;
 | 
			
		||||
+        this.cancelled = cancel;
 | 
			
		||||
+    }
 | 
			
		||||
+
 | 
			
		||||
+    @NotNull
 | 
			
		||||
+    public HandlerList getHandlers() {
 | 
			
		||||
+        return HANDLER_LIST;
 | 
			
		||||
+    }
 | 
			
		||||
+
 | 
			
		||||
+    @NotNull
 | 
			
		||||
+    public static HandlerList getHandlerList() {
 | 
			
		||||
+        return HANDLER_LIST;
 | 
			
		||||
+    }
 | 
			
		||||
+}
 | 
			
		||||
diff --git a/src/main/java/org/bukkit/block/Barrel.java b/src/main/java/org/bukkit/block/Barrel.java
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue