Class Pear
java.lang.Object
org.progettoedids.entities.Entity
org.progettoedids.entities.items.Item
org.progettoedids.entities.items.food.Food
org.progettoedids.entities.items.food.Pear
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final Stringstatic final intFields inherited from class org.progettoedids.entities.items.food.Food
restoredHealth -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this item is supposed to be collected from a Room of the LabyrinthMethods inherited from class org.progettoedids.entities.items.food.Food
getRestoredHealth, interactWithItem, toStringMethods inherited from class org.progettoedids.entities.Entity
getName, getSystemName, getUUID, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.progettoedids.entities.items.InteractiveItem
getName
-
Field Details
-
SYSTEM_NAME
- See Also:
-
NAME
- See Also:
-
WEIGHT
public static final int WEIGHT- See Also:
-
RESTORED_HEALTH
public static final int RESTORED_HEALTH- See Also:
-
-
Constructor Details
-
Pear
public Pear()
-
-
Method Details
-
canBeCollected
public boolean canBeCollected()Description copied from class:ItemReturns whether this item is supposed to be collected from a Room of the Labyrinth- Specified by:
canBeCollectedin classItem- Returns:
- true if this Item can be collected
-