Trace Refactor #233
@ -25,11 +25,25 @@ import java.util.HashSet;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
public class Trace {
|
public class Trace {
|
||||||
|
/**
|
||||||
|
* Region this trace has been recorded in
|
||||||
|
*/
|
||||||
private final Region region;
|
private final Region region;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Records of TNTs, making up the trace
|
||||||
|
*/
|
||||||
private final Set<TNTRecord> records = new HashSet<>();
|
private final Set<TNTRecord> records = new HashSet<>();
|
||||||
|
|
||||||
public Trace (Region region){
|
public Trace (Region region){
|
||||||
this.region = region;
|
this.region = region;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Methode to add a record to the trace
|
||||||
|
*
|
||||||
|
* @param record record to add
|
||||||
|
*/
|
||||||
|
protected void add (TNTRecord record){
|
||||||
|
records.add(record);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren