TextHoverEvent.entity constructor

TextHoverEvent.entity(
  1. String name,
  2. String type,
  3. String id
)

Implementation

TextHoverEvent.entity(String name, String type, String id)
    : action = 'show_entity',
      value = json.encode({'name': name, 'type': type, 'id': id});