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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock