From b7246fa0016888fd52c45f9c77df46f9d791e326 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Fri, 15 Nov 2019 20:09:15 +0800 Subject: Using more of the API instead of the Impl --- .../java/me/shedaniel/rei/impl/ConfigObjectImpl.java | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java') diff --git a/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java b/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java index 9c56f5b95..345f647fc 100644 --- a/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java +++ b/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java @@ -6,12 +6,15 @@ package me.shedaniel.rei.impl; import me.shedaniel.rei.api.ConfigObject; +import me.shedaniel.rei.api.annotations.Internal; import me.shedaniel.rei.gui.config.*; import me.zeroeightsix.fiber.exception.FiberException; import me.zeroeightsix.fiber.tree.ConfigNode; import me.zeroeightsix.fiber.tree.ConfigValue; import me.zeroeightsix.fiber.tree.Node; +@Deprecated +@Internal public class ConfigObjectImpl implements ConfigObject { public ConfigNode configNode = new ConfigNode(); @@ -189,12 +192,6 @@ public class ConfigObjectImpl implements ConfigObject { .withName("scrollingEntryListWidget") .build(); - // private ConfigValue choosePageDialogPoint = ConfigValue.builder(RelativePoint.class) - // .withParent(technical) - // .withDefaultValue(new RelativePoint(.5, .5)) - // .withName("choosePageDialogPoint") - // .build(); - public ConfigObjectImpl() throws FiberException { } @@ -343,15 +340,4 @@ public class ConfigObjectImpl implements ConfigObject { public boolean doesRegisterRecipesInAnotherThread() { return registerRecipesInAnotherThread.getValue().booleanValue(); } - - @Override - public RelativePoint getChoosePageDialogPoint() { - // return choosePageDialogPoint.getValue(); - return new RelativePoint(.5, .5); - } - - @Override - public void setChoosePageDialogPoint(RelativePoint choosePageDialogPoint) { - // this.choosePageDialogPoint.setValue(choosePageDialogPoint); - } } -- cgit