Turbine generator tweaks

This commit is contained in:
Anuken
2020-06-13 12:08:03 -04:00
parent c8f2362b7e
commit fef4882c15
20 changed files with 3592 additions and 3590 deletions

View File

@@ -170,6 +170,7 @@ public class EntityProcess extends BaseProcessor{
}else if(round == 2){ //round 2: get component classes and generate interfaces for them
//parse groups
//this needs to be done before the entity interfaces are generated, as the entity classes need to know which groups to add themselves to
for(Selement<?> group : allGroups){
GroupDef an = group.annotation(GroupDef.class);
Seq<Stype> types = types(an, GroupDef::value).map(this::interfaceToComp);

View File

@@ -60,7 +60,6 @@ public class Selement<T extends Element>{
}
public <A extends Annotation> A annotation(Class<A> annotation){
if(true) return e.getAnnotation(annotation);
try{
Method m = com.sun.tools.javac.code.AnnoConstruct.class.getDeclaredMethod("getAttribute", Class.class);
m.setAccessible(true);