Package net.minecraft.client.resource
Class VideoWarningManager
java.lang.Object
net.minecraft.resource.SinglePreparationResourceReloader<VideoWarningManager.WarningPatternLoader>
net.minecraft.client.resource.VideoWarningManager
- All Implemented Interfaces:
ResourceReloader
@Environment(CLIENT) public class VideoWarningManager extends SinglePreparationResourceReloader<VideoWarningManager.WarningPatternLoader>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVideoWarningManager.WarningPatternLoaderNested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer -
Field Summary
Fields Modifier and Type Field Description private booleancancelledAfterWarningprivate static IdentifierGPU_WARNLIST_IDprivate static LoggerLOGGERprivate booleanwarnedprivate ImmutableMap<String,String>warningsprivate booleanwarningScheduled -
Constructor Summary
Constructors Constructor Description VideoWarningManager() -
Method Summary
Modifier and Type Method Description voidacceptAfterWarnings()protected voidapply(VideoWarningManager.WarningPatternLoader warningPatternLoader, ResourceManager resourceManager, Profiler profiler)Handles the prepared intermediate object.voidcancelAfterWarnings()booleancanWarn()private static voidcompilePatterns(JsonArray array, List<Pattern> patterns)StringgetRendererWarning()StringgetVendorWarning()StringgetVersionWarning()booleanhasCancelledAfterWarning()booleanhasWarning()private static JsonObjectloadWarnlist(ResourceManager resourceManager, Profiler profiler)Stringmethod_30920()protected VideoWarningManager.WarningPatternLoaderprepare(ResourceManager resourceManager, Profiler profiler)Prepares the intermediate object.voidreset()voidscheduleWarning()booleanshouldWarn()Methods inherited from class net.minecraft.resource.SinglePreparationResourceReloader
reloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.ResourceReloader
getName
-
Field Details
-
LOGGER
-
GPU_WARNLIST_ID
-
warnings
-
warningScheduled
private boolean warningScheduled -
warned
private boolean warned -
cancelledAfterWarning
private boolean cancelledAfterWarning
-
-
Constructor Details
-
VideoWarningManager
public VideoWarningManager()
-
-
Method Details
-
hasWarning
public boolean hasWarning() -
canWarn
public boolean canWarn() -
scheduleWarning
public void scheduleWarning() -
acceptAfterWarnings
public void acceptAfterWarnings() -
cancelAfterWarnings
public void cancelAfterWarnings() -
shouldWarn
public boolean shouldWarn() -
hasCancelledAfterWarning
public boolean hasCancelledAfterWarning() -
reset
public void reset() -
getRendererWarning
-
getVersionWarning
-
getVendorWarning
-
method_30920
-
prepare
protected VideoWarningManager.WarningPatternLoader prepare(ResourceManager resourceManager, Profiler profiler)Description copied from class:SinglePreparationResourceReloaderPrepares the intermediate object.This method is called in the prepare executor in a reload.
- Specified by:
preparein classSinglePreparationResourceReloader<VideoWarningManager.WarningPatternLoader>- Parameters:
resourceManager- the resource managerprofiler- the prepare profiler- Returns:
- the prepared object
-
apply
protected void apply(VideoWarningManager.WarningPatternLoader warningPatternLoader, ResourceManager resourceManager, Profiler profiler)Description copied from class:SinglePreparationResourceReloaderHandles the prepared intermediate object.This method is called in the apply executor, or the game engine, in a reload.
- Specified by:
applyin classSinglePreparationResourceReloader<VideoWarningManager.WarningPatternLoader>- Parameters:
warningPatternLoader- the prepared objectresourceManager- the resource managerprofiler- the apply profiler
-
compilePatterns
-
loadWarnlist
@Nullable private static JsonObject loadWarnlist(ResourceManager resourceManager, Profiler profiler)
-