Package net.md_5.bungee
Class Util
java.lang.Object
net.md_5.bungee.Util
Series of utility classes to perform various operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longaddressToLoginPacketValue(InetAddress address) static Stringstatic StringConstructs a pretty one line version of aThrowable.static Stringstatic InetSocketAddressMethod to transform human readable addresses into usable address objects.static Stringhex(int i) Formats an integer as a hex value.
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
getAddr
Method to transform human readable addresses into usable address objects.- Parameters:
hostline- in the format of 'host:port'- Returns:
- the constructed hostname + port.
-
hex
Formats an integer as a hex value.- Parameters:
i- the integer to format- Returns:
- the hex representation of the integer
-
exception
Constructs a pretty one line version of aThrowable. Useful for debugging. -
csv
-
format
-
addressToLoginPacketValue
-