Tabnine Logo
ViaManager$ViaManagerBuilder.platform
Code IndexAdd Tabnine 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)

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

    • Parsing JSON documents to java classes using gson
    • notifyDataSetChanged (ArrayAdapter)
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • requestLocationUpdates (LocationManager)
    • Kernel (java.awt.image)
    • Socket (java.net)
      Provides a client-side TCP socket.
    • NoSuchElementException (java.util)
      Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
    • Modifier (javassist)
      The Modifier class provides static methods and constants to decode class and member access modifiers
    • DataSource (javax.sql)
      An interface for the creation of Connection objects which represent a connection to a database. This
    • LogFactory (org.apache.commons.logging)
      Factory for creating Log instances, with discovery and configuration features similar to that employ
    • Top plugins for WebStorm
    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