Codota Logo
ViaManager$ViaManagerBuilder.platform
Code IndexAdd Codota to your IDE (free)

How to use
platform
method
in
us.myles.ViaVersion.ViaManager$ViaManagerBuilder

Best Java code snippets using us.myles.ViaVersion.ViaManager$ViaManagerBuilder.platform (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: MylesIsCool/ViaVersion

@Listener
public void onGameStart(GameInitializationEvent event) {
  // Setup Logger
  logger = new LoggerWrapper(container.getLogger());
  // Setup Plugin
  conf = new SpongeViaConfig(container, defaultConfig.getParentFile());
  SpongeCommandHandler commandHandler = new SpongeCommandHandler();
  game.getCommandManager().register(this, commandHandler, "viaversion", "viaver", "vvsponge");
  getLogger().info("ViaVersion " + getPluginVersion() + " is now loaded!");
  // Init platform
  Via.init(ViaManager.builder()
      .platform(this)
      .commandHandler(commandHandler)
      .injector(new SpongeViaInjector())
      .loader(new SpongeViaLoader(this))
      .build());
}
origin: MylesIsCool/ViaVersion

public ViaVersionPlugin() {
  // Command handler
  commandHandler = new BukkitCommandHandler();
  // Init platform
  Via.init(ViaManager.builder()
      .platform(this)
      .commandHandler(commandHandler)
      .injector(new BukkitViaInjector())
      .loader(new BukkitViaLoader(this))
      .build());
  // Config magic
  conf = new BukkitViaConfig();
  // For compatibility
  ViaVersion.setInstance(this);
  // Check if we're using protocol support too
  protocolSupport = Bukkit.getPluginManager().getPlugin("ProtocolSupport") != null;
  if (protocolSupport) {
    getLogger().info("Hooking into ProtocolSupport, to prevent issues!");
    try {
      BukkitViaInjector.patchLists();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
}
origin: MylesIsCool/ViaVersion

@Subscribe
public void onProxyInit(ProxyInitializeEvent e) {
  PROXY = proxy;
  VelocityCommandHandler commandHandler = new VelocityCommandHandler();
  PROXY.getCommandManager().register(commandHandler, "viaver", "vvvelocity", "viaversion");
  api = new VelocityViaAPI();
  conf = new VelocityViaConfig(configDir.toFile());
  logger = new LoggerWrapper(loggerslf4j);
  Via.init(ViaManager.builder()
      .platform(this)
      .commandHandler(commandHandler)
      .loader(new VelocityViaLoader())
      .injector(new VelocityViaInjector()).build());
  Via.getManager().init();
}
origin: MylesIsCool/ViaVersion

@Override
public void onLoad() {
  api = new BungeeViaAPI();
  config = new BungeeViaConfig(getDataFolder());
  commandHandler = new BungeeCommandHandler();
  ProxyServer.getInstance().getPluginManager().registerCommand(this, new BungeeCommand(commandHandler));
  // Init platform
  Via.init(ViaManager.builder()
      .platform(this)
      .injector(new BungeeViaInjector())
      .loader(new BungeeViaLoader(this))
      .commandHandler(commandHandler)
      .build());
}
us.myles.ViaVersionViaManager$ViaManagerBuilderplatform

Popular methods of ViaManager$ViaManagerBuilder

    Popular in Java

    • Start an intent from android
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • getExternalFilesDir (Context)
    • addToBackStack (FragmentTransaction)
    • ServerSocket (java.net)
      This class represents a server-side socket that waits for incoming client connections. A ServerSocke
    • Stack (java.util)
      The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
    • Vector (java.util)
      The Vector class implements a growable array of objects. Like an array, it contains components that
    • Pattern (java.util.regex)
      A compiled representation of a regular expression. A regular expression, specified as a string, must
    • JComboBox (javax.swing)
    • Location (org.springframework.beans.factory.parsing)
      Class that models an arbitrary location in a Resource.Typically used to track the location of proble
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now