-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
68cd4a7
commit 1ad4d9a
Showing
9 changed files
with
332 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/main/java/world/bentobox/border/listeners/BorderShower.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package world.bentobox.border.listeners; | ||
|
||
import org.bukkit.entity.Player; | ||
|
||
import world.bentobox.bentobox.api.user.User; | ||
import world.bentobox.bentobox.database.objects.Island; | ||
|
||
/** | ||
* A border shower class | ||
* @author tastybento | ||
* | ||
*/ | ||
public interface BorderShower { | ||
public static final String BORDER_STATE_META_DATA = "Border_state"; | ||
|
||
/** | ||
* Show the barrier to the player on an island | ||
* @param player - player to show | ||
* @param island - island | ||
*/ | ||
public void showBorder(Player player, Island island); | ||
|
||
/** | ||
* Hide the barrier | ||
* @param user - user | ||
*/ | ||
public void hideBorder(User user); | ||
|
||
/** | ||
* Removes any cache | ||
* @param user - user | ||
*/ | ||
default public void clearUser(User user) {}; | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.