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 PreparableReloadListener
PreparableReloadListener.PreparationBarrier, PreparableReloadListener.SharedState, PreparableReloadListener.StateKey<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Identifierprivate static final org.slf4j.Loggerprivate booleanprivate booleanprivate ImmutableMap<String, String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapply(GpuWarnlistManager.Preparations preparations, ResourceManager manager, ProfilerFiller profiler) private static voidcompilePatterns(JsonArray jsonArray, List<Pattern> patternList) void@Nullable String@Nullable String@Nullable String@Nullable Stringbooleanbooleanprivate static @Nullable JsonObjectparseJson(ResourceManager manager, ProfilerFiller profiler) protected GpuWarnlistManager.Preparationsprepare(ResourceManager manager, ProfilerFiller profiler) Performs any reloading that can be done off-thread, such as file IOvoidvoidbooleanMethods inherited from class SimplePreparableReloadListener
reloadMethods inherited from class ContextAwareReloadListener
getContext, getRegistryLookup, injectContext, makeConditionalOps, makeConditionalOpsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PreparableReloadListener
getName, prepareSharedState
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
GPU_WARNLIST_LOCATION
-
warnings
-
showWarning
private boolean showWarning -
warningDismissed
private boolean warningDismissed
-
-
Constructor Details
-
GpuWarnlistManager
public GpuWarnlistManager()
-
-
Method Details
-
hasWarnings
public boolean hasWarnings() -
willShowWarning
public boolean willShowWarning() -
showWarning
public void showWarning() -
dismissWarning
public void dismissWarning() -
isShowingWarning
public boolean isShowingWarning() -
resetWarnings
public void resetWarnings() -
getRendererWarnings
-
getVersionWarnings
-
getVendorWarnings
-
getAllWarnings
-
prepare
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 preparations, ResourceManager manager, ProfilerFiller profiler) - Specified by:
applyin classSimplePreparableReloadListener<GpuWarnlistManager.Preparations>
-
compilePatterns
-
parseJson
-