ArmorStand.staticMarker constructor

ArmorStand.staticMarker(
  1. Location location, {
  2. TextComponent? name,
  3. bool? nameVisible,
  4. Map<String, dynamic>? nbt,
  5. bool? invisible = true,
  6. bool invulnerable = true,
  7. bool gravity = false,
  8. Item? mainHand,
  9. Item? offHand,
  10. Item? head,
  11. Item? chest,
  12. Item? legs,
  13. Item? boots,
  14. bool? glowing,
  15. int? fire,
  16. bool? small,
  17. List<Summon>? passengers,
  18. Rotation? rotation,
  19. List<String>? tags,
  20. 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,
      );