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 boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapply(GpuWarnlistManager.Preparations object, ResourceManager resourceManager, ProfilerFiller profiler) private static voidcompilePatterns(com.google.gson.JsonArray jsonArray, List<Pattern> patterns) voidvoidbooleanbooleanbooleanprivate static com.google.gson.JsonObjectparseJson(ResourceManager resourceManager, ProfilerFiller profilerFiller) protected GpuWarnlistManager.Preparationsprepare(ResourceManager resourceManager, ProfilerFiller profiler) 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, 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 resourceManager, ProfilerFiller profiler) 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 object, ResourceManager resourceManager, ProfilerFiller profiler) - Specified by:
applyin classSimplePreparableReloadListener<GpuWarnlistManager.Preparations>
-
compilePatterns
-
parseJson
@Nullable private static com.google.gson.JsonObject parseJson(ResourceManager resourceManager, ProfilerFiller profilerFiller)
-