ResourceDescriptor .java

com.mojang.blaze3d.resource.ResourceDescriptor (interface, 19 lines): members: canUsePhysicalResource, free, allocate, prepare. imports: EnvType.

com.mojang.blaze3d.resourceinterface19 linesclient377 B

API Surface (0)

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

Full Source

ResourceDescriptor.java19 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 ResourceDescriptor<T> {
8
	T allocate();
9
10
	default void prepare(final T resource) {
11
	}
12
13
	void free(T resource);
14
15
	default boolean canUsePhysicalResource(final ResourceDescriptor<?> other) {
16
		return this.equals(other);
17
	}
18
}
19

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