Class NativeHudResources

java.lang.Object
net.minecraft.server.packs.resources.SimplePreparableReloadListener<Boolean>
com.viaversion.viafabricplus.bedrock.screen.ui.NativeHudResources
All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener

public final class NativeHudResources extends net.minecraft.server.packs.resources.SimplePreparableReloadListener<Boolean>
Retires HUD font and image caches on the resource reload's client apply executor.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener

    net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier, net.minecraft.server.packs.resources.PreparableReloadListener.SharedState, net.minecraft.server.packs.resources.PreparableReloadListener.StateKey<T>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    apply(Boolean prepared, net.minecraft.server.packs.resources.ResourceManager resources, net.minecraft.util.profiling.ProfilerFiller profiler)
     
    protected Boolean
    prepare(net.minecraft.server.packs.resources.ResourceManager resources, net.minecraft.util.profiling.ProfilerFiller profiler)
     

    Methods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener

    reload

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener

    getName, prepareSharedState
  • Constructor Details

    • NativeHudResources

      public NativeHudResources()
  • Method Details

    • prepare

      protected Boolean prepare(net.minecraft.server.packs.resources.ResourceManager resources, net.minecraft.util.profiling.ProfilerFiller profiler)
      Specified by:
      prepare in class net.minecraft.server.packs.resources.SimplePreparableReloadListener<Boolean>
    • apply

      protected void apply(Boolean prepared, net.minecraft.server.packs.resources.ResourceManager resources, net.minecraft.util.profiling.ProfilerFiller profiler)
      Specified by:
      apply in class net.minecraft.server.packs.resources.SimplePreparableReloadListener<Boolean>