Marker constructor

Marker(
  1. Location location, {
  2. Map<String, dynamic>? nbt,
  3. Map<String, dynamic>? data,
  4. List<String>? tags,
})

Added in Minecraft 1.17 this entity only exists serversides and thus has no performance constraints for the client. Best used to save locations and even custom nbt data with the data field.

Implementation

Marker(
  Location location, {
  Map<String, dynamic>? nbt,
  this.data,
  List<String>? tags,
}) : super(
        Entities.marker,
        location: location,
        nbt: nbt,
        tags: tags,
      );