Tabnine Logo
BossBar.getAction
Code IndexAdd Tabnine to your IDE (free)

How to use
getAction
method
in
net.md_5.bungee.protocol.packet.BossBar

Best Java code snippets using net.md_5.bungee.protocol.packet.BossBar.getAction (Showing top 2 results out of 315)

origin: SpigotMC/BungeeCord

@Override
public void handle(BossBar bossBar)
{
  switch ( bossBar.getAction() )
  {
    // Handle add bossbar
    case 0:
      con.getSentBossBars().add( bossBar.getUuid() );
      break;
    // Handle remove bossbar
    case 1:
      con.getSentBossBars().remove( bossBar.getUuid() );
      break;
  }
}
origin: WaterfallMC/Waterfall-Old

@Override
public void handle(BossBar bossBar)
{
  switch ( bossBar.getAction() )
  {
    // Handle add bossbar
    case 0:
      con.getSentBossBars().add( bossBar.getUuid() );
      break;
    // Handle remove bossbar
    case 1:
      con.getSentBossBars().remove( bossBar.getUuid() );
      break;
  }
}
net.md_5.bungee.protocol.packetBossBargetAction

Popular methods of BossBar

  • <init>
  • getUuid
  • readString
  • readUUID
  • readVarInt
  • writeString
  • writeUUID
  • writeVarInt

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • ImageIO (javax.imageio)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • 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