Class OutfitShopSign

All Implemented Interfaces:
UseListener, Killer, Cloneable, Iterable<String>, Serializable

public class OutfitShopSign extends ShopSign
A shop sign representing contents of an outfit shop.
  • Constructor Details

    • OutfitShopSign

      public OutfitShopSign(String name, String title, String caption, Map<String,String> addLayers, boolean showBase, Map<String,String> hideOverrides, Map<String,Map<String,Integer>> indexes)
      Creates a new outfit shop sign.
      Parameters:
      name - Shop identifier.
      title - Text displayed as sign title.
      caption - Text displayed above inventory list.
      addLayers - Additional outfit layers to include in preview.
      showBase - Set to `true` to override hidden base layers (body, head, & eyes) for all outfits.
      hideOverrides - Manually override each hidden base layer (e.g. "showbody,showhead,showeyes" or "showall") for each outfit.
      indexes - Override default display indexes (defaults: x=1 (center frame), y=2 (forward-facing)).
    • OutfitShopSign

      public OutfitShopSign(String name, String title, String caption, Map<String,String> addLayers, boolean showBase)
      Creates a new outfit shop sign.
      Parameters:
      name - Shop identifier.
      title - Text displayed as sign title.
      caption - Text displayed above inventory list.
      addLayers - Additional outfit layers to include in preview.
      showBase - Set to `true` to override hidden base layers (body, head, & eyes) for all outfits.
    • OutfitShopSign

      public OutfitShopSign(String name, String title, String caption, Map<String,String> addLayers, Map<String,String> hideOverrides)
      Creates a new outfit shop sign.
      Parameters:
      name - Shop identifier.
      title - Text displayed as sign title.
      caption - Text displayed above inventory list.
      addLayers - Additional outfit layers to include in preview.
      hideOverrides - Manually override each hidden base layer (e.g. "showbody,showhead,showeyes" or "showall") for each outfit.
    • OutfitShopSign

      public OutfitShopSign(String name, String title, String caption)
      Creates a new outfit shop sign.
      Parameters:
      name - Shop identifier.
      title - Text displayed as sign title.
      caption - Text displayed above inventory list.
  • Method Details

    • onUsed

      public boolean onUsed(RPEntity user)
      Description copied from class: ShopSign
      Handles use-actions.
      Specified by:
      onUsed in interface UseListener
      Overrides:
      onUsed in class ShopSign
      Parameters:
      user - the RPEntity who uses the object
      Returns:
      true if successful