@Environment(value=CLIENT) public class VideoWarningManager extends SinglePreparationResourceReloadListener<VideoWarningManager.WarningPatternLoader>
Modifier and Type | Class and Description |
---|---|
static class |
VideoWarningManager.WarningPatternLoader |
ResourceReloadListener.Synchronizer
Modifier and Type | Field and Description |
---|---|
private boolean |
cancelledAfterWarning |
private static Identifier |
GPU_WARNLIST_ID |
private static Logger |
LOGGER |
private boolean |
warned |
private ImmutableMap<String,String> |
warnings |
private boolean |
warningScheduled |
Constructor and Description |
---|
VideoWarningManager() |
Modifier and Type | Method and Description |
---|---|
void |
acceptAfterWarnings() |
protected void |
apply(VideoWarningManager.WarningPatternLoader warningPatternLoader,
ResourceManager resourceManager,
Profiler profiler) |
void |
cancelAfterWarnings() |
boolean |
canWarn() |
private static void |
compilePatterns(JsonArray array,
List<Pattern> patterns) |
String |
getRendererWarning() |
String |
getVendorWarning() |
String |
getVersionWarning() |
boolean |
hasCancelledAfterWarning() |
boolean |
hasWarning() |
private static JsonObject |
loadWarnlist(ResourceManager resourceManager,
Profiler profiler) |
String |
method_30920() |
protected VideoWarningManager.WarningPatternLoader |
prepare(ResourceManager resourceManager,
Profiler profiler) |
void |
reset() |
void |
scheduleWarning() |
boolean |
shouldWarn() |
reload
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
private static final Logger LOGGER
private static final Identifier GPU_WARNLIST_ID
private ImmutableMap<String,String> warnings
private boolean warningScheduled
private boolean warned
private boolean cancelledAfterWarning
public boolean hasWarning()
public boolean canWarn()
public void scheduleWarning()
public void acceptAfterWarnings()
public void cancelAfterWarnings()
public boolean shouldWarn()
public boolean hasCancelledAfterWarning()
public void reset()
protected VideoWarningManager.WarningPatternLoader prepare(ResourceManager resourceManager, Profiler profiler)
prepare
in class SinglePreparationResourceReloadListener<VideoWarningManager.WarningPatternLoader>
protected void apply(VideoWarningManager.WarningPatternLoader warningPatternLoader, ResourceManager resourceManager, Profiler profiler)
apply
in class SinglePreparationResourceReloadListener<VideoWarningManager.WarningPatternLoader>
@Nullable private static JsonObject loadWarnlist(ResourceManager resourceManager, Profiler profiler)