Class WIcon
java.lang.Object
com.olziedev.playerwarps.api.warp.WIcon
Represents a warp icon that can provide and manage basic icon data for the warp.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ItemStack
replaceLore
(List<String> s, CommandSender viewer) abstract void
setWarpIcon
(ItemStack icon) Modifies the custom warp icon.
-
Constructor Details
-
WIcon
public WIcon()
-
-
Method Details
-
replaceLore
- Parameters:
s
- The string that will be replaced with the needed variables.viewer
- The sender that is viewing the warp.- Returns:
- The new string with the new variables.
-
getWarpIcon
- Returns:
- The custom warp icon.
-
setWarpIcon
Modifies the custom warp icon.- Parameters:
icon
- The new custom warp icon.
-