ArmorStand.staticMarker constructor
ArmorStand.staticMarker(
- Location location, {
- TextComponent? name,
- bool? nameVisible,
- Map<
String, dynamic> ? nbt, - bool? invisible = true,
- bool invulnerable = true,
- bool gravity = false,
- Item? mainHand,
- Item? offHand,
- Item? head,
- Item? chest,
- Item? legs,
- Item? boots,
- bool? glowing,
- int? fire,
- bool? small,
- List<
Summon> ? passengers, - Rotation? rotation,
- List<
String> ? tags, - Pose? pose,
Often times you need a static ArmorStand that just acts as a marker for a location, there is ArmorStand.staticMarker that sets properties automatically.
Implementation
ArmorStand.staticMarker(
Location location, {
TextComponent? name,
bool? nameVisible,
Map<String, dynamic>? nbt,
this.invisible = true,
bool invulnerable = true,
bool gravity = false,
this.mainHand,
this.offHand,
this.head,
this.chest,
this.legs,
this.boots,
bool? glowing,
int? fire,
bool? small,
List<Summon>? passengers,
Rotation? rotation,
List<String>? tags,
this.pose,
}) : marker = true,
super(
Entities.armor_stand,
location: location,
nbt: nbt,
tags: tags,
name: name,
nameVisible: nameVisible,
invulnerable: invulnerable,
glowing: glowing,
gravity: gravity,
small: small,
passengers: passengers,
rotation: rotation,
fire: fire,
);