public class MiscPattern
extends java.lang.Object
Constructor and Description |
---|
MiscPattern(java.lang.String id,
int value,
int maxStack,
boolean disposable,
boolean currency,
java.lang.String icon,
ActionPattern onClick)
Misc item pattern constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Returns pattern item ID
|
Misc |
make(org.newdawn.slick.GameContainer gc)
Creates item from this pattern
|
Misc |
make(org.newdawn.slick.GameContainer gc,
long serial)
Creates item from this pattern (with custom serial number)
|
public MiscPattern(java.lang.String id, int value, int maxStack, boolean disposable, boolean currency, java.lang.String icon, ActionPattern onClick)
id
- Item IDvalue
- Item valuedisposable
- If item disappears after useimgName
- Item image name, for icononUse
- Action on use(ppm click in inventory)public java.lang.String getId()
public Misc make(org.newdawn.slick.GameContainer gc) throws org.newdawn.slick.SlickException, java.io.IOException, java.awt.FontFormatException
gc
- Slick game containerorg.newdawn.slick.SlickException
java.io.IOException
java.awt.FontFormatException
public Misc make(org.newdawn.slick.GameContainer gc, long serial) throws org.newdawn.slick.SlickException, java.io.IOException, java.awt.FontFormatException
gc
- Slick game containerserial
- Serial number for itemorg.newdawn.slick.SlickException
java.io.IOException
java.awt.FontFormatException