Add method to access owner
Makes handling ISpecialInventory ownership much more consistent with a lot less spaghetti.
This commit is contained in:
		@@ -16,6 +16,7 @@
 | 
			
		||||
 | 
			
		||||
package com.lishid.openinv.internal;
 | 
			
		||||
 | 
			
		||||
import org.bukkit.entity.HumanEntity;
 | 
			
		||||
import org.bukkit.entity.Player;
 | 
			
		||||
import org.bukkit.inventory.Inventory;
 | 
			
		||||
import org.jetbrains.annotations.NotNull;
 | 
			
		||||
@@ -48,4 +49,11 @@ public interface ISpecialInventory {
 | 
			
		||||
     */
 | 
			
		||||
    boolean isInUse();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Gets the Player associated with this ISpecialInventory.
 | 
			
		||||
     *
 | 
			
		||||
     * @return the HumanEntity
 | 
			
		||||
     */
 | 
			
		||||
    @NotNull HumanEntity getPlayer();
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user