Tabnine Logo
Package.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
net.buycraft.plugin.data.Package

Best Java code snippets using net.buycraft.plugin.data.Package.getName (Showing top 4 results out of 315)

origin: BuycraftPlugin/BuycraftX

public List<String> format(Currency currency, Package p) {
  NumberFormat format = NumberFormat.getCurrencyInstance(Locale.US);
  format.setCurrency(currency);
  List<String> formatted = new ArrayList<>();
  for (String line : lines) {
    formatted.add(line.replace("%name%", abbreviate(p.getName(), 16))
        .replace("%price%", format.format(p.getEffectivePrice())));
  }
  return formatted;
}
origin: BuycraftPlugin/BuycraftX

meta.setDisplayName(ChatColor.GREEN + p.getName());
origin: BuycraftPlugin/BuycraftX

private void sendPaginatedMessage(Node node, CommandSource source) {
  PaginationService paginationService = Sponge.getServiceManager().provide(PaginationService.class).get();
  PaginationList.Builder builder = paginationService.builder();
  List<Text> contents = node.getSubcategories().stream()
      .map(category -> Text.builder("> " + category.getName()).color(TextColors.GRAY).onClick(TextActions.executeCallback(commandSource -> {
        if (commandSource instanceof Player) {
          sendPaginatedMessage(node.getChild(category), source);
        }
      })).build()).collect(Collectors.toList());
  for (Package p : node.getPackages()) {
    contents.add(Text.builder(p.getName()).color(TextColors.WHITE).append(Text.builder(" - ").color(TextColors.GRAY).build())
        .append(Text.builder("$x".replace("$", plugin.getServerInformation().getAccount().getCurrency().getSymbol())
            .replace("x", "" + p.getEffectivePrice())).color(TextColors.GREEN).build())
        .onClick(TextActions.executeCallback(commandSource -> {
          if (commandSource instanceof Player) {
            plugin.getPlatform().executeAsync(new SendCheckoutLinkTask(plugin, p.getId(), (Player) commandSource));
          }
        })).build());
  }
  builder.title(Text.builder(plugin.getI18n().get("sponge_listing")).color(TextColors.AQUA).build()).contents(contents).padding(Text.of("-")).sendTo(source);
}
origin: BuycraftPlugin/BuycraftX

if (aPackage.getName().equals(ChatColor.stripColor(displayName))) {
  GUIUtil.closeInventoryLater(player);
  if (plugin.getBuyNowSignListener().getSettingUpSigns().containsKey(player.getUniqueId())) {
net.buycraft.plugin.dataPackagegetName

Popular methods of Package

  • getEffectivePrice
  • getId
  • getGui_item
  • getOrder
  • getSale

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • startActivity (Activity)
  • scheduleAtFixedRate (Timer)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Path (java.nio.file)
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now