Package net.minecraft.client.renderer
Class GPUWarning
- java.lang.Object
-
- net.minecraft.client.resources.ReloadListener<GPUWarning.GPUInfo>
-
- net.minecraft.client.renderer.GPUWarning
-
- All Implemented Interfaces:
IFutureReloadListener
public class GPUWarning extends ReloadListener<GPUWarning.GPUInfo>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGPUWarning.GPUInfo-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Field Summary
Fields Modifier and Type Field Description private static ResourceLocationGPU_WARNLIST_LOCATIONprivate static org.apache.logging.log4j.LoggerLOGGERprivate booleanshowWarningprivate booleanskipFabulousprivate booleanwarningDismissedprivate com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String>warnings
-
Constructor Summary
Constructors Constructor Description GPUWarning()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapply(GPUWarning.GPUInfo p_212853_1_, IResourceManager p_212853_2_, IProfiler p_212853_3_)private static voidcompilePatterns(com.google.gson.JsonArray p_241693_0_, java.util.List<java.util.regex.Pattern> p_241693_1_)voiddismissWarning()voiddismissWarningAndSkipFabulous()java.lang.StringgetAllWarnings()java.lang.StringgetRendererWarnings()java.lang.StringgetVendorWarnings()java.lang.StringgetVersionWarnings()booleanhasWarnings()booleanisShowingWarning()booleanisSkippingFabulous()private static com.google.gson.JsonObjectparseJson(IResourceManager p_241696_0_, IProfiler p_241696_1_)protected GPUWarning.GPUInfoprepare(IResourceManager p_212854_1_, IProfiler p_212854_2_)voidresetWarnings()voidshowWarning()booleanwillShowWarning()-
Methods inherited from class net.minecraft.client.resources.ReloadListener
reload
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.resources.IFutureReloadListener
getName
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
GPU_WARNLIST_LOCATION
private static final ResourceLocation GPU_WARNLIST_LOCATION
-
warnings
private com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> warnings
-
showWarning
private boolean showWarning
-
warningDismissed
private boolean warningDismissed
-
skipFabulous
private boolean skipFabulous
-
-
Method Detail
-
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
@Nullable public java.lang.String getRendererWarnings()
-
getVersionWarnings
@Nullable public java.lang.String getVersionWarnings()
-
getVendorWarnings
@Nullable public java.lang.String getVendorWarnings()
-
getAllWarnings
@Nullable public java.lang.String getAllWarnings()
-
prepare
protected GPUWarning.GPUInfo prepare(IResourceManager p_212854_1_, IProfiler p_212854_2_)
- Specified by:
preparein classReloadListener<GPUWarning.GPUInfo>
-
apply
protected void apply(GPUWarning.GPUInfo p_212853_1_, IResourceManager p_212853_2_, IProfiler p_212853_3_)
- Specified by:
applyin classReloadListener<GPUWarning.GPUInfo>
-
compilePatterns
private static void compilePatterns(com.google.gson.JsonArray p_241693_0_, java.util.List<java.util.regex.Pattern> p_241693_1_)
-
parseJson
@Nullable private static com.google.gson.JsonObject parseJson(IResourceManager p_241696_0_, IProfiler p_241696_1_)
-
-