Relation enum

Inheritance

Constructors

Relation()
const

Values

attacker → const Relation

the last entity that damaged the current executor entity in the previous 5 second

controller → const Relation

the entity that is riding and controlling the current executor entity

leasher → const Relation

the entity leading the current executor entity with a leash.

origin → const Relation

the entity that cause the summon of the current executor entity. For example, the shooter of an arrow, the primer of a primed TNT entity.

owner → const Relation

the owner of the current executor entity if it is a tameable animal.

passengers → const Relation

all entities that are directly riding the current executor entity, no sub-passengers.

target → const Relation

the attack target of the current executor entity.

vehicle → const Relation

the entity ridden by the current executor entity.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<Relation>
A constant List of the values in this enum, in order of their declaration.