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 class
GPUWarning.GPUInfo
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Field Summary
Fields Modifier and Type Field Description private static ResourceLocation
GPU_WARNLIST_LOCATION
private static org.apache.logging.log4j.Logger
LOGGER
private boolean
showWarning
private boolean
skipFabulous
private boolean
warningDismissed
private 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 void
apply(GPUWarning.GPUInfo p_212853_1_, IResourceManager p_212853_2_, IProfiler p_212853_3_)
private static void
compilePatterns(com.google.gson.JsonArray p_241693_0_, java.util.List<java.util.regex.Pattern> p_241693_1_)
void
dismissWarning()
void
dismissWarningAndSkipFabulous()
java.lang.String
getAllWarnings()
java.lang.String
getRendererWarnings()
java.lang.String
getVendorWarnings()
java.lang.String
getVersionWarnings()
boolean
hasWarnings()
boolean
isShowingWarning()
boolean
isSkippingFabulous()
private static com.google.gson.JsonObject
parseJson(IResourceManager p_241696_0_, IProfiler p_241696_1_)
protected GPUWarning.GPUInfo
prepare(IResourceManager p_212854_1_, IProfiler p_212854_2_)
void
resetWarnings()
void
showWarning()
boolean
willShowWarning()
-
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:
prepare
in classReloadListener<GPUWarning.GPUInfo>
-
apply
protected void apply(GPUWarning.GPUInfo p_212853_1_, IResourceManager p_212853_2_, IProfiler p_212853_3_)
- Specified by:
apply
in 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_)
-
-