Class HttpTexture
java.lang.Object
net.minecraft.client.renderer.texture.AbstractTexture
net.minecraft.client.renderer.texture.SimpleTexture
net.minecraft.client.renderer.texture.HttpTexture
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.renderer.texture.SimpleTexture
SimpleTexture.TextureImage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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
Fields inherited from class net.minecraft.client.renderer.texture.SimpleTexture
location
Fields inherited from class net.minecraft.client.renderer.texture.AbstractTexture
blur, id, mipmap, NOT_ASSIGNED
-
Constructor Summary
ConstructorsConstructorDescriptionHttpTexture
(File pFile, String pUrlString, ResourceLocation pLocation, boolean pProcessLegacySkin, Runnable pOnDownloaded) -
Method Summary
Modifier and TypeMethodDescriptionprivate 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) Methods inherited from class net.minecraft.client.renderer.texture.SimpleTexture
getTextureImage
Methods inherited from class net.minecraft.client.renderer.texture.AbstractTexture
bind, close, getId, releaseId, reset, restoreLastBlurMipmap, setBlurMipmap, setFilter
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SKIN_WIDTH
private static final int SKIN_WIDTH- See Also:
-
SKIN_HEIGHT
private static final int SKIN_HEIGHT- See Also:
-
LEGACY_SKIN_HEIGHT
private static final int LEGACY_SKIN_HEIGHT- See Also:
-
file
-
urlString
-
processLegacySkin
private final boolean processLegacySkin -
onDownloaded
-
future
-
uploaded
private boolean uploaded
-
-
Constructor Details
-
HttpTexture
public HttpTexture(@Nullable File pFile, String pUrlString, ResourceLocation pLocation, boolean pProcessLegacySkin, @Nullable Runnable pOnDownloaded)
-
-
Method Details
-
loadCallback
-
upload
-
load
- Overrides:
load
in classSimpleTexture
- Throws:
IOException
-
load
-
processLegacySkin
-
doNotchTransparencyHack
private static void doNotchTransparencyHack(NativeImage pImage, int pX, int pY, int pWidth, int pHeight) -
setNoAlpha
-