top.hendrixshen.magiclib.malilib.impl.config.TranslatableConfigDouble Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of magiclib-1_14_4 Show documentation
Show all versions of magiclib-1_14_4 Show documentation
To beat magic with magic :(
package top.hendrixshen.magiclib.malilib.impl.config;
import com.google.gson.JsonElement;
import fi.dy.masa.malilib.config.options.ConfigBase;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Nullable;
import top.hendrixshen.magiclib.SharedConstants;
import top.hendrixshen.magiclib.util.MiscUtil;
import java.util.function.Consumer;
@Deprecated()
@ApiStatus.ScheduledForRemoval(inVersion = "0.8")
@Environment(EnvType.CLIENT)
public class TranslatableConfigDouble extends MagicConfigDouble {
static {
MiscUtil.warnDeprecatedFeature(SharedConstants.MAGICLIB_VERSION_0_8);
}
public TranslatableConfigDouble(String prefix, String name, double defaultValue) {
super(prefix, name, defaultValue);
}
public TranslatableConfigDouble(String prefix, String name, double defaultValue, double minValue, double maxValue) {
super(prefix, name, defaultValue, minValue, maxValue);
}
public TranslatableConfigDouble(String prefix, String name, double defaultValue, double minValue, double maxValue, boolean useSlider) {
super(prefix, name, defaultValue, minValue, maxValue, useSlider);
}
@Override
public void setValueFromJsonElement(JsonElement jsonElement) {
super.setValueFromJsonElement(jsonElement);
}
@Override
public @Nullable Consumer> getValueChangedFromJsonCallback() {
return super.getValueChangedFromJsonCallback();
}
@Override
public void setValueChangedFromJsonCallback(@Nullable Consumer> valueChangedFromJsonCallback) {
super.setValueChangedFromJsonCallback(valueChangedFromJsonCallback);
}
@Override
public String getName() {
return super.getName();
}
@Override
public String getPrettyName() {
return super.getPrettyName();
}
@Override
public String getComment() {
return super.getComment();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy