Dieser Commit ist enthalten in:
Ursprung
8a78dcbc78
Commit
1282f6066c
@ -100,7 +100,42 @@ public abstract class ViewFlag {
|
||||
new RFallingBlockEntity(server, pos, Material.WHITE_STAINED_GLASS);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
public static ViewFlag COUNT = new ViewFlag(true, false, "count") {
|
||||
@Override
|
||||
public List<TNTRecord> filter(List<TNTRecord> records) { return records; }
|
||||
|
||||
@Override
|
||||
public void modify(REntityServer server, List<TraceEntity> entities) {
|
||||
for(TraceEntity entity: entities){
|
||||
entity.setDisplayName(String.valueOf(entity.getRecords().size()));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
public static ViewFlag FUSE = new ViewFlag(true, false, "fuse") {
|
||||
@Override
|
||||
public List<TNTRecord> filter(List<TNTRecord> records) { return records; }
|
||||
|
||||
@Override
|
||||
public void modify(REntityServer server, List<TraceEntity> entities) {
|
||||
for(TraceEntity entity: entities){
|
||||
entity.setDisplayName(String.valueOf(entity.getRecords().get(0).getFuse()));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
public static ViewFlag TIME = new ViewFlag(true, false, "time") {
|
||||
@Override
|
||||
public List<TNTRecord> filter(List<TNTRecord> records) { return records; }
|
||||
|
||||
@Override
|
||||
public void modify(REntityServer server, List<TraceEntity> entities) {
|
||||
for(TraceEntity entity: entities){
|
||||
entity.setDisplayName(String.valueOf(entity.getRecords().get(0).getTicksSinceStart()));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren