Implement search configuration type
This commit is contained in:
parent
76aa22ec27
commit
0e8ab30672
29
src/dev/w1zzrd/invtweaks/serialization/SearchConfig.java
Normal file
29
src/dev/w1zzrd/invtweaks/serialization/SearchConfig.java
Normal 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;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user