Jump to content
  • 0

L2Iteminstance


Question

Posted (edited)

In aCis rev 330 import net.sf.l2j.gameserver.model.L2ItemInstance; gives error cause L2ItemInstance doesn't exist.
i tried import net.sf.l2j.gameserver.model.ItemRequest;
and import net.sf.l2j.gameserver.model.item.instance.ItemInstance;

but i get error elsewhere,whats the proper import?

Edited by stayros

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

ItemInstance. Ctrl+Shift+O

explain a bit further if possible...

i pressed ctr+shift+o and import dissappeared

could you explain to me what does this command do?

 

 

 

EDIT :

i think i get it,it is searching for methods with error and tries to find the proper import...

if im right then the problem in my code is the mothod cause it cant find any import to use it just deletes the L2ItemInstance one

Edited by stayros
  • 0
Posted

Yup, with that you organize imports, remove unused, add correct one

 

That's the correct import

 

 

import net.sf.l2j.gameserver.model.item.instance.ItemInstance;

 

If it's not auto imported, then the method / code is a lil bit wrong and that's why it's not imported / doesn't recognize.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...