mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-11 15:57:42 +00:00
Fix wildcard import & spotlessApply
This commit is contained in:
1 parent
c841d484ee
commit
52d522f311
20 files changed
+357
-44
No files matched your search
@@ -1,9 +1,17 @@
|
||||
package codechicken.lib.asm;
|
||||
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.*;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.FRAME;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.JUMP_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.LABEL;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.LOOKUPSWITCH_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.TABLESWITCH_INSN;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
import org.objectweb.asm.tree.AbstractInsnNode;
|
||||
import org.objectweb.asm.tree.InsnList;
|
||||
|
||||
@@ -13,7 +13,13 @@ import org.apache.logging.log4j.Logger;
|
||||
import org.objectweb.asm.ClassReader;
|
||||
import org.objectweb.asm.ClassVisitor;
|
||||
import org.objectweb.asm.ClassWriter;
|
||||
import org.objectweb.asm.tree.*;
|
||||
import org.objectweb.asm.tree.ClassNode;
|
||||
import org.objectweb.asm.tree.FieldNode;
|
||||
import org.objectweb.asm.tree.InsnList;
|
||||
import org.objectweb.asm.tree.LabelNode;
|
||||
import org.objectweb.asm.tree.LocalVariableNode;
|
||||
import org.objectweb.asm.tree.MethodNode;
|
||||
import org.objectweb.asm.tree.TryCatchBlockNode;
|
||||
import org.objectweb.asm.util.ASMifier;
|
||||
import org.objectweb.asm.util.Textifier;
|
||||
import org.objectweb.asm.util.TraceClassVisitor;
|
||||
|
||||
@@ -1,15 +1,194 @@
|
||||
package codechicken.lib.asm;
|
||||
|
||||
import static org.objectweb.asm.Opcodes.*;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.*;
|
||||
import static org.objectweb.asm.Opcodes.AALOAD;
|
||||
import static org.objectweb.asm.Opcodes.AASTORE;
|
||||
import static org.objectweb.asm.Opcodes.ACONST_NULL;
|
||||
import static org.objectweb.asm.Opcodes.ALOAD;
|
||||
import static org.objectweb.asm.Opcodes.ANEWARRAY;
|
||||
import static org.objectweb.asm.Opcodes.ARETURN;
|
||||
import static org.objectweb.asm.Opcodes.ARRAYLENGTH;
|
||||
import static org.objectweb.asm.Opcodes.ASTORE;
|
||||
import static org.objectweb.asm.Opcodes.ATHROW;
|
||||
import static org.objectweb.asm.Opcodes.BALOAD;
|
||||
import static org.objectweb.asm.Opcodes.BASTORE;
|
||||
import static org.objectweb.asm.Opcodes.BIPUSH;
|
||||
import static org.objectweb.asm.Opcodes.CALOAD;
|
||||
import static org.objectweb.asm.Opcodes.CASTORE;
|
||||
import static org.objectweb.asm.Opcodes.CHECKCAST;
|
||||
import static org.objectweb.asm.Opcodes.D2F;
|
||||
import static org.objectweb.asm.Opcodes.D2I;
|
||||
import static org.objectweb.asm.Opcodes.D2L;
|
||||
import static org.objectweb.asm.Opcodes.DADD;
|
||||
import static org.objectweb.asm.Opcodes.DALOAD;
|
||||
import static org.objectweb.asm.Opcodes.DASTORE;
|
||||
import static org.objectweb.asm.Opcodes.DCMPG;
|
||||
import static org.objectweb.asm.Opcodes.DCMPL;
|
||||
import static org.objectweb.asm.Opcodes.DCONST_0;
|
||||
import static org.objectweb.asm.Opcodes.DCONST_1;
|
||||
import static org.objectweb.asm.Opcodes.DDIV;
|
||||
import static org.objectweb.asm.Opcodes.DLOAD;
|
||||
import static org.objectweb.asm.Opcodes.DMUL;
|
||||
import static org.objectweb.asm.Opcodes.DNEG;
|
||||
import static org.objectweb.asm.Opcodes.DREM;
|
||||
import static org.objectweb.asm.Opcodes.DRETURN;
|
||||
import static org.objectweb.asm.Opcodes.DSTORE;
|
||||
import static org.objectweb.asm.Opcodes.DSUB;
|
||||
import static org.objectweb.asm.Opcodes.DUP;
|
||||
import static org.objectweb.asm.Opcodes.DUP2;
|
||||
import static org.objectweb.asm.Opcodes.DUP2_X1;
|
||||
import static org.objectweb.asm.Opcodes.DUP2_X2;
|
||||
import static org.objectweb.asm.Opcodes.DUP_X1;
|
||||
import static org.objectweb.asm.Opcodes.DUP_X2;
|
||||
import static org.objectweb.asm.Opcodes.F2D;
|
||||
import static org.objectweb.asm.Opcodes.F2I;
|
||||
import static org.objectweb.asm.Opcodes.F2L;
|
||||
import static org.objectweb.asm.Opcodes.FADD;
|
||||
import static org.objectweb.asm.Opcodes.FALOAD;
|
||||
import static org.objectweb.asm.Opcodes.FASTORE;
|
||||
import static org.objectweb.asm.Opcodes.FCMPG;
|
||||
import static org.objectweb.asm.Opcodes.FCMPL;
|
||||
import static org.objectweb.asm.Opcodes.FCONST_0;
|
||||
import static org.objectweb.asm.Opcodes.FCONST_1;
|
||||
import static org.objectweb.asm.Opcodes.FCONST_2;
|
||||
import static org.objectweb.asm.Opcodes.FDIV;
|
||||
import static org.objectweb.asm.Opcodes.FLOAD;
|
||||
import static org.objectweb.asm.Opcodes.FMUL;
|
||||
import static org.objectweb.asm.Opcodes.FNEG;
|
||||
import static org.objectweb.asm.Opcodes.FREM;
|
||||
import static org.objectweb.asm.Opcodes.FRETURN;
|
||||
import static org.objectweb.asm.Opcodes.FSTORE;
|
||||
import static org.objectweb.asm.Opcodes.FSUB;
|
||||
import static org.objectweb.asm.Opcodes.GETFIELD;
|
||||
import static org.objectweb.asm.Opcodes.GETSTATIC;
|
||||
import static org.objectweb.asm.Opcodes.GOTO;
|
||||
import static org.objectweb.asm.Opcodes.I2B;
|
||||
import static org.objectweb.asm.Opcodes.I2C;
|
||||
import static org.objectweb.asm.Opcodes.I2D;
|
||||
import static org.objectweb.asm.Opcodes.I2F;
|
||||
import static org.objectweb.asm.Opcodes.I2L;
|
||||
import static org.objectweb.asm.Opcodes.I2S;
|
||||
import static org.objectweb.asm.Opcodes.IADD;
|
||||
import static org.objectweb.asm.Opcodes.IALOAD;
|
||||
import static org.objectweb.asm.Opcodes.IAND;
|
||||
import static org.objectweb.asm.Opcodes.IASTORE;
|
||||
import static org.objectweb.asm.Opcodes.ICONST_0;
|
||||
import static org.objectweb.asm.Opcodes.ICONST_1;
|
||||
import static org.objectweb.asm.Opcodes.ICONST_2;
|
||||
import static org.objectweb.asm.Opcodes.ICONST_3;
|
||||
import static org.objectweb.asm.Opcodes.ICONST_4;
|
||||
import static org.objectweb.asm.Opcodes.ICONST_5;
|
||||
import static org.objectweb.asm.Opcodes.ICONST_M1;
|
||||
import static org.objectweb.asm.Opcodes.IDIV;
|
||||
import static org.objectweb.asm.Opcodes.IFEQ;
|
||||
import static org.objectweb.asm.Opcodes.IFGE;
|
||||
import static org.objectweb.asm.Opcodes.IFGT;
|
||||
import static org.objectweb.asm.Opcodes.IFLE;
|
||||
import static org.objectweb.asm.Opcodes.IFLT;
|
||||
import static org.objectweb.asm.Opcodes.IFNE;
|
||||
import static org.objectweb.asm.Opcodes.IFNONNULL;
|
||||
import static org.objectweb.asm.Opcodes.IFNULL;
|
||||
import static org.objectweb.asm.Opcodes.IF_ACMPEQ;
|
||||
import static org.objectweb.asm.Opcodes.IF_ACMPNE;
|
||||
import static org.objectweb.asm.Opcodes.IF_ICMPEQ;
|
||||
import static org.objectweb.asm.Opcodes.IF_ICMPGE;
|
||||
import static org.objectweb.asm.Opcodes.IF_ICMPGT;
|
||||
import static org.objectweb.asm.Opcodes.IF_ICMPLE;
|
||||
import static org.objectweb.asm.Opcodes.IF_ICMPLT;
|
||||
import static org.objectweb.asm.Opcodes.IF_ICMPNE;
|
||||
import static org.objectweb.asm.Opcodes.IINC;
|
||||
import static org.objectweb.asm.Opcodes.ILOAD;
|
||||
import static org.objectweb.asm.Opcodes.IMUL;
|
||||
import static org.objectweb.asm.Opcodes.INEG;
|
||||
import static org.objectweb.asm.Opcodes.INSTANCEOF;
|
||||
import static org.objectweb.asm.Opcodes.INVOKEDYNAMIC;
|
||||
import static org.objectweb.asm.Opcodes.INVOKEINTERFACE;
|
||||
import static org.objectweb.asm.Opcodes.INVOKESPECIAL;
|
||||
import static org.objectweb.asm.Opcodes.INVOKESTATIC;
|
||||
import static org.objectweb.asm.Opcodes.INVOKEVIRTUAL;
|
||||
import static org.objectweb.asm.Opcodes.IOR;
|
||||
import static org.objectweb.asm.Opcodes.IREM;
|
||||
import static org.objectweb.asm.Opcodes.IRETURN;
|
||||
import static org.objectweb.asm.Opcodes.ISHL;
|
||||
import static org.objectweb.asm.Opcodes.ISHR;
|
||||
import static org.objectweb.asm.Opcodes.ISTORE;
|
||||
import static org.objectweb.asm.Opcodes.ISUB;
|
||||
import static org.objectweb.asm.Opcodes.IUSHR;
|
||||
import static org.objectweb.asm.Opcodes.IXOR;
|
||||
import static org.objectweb.asm.Opcodes.JSR;
|
||||
import static org.objectweb.asm.Opcodes.L2D;
|
||||
import static org.objectweb.asm.Opcodes.L2F;
|
||||
import static org.objectweb.asm.Opcodes.L2I;
|
||||
import static org.objectweb.asm.Opcodes.LADD;
|
||||
import static org.objectweb.asm.Opcodes.LALOAD;
|
||||
import static org.objectweb.asm.Opcodes.LAND;
|
||||
import static org.objectweb.asm.Opcodes.LASTORE;
|
||||
import static org.objectweb.asm.Opcodes.LCMP;
|
||||
import static org.objectweb.asm.Opcodes.LCONST_0;
|
||||
import static org.objectweb.asm.Opcodes.LCONST_1;
|
||||
import static org.objectweb.asm.Opcodes.LDC;
|
||||
import static org.objectweb.asm.Opcodes.LDIV;
|
||||
import static org.objectweb.asm.Opcodes.LLOAD;
|
||||
import static org.objectweb.asm.Opcodes.LMUL;
|
||||
import static org.objectweb.asm.Opcodes.LNEG;
|
||||
import static org.objectweb.asm.Opcodes.LOOKUPSWITCH;
|
||||
import static org.objectweb.asm.Opcodes.LOR;
|
||||
import static org.objectweb.asm.Opcodes.LREM;
|
||||
import static org.objectweb.asm.Opcodes.LRETURN;
|
||||
import static org.objectweb.asm.Opcodes.LSHL;
|
||||
import static org.objectweb.asm.Opcodes.LSHR;
|
||||
import static org.objectweb.asm.Opcodes.LSTORE;
|
||||
import static org.objectweb.asm.Opcodes.LSUB;
|
||||
import static org.objectweb.asm.Opcodes.LUSHR;
|
||||
import static org.objectweb.asm.Opcodes.LXOR;
|
||||
import static org.objectweb.asm.Opcodes.MONITORENTER;
|
||||
import static org.objectweb.asm.Opcodes.MONITOREXIT;
|
||||
import static org.objectweb.asm.Opcodes.MULTIANEWARRAY;
|
||||
import static org.objectweb.asm.Opcodes.NEW;
|
||||
import static org.objectweb.asm.Opcodes.NEWARRAY;
|
||||
import static org.objectweb.asm.Opcodes.NOP;
|
||||
import static org.objectweb.asm.Opcodes.POP;
|
||||
import static org.objectweb.asm.Opcodes.POP2;
|
||||
import static org.objectweb.asm.Opcodes.PUTFIELD;
|
||||
import static org.objectweb.asm.Opcodes.PUTSTATIC;
|
||||
import static org.objectweb.asm.Opcodes.RET;
|
||||
import static org.objectweb.asm.Opcodes.RETURN;
|
||||
import static org.objectweb.asm.Opcodes.SALOAD;
|
||||
import static org.objectweb.asm.Opcodes.SASTORE;
|
||||
import static org.objectweb.asm.Opcodes.SIPUSH;
|
||||
import static org.objectweb.asm.Opcodes.SWAP;
|
||||
import static org.objectweb.asm.Opcodes.TABLESWITCH;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.FIELD_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.FRAME;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.IINC_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.INT_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.INVOKE_DYNAMIC_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.JUMP_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.LABEL;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.LDC_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.LOOKUPSWITCH_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.METHOD_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.MULTIANEWARRAY_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.TABLESWITCH_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.TYPE_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.VAR_INSN;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.util.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.objectweb.asm.tree.*;
|
||||
import org.objectweb.asm.tree.AbstractInsnNode;
|
||||
import org.objectweb.asm.tree.IincInsnNode;
|
||||
import org.objectweb.asm.tree.InsnNode;
|
||||
import org.objectweb.asm.tree.IntInsnNode;
|
||||
import org.objectweb.asm.tree.JumpInsnNode;
|
||||
import org.objectweb.asm.tree.LdcInsnNode;
|
||||
import org.objectweb.asm.tree.LineNumberNode;
|
||||
import org.objectweb.asm.tree.MultiANewArrayInsnNode;
|
||||
import org.objectweb.asm.tree.VarInsnNode;
|
||||
|
||||
public class ASMReader {
|
||||
|
||||
|
||||
@@ -1,10 +1,38 @@
|
||||
package codechicken.lib.asm;
|
||||
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.*;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.FIELD_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.FRAME;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.IINC_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.INT_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.JUMP_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.LABEL;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.LDC_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.LINE;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.LOOKUPSWITCH_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.METHOD_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.TABLESWITCH_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.TYPE_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.VAR_INSN;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.HashSet;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.objectweb.asm.tree.*;
|
||||
import org.objectweb.asm.tree.AbstractInsnNode;
|
||||
import org.objectweb.asm.tree.FieldInsnNode;
|
||||
import org.objectweb.asm.tree.IincInsnNode;
|
||||
import org.objectweb.asm.tree.InsnList;
|
||||
import org.objectweb.asm.tree.IntInsnNode;
|
||||
import org.objectweb.asm.tree.JumpInsnNode;
|
||||
import org.objectweb.asm.tree.LabelNode;
|
||||
import org.objectweb.asm.tree.LdcInsnNode;
|
||||
import org.objectweb.asm.tree.LookupSwitchInsnNode;
|
||||
import org.objectweb.asm.tree.MethodInsnNode;
|
||||
import org.objectweb.asm.tree.TableSwitchInsnNode;
|
||||
import org.objectweb.asm.tree.TypeInsnNode;
|
||||
import org.objectweb.asm.tree.VarInsnNode;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
import com.google.common.collect.Maps;
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
package codechicken.lib.asm;
|
||||
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.*;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.FRAME;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.JUMP_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.LABEL;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.LOOKUPSWITCH_INSN;
|
||||
import static org.objectweb.asm.tree.AbstractInsnNode.TABLESWITCH_INSN;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
@@ -11,7 +15,13 @@ import java.util.Map.Entry;
|
||||
import java.util.Set;
|
||||
|
||||
import org.objectweb.asm.MethodVisitor;
|
||||
import org.objectweb.asm.tree.*;
|
||||
import org.objectweb.asm.tree.AbstractInsnNode;
|
||||
import org.objectweb.asm.tree.FrameNode;
|
||||
import org.objectweb.asm.tree.InsnList;
|
||||
import org.objectweb.asm.tree.JumpInsnNode;
|
||||
import org.objectweb.asm.tree.LabelNode;
|
||||
import org.objectweb.asm.tree.LookupSwitchInsnNode;
|
||||
import org.objectweb.asm.tree.TableSwitchInsnNode;
|
||||
import org.objectweb.asm.util.Textifier;
|
||||
import org.objectweb.asm.util.TraceMethodVisitor;
|
||||
|
||||
|
||||
@@ -1,11 +1,21 @@
|
||||
package codechicken.lib.asm;
|
||||
|
||||
import static codechicken.lib.asm.ASMHelper.*;
|
||||
import static codechicken.lib.asm.ASMHelper.config;
|
||||
import static codechicken.lib.asm.ASMHelper.createBytes;
|
||||
import static codechicken.lib.asm.ASMHelper.dump;
|
||||
import static codechicken.lib.asm.ASMHelper.findMethod;
|
||||
import static codechicken.lib.asm.ASMHelper.logger;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.objectweb.asm.*;
|
||||
import org.objectweb.asm.ClassReader;
|
||||
import org.objectweb.asm.ClassVisitor;
|
||||
import org.objectweb.asm.ClassWriter;
|
||||
import org.objectweb.asm.tree.ClassNode;
|
||||
import org.objectweb.asm.tree.InsnList;
|
||||
import org.objectweb.asm.tree.MethodNode;
|
||||
|
||||
@@ -7,7 +7,7 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.JFileChooser;
|
||||
|
||||
import net.minecraft.launchwrapper.Launch;
|
||||
import net.minecraftforge.common.ForgeVersion;
|
||||
@@ -16,15 +16,19 @@ import org.objectweb.asm.ClassVisitor;
|
||||
import org.objectweb.asm.FieldVisitor;
|
||||
import org.objectweb.asm.MethodVisitor;
|
||||
import org.objectweb.asm.commons.Remapper;
|
||||
import org.objectweb.asm.tree.*;
|
||||
|
||||
import codechicken.lib.config.ConfigTag;
|
||||
import org.objectweb.asm.tree.AbstractInsnNode;
|
||||
import org.objectweb.asm.tree.FieldInsnNode;
|
||||
import org.objectweb.asm.tree.FieldNode;
|
||||
import org.objectweb.asm.tree.MethodInsnNode;
|
||||
import org.objectweb.asm.tree.MethodNode;
|
||||
import org.objectweb.asm.tree.TypeInsnNode;
|
||||
|
||||
import com.google.common.base.Charsets;
|
||||
import com.google.common.base.Objects;
|
||||
import com.google.common.io.LineProcessor;
|
||||
import com.google.common.io.Resources;
|
||||
|
||||
import codechicken.lib.config.ConfigTag;
|
||||
import cpw.mods.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper;
|
||||
import cpw.mods.fml.relauncher.FMLInjectionData;
|
||||
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
package codechicken.lib.config;
|
||||
|
||||
import java.io.*;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
||||
import java.io.PrintWriter;
|
||||
|
||||
public class ConfigFile extends ConfigTagParent {
|
||||
|
||||
|
||||
@@ -3,8 +3,12 @@ package codechicken.lib.config;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.PrintWriter;
|
||||
import java.util.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.TreeMap;
|
||||
|
||||
public abstract class ConfigTagParent {
|
||||
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
package codechicken.lib.config;
|
||||
|
||||
import java.io.*;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.PrintStream;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
@@ -11,9 +11,9 @@ import net.minecraftforge.fluids.FluidStack;
|
||||
|
||||
import org.apache.commons.lang3.Validate;
|
||||
|
||||
import codechicken.lib.vec.BlockCoord;
|
||||
|
||||
import com.google.common.base.Charsets;
|
||||
|
||||
import codechicken.lib.vec.BlockCoord;
|
||||
import cpw.mods.fml.common.network.ByteBufUtils;
|
||||
|
||||
public class MCDataOutputWrapper implements MCDataOutput {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package codechicken.lib.gui;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Point;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
@@ -15,10 +15,10 @@ import net.minecraft.tileentity.TileEntityChest;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
import codechicken.lib.vec.Vector3;
|
||||
|
||||
import com.google.common.base.Objects;
|
||||
|
||||
import codechicken.lib.vec.Vector3;
|
||||
|
||||
public class InventoryUtils {
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,15 +24,18 @@ import net.minecraftforge.fluids.Fluid;
|
||||
import net.minecraftforge.fluids.FluidRegistry;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
|
||||
import com.google.common.collect.Maps;
|
||||
|
||||
import codechicken.lib.data.MCDataInput;
|
||||
import codechicken.lib.data.MCDataOutput;
|
||||
import codechicken.lib.vec.BlockCoord;
|
||||
|
||||
import com.google.common.collect.Maps;
|
||||
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.ModContainer;
|
||||
import cpw.mods.fml.common.network.*;
|
||||
import cpw.mods.fml.common.network.ByteBufUtils;
|
||||
import cpw.mods.fml.common.network.FMLEmbeddedChannel;
|
||||
import cpw.mods.fml.common.network.FMLOutboundHandler;
|
||||
import cpw.mods.fml.common.network.NetworkHandshakeEstablished;
|
||||
import cpw.mods.fml.common.network.NetworkRegistry;
|
||||
import cpw.mods.fml.common.network.handshake.NetworkDispatcher;
|
||||
import cpw.mods.fml.common.network.internal.FMLProxyPacket;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
|
||||
@@ -2,8 +2,18 @@ package codechicken.lib.render;
|
||||
|
||||
import static codechicken.lib.vec.Rotation.sideRotations;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.PrintWriter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
@@ -16,7 +26,11 @@ import codechicken.lib.render.uv.UV;
|
||||
import codechicken.lib.render.uv.UVTransformation;
|
||||
import codechicken.lib.render.uv.UVTranslation;
|
||||
import codechicken.lib.util.Copyable;
|
||||
import codechicken.lib.vec.*;
|
||||
import codechicken.lib.vec.Cuboid6;
|
||||
import codechicken.lib.vec.RedundantTransformation;
|
||||
import codechicken.lib.vec.Transformation;
|
||||
import codechicken.lib.vec.TransformationList;
|
||||
import codechicken.lib.vec.Vector3;
|
||||
|
||||
public class CCModel implements CCRenderState.IVertexSource, Copyable<CCModel> {
|
||||
|
||||
|
||||
@@ -2,7 +2,11 @@ package codechicken.lib.render;
|
||||
|
||||
import static codechicken.lib.math.MathHelper.phi;
|
||||
|
||||
import codechicken.lib.vec.*;
|
||||
import codechicken.lib.vec.Matrix4;
|
||||
import codechicken.lib.vec.Quat;
|
||||
import codechicken.lib.vec.Rotation;
|
||||
import codechicken.lib.vec.Scale;
|
||||
import codechicken.lib.vec.Vector3;
|
||||
|
||||
public class CCModelLibrary {
|
||||
|
||||
|
||||
@@ -1,8 +1,19 @@
|
||||
package codechicken.lib.render;
|
||||
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
import java.io.DataInputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
|
||||
@@ -11,13 +22,21 @@ import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import codechicken.lib.render.uv.UV;
|
||||
import codechicken.lib.render.uv.UVScale;
|
||||
import codechicken.lib.vec.*;
|
||||
|
||||
import com.google.common.collect.HashMultimap;
|
||||
import com.google.common.collect.Multimap;
|
||||
|
||||
import codechicken.lib.render.uv.UV;
|
||||
import codechicken.lib.render.uv.UVScale;
|
||||
import codechicken.lib.vec.BlockCoord;
|
||||
import codechicken.lib.vec.Cuboid6;
|
||||
import codechicken.lib.vec.CuboidCoord;
|
||||
import codechicken.lib.vec.Rectangle4i;
|
||||
import codechicken.lib.vec.Rotation;
|
||||
import codechicken.lib.vec.Scale;
|
||||
import codechicken.lib.vec.Transformation;
|
||||
import codechicken.lib.vec.Translation;
|
||||
import codechicken.lib.vec.Vector3;
|
||||
|
||||
public class QBImporter {
|
||||
|
||||
private static class ImagePackNode {
|
||||
|
||||
@@ -1,6 +1,20 @@
|
||||
package codechicken.lib.render;
|
||||
|
||||
import static org.lwjgl.opengl.ARBShaderObjects.*;
|
||||
import static org.lwjgl.opengl.ARBShaderObjects.GL_OBJECT_COMPILE_STATUS_ARB;
|
||||
import static org.lwjgl.opengl.ARBShaderObjects.GL_OBJECT_INFO_LOG_LENGTH_ARB;
|
||||
import static org.lwjgl.opengl.ARBShaderObjects.GL_OBJECT_LINK_STATUS_ARB;
|
||||
import static org.lwjgl.opengl.ARBShaderObjects.GL_OBJECT_VALIDATE_STATUS_ARB;
|
||||
import static org.lwjgl.opengl.ARBShaderObjects.glAttachObjectARB;
|
||||
import static org.lwjgl.opengl.ARBShaderObjects.glCompileShaderARB;
|
||||
import static org.lwjgl.opengl.ARBShaderObjects.glCreateProgramObjectARB;
|
||||
import static org.lwjgl.opengl.ARBShaderObjects.glCreateShaderObjectARB;
|
||||
import static org.lwjgl.opengl.ARBShaderObjects.glDeleteObjectARB;
|
||||
import static org.lwjgl.opengl.ARBShaderObjects.glGetInfoLogARB;
|
||||
import static org.lwjgl.opengl.ARBShaderObjects.glGetObjectParameteriARB;
|
||||
import static org.lwjgl.opengl.ARBShaderObjects.glLinkProgramARB;
|
||||
import static org.lwjgl.opengl.ARBShaderObjects.glShaderSourceARB;
|
||||
import static org.lwjgl.opengl.ARBShaderObjects.glUseProgramObjectARB;
|
||||
import static org.lwjgl.opengl.ARBShaderObjects.glValidateProgramARB;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
|
||||
@@ -2,10 +2,10 @@ package codechicken.lib.tool.module;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import codechicken.lib.tool.ToolMain;
|
||||
import joptsimple.OptionException;
|
||||
import joptsimple.OptionParser;
|
||||
import joptsimple.OptionSet;
|
||||
import codechicken.lib.tool.ToolMain;
|
||||
|
||||
public abstract class JOptModule implements ToolMain.Module {
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@ import static java.util.Arrays.asList;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import codechicken.lib.render.QBImporter;
|
||||
import joptsimple.OptionParser;
|
||||
import joptsimple.OptionSet;
|
||||
import codechicken.lib.render.QBImporter;
|
||||
|
||||
public class ModuleQBConverter extends JOptModule {
|
||||
|
||||
|
||||
Reference in new issue
Block a user