Implement search configuration type

This commit is contained in:
Gabriel Tofvesson 2021-05-04 05:54:18 +02:00
parent 76aa22ec27
commit 0e8ab30672

View File

@ -0,0 +1,29 @@
package dev.w1zzrd.invtweaks.serialization;
import java.util.Map;
public class SearchConfig extends SimpleReflectiveConfigItem {
private int searchRadiusX, searchRadiusY, searchRadiusZ;
/**
* Required constructor for deserializing data
*
* @param mappings Data to deserialize
*/
public SearchConfig(Map<String, Object> mappings) {
super(mappings);
}
public int getSearchRadiusX() {
return searchRadiusX;
}
public int getSearchRadiusY() {
return searchRadiusY;
}
public int getSearchRadiusZ() {
return searchRadiusZ;
}
}