MCPcopy Create free account
hub / github.com/boxbeam/RedLib / target

Method target

src/redempt/redlib/config/ConfigManager.java:154–161  ·  view source on GitHub ↗

Specifies the given Object to load config values to and save config values from. The Object must be from a ConfigMappable class, and all of its non-transient fields will be worked with. @param obj The Object to operate on @return This ConfigManager

(Object obj)

Source from the content-addressed store, hash-verified

152 * @return This ConfigManager
153 */
154 public ConfigManager target(Object obj) {
155 if (target != null || targetClass != null) {
156 throw new IllegalStateException("ConfigManager already has a target");
157 }
158 target = obj;
159 converter = ObjectConverter.create(conversionManager, new ConfigType<>(obj.getClass()));
160 return this;
161 }
162
163 /**
164 * Specifies the given Class to load config values to and save config values from. The Class's

Callers 1

onEnableMethod · 0.80

Calls 3

createMethod · 0.95
createMethod · 0.95
getClassMethod · 0.80

Tested by

no test coverage detected