SteamWar/BauSystem2.0
Archiviert
12
0

Trace Refactor #233

Zusammengeführt
YoyoNow hat 121 Commits von TracerGUI nach master 2024-04-21 16:03:26 +02:00 zusammengeführt
Nur Änderungen aus Commit 1282f6066c werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -100,7 +100,42 @@ public abstract class ViewFlag {
new RFallingBlockEntity(server, pos, Material.WHITE_STAINED_GLASS); 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()));
}
}
}; };
/** /**