Skip to content

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
ALongStringOfNumbers committed May 15, 2024
1 parent 8110c4e commit ed7772e
Showing 1 changed file with 28 additions and 24 deletions.
52 changes: 28 additions & 24 deletions src/main/java/gregtech/asm/GregTechTransformer.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,30 +127,34 @@ public byte[] transform(String name, String transformedName, byte[] basicClass)
* return classWriter.toByteArray();
* }
*/
/*case LittleTilesVisitor.TARGET_CLASS_NAME: {
ClassReader classReader = new ClassReader(basicClass);
ClassWriter classWriter = new ClassWriter(ClassWriter.COMPUTE_FRAMES | ClassWriter.COMPUTE_MAXS);
classReader.accept(
new TargetClassVisitor(classWriter, LittleTilesVisitor.TARGET_METHOD, LittleTilesVisitor::new),
0);
return classWriter.toByteArray();
}*/
/*case CCLVisitor.TARGET_CLASS_NAME: {
ClassReader classReader = new ClassReader(basicClass);
ClassWriter classWriter = new ClassWriter(ClassWriter.COMPUTE_FRAMES | ClassWriter.COMPUTE_MAXS);
classReader.accept(new TargetClassVisitor(classWriter, CCLVisitor.TARGET_METHOD, CCLVisitor::new), 0);
return classWriter.toByteArray();
}
case RenderItemVisitor.TARGET_CLASS_NAME: {
ClassNode classNode = new ClassNode();
ClassReader classReader = new ClassReader(basicClass);
classReader.accept(classNode, 0);
Iterator<MethodNode> methods = classNode.methods.iterator();
RenderItemVisitor.transform(methods);
ClassWriter classWriter = new ClassWriter(0);
classNode.accept(classWriter);
return classWriter.toByteArray();
} */
/*
* case LittleTilesVisitor.TARGET_CLASS_NAME: {
* ClassReader classReader = new ClassReader(basicClass);
* ClassWriter classWriter = new ClassWriter(ClassWriter.COMPUTE_FRAMES | ClassWriter.COMPUTE_MAXS);
* classReader.accept(
* new TargetClassVisitor(classWriter, LittleTilesVisitor.TARGET_METHOD, LittleTilesVisitor::new),
* 0);
* return classWriter.toByteArray();
* }
*/
/*
* case CCLVisitor.TARGET_CLASS_NAME: {
* ClassReader classReader = new ClassReader(basicClass);
* ClassWriter classWriter = new ClassWriter(ClassWriter.COMPUTE_FRAMES | ClassWriter.COMPUTE_MAXS);
* classReader.accept(new TargetClassVisitor(classWriter, CCLVisitor.TARGET_METHOD, CCLVisitor::new), 0);
* return classWriter.toByteArray();
* }
* case RenderItemVisitor.TARGET_CLASS_NAME: {
* ClassNode classNode = new ClassNode();
* ClassReader classReader = new ClassReader(basicClass);
* classReader.accept(classNode, 0);
* Iterator<MethodNode> methods = classNode.methods.iterator();
* RenderItemVisitor.transform(methods);
* ClassWriter classWriter = new ClassWriter(0);
* classNode.accept(classWriter);
* return classWriter.toByteArray();
* }
*/
/*
* case RecipeRepairItemVisitor.TARGET_CLASS_NAME: {
* ClassReader classReader = new ClassReader(basicClass);
Expand Down

0 comments on commit ed7772e

Please sign in to comment.