mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-20 00:13:21 +02:00
complete rewrite
This commit is contained in:
parent
d059cd4b8d
commit
1316686d85
24 changed files with 1808 additions and 871 deletions
79
src/main/java/one/oth3r/sit/file/HandSetting.java
Normal file
79
src/main/java/one/oth3r/sit/file/HandSetting.java
Normal file
|
@ -0,0 +1,79 @@
|
|||
package one.oth3r.sit.file;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class HandSetting {
|
||||
|
||||
public boolean mainBlock;
|
||||
@SerializedName("requirement")
|
||||
private SittingRequirement sittingRequirement = SittingRequirement.NONE;
|
||||
@SerializedName("filter")
|
||||
private Filter filter = new Filter();
|
||||
|
||||
public HandSetting() {}
|
||||
|
||||
public HandSetting(SittingRequirement sittingRequirement, Filter filter) {
|
||||
this.sittingRequirement = sittingRequirement;
|
||||
this.filter = filter;
|
||||
}
|
||||
|
||||
public SittingRequirement getSittingRequirement() {
|
||||
return sittingRequirement;
|
||||
}
|
||||
|
||||
public Filter getFilter() {
|
||||
return filter;
|
||||
}
|
||||
|
||||
public enum SittingRequirement {
|
||||
NONE,
|
||||
FILTER,
|
||||
EMPTY
|
||||
}
|
||||
|
||||
public static class Filter {
|
||||
|
||||
@SerializedName("block")
|
||||
private boolean block = false;
|
||||
@SerializedName("food")
|
||||
private boolean food = false;
|
||||
@SerializedName("usable")
|
||||
private boolean usable = false;
|
||||
@SerializedName("custom-items")
|
||||
private ArrayList<String> customItems = new ArrayList<>();
|
||||
@SerializedName("custom-tags")
|
||||
private ArrayList<String> customTags = new ArrayList<>();
|
||||
|
||||
public Filter() {}
|
||||
|
||||
public Filter(boolean block, boolean food, boolean usable, ArrayList<String> customItems, ArrayList<String> customTags) {
|
||||
this.block = block;
|
||||
this.food = food;
|
||||
this.usable = usable;
|
||||
this.customItems = customItems;
|
||||
this.customTags = customTags;
|
||||
}
|
||||
|
||||
public boolean isBlock() {
|
||||
return block;
|
||||
}
|
||||
|
||||
public boolean isFood() {
|
||||
return food;
|
||||
}
|
||||
|
||||
public boolean isUsable() {
|
||||
return usable;
|
||||
}
|
||||
|
||||
public ArrayList<String> getCustomItems() {
|
||||
return customItems;
|
||||
}
|
||||
|
||||
public ArrayList<String> getCustomTags() {
|
||||
return customTags;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue