Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7162223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:41:57+00:00 2026-05-28T13:41:57+00:00

I code plugins for the popular Bukkit API for Minecraft. Basically, at this point,

  • 0

I code plugins for the popular Bukkit API for Minecraft.

Basically, at this point, my coding is just one class with a ton of methods and public variables. How can I neatly organize this code into classes?

In coding terms, how would I go about doing this? Would I import each class?

I noticed when accessing variables from another class, I have to do: ClassName.variable every time, and that’s a bit of a drag. Is there a way around this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:41:58+00:00Added an answer on May 28, 2026 at 1:41 pm

    I’m no fan of Java, but this problem isn’t about being a Java n00b. It’s about being new to object-oriented design (you’d run into this problem with large programs in any language if you organize them well).

    You’ll generally want to follow the “Single Responsibility Principle”. In a nutshell, it means that your classes should probably be smaller than they are now, and that each of them should be in charge of handling a small enough task that it’s easy to tell whether it’s correct. This is easier said than done, but that’s why programming is hard: organizing your ideas is hard.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this code in my plugin used to work just fine: jQuery('#embedded_obj', context).get(0).getVersion(); and the
In the Rails2 world, one could conveniently browse the code of plugins or gems
I get all of the plugins code except for one line, and due to
I'm curious how plugins work, I just know that instead of changing the code
I've got a name of a method: Garden.Plugins.Code.Beta.Business.CalculateRest How to run it? I think
I'm writing some code that uses dynamic shared libraries as plugins. My command line
Some Eclipse plugins are mandated by your environment. The appropriate source code management plugin,
I've got some code that lies in a browser, and wrote C++ plugins for
Are there any good code snippet plugins for visual studio? I want a plugin
I have seen quite a few code samples/plugins that promote uploading assets directly to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.