Creepinson

Minecraft Forge Utilities Class (Free to Use)

Mar 24th, 2018
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.07 KB | None | 0 0
  1. package me.creepinson.util;
  2.  
  3. /**
  4.  * @author Creepinson.
  5.  */
  6. public class CreepinsonUtilities {
  7.  
  8.  
  9.  
  10.     public static boolean hasIncreased(int value, int lastValue){
  11.         boolean bool = false;
  12.         if(value > lastValue){
  13.             bool = true;
  14.         } else {
  15.             bool = false;
  16.         }
  17.         return bool;
  18.     }
  19.     public static boolean hasIncreased(double value, double lastValue){
  20.         boolean bool = false;
  21.         if(value > lastValue){
  22.             bool = true;
  23.         } else {
  24.             bool = false;
  25.         }
  26.         return bool;
  27.     }
  28.  
  29.  
  30.     public static boolean hasDecreased(int value, int lastValue){
  31.         boolean bool = false;
  32.         if(value < lastValue){
  33.             bool = true;
  34.         } else {
  35.             bool = false;
  36.         }
  37.         return bool;
  38.     }
  39.     public static boolean hasDecreased(double value, double lastValue){
  40.         boolean bool = false;
  41.         if(value < lastValue){
  42.             bool = true;
  43.         } else {
  44.             bool = false;
  45.         }
  46.         return bool;
  47.     }
  48.  
  49. }
Add Comment
Please, Sign In to add comment