dataRemove method

RestActionAble dataRemove({
  1. required String path,
})

Generates a Data Widget

entity.dataRemove(path: 'CustomName').queue()

Implementation

RestActionAble dataRemove({required String path}) {
  if ((selector == 'a' ||
      selector == 'r' ||
      selector == 'p' ||
      arguments['type'] == 'minecraft:player' ||
      arguments['type'] == 'player')) {
    throw ('Cannot modify a player\'s data');
  }
  if ((selector == 'a' || selector == 'e') &&
      (arguments['limit'] == null || arguments['limit'] != '1')) {
    throw ('Cannot work with data of multiple entities in data command');
  }
  return StraitWidget.builder.create(Data.remove(this, path: path));
}