# Uses of Class
net.md_5.bungee.protocol.util.Either

Packages that use Either
Package
Description
net.md_5.bungee.protocol
net.md_5.bungee.protocol.packet
net.md_5.bungee.protocol.util

- ## Uses of Either in net.md_5.bungee.protocol

  Methods in net.md_5.bungee.protocol that return Either
  Modifier and Type
  Method
  Description
  `static Either<String,net.md_5.bungee.api.chat.BaseComponent>`
  DefinedPacket.`readEitherBaseComponent(io.netty.buffer.ByteBuf buf, int protocolVersion, boolean string)`
  Methods in net.md_5.bungee.protocol with parameters of type Either
  Modifier and Type
  Method
  Description
  `static void`
  DefinedPacket.`writeEitherBaseComponent(Either<String,net.md_5.bungee.api.chat.BaseComponent> message, io.netty.buffer.ByteBuf buf, int protocolVersion)`

- ## Uses of Either in net.md_5.bungee.protocol.packet

  Fields in net.md_5.bungee.protocol.packet declared as Either
  Modifier and Type
  Field
  Description
  `protected Either<Integer,net.md_5.bungee.api.dialog.Dialog>`
  ShowDialog.`dialog`
  Methods in net.md_5.bungee.protocol.packet that return Either
  Modifier and Type
  Method
  Description
  `Either<String,Team.CollisionRule>`
  Team.`getCollisionRule()`
  `Either<Integer,net.md_5.bungee.api.dialog.Dialog>`
  ShowDialog.`getDialog()`
  `Either<String,net.md_5.bungee.api.chat.BaseComponent>`
  Team.`getDisplayName()`
  `Either<String,Team.NameTagVisibility>`
  Team.`getNameTagVisibility()`
  `Either<String,net.md_5.bungee.api.chat.BaseComponent>`
  Team.`getPrefix()`
  `Either<String,net.md_5.bungee.api.chat.BaseComponent>`
  Team.`getSuffix()`
  `Either<Integer,net.md_5.bungee.api.chat.BaseComponent>`
  ServerLinks.Link.`getType()`
  `Either<String,net.md_5.bungee.api.chat.BaseComponent>`
  ScoreboardObjective.`getValue()`
  Methods in net.md_5.bungee.protocol.packet with parameters of type Either
  Modifier and Type
  Method
  Description
  `void`
  Team.`setCollisionRule(Either<String,Team.CollisionRule> collisionRule)`
  `void`
  ShowDialog.`setDialog(Either<Integer,net.md_5.bungee.api.dialog.Dialog> dialog)`
  `void`
  Team.`setDisplayName(Either<String,net.md_5.bungee.api.chat.BaseComponent> displayName)`
  `void`
  Team.`setNameTagVisibility(Either<String,Team.NameTagVisibility> nameTagVisibility)`
  `void`
  Team.`setPrefix(Either<String,net.md_5.bungee.api.chat.BaseComponent> prefix)`
  `void`
  Team.`setSuffix(Either<String,net.md_5.bungee.api.chat.BaseComponent> suffix)`
  `void`
  ScoreboardObjective.`setValue(Either<String,net.md_5.bungee.api.chat.BaseComponent> value)`
  Constructors in net.md_5.bungee.protocol.packet with parameters of type Either
  Modifier
  Constructor
  Description
  ``
  `Link(Either<Integer,net.md_5.bungee.api.chat.BaseComponent> type, String url)`
  ``
  `ScoreboardObjective(String name, Either<String,net.md_5.bungee.api.chat.BaseComponent> value, ScoreboardObjective.HealthDisplay type, byte action, NumberFormat numberFormat)`
  Creates a new `ScoreboardObjective` instance.
  ``
  `ShowDialog(Either<Integer,net.md_5.bungee.api.dialog.Dialog> dialog)`
  ``
  `Team(String name, byte mode, Either<String,net.md_5.bungee.api.chat.BaseComponent> displayName, Either<String,net.md_5.bungee.api.chat.BaseComponent> prefix, Either<String,net.md_5.bungee.api.chat.BaseComponent> suffix, Either<String,Team.NameTagVisibility> nameTagVisibility, Either<String,Team.CollisionRule> collisionRule, int color, byte friendlyFire, String[] players)`
  Creates a new `Team` instance.

- ## Uses of Either in net.md_5.bungee.protocol.util

  Methods in net.md_5.bungee.protocol.util that return Either
  Modifier and Type
  Method
  Description
  `static <L, R> Either<L,R>`
  Either.`left(L left)`
  `static <L, R> Either<L,R>`
  Either.`right(R right)`