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

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

Best Java code snippets using net.md_5.bungee.protocol.packet.Title.readString (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.packetTitlereadString

Popular methods of Title

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

Popular in Java

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Notification (javax.management)
  • JFileChooser (javax.swing)
  • From CI to AI: The AI layer in your organization
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