Package net.risingworld.api.definitions
Klasse Items.ItemInfo
java.lang.Object
net.risingworld.api.definitions.Items.ItemInfo
- Umschließende Klasse:
Items
-
Feldübersicht
Modifizierer und TypFeldBeschreibungint
Duration in seconds until item action is performed (only relevant for cooking and smelting atm)short
Determines the final status of the item after performing the action.short
Internal ID of this item infoDefinition of the affected itemint
Texture ID of the affected itemint
If used as fuel, this determines how much the furnace will be refueledRequired object type for processing this item.int
Number of items after performing the action.If this item should transform into another item, this is the definition of the target item.Only for world items: Offset after performing the actionOnly for world items: Rotation offset after performing the actionshort
Status of the item (or target item) after performing the action.int
If item transforms into another item (targetitem is not null), this is the target texturefloat
Value of the item (or target item) after performing the action.Item info typefloat
Determines how much the value will decrease when performing the action -
Methodenübersicht
-
Felddetails
-
id
public short idInternal ID of this item info -
itemdefinition
Definition of the affected item -
type
Item info type -
itemtexture
public int itemtextureTexture ID of the affected item -
requiredobjecttype
Required object type for processing this item. If item does not require an object, it's Objects.Type.None -
duration
public int durationDuration in seconds until item action is performed (only relevant for cooking and smelting atm) -
refuelvalue
public int refuelvalueIf used as fuel, this determines how much the furnace will be refueled -
targetitem
If this item should transform into another item, this is the definition of the target item. May be null -
targettexture
public int targettextureIf item transforms into another item (targetitem is not null), this is the target texture -
targetstatus
public short targetstatusStatus of the item (or target item) after performing the action. If -1, status will be unchanged -
targetvalue
public float targetvalueValue of the item (or target item) after performing the action. If -1, value will be unchanged -
targetcount
public int targetcountNumber of items after performing the action. If -1, count will be unchanged -
targetitemoffset
Only for world items: Offset after performing the action -
targetitemrotation
Only for world items: Rotation offset after performing the action -
valuedecrement
public float valuedecrementDetermines how much the value will decrease when performing the action -
finalstatus
public short finalstatusDetermines the final status of the item after performing the action. If -1, status will be unchanged
-
-
Methodendetails
-
synchronize
public void synchronize()
-