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 file, String urlString, ResourceLocation location, boolean processLegacySkin, Runnable onDownloaded) -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
doNotchTransparencyHack
(NativeImage image, int x, int y, int width, int height) private NativeImage
load
(InputStream stream) void
load
(ResourceManager resourceManager) private void
loadCallback
(NativeImage image) private NativeImage
processLegacySkin
(NativeImage image) private static void
setNoAlpha
(NativeImage image, int x, int y, int width, int height) private void
upload
(NativeImage image) 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 file, String urlString, ResourceLocation location, boolean processLegacySkin, @Nullable Runnable onDownloaded)
-
-
Method Details
-
loadCallback
-
upload
-
load
- Overrides:
load
in classSimpleTexture
- Throws:
IOException
-
load
-
processLegacySkin
-
doNotchTransparencyHack
-
setNoAlpha
-