Rename getByValueType to getAllValuesByType

This commit is contained in:
Brady 2018-08-27 13:39:36 -05:00
parent 3bb1c1a972
commit 3bf4b997b0
No known key found for this signature in database
GPG Key ID: 73A788379A197567
2 changed files with 2 additions and 2 deletions

View File

@ -323,7 +323,7 @@ public class Settings {
}
@SuppressWarnings("unchecked")
public <T> List<Setting<T>> getByValueType(Class<T> klass) {
public <T> List<Setting<T>> getAllValuesByType(Class<T> klass) {
List<Setting<T>> result = new ArrayList<>();
for (Setting<?> setting : allSettings) {
if (setting.klass.equals(klass)) {

View File

@ -286,7 +286,7 @@ public class ExampleBaritoneControl extends Behavior {
event.cancel();
return;
}
List<Settings.Setting<Boolean>> toggleable = Baritone.settings().getByValueType(Boolean.class);
List<Settings.Setting<Boolean>> toggleable = Baritone.settings().getAllValuesByType(Boolean.class);
for (Settings.Setting<Boolean> setting : toggleable) {
if (msg.equalsIgnoreCase(setting.getName())) {
setting.value ^= true;