ResourceHandle .java

com.mojang.blaze3d.resource.ResourceHandle (interface, 18 lines): interface declaring 2 methods. members: INVALID_HANDLE, invalid, get. imports: EnvType.

com.mojang.blaze3d.resourceinterface18 linesclient418 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Fields & Constants (1)

INVALID_HANDLE

Full Source

ResourceHandle.java18 lines · Minecraft 26.3 · verbatim
1
package com.mojang.blaze3d.resource;
2
3
import net.fabricmc.api.EnvType;
4
import net.fabricmc.api.Environment;
5
6
@Environment(EnvType.CLIENT)
7
public interface ResourceHandle<T> {
8
	ResourceHandle<?> INVALID_HANDLE = () -> {
9
		throw new IllegalStateException("Cannot dereference handle with no underlying resource");
10
	};
11
12
	static <T> ResourceHandle<T> invalid() {
13
		return (ResourceHandle<T>)INVALID_HANDLE;
14
	}
15
16
	T get();
17
}
18

Decompiled Minecraft 26.3 source of ResourceHandle (com/mojang/blaze3d/resource/ResourceHandle.java) with Mojang official mappings, stored verbatim on the site.