Entity class
- Inheritance
- Implemented types
Constructors
-
Entity({String selector = 'e', int? limit, List? tags, Team? team, List<
Score> ? scores, Map<String, dynamic> ? nbt, String? strNbt, EntityType? type, String? predicate, Area? area, Range? distance, Range? level, Gamemode? gamemode, String? name, Rotation? isRotated, Range? horizontalRotation, Range? verticalRotation, String? playerName}) - Entity is an util class to convert an argument list into the Minecraft Entity format(@p...)
-
Entity.All({Range? distance, List? tags, Team? team, String? strNbt, Map<
String, dynamic> ? nbt, int? limit, List<Score> ? scores, Range? level, Gamemode? gamemode, Area? area, String? name, Rotation? isRotated, Range? horizontalRotation, Range? verticalRotation, String? predicate}) - creates an entity with @a
- Entity.clone(Entity ent)
- creates a new instance of an already existing Entity object
-
Entity.Marker({Range? distance, List? tags, Team? team, String? strNbt, Map<
String, dynamic> ? nbt, Map<String, dynamic> ? data, List<Score> ? scores, Range? level, Gamemode? gamemode, Area? area, String? name, Rotation? isRotated, Range? horizontalRotation, Range? verticalRotation, String? predicate}) -
Entity.Player({Range? distance, List? tags, Team? team, String? strNbt, Map<
String, dynamic> ? nbt, List<Score> ? scores, Range? level, Gamemode? gamemode, Area? area, String? name, Rotation? isRotated, Range? horizontalRotation, Range? verticalRotation, String? predicate}) - creates an entity with @p
- Entity.PlayerName(String name)
- creates an entity with an implicit name
-
Entity.Random({EntityType? type, Range? distance, List? tags, Team? team, String? strNbt, Map<
String, dynamic> ? nbt, int? limit, List<Score> ? scores, Range? level, Gamemode? gamemode, Area? area, String? name, Rotation? isRotated, Range? horizontalRotation, Range? verticalRotation, String? predicate}) - creates an entity with @r
- Entity.Select(Selector selector)
- creates an entity from a prepared selector
-
Entity.Selected({EntityType? type, Range? distance, List? tags, Team? team, String? strNbt, Map<
String, dynamic> ? nbt, List<Score> ? scores, Range? level, Gamemode? gamemode, Area? area, String? name, Rotation? isRotated, Range? horizontalRotation, Range? verticalRotation, String? predicate}) - creates an entity with @s
-
Entity.Self({EntityType? type, Range? distance, List? tags, Team? team, String? strNbt, Map<
String, dynamic> ? nbt, List<Score> ? scores, Range? level, Gamemode? gamemode, Area? area, String? name, Rotation? isRotated, Range? horizontalRotation, Range? verticalRotation, String? predicate}) - creates an entity with @s
Properties
- arguments ↔ Map
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- playerName ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selector ↔ String
-
getter/setter pairoverride
Methods
-
addTag(
String tag) → RestActionAble - Adds a tag to the entity
-
addTags(
List< String> tags) → RestActionAble - Adds tags to the entity
-
as(
{List< Widget> children = const [], String targetFilePath = 'objd', String? targetFileName, bool encapsulate = true}) → RestActionAble - Generates a Execute Widget (execute as the entity)
-
asat(
{List< Widget> children = const [], String targetFilePath = 'objd', String? targetFileName, bool encapsulate = true}) → RestActionAble - Generates a Execute Widget (execute as and at the entity)
-
asatStrait(
{required dynamic run(List< Widget> ), String targetFilePath = 'objd', String? targetFileName, bool encapsulate = true}) → RestActionAble - Generates a Execute Widget strait (execute as and at the entity)
-
asStrait(
{required dynamic run(List< Widget> ), String targetFilePath = 'objd', String? targetFileName, bool encapsulate = true}) → RestActionAble - Generates a Execute Widget strait (execute as the entity)
-
at(
{List< Widget> children = const [], String targetFilePath = 'objd', String? targetFileName, bool encapsulate = true}) → RestActionAble - Generates a Execute Widget (execute at the entity)
-
atStrait(
{required dynamic run(List< Widget> ), String targetFilePath = 'objd', String? targetFileName, bool encapsulate = true}) → RestActionAble - Generates a Execute Widget strait (execute at the entity)
-
clear(
[Item? item]) → RestActionAble -
copyWith(
{int? limit, List? tags, Team? team, List< Score> ? scores, Map<String, dynamic> ? nbt, String? strNbt, EntityType? type, Area? area, Range? distance, Range? level, Gamemode? gamemode, String? name, Rotation? isRotated, Range? horizontalRotation, Range? verticalRotation, String? predicate}) → Entity - Creates a new Entity based on the existing one and applies new arguments. (same as constructors)
-
crash(
) → RestActionAble - Crashes a player's game by sending him to many particles and forces the client to show them (Who ever wants to do that, probably for people who don't like your map or datapack 😉)
-
dataGet(
{required String path, num scale = 1}) → RestActionAble - Generates a Data Widget
-
dataMerge(
{Map< String, dynamic> ? nbt, String? strNbt}) → RestActionAble - Generates a Data Widget
-
dataModify(
{required String path, required DataModify modify}) → RestActionAble - Generates a Data Widget
-
dataRemove(
{required String path}) → RestActionAble - Generates a Data Widget
-
exec(
{List< Widget> children = const [], String targetFilePath = 'objd', String? targetFileName, bool encapsulate = true}) → RestActionAble - Generates a Execute Widget (execute as the entity)
-
execStrait(
{required dynamic run(List< Widget> ), String targetFilePath = 'objd', String? targetFileName, bool encapsulate = true}) → RestActionAble - Generates a Execute Widget strait (execute as the entity)
-
execute(
{List< Widget> children = const [], String targetFilePath = 'objd', String? targetFileName, bool encapsulate = true}) → RestActionAble - Generates a Execute Widget (execute as the entity)
-
executeStrait(
{required dynamic run(List< Widget> ), String targetFilePath = 'objd', String? targetFileName, bool encapsulate = true}) → RestActionAble - Generates a Execute Widget strait (execute as the entity)
-
forEach(
dynamic fn(Entity p, List< Widget> strait)) → RestActionAble - Executes given content for all entities matching the selector (Strait function)
-
give(
Item item) → RestActionAble - Generates a Give Widget
-
joinTeam(
String team) → RestActionAble - The entity joins a team
-
kill(
) → RestActionAble - Generates a Kill Widget
-
leaveTeam(
) → RestActionAble - The entity leaves a team
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
not(
{int? limit, List? tags, Team? team, List< Score> ? scores, Map<String, dynamic> ? nbt, String? strNbt, EntityType? type, Area? area, Range? distance, Range? level, Gamemode? gamemode, String? name, Rotation? isRotated, Range? horizontalRotation, Range? verticalRotation, String? predicate}) → Entity -
With the not function you can negate specific arguments. It takes in the same options as
Entity()
. -
particle(
{required ParticleType particle, required Location location, Location? delta, double speed = 1, int count = 1, bool force = false}) → RestActionAble - Generates a Particle Widget
-
raycast(
{int? max, double step = 1, Block through = Blocks.air, Widget ray(Function, Function)?, List< Widget> onhit = const [], String scoreName = 'objd_count'}) → RestActionAble - Generates a Raycast Widget
-
removeTag(
String tag) → RestActionAble - Removes a tag from the entity
-
removeTags(
List< String> tags) → RestActionAble - Removes tags from the entity
-
replaceitem(
{required Item item, required Slot slot}) → RestActionAble - Generates a ReplaceItem Widget
-
setValues(
{int? limit, List? tags, Team? team, List< Score> ? scores, Map<String, dynamic> ? nbt, String? strNbt, EntityType? type, Area? area, Range? distance, Range? level, Gamemode? gamemode, String? name, Rotation? isRotated, Range? horizontalRotation, Range? verticalRotation, String? predicate}) → void - Modifies the properties of the existing Entity and applies new arguments(same as constructors)
-
sort(
Sort sort) → Entity -
storeResult(
Widget w, {required String path, String datatype = 'double', double scale = 1, bool useSuccess = false}) → Group -
stores the result or success of a
command
in a nbtpath
in your entity -
teleport(
{Location? location, Entity? entity, dynamic facing, Rotation? rot}) → RestActionAble - Generates a Teleport Widget
-
tellraw(
List< TextComponent> show) → RestActionAble - Generates a tellraw command
-
toSimple(
) → String -
returns a simple, json compatible representation of the content
override
-
toString(
[Map? args]) → String -
A string representation of this object.
override
-
tp(
{Location? location, Entity? entity, dynamic facing, Rotation? rot}) → RestActionAble - Generates a Tp Widget
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited