public interface IslandWarp
Modifier and Type | Method and Description |
---|---|
WarpCategory |
getCategory()
Get the category of the warp.
|
org.bukkit.inventory.ItemStack |
getIcon(SuperiorPlayer superiorPlayer)
Get the icon of the warp after all placeholders are parsed.
|
Island |
getIsland()
Get the island of this warp.
|
org.bukkit.Location |
getLocation()
Get the location of the warp.
|
java.lang.String |
getName()
Get the name of the warp.
|
org.bukkit.inventory.ItemStack |
getRawIcon()
Get the icon of the warp.
|
boolean |
hasPrivateFlag()
Check if the warp is private or public to visitors.
|
void |
setIcon(org.bukkit.inventory.ItemStack icon)
Set the icon of the warp.
|
void |
setLocation(org.bukkit.Location location)
Set the location of the warp.
|
void |
setName(java.lang.String name)
Set the name of the warp.
|
void |
setPrivateFlag(boolean privateFlag)
Set the private flag of the island warp.
|
Island getIsland()
java.lang.String getName()
void setName(java.lang.String name)
name
- The new name to set.org.bukkit.Location getLocation()
void setLocation(org.bukkit.Location location)
location
- The new location to set.boolean hasPrivateFlag()
void setPrivateFlag(boolean privateFlag)
privateFlag
- The flag to set.@Nullable org.bukkit.inventory.ItemStack getRawIcon()
@Nullable org.bukkit.inventory.ItemStack getIcon(@Nullable SuperiorPlayer superiorPlayer)
superiorPlayer
- The player to parse the placeholders forvoid setIcon(@Nullable org.bukkit.inventory.ItemStack icon)
icon
- The icon to set.WarpCategory getCategory()