Class WIcon

java.lang.Object
com.olziedev.playerwarps.api.warp.WIcon

public abstract class WIcon extends Object
Represents a warp icon that can provide and manage basic icon data for the warp.
  • Constructor Details

    • WIcon

      public WIcon()
  • Method Details

    • replaceLore

      public abstract List<String> replaceLore(List<String> s, CommandSender viewer)
      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

      public abstract ItemStack getWarpIcon()
      Returns:
      The custom warp icon.
    • setWarpIcon

      public abstract void setWarpIcon(ItemStack icon)
      Modifies the custom warp icon.
      Parameters:
      icon - The new custom warp icon.