类 HttpTexture
java.lang.Object
net.minecraft.client.renderer.texture.AbstractTexture
net.minecraft.client.renderer.texture.SimpleTexture
net.minecraft.client.renderer.texture.HttpTexture
- 所有已实现的接口:
AutoCloseable
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.client.renderer.texture.SimpleTexture
SimpleTexture.TextureImage
-
字段概要
字段修饰符和类型字段说明private final File
private CompletableFuture<?>
private static final int
private static final org.slf4j.Logger
private final Runnable
private final boolean
private static final int
private static final int
private boolean
private final String
从类继承的字段 net.minecraft.client.renderer.texture.SimpleTexture
location
从类继承的字段 net.minecraft.client.renderer.texture.AbstractTexture
blur, id, mipmap, NOT_ASSIGNED
-
构造器概要
构造器构造器说明HttpTexture
(File pFile, String pUrlString, ResourceLocation pLocation, boolean pProcessLegacySkin, Runnable pOnDownloaded) -
方法概要
修饰符和类型方法说明private static void
doNotchTransparencyHack
(NativeImage pImage, int pX, int pY, int pWidth, int pHeight) private NativeImage
load
(InputStream pStream) void
load
(ResourceManager pResourceManager) private void
loadCallback
(NativeImage pImage) private NativeImage
processLegacySkin
(NativeImage pImage) private static void
setNoAlpha
(NativeImage pImage, int pX, int pY, int pWidth, int pHeight) private void
upload
(NativeImage pImage) 从类继承的方法 net.minecraft.client.renderer.texture.SimpleTexture
getTextureImage
从类继承的方法 net.minecraft.client.renderer.texture.AbstractTexture
bind, close, getId, releaseId, reset, restoreLastBlurMipmap, setBlurMipmap, setFilter
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SKIN_WIDTH
private static final int SKIN_WIDTH- 另请参阅:
-
SKIN_HEIGHT
private static final int SKIN_HEIGHT- 另请参阅:
-
LEGACY_SKIN_HEIGHT
private static final int LEGACY_SKIN_HEIGHT- 另请参阅:
-
file
-
urlString
-
processLegacySkin
private final boolean processLegacySkin -
onDownloaded
-
future
-
uploaded
private boolean uploaded
-
-
构造器详细资料
-
HttpTexture
public HttpTexture(@Nullable File pFile, String pUrlString, ResourceLocation pLocation, boolean pProcessLegacySkin, @Nullable Runnable pOnDownloaded)
-
-
方法详细资料
-
loadCallback
-
upload
-
load
- 覆盖:
load
在类中SimpleTexture
- 抛出:
IOException
-
load
-
processLegacySkin
-
doNotchTransparencyHack
private static void doNotchTransparencyHack(NativeImage pImage, int pX, int pY, int pWidth, int pHeight) -
setNoAlpha
-