@@ -0,0 +1,663 @@
+package net.silentchaos512.lib.util;%0A%0Aimport net.minecraftforge.common.capabilities.Capability;%0Aimport net.minecraftforge.common.capabilities.ICapabilityProvider;%0Aimport net.minecraftforge.common.util.LazyOptional;%0A%0Aimport javax.annotation.Nullable;%0A%0Apublic final class CapabilityUtils %7B%0A    private CapabilityUtils() %7Bthrow new IllegalAccessError(%22Utility class%22);%7D%0A%0A    @Nullable%0A    public static %3CT%3E T getOrNull(ICapabilityProvider provider, Capability%3CT%3E cap) %7B%0A        LazyOptional%3CT%3E lazy = provider.getCapability(cap);%0A        if (lazy.isPresent()) %7B%0A            return lazy.orElseThrow(IllegalStateException::new);%0A        %7D%0A        return null;%0A    %7D%0A%7D%0A

Add CapabilityUtils