Class Vector3dSetting
java.lang.Object
meteordevelopment.meteorclient.settings.Setting<org.joml.Vector3d>
meteordevelopment.meteorclient.settings.Vector3dSetting
- All Implemented Interfaces:
IGetter<org.joml.Vector3d>,ISerializable<org.joml.Vector3d>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class meteordevelopment.meteorclient.settings.Setting
Setting.SettingBuilder<B,V, S> -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intfinal doublefinal doublefinal booleanfinal booleanfinal doublefinal doubleFields inherited from class meteordevelopment.meteorclient.settings.Setting
defaultValue, description, lastWasVisible, module, name, onModuleActivated, title, value -
Constructor Summary
ConstructorsConstructorDescriptionVector3dSetting(String name, String description, org.joml.Vector3d defaultValue, Consumer<org.joml.Vector3d> onChanged, Consumer<Setting<org.joml.Vector3d>> onModuleActivated, IVisible visible, double min, double max, double sliderMin, double sliderMax, boolean onSliderRelease, int decimalPlaces, boolean noSlider) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisValueValid(org.joml.Vector3d value) protected org.joml.Vector3dload(net.minecraft.nbt.NbtCompound tag) protected org.joml.Vector3dprotected voidprotected net.minecraft.nbt.NbtCompoundsave(net.minecraft.nbt.NbtCompound tag) booleanset(double x, double y, double z) Methods inherited from class meteordevelopment.meteorclient.settings.Setting
equals, fromTag, get, getDefaultValue, getIdentifierSuggestions, getSuggestions, hashCode, isVisible, onActivated, onChanged, parse, parseId, reset, set, toString, toTag, wasChanged
-
Field Details
-
min
public final double min -
max
public final double max -
sliderMin
public final double sliderMin -
sliderMax
public final double sliderMax -
onSliderRelease
public final boolean onSliderRelease -
decimalPlaces
public final int decimalPlaces -
noSlider
public final boolean noSlider
-
-
Constructor Details
-
Vector3dSetting
public Vector3dSetting(String name, String description, org.joml.Vector3d defaultValue, Consumer<org.joml.Vector3d> onChanged, Consumer<Setting<org.joml.Vector3d>> onModuleActivated, IVisible visible, double min, double max, double sliderMin, double sliderMax, boolean onSliderRelease, int decimalPlaces, boolean noSlider)
-
-
Method Details
-
set
public boolean set(double x, double y, double z) -
resetImpl
protected void resetImpl() -
parseImpl
-
isValueValid
protected boolean isValueValid(org.joml.Vector3d value) - Specified by:
isValueValidin classSetting<org.joml.Vector3d>
-
save
protected net.minecraft.nbt.NbtCompound save(net.minecraft.nbt.NbtCompound tag) -
load
protected org.joml.Vector3d load(net.minecraft.nbt.NbtCompound tag)
-