Tabnine Logo
Title.readVarInt
Code IndexAdd Tabnine to your IDE (free)

How to use
readVarInt
method
in
net.md_5.bungee.protocol.packet.Title

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

origin: SpigotMC/BungeeCord

@Override
public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
{
  int index = readVarInt( buf );
  // If we're working on 1.10 or lower, increment the value of the index so we pull out the correct value.
  if ( protocolVersion <= ProtocolConstants.MINECRAFT_1_10 && index >= 2 )
  {
    index++;
  }
  action = Action.values()[index];
  switch ( action )
  {
    case TITLE:
    case SUBTITLE:
    case ACTIONBAR:
      text = readString( buf );
      break;
    case TIMES:
      fadeIn = buf.readInt();
      stay = buf.readInt();
      fadeOut = buf.readInt();
      break;
  }
}
origin: WaterfallMC/Waterfall-Old

@Override
public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
{
  action = Action.values()[readVarInt( buf )];
  switch ( action )
  {
    case TITLE:
    case SUBTITLE:
      text = readString( buf );
      break;
    case TIMES:
      fadeIn = buf.readInt();
      stay = buf.readInt();
      fadeOut = buf.readInt();
      break;
  }
}
net.md_5.bungee.protocol.packetTitlereadVarInt

Popular methods of Title

  • <init>
  • readString
  • setAction
  • setFadeIn
  • setFadeOut
  • setStay
  • setText
  • writeString
  • writeVarInt

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JOptionPane (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • CodeWhisperer alternatives
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