/* * Decompiled with CFR 0.152. * * Could not load the following classes: * org.jspecify.annotations.Nullable */ package net.minecraft.util; import org.jspecify.annotations.Nullable; public class ExceptionCollector { private @Nullable T result; public void add(T throwable) { if (this.result == null) { this.result = throwable; } else { ((Throwable)this.result).addSuppressed((Throwable)throwable); } } public void throwIfPresent() throws T { if (this.result != null) { throw this.result; } } }