Package net.risingworld.api.definitions
Class Items.ConsumeInfo
java.lang.Object
net.risingworld.api.definitions.Items.ConsumeInfo
- Enclosing class:
Items
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatbooleanDoes consuming this item heals bones?intHow much health is restored?intHow much hunger is restored?shortInternal ID of this consume infoName of the related itemintIf a message is shown, this is the message color (as RGB int value).booleanDetermines if the item should be removed from inventory after consumingbooleanIf true, a consume message is shown to the player (only if the localized string is found)booleanDoes consuming this item stops bleedings?intHow much thirst is restored?Type of this consumable (i.e is this food, water etc?)floatOptional value change of the item after consuming. -
Method Summary
-
Field Details
-
id
public short idInternal ID of this consume info -
itemname
Name of the related item -
type
Type of this consumable (i.e is this food, water etc?) -
state
-
healthrestore
public int healthrestoreHow much health is restored? -
hungerrestore
public int hungerrestoreHow much hunger is restored? -
thirstrestore
public int thirstrestoreHow much thirst is restored? -
healbones
public boolean healbonesDoes consuming this item heals bones? -
stopbleeding
public boolean stopbleedingDoes consuming this item stops bleedings? -
remove
public boolean removeDetermines if the item should be removed from inventory after consuming -
valuechange
public float valuechangeOptional value change of the item after consuming. Default: 0 -
disease
-
diseasechance
public float diseasechance -
sendmessage
public boolean sendmessageIf true, a consume message is shown to the player (only if the localized string is found) -
messagecolor
public int messagecolorIf a message is shown, this is the message color (as RGB int value). If 0, the default color is used
-
-
Method Details
-
synchronize
public void synchronize()
-