Thread: Adding a new .java file

Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11  
    Seecon
    Guest
    the easiest way of doing it is like this (for future reference)

    Code:
    package
    
    imports
    
    public class Fletching {
    
    private client c;
    
        public Fletching(client _c) {
            c = _c;
            doWork(c);
        }
    
        private void doWork(client c) {
      //  this is where you add your material. like a switch statement or however you want to handle it. to access the client's stuff, just do c.
        }
    }
    Reply With Quote  
     

  2. #12  
    Donator


    Join Date
    Mar 2008
    Posts
    1,945
    Thanks given
    118
    Thanks received
    201
    Rep Power
    2104
    Quote Originally Posted by Seecon View Post
    the easiest way of doing it is like this (for future reference)

    Code:
    package
    
    imports
    
    public class Fletching {
    
    private client c;
    
        public Fletching(client _c) {
            c = _c;
            doWork(c);
        }
    
        private void doWork(client c) {
      //  this is where you add your material. like a switch statement or however you want to handle it. to access the client's stuff, just do c.
        }
    }
    lol why go threw all that for something dealing with a packet. make it simple you dont need to call the client when all you have to add in it is this Fletching.doWork(this, packetType, packetSize);

    this way is much more simple since your only using 1 method for itemonitem
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •