Is it possible in Java to get a name of field in string from the actual field? like:
public class mod { @ItemID public static ItemLinkTool linkTool;
This is only possible via reflection.
Use Class.getDeclaringFields() and java.reflection.Field.getName()
Class.getDeclaringFields
java.reflection.Field.getName()