findAllByNameEx method

GuiComponentCollection<GuiComponent> findAllByNameEx(
  1. String name,
  2. int typeAsNumber
)

Implementation

GuiComponentCollection<GuiComponent> findAllByNameEx(
  String name,
  int typeAsNumber,
) {
  final col = obj.findAllByNameEx(name, typeAsNumber);
  if (col == null) {
    throw Exception("No components found for this name and type");
  }
  return GuiComponentCollection<GuiComponent>(col);
}