/* * Decompiled with CFR 0.152. */ package net.minecraft.client.gui.layouts; import java.util.function.Consumer; import net.minecraft.client.gui.components.AbstractWidget; import net.minecraft.client.gui.layouts.LayoutElement; public interface Layout extends LayoutElement { public void visitChildren(Consumer var1); @Override default public void visitWidgets(Consumer widgetVisitor) { this.visitChildren(child -> child.visitWidgets(widgetVisitor)); } default public void arrangeElements() { this.visitChildren(child -> { if (child instanceof Layout) { Layout layout = (Layout)child; layout.arrangeElements(); } }); } }