package com.mojang.blaze3d.resource; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; @Environment(EnvType.CLIENT) public interface ResourceHandle { ResourceHandle INVALID_HANDLE = () -> { throw new IllegalStateException("Cannot dereference handle with no underlying resource"); }; static ResourceHandle invalid() { return (ResourceHandle)INVALID_HANDLE; } T get(); }