/** * Sets the vertical location where the potion timers are rendered. * @param y * @return the new y location */ public static int SetVerticalLocation(int y) { potionLocY = MathHelper.clamp_int(y, 0, mc.displayHeight); return potionLocY; }
/** * Sets the vertical location where the durability icons are rendered. * @param y * @return the new y location */ public static int SetVerticalLocation(int y) { durabalityLocY = MathHelper.clamp_int(y, 0, mc.displayHeight); equipmentLocY = durabalityLocY; return durabalityLocY; }
/** * Sets the horizontal location where the potion timers are rendered. * @param x * @return the new x location */ public static int SetHorizontalLocation(int x) { infoLineLocX = MathHelper.clamp_int(x, 0, mc.displayWidth); return infoLineLocX; }
/** * Sets the vertical location where the potion timers are rendered. * @param y * @return the new y location */ public static int SetVerticalLocation(int y) { infoLineLocY = MathHelper.clamp_int(y, 0, mc.displayHeight); return infoLineLocY; } }
public static void SetLowHealthSoundThreshold(int lowHealthSoundThreshold) { LowHealthSoundThreshold = MathHelper.clamp_int(lowHealthSoundThreshold, 1, 20); } public static int GetLowHealthSoundThreshold()
/** * Sets the current draw distance. * @param newDrawDistance the new draw distance * @return the updated draw distance */ public int SetDrawDistance(int newDrawDistance) { drawDistance = MathHelper.clamp_int(newDrawDistance, minDrawDistance, maxDrawDistance); return drawDistance; }
/** * Sets the horizontal location where the potion timers are rendered. * @param x * @return the new x location */ public static int SetHorizontalLocation(int x) { potionLocX = MathHelper.clamp_int(x, 0, mc.displayWidth); return potionLocX; }
/** * Sets the horizontal location where the durability icons are rendered. * @param x * @return the new x location */ public static int SetHorizontalLocation(int x) { durabalityLocX = MathHelper.clamp_int(x, 0, mc.displayWidth); equipmentLocX = durabalityLocX + armorDurabilityIconX; return durabalityLocX; }
public static void SetTimeout(int value) { timeout = MathHelper.clamp_int(value, minTimeout, maxTimeout); }