InteractionResult

class InteractionResult(val effect: InteractionEffect, val item: Item, descriptionOfInteraction: String?) : Result

Describes the result of an interaction, detailing the effect that the interaction between the item and the target had. If descriptionOfInteraction is null the description property will return a generated description, otherwise the descriptionOfInteraction will be returned.

Constructors

Link copied to clipboard
constructor(effect: InteractionEffect, item: Item)

Describes the result of an interaction, detailing the effect that the interaction between the item and the target had.

constructor(effect: InteractionEffect, item: Item, descriptionOfInteraction: String?)

Properties

Link copied to clipboard
open override val description: String

A string providing a description of the result.

Link copied to clipboard
Link copied to clipboard
val item: Item