blob: c14d396641b1855b55a68c6da59cb8417351d108 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
package net.ess3.settings.antibuild;
import java.util.HashSet;
import java.util.Set;
import lombok.Data;
import lombok.EqualsAndHashCode;
import net.ess3.storage.Comment;
import net.ess3.storage.ListType;
import net.ess3.storage.StorageObject;
import org.bukkit.Material;
@Data
@EqualsAndHashCode(callSuper = false)
public class BlackList implements StorageObject
{
@Comment({"Which blocks should people be prevented from placing"})
@ListType(Material.class)
private Set<Material> placement = new HashSet<Material>();
@Comment({"Which items should people be prevented from using"})
@ListType(Material.class)
private Set<Material> usage = new HashSet<Material>();
@Comment({"Which blocks should people be prevented from breaking"})
@ListType(Material.class)
private Set<Material> breaking = new HashSet<Material>();
@Comment({"Which blocks should not be pushed by pistons"})
@ListType(Material.class)
private Set<Material> piston = new HashSet<Material>();
public BlackList()
{
//todo defaults
}
}
|