Jump to content

levvyy

Members
  • Posts

    5
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

levvyy's Achievements

Newbie

Newbie (1/10)

1

Reputation

  1. right, so if i find methods from parent classes i can use them on the subclass too? so the method "isfull" that is used on itemcontainer class, is inherited by inventory? so i can use inventory,isFull() which will return a bool? edit: thanks for helping me out. I am starting my computer sciences stody next week and wanted to brush up on java before i started. i thought scripting might be a nice way to get into it. you've taught me something and i thank you for it. I was able to create a simple Bone collector + burier script that detects when it picks up something odd and drops it. source
  2. I understand, thanks but case DROP: Inventory.dropAllExcept("bones"); break; gives me this error
  3. ah wait so the class is inventory, and the method im calling is dropAllExcept(526) so i should do : class.methodtocall() ??
  4. Hi, Im trying to get into scripting. The thing that confuses me is how to find out what everything is called like i know how to create an entity or an npc or grounditem now and interact with it, but every time i want to try out something new like for instance check if the inventory is full i have no idea how to go about and find out what code i should use. like. i read from the API so naturally i put: public int onLoop() throws InterruptedException { switch (getState()) { case COLLECT: break; case DROP: public boolean dropAllExcept(526); break; case WAIT: break; } return random(200, 300); but it gives me an error... tell me what im doing wrong.
×
×
  • Create New...