Package net.minecraft.client.renderer
Class GpuWarnlistManager
java.lang.Object
net.neoforged.neoforge.resource.ContextAwareReloadListener
net.minecraft.server.packs.resources.SimplePreparableReloadListener<GpuWarnlistManager.Preparations>
net.minecraft.client.renderer.GpuWarnlistManager
- All Implemented Interfaces:
PreparableReloadListener
public class GpuWarnlistManager
extends SimplePreparableReloadListener<GpuWarnlistManager.Preparations>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ResourceLocationprivate static final org.slf4j.Loggerprivate booleanprivate booleanprivate booleanprivate ImmutableMap<String, String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapply(GpuWarnlistManager.Preparations pObject, ResourceManager pResourceManager, ProfilerFiller pProfiler) private static voidcompilePatterns(JsonArray pJsonArray, List<Pattern> pPatterns) voidvoidbooleanbooleanbooleanprivate static JsonObjectparseJson(ResourceManager pResourceManager, ProfilerFiller pProfilerFiller) protected GpuWarnlistManager.Preparationsprepare(ResourceManager pResourceManager, ProfilerFiller pProfiler) Performs any reloading that can be done off-thread, such as file IOvoidvoidbooleanMethods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener
reloadMethods inherited from class net.neoforged.neoforge.resource.ContextAwareReloadListener
getContext, getRegistryLookup, injectContext, makeConditionalOps, makeConditionalOpsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
GPU_WARNLIST_LOCATION
-
warnings
-
showWarning
private boolean showWarning -
warningDismissed
private boolean warningDismissed -
skipFabulous
private boolean skipFabulous
-
-
Constructor Details
-
GpuWarnlistManager
public GpuWarnlistManager()
-
-
Method Details
-
hasWarnings
public boolean hasWarnings() -
willShowWarning
public boolean willShowWarning() -
showWarning
public void showWarning() -
dismissWarning
public void dismissWarning() -
dismissWarningAndSkipFabulous
public void dismissWarningAndSkipFabulous() -
isShowingWarning
public boolean isShowingWarning() -
isSkippingFabulous
public boolean isSkippingFabulous() -
resetWarnings
public void resetWarnings() -
getRendererWarnings
-
getVersionWarnings
-
getVendorWarnings
-
getAllWarnings
-
prepare
protected GpuWarnlistManager.Preparations prepare(ResourceManager pResourceManager, ProfilerFiller pProfiler) Performs any reloading that can be done off-thread, such as file IO- Specified by:
preparein classSimplePreparableReloadListener<GpuWarnlistManager.Preparations>
-
apply
protected void apply(GpuWarnlistManager.Preparations pObject, ResourceManager pResourceManager, ProfilerFiller pProfiler) - Specified by:
applyin classSimplePreparableReloadListener<GpuWarnlistManager.Preparations>
-
compilePatterns
-
parseJson
@Nullable private static JsonObject parseJson(ResourceManager pResourceManager, ProfilerFiller pProfilerFiller)
-