Class GPUWarning

All Implemented Interfaces:
IFutureReloadListener

public class GPUWarning extends ReloadListener<GPUWarning.GPUInfo>
  • Field Details

    • 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<String,String> warnings
    • showWarning

      private boolean showWarning
    • warningDismissed

      private boolean warningDismissed
    • skipFabulous

      private boolean skipFabulous
  • Constructor Details

    • GPUWarning

      public GPUWarning()
  • Method Details

    • 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 String getRendererWarnings()
    • getVersionWarnings

      @Nullable public String getVersionWarnings()
    • getVendorWarnings

      @Nullable public String getVendorWarnings()
    • getAllWarnings

      @Nullable public String getAllWarnings()
    • prepare

      protected GPUWarning.GPUInfo prepare(IResourceManager p_212854_1_, IProfiler p_212854_2_)
      Specified by:
      prepare in class ReloadListener<GPUWarning.GPUInfo>
    • apply

      protected void apply(GPUWarning.GPUInfo p_212853_1_, IResourceManager p_212853_2_, IProfiler p_212853_3_)
      Specified by:
      apply in class ReloadListener<GPUWarning.GPUInfo>
    • compilePatterns

      private static void compilePatterns(com.google.gson.JsonArray p_241693_0_, List<Pattern> p_241693_1_)
    • parseJson

      @Nullable private static com.google.gson.JsonObject parseJson(IResourceManager p_241696_0_, IProfiler p_241696_1_)