MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / getValue

Method getValue

Minecraft-Utils/1.12.2/src/Slider.java:106–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 }
105
106 private String getValue() {
107 String customValue = sliderItem.getCustomValue(value);
108 if (customValue != null)
109 return customValue;
110 return Math.round(value * (sliderItem.getMaxValue() - sliderItem.getMinValue()) + sliderItem.getMinValue()) + sliderItem.getSuffix();
111 }
112
113 @Override
114 public void mouseReleased(int x, int y) {

Callers 3

setLabelMethod · 0.95
mouseClickedMethod · 0.95
renderMethod · 0.45

Calls 4

getCustomValueMethod · 0.65
getMaxValueMethod · 0.65
getMinValueMethod · 0.65
getSuffixMethod · 0.65

Tested by

no test coverage detected