类 SpriteAtlasHolder
- java.lang.Object
-
- net.minecraft.resource.SinglePreparationResourceReloader<SpriteAtlasTexture.Data>
-
- net.minecraft.client.texture.SpriteAtlasHolder
-
- 所有已实现的接口:
AutoCloseable,ResourceReloader
- 直接已知子类:
PaintingManager,StatusEffectSpriteManager
@Environment(CLIENT) public abstract class SpriteAtlasHolder extends SinglePreparationResourceReloader<SpriteAtlasTexture.Data> implements AutoCloseable
- Mappings:
Namespace Name official ewvintermediary net/minecraft/class_4075named net/minecraft/client/texture/SpriteAtlasHolder
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer
-
-
字段概要
字段 修饰符和类型 字段 说明 private SpriteAtlasTextureatlasprivate StringpathPrefix
-
构造器概要
构造器 构造器 说明 SpriteAtlasHolder(TextureManager textureManager, Identifier atlasId, String pathPrefix)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected voidapply(SpriteAtlasTexture.Data data, ResourceManager resourceManager, Profiler profiler)Handles the prepared intermediate object.voidclose()protected SpritegetSprite(Identifier objectId)protected abstract Stream<Identifier>getSprites()protected SpriteAtlasTexture.Dataprepare(ResourceManager resourceManager, Profiler profiler)Prepares the intermediate object.private IdentifiertoSpriteId(Identifier objectId)-
从类继承的方法 net.minecraft.resource.SinglePreparationResourceReloader
reload
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.resource.ResourceReloader
getName
-
-
-
-
字段详细资料
-
atlas
private final SpriteAtlasTexture atlas
- Mappings:
Namespace Name Mixin selector official aLewv;a:Lewc;intermediary field_18230Lnet/minecraft/class_4075;field_18230:Lnet/minecraft/class_1059;named atlasLnet/minecraft/client/texture/SpriteAtlasHolder;atlas:Lnet/minecraft/client/texture/SpriteAtlasTexture;
-
pathPrefix
private final String pathPrefix
- Mappings:
Namespace Name Mixin selector official bLewv;b:Ljava/lang/String;intermediary field_21767Lnet/minecraft/class_4075;field_21767:Ljava/lang/String;named pathPrefixLnet/minecraft/client/texture/SpriteAtlasHolder;pathPrefix:Ljava/lang/String;
-
-
构造器详细资料
-
SpriteAtlasHolder
public SpriteAtlasHolder(TextureManager textureManager, Identifier atlasId, String pathPrefix)
- Mappings:
Namespace Name Mixin selector official <init>Lewv;<init>(Lewe;Lwp;Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_4075;<init>(Lnet/minecraft/class_1060;Lnet/minecraft/class_2960;Ljava/lang/String;)Vnamed <init>Lnet/minecraft/client/texture/SpriteAtlasHolder;<init>(Lnet/minecraft/client/texture/TextureManager;Lnet/minecraft/util/Identifier;Ljava/lang/String;)V
-
-
方法详细资料
-
getSprites
protected abstract Stream<Identifier> getSprites()
- Mappings:
Namespace Name Mixin selector official aLewv;a()Ljava/util/stream/Stream;intermediary method_18665Lnet/minecraft/class_4075;method_18665()Ljava/util/stream/Stream;named getSpritesLnet/minecraft/client/texture/SpriteAtlasHolder;getSprites()Ljava/util/stream/Stream;
-
getSprite
protected Sprite getSprite(Identifier objectId)
- Mappings:
Namespace Name Mixin selector official aLewv;a(Lwp;)Lewd;intermediary method_18667Lnet/minecraft/class_4075;method_18667(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1058;named getSpriteLnet/minecraft/client/texture/SpriteAtlasHolder;getSprite(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/texture/Sprite;
-
toSpriteId
private Identifier toSpriteId(Identifier objectId)
- Mappings:
Namespace Name Mixin selector official bLewv;b(Lwp;)Lwp;intermediary method_24140Lnet/minecraft/class_4075;method_24140(Lnet/minecraft/class_2960;)Lnet/minecraft/class_2960;named toSpriteIdLnet/minecraft/client/texture/SpriteAtlasHolder;toSpriteId(Lnet/minecraft/util/Identifier;)Lnet/minecraft/util/Identifier;
-
prepare
protected SpriteAtlasTexture.Data prepare(ResourceManager resourceManager, Profiler profiler)
从类复制的说明:SinglePreparationResourceReloaderPrepares the intermediate object.This method is called in the prepare executor in a reload.
- 指定者:
prepare在类中SinglePreparationResourceReloader<SpriteAtlasTexture.Data>- 参数:
resourceManager- the resource managerprofiler- the prepare profiler- 返回:
- the prepared object
- Mappings:
Namespace Name Mixin selector official aLewv;a(Ladl;Lapl;)Lewc$a;intermediary method_18668Lnet/minecraft/class_4075;method_18668(Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Lnet/minecraft/class_1059$class_4007;named prepareLnet/minecraft/client/texture/SpriteAtlasHolder;prepare(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Lnet/minecraft/client/texture/SpriteAtlasTexture$Data;
-
apply
protected void apply(SpriteAtlasTexture.Data data, ResourceManager resourceManager, Profiler profiler)
从类复制的说明:SinglePreparationResourceReloaderHandles the prepared intermediate object.This method is called in the apply executor, or the game engine, in a reload.
- 指定者:
apply在类中SinglePreparationResourceReloader<SpriteAtlasTexture.Data>- 参数:
data- the prepared objectresourceManager- the resource managerprofiler- the apply profiler- Mappings:
Namespace Name Mixin selector official aLewv;a(Lewc$a;Ladl;Lapl;)Vintermediary method_18666Lnet/minecraft/class_4075;method_18666(Lnet/minecraft/class_1059$class_4007;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Vnamed applyLnet/minecraft/client/texture/SpriteAtlasHolder;apply(Lnet/minecraft/client/texture/SpriteAtlasTexture$Data;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)V
-
close
public void close()
- 指定者:
close在接口中AutoCloseable- Mappings:
Namespace Name Mixin selector official closeLewv;close()Vintermediary closeLnet/minecraft/class_4075;close()Vnamed closeLnet/minecraft/client/texture/SpriteAtlasHolder;close()V
-
-