L2JPREMIUM  5M
com.premium.game.util.Util Class Reference

Classes

interface  Filter
 

Static Public Member Functions

static final double calculateAngleFrom (int obj1X, int obj1Y, int obj2X, int obj2Y)
 
static final double calculateAngleFrom (L2Object obj1, L2Object obj2)
 
static final double calculateDistance (int x1, int y1, int z1, int x2, int y2)
 
static final double calculateDistance (int x1, int y1, int z1, int x2, int y2, int z2, boolean includeZAxis)
 
static final double calculateDistance (L2Object obj1, L2Object obj2, boolean includeZAxis)
 
static final int calculateHeadingFrom (double dx, double dy)
 
static final int calculateHeadingFrom (int obj1X, int obj1Y, int obj2X, int obj2Y)
 
static final int calculateHeadingFrom (L2Object obj1, L2Object obj2)
 
static double calculatePercentage (double number, double percentage)
 
static String capitalizeFirst (String str)
 
static String capitalizeWords (String str)
 
static boolean checkIfInRange (int range, L2Object obj1, L2Object obj2, boolean includeZAxis)
 
static boolean checkIfInShortRadius (int radius, L2Object obj1, L2Object obj2, boolean includeZAxis)
 
static boolean contains (int[] array, int obj)
 
static< T > boolean contains (T[] array, T obj)
 
static final int convertDegreeToClientHeading (double degree)
 
static final double convertHeadingToDegree (int clientHeading)
 
static int convertMinutesToMiliseconds (int minutesToConvert)
 
static int convertMinutesToSeconds (int minutesToConvert)
 
static double convertPercentageByMultipler (double multiplerX100)
 
static int convertSecondsToMiliseconds (int secondsToConvert)
 
static< T > Collection< T > filter (Collection< T > l, Filter< T > filter)
 
static Location findPointForDistance (Location src, Location dst, double distance)
 
static String formatNumber (double value)
 
static long gc (int i, int delay)
 
static File[] getDatapackFiles (String dirname, String extention)
 
static String[] getMemUsage ()
 
static String getRelativePath (File base, File file)
 
static void handleIllegalPlayerAction (L2PcInstance actor, String message, int punishment)
 
static String implodeString (Collection< String > strCollection, String strDelim)
 
static String implodeString (String[] strArray, String strDelim)
 
static boolean isAlphaNumeric (String text)
 
static boolean isDigit (String text)
 
static boolean isValidName (String text, String regex)
 
static boolean isValidPlayerName (String text)
 
static File[] listDirFiles (String path, final String extension)
 
static File[] listFolders (String path)
 
static void printGeneralSystemInfo ()
 
static String reverseColor (String color)
 
static float roundTo (float val, int numPlaces)
 
static Map< Integer, Integer > sortMap (Map< Integer, Integer > map, boolean asc)
 

The documentation for this class was generated from the following file: