mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-07 13:13:04 +00:00
Cleanup
This commit is contained in:
@ -31,24 +31,24 @@ import com.sk89q.worldedit.Vector;
|
||||
*/
|
||||
public class BlockTypeMask implements Mask {
|
||||
protected Set<Integer> types;
|
||||
|
||||
|
||||
public BlockTypeMask() {
|
||||
types = new HashSet<Integer>();
|
||||
}
|
||||
|
||||
|
||||
public BlockTypeMask(Set<Integer> types) {
|
||||
this.types = types;
|
||||
}
|
||||
|
||||
|
||||
public BlockTypeMask(int type) {
|
||||
this();
|
||||
add(type);
|
||||
}
|
||||
|
||||
|
||||
public void add(int type) {
|
||||
types.add(type);
|
||||
}
|
||||
|
||||
|
||||
public boolean matches(EditSession editSession, Vector pos) {
|
||||
return types.contains(editSession.getBlockType(pos));
|
||||
}
|
||||
|
@ -24,9 +24,9 @@ import com.sk89q.worldedit.Vector;
|
||||
import com.sk89q.worldedit.regions.Region;
|
||||
|
||||
public class RegionMask implements Mask {
|
||||
|
||||
|
||||
private Region region;
|
||||
|
||||
|
||||
public RegionMask(Region region) {
|
||||
this.region = region;
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ public class UnderOverlayMask implements Mask {
|
||||
this.overlay = overlay;
|
||||
}
|
||||
|
||||
public void addAll(Set<Integer> ids){
|
||||
public void addAll(Set<Integer> ids) {
|
||||
this.ids.addAll(ids);
|
||||
}
|
||||
|
||||
@ -50,4 +50,3 @@ public class UnderOverlayMask implements Mask {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user