类 TextureManager

    • 字段详细资料

      • LOGGER

        private static final Logger LOGGER
        Mappings:
        Namespace Name Mixin selector
        official b Lewe;b:Lorg/apache/logging/log4j/Logger;
        intermediary field_5288 Lnet/minecraft/class_1060;field_5288:Lorg/apache/logging/log4j/Logger;
        named LOGGER Lnet/minecraft/client/texture/TextureManager;LOGGER:Lorg/apache/logging/log4j/Logger;
      • MISSING_IDENTIFIER

        public static final Identifier MISSING_IDENTIFIER
        Mappings:
        Namespace Name Mixin selector
        official a Lewe;a:Lwp;
        intermediary field_5285 Lnet/minecraft/class_1060;field_5285:Lnet/minecraft/class_2960;
        named MISSING_IDENTIFIER Lnet/minecraft/client/texture/TextureManager;MISSING_IDENTIFIER:Lnet/minecraft/util/Identifier;
      • textures

        private final Map<Identifier,​AbstractTexture> textures
        Mappings:
        Namespace Name Mixin selector
        official c Lewe;c:Ljava/util/Map;
        intermediary field_5286 Lnet/minecraft/class_1060;field_5286:Ljava/util/Map;
        named textures Lnet/minecraft/client/texture/TextureManager;textures:Ljava/util/Map;
      • tickListeners

        private final Set<TextureTickListener> tickListeners
        Mappings:
        Namespace Name Mixin selector
        official d Lewe;d:Ljava/util/Set;
        intermediary field_5284 Lnet/minecraft/class_1060;field_5284:Ljava/util/Set;
        named tickListeners Lnet/minecraft/client/texture/TextureManager;tickListeners:Ljava/util/Set;
      • dynamicIdCounters

        private final Map<String,​Integer> dynamicIdCounters
        Mappings:
        Namespace Name Mixin selector
        official e Lewe;e:Ljava/util/Map;
        intermediary field_5283 Lnet/minecraft/class_1060;field_5283:Ljava/util/Map;
        named dynamicIdCounters Lnet/minecraft/client/texture/TextureManager;dynamicIdCounters:Ljava/util/Map;
      • resourceContainer

        private final ResourceManager resourceContainer
        Mappings:
        Namespace Name Mixin selector
        official f Lewe;f:Ladl;
        intermediary field_5287 Lnet/minecraft/class_1060;field_5287:Lnet/minecraft/class_3300;
        named resourceContainer Lnet/minecraft/client/texture/TextureManager;resourceContainer:Lnet/minecraft/resource/ResourceManager;
    • 构造器详细资料

      • TextureManager

        public TextureManager​(ResourceManager resourceManager)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lewe;<init>(Ladl;)V
        intermediary <init> Lnet/minecraft/class_1060;<init>(Lnet/minecraft/class_3300;)V
        named <init> Lnet/minecraft/client/texture/TextureManager;<init>(Lnet/minecraft/resource/ResourceManager;)V
    • 方法详细资料

      • bindTexture

        public void bindTexture​(Identifier id)
        Mappings:
        Namespace Name Mixin selector
        official a Lewe;a(Lwp;)V
        intermediary method_22813 Lnet/minecraft/class_1060;method_22813(Lnet/minecraft/class_2960;)V
        named bindTexture Lnet/minecraft/client/texture/TextureManager;bindTexture(Lnet/minecraft/util/Identifier;)V
      • bindTextureInner

        private void bindTextureInner​(Identifier id)
        Mappings:
        Namespace Name Mixin selector
        official d Lewe;d(Lwp;)V
        intermediary method_4618 Lnet/minecraft/class_1060;method_4618(Lnet/minecraft/class_2960;)V
        named bindTextureInner Lnet/minecraft/client/texture/TextureManager;bindTextureInner(Lnet/minecraft/util/Identifier;)V
      • registerTexture

        public void registerTexture​(Identifier id,
                                    AbstractTexture texture)
        Mappings:
        Namespace Name Mixin selector
        official a Lewe;a(Lwp;Levr;)V
        intermediary method_4616 Lnet/minecraft/class_1060;method_4616(Lnet/minecraft/class_2960;Lnet/minecraft/class_1044;)V
        named registerTexture Lnet/minecraft/client/texture/TextureManager;registerTexture(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/texture/AbstractTexture;)V
      • closeTexture

        private void closeTexture​(Identifier id,
                                  AbstractTexture texture)
        Mappings:
        Namespace Name Mixin selector
        official c Lewe;c(Lwp;Levr;)V
        intermediary method_30299 Lnet/minecraft/class_1060;method_30299(Lnet/minecraft/class_2960;Lnet/minecraft/class_1044;)V
        named closeTexture Lnet/minecraft/client/texture/TextureManager;closeTexture(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/texture/AbstractTexture;)V
      • loadTexture

        private AbstractTexture loadTexture​(Identifier id,
                                            AbstractTexture texture)
        Mappings:
        Namespace Name Mixin selector
        official d Lewe;d(Lwp;Levr;)Levr;
        intermediary method_24303 Lnet/minecraft/class_1060;method_24303(Lnet/minecraft/class_2960;Lnet/minecraft/class_1044;)Lnet/minecraft/class_1044;
        named loadTexture Lnet/minecraft/client/texture/TextureManager;loadTexture(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/texture/AbstractTexture;)Lnet/minecraft/client/texture/AbstractTexture;
      • getTexture

        public AbstractTexture getTexture​(Identifier id)
        Mappings:
        Namespace Name Mixin selector
        official b Lewe;b(Lwp;)Levr;
        intermediary method_4619 Lnet/minecraft/class_1060;method_4619(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1044;
        named getTexture Lnet/minecraft/client/texture/TextureManager;getTexture(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/texture/AbstractTexture;
      • method_34590

        public AbstractTexture method_34590​(Identifier identifier,
                                            AbstractTexture abstractTexture)
        Mappings:
        Namespace Name Mixin selector
        official b Lewe;b(Lwp;Levr;)Levr;
        intermediary method_34590 Lnet/minecraft/class_1060;method_34590(Lnet/minecraft/class_2960;Lnet/minecraft/class_1044;)Lnet/minecraft/class_1044;
        named method_34590 Lnet/minecraft/client/texture/TextureManager;method_34590(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/texture/AbstractTexture;)Lnet/minecraft/client/texture/AbstractTexture;
      • registerDynamicTexture

        public Identifier registerDynamicTexture​(String prefix,
                                                 NativeImageBackedTexture texture)
        Mappings:
        Namespace Name Mixin selector
        official a Lewe;a(Ljava/lang/String;Levt;)Lwp;
        intermediary method_4617 Lnet/minecraft/class_1060;method_4617(Ljava/lang/String;Lnet/minecraft/class_1043;)Lnet/minecraft/class_2960;
        named registerDynamicTexture Lnet/minecraft/client/texture/TextureManager;registerDynamicTexture(Ljava/lang/String;Lnet/minecraft/client/texture/NativeImageBackedTexture;)Lnet/minecraft/util/Identifier;
      • loadTextureAsync

        public CompletableFuture<Void> loadTextureAsync​(Identifier id,
                                                        Executor executor)
        Mappings:
        Namespace Name Mixin selector
        official a Lewe;a(Lwp;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
        intermediary method_18168 Lnet/minecraft/class_1060;method_18168(Lnet/minecraft/class_2960;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
        named loadTextureAsync Lnet/minecraft/client/texture/TextureManager;loadTextureAsync(Lnet/minecraft/util/Identifier;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      • runOnRenderThread

        private static void runOnRenderThread​(Runnable runnable)
        Mappings:
        Namespace Name Mixin selector
        official a Lewe;a(Ljava/lang/Runnable;)V
        intermediary method_22812 Lnet/minecraft/class_1060;method_22812(Ljava/lang/Runnable;)V
        named runOnRenderThread Lnet/minecraft/client/texture/TextureManager;runOnRenderThread(Ljava/lang/Runnable;)V
      • tick

        public void tick()
        指定者:
        tick 在接口中 TextureTickListener
        Mappings:
        Namespace Name Mixin selector
        official e Lewf;e()V
        intermediary method_4622 Lnet/minecraft/class_1061;method_4622()V
        named tick Lnet/minecraft/client/texture/TextureTickListener;tick()V
      • destroyTexture

        public void destroyTexture​(Identifier id)
        Mappings:
        Namespace Name Mixin selector
        official c Lewe;c(Lwp;)V
        intermediary method_4615 Lnet/minecraft/class_1060;method_4615(Lnet/minecraft/class_2960;)V
        named destroyTexture Lnet/minecraft/client/texture/TextureManager;destroyTexture(Lnet/minecraft/util/Identifier;)V
      • close

        public void close()
        指定者:
        close 在接口中 AutoCloseable
        Mappings:
        Namespace Name Mixin selector
        official close Lewe;close()V
        intermediary close Lnet/minecraft/class_1060;close()V
        named close Lnet/minecraft/client/texture/TextureManager;close()V
      • reload

        public CompletableFuture<Void> reload​(ResourceReloader.Synchronizer synchronizer,
                                              ResourceManager manager,
                                              Profiler prepareProfiler,
                                              Profiler applyProfiler,
                                              Executor prepareExecutor,
                                              Executor applyExecutor)
        Performs a reload. Returns a future that is completed when the reload is completed.

        In a reload, there is a prepare stage and an apply stage. For the prepare stage, you should create completable futures with CompletableFuture.supplyAsync(..., prepareExecutor) to ensure the prepare actions are done with the prepare executor. Then, you should have a completable future for all the prepared actions, and call combinedPrepare.thenCompose(synchronizer::waitFor) to notify the synchronizer. Finally, you should run CompletableFuture.thenAcceptAsync(..., applyExecutor) for apply actions. In the end, returns the result of thenAcceptAsync.

        指定者:
        reload 在接口中 ResourceReloader
        参数:
        synchronizer - the synchronizer
        manager - the resource manager
        prepareProfiler - the profiler for prepare stage
        applyProfiler - the profiler for apply stage
        prepareExecutor - the executor for prepare stage
        applyExecutor - the executor for apply stage
        返回:
        a future for the reload
        另请参阅:
        ReloadableResourceManager.reload(Executor, Executor, CompletableFuture, List)
        Mappings:
        Namespace Name Mixin selector
        official a Ladg;a(Ladg$a;Ladl;Lapl;Lapl;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
        intermediary method_25931 Lnet/minecraft/class_3302;method_25931(Lnet/minecraft/class_3302$class_4045;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;Lnet/minecraft/class_3695;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
        named reload Lnet/minecraft/resource/ResourceReloader;reload(Lnet/minecraft/resource/ResourceReloader$Synchronizer;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;Lnet/minecraft/util/profiler/Profiler;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;