0

I made a minecraft mod with eclipse and I have my .java file. I'm not too sure on how to make it a class file that everyone can use, can someone help me please? Thanks.

1 Answers1

0

If you already have the code written simply just add this to your current code.

  package yourpackage.name;

    public class example {
    //Insert your code all within these brackets.
    }

If your looking to creating a new class, right click the src folder, and select new package. Name it something like mine.craft.mod Then right click your newly created package and select new class. Provide it a name such as example.java and select finish. It should create a newly created class.

ChallengeAccepted
  • 1,684
  • 1
  • 16
  • 25