findAllByName method

GuiComponentCollection<GuiComponent> findAllByName(
  1. String name,
  2. String type
)

Implementation

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