HeldItem

io.github.pidoveproject.showdown.battle.HeldItem
enum HeldItem

The held item of a pokemon.

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

final case class Destroyed(item: ItemName, cause: Option[Effect])

A no longer held item.

A no longer held item.

Value parameters

cause

the cause of the item destruction (e.g Knock Off)

item

the originally held item

Attributes

final case class Revealed(item: ItemName, cause: Option[Effect])

A revealed held item.

A revealed held item.

Value parameters

cause

the optional cause of the reveal (e.g Frisk)

item

the revealed item

Attributes

case case Unknown extends HeldItem

The held item is not known.

The held item is not known.

Attributes