Package net.minecraft.client.resource
Class VideoWarningManager
java.lang.Object
net.minecraft.resource.SinglePreparationResourceReloadListener<VideoWarningManager.WarningPatternLoader>
net.minecraft.client.resource.VideoWarningManager
- All Implemented Interfaces:
ResourceReloadListener
@Environment(CLIENT) public class VideoWarningManager extends SinglePreparationResourceReloadListener<VideoWarningManager.WarningPatternLoader>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVideoWarningManager.WarningPatternLoaderNested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloadListener
ResourceReloadListener.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)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)voidreset()voidscheduleWarning()booleanshouldWarn()Methods inherited from class net.minecraft.resource.SinglePreparationResourceReloadListener
reloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.ResourceReloadListener
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)- Specified by:
preparein classSinglePreparationResourceReloadListener<VideoWarningManager.WarningPatternLoader>
-
apply
protected void apply(VideoWarningManager.WarningPatternLoader warningPatternLoader, ResourceManager resourceManager, Profiler profiler)- Specified by:
applyin classSinglePreparationResourceReloadListener<VideoWarningManager.WarningPatternLoader>
-
compilePatterns
-
loadWarnlist
@Nullable private static JsonObject loadWarnlist(ResourceManager resourceManager, Profiler profiler)
-