Table of Contents

Class Coffee

Namespace
Exiled.API.Features
Assembly
Exiled.API.dll

A wrapper for coffee cup.

[Obsolete("Never available (for now).")]
public class Coffee : IWrapper<Coffee>
Inheritance
Coffee
Implements
IWrapper<Coffee>
Inherited Members
Extension Methods

Constructors

Coffee(Coffee)

Initializes a new instance of the Coffee class.

public Coffee(Coffee coffee)

Parameters

coffee Coffee

Properties

Base

Gets the base coffee instance.

public Coffee Base { get; }

Property Value

Coffee

BlacklistedPlayers

Gets or sets an IEnumerable<T> of players who cannot interact with coffee cups.

public static IEnumerable<Player> BlacklistedPlayers { get; set; }

Property Value

IEnumerable<Player>

CoffeeTranslation

Gets or sets text which will be displayed to player when he drinks coffee.

public CoffeeTranslation CoffeeTranslation { get; set; }

Property Value

CoffeeTranslation

DrinkColor

Gets the color of a drink in a cup.

public Color DrinkColor { get; }

Property Value

Color

IsConsumed

Gets or sets a value indicating whether or not coffee has been drunk.

public bool IsConsumed { get; set; }

Property Value

bool

List

Gets the list with all available Coffee instanses.

[Obsolete("This list will be empty")]
public static IReadOnlyCollection<Coffee> List { get; }

Property Value

IReadOnlyCollection<Coffee>

TranslationAuthor

Gets or sets the author of current CoffeeTranslation.

public string TranslationAuthor { get; set; }

Property Value

string

Methods

Get(Coffee)

Gets a Coffee given a Coffee instance.

public static Coffee Get(Coffee baseCoffee)

Parameters

baseCoffee Coffee

The Coffee instance.

Returns

Coffee

The Coffee instance.

Get(Func<Coffee, bool>)

Gets a IEnumerable<T> of Coffee matching the condition.

[Obsolete("The respond list will be empty")]
public static IEnumerable<Coffee> Get(Func<Coffee, bool> predicate)

Parameters

predicate Func<Coffee, bool>

The condition to satisfy.

Returns

IEnumerable<Coffee>

A IEnumerable<T> of Coffee matching the condition.

Interact(Player)

Interacts with Coffee.

public void Interact(Player player = null)

Parameters

player Player

The player who interacts. If null, it will be chosen randomly.