Update IdConfig.java

This commit is contained in:
Aleksey 2020-12-12 23:06:29 +03:00
parent 33f3d6d8d0
commit e65df9fbef

View file

@ -27,26 +27,6 @@ public class IdConfig extends Config {
return this.keyFactory.apply(id, key);
}
@Nullable
public IntegerEntry getIntEntry(Identifier id, String key) {
return this.getEntry(createKey(id, key), IntegerEntry.class);
}
@Nullable
public FloatEntry getFloatEntry(Identifier id, String key) {
return this.getEntry(createKey(id, key), FloatEntry.class);
}
@Nullable
public BooleanEntry getBoolEntry(Identifier id, String key) {
return this.getEntry(createKey(id, key), BooleanEntry.class);
}
@Nullable
public StringEntry getStringEntry(Identifier id, String key) {
return this.getEntry(createKey(id, key), StringEntry.class);
}
@Nullable
public <T, E extends Entry<T>> E getEntry(Identifier id, String key, Class<E> type) {
return this.getEntry(createKey(id, key), type);