From 11f052803c9453226f62fd4963c6419d4eddafc8 Mon Sep 17 00:00:00 2001 From: enbrain <69905075+enbrain@users.noreply.github.com> Date: Sat, 10 Jul 2021 20:27:23 +0900 Subject: [PATCH] Fix the parameter of SliderWidget.setValue (#2570) * Fix the parameter of SliderWidget.setValue * Fix format --- .../net/minecraft/client/gui/widget/SliderWidget.mapping | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mappings/net/minecraft/client/gui/widget/SliderWidget.mapping b/mappings/net/minecraft/client/gui/widget/SliderWidget.mapping index ec4f1ac562..189090073a 100644 --- a/mappings/net/minecraft/client/gui/widget/SliderWidget.mapping +++ b/mappings/net/minecraft/client/gui/widget/SliderWidget.mapping @@ -9,7 +9,14 @@ CLASS net/minecraft/class_357 net/minecraft/client/gui/widget/SliderWidget ARG 6 value METHOD method_25344 applyValue ()V METHOD method_25345 setValueFromMouse (D)V + COMMENT Sets the value from mouse position. + COMMENT + COMMENT

The value will be calculated from the position and the width of this + COMMENT slider. + COMMENT + COMMENT @see #setValue ARG 1 mouseX METHOD method_25346 updateMessage ()V METHOD method_25347 setValue (D)V - ARG 1 mouseX + ARG 1 value + COMMENT the new value; will be clamped to {@code [0, 1]}