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 Fileprivate CompletableFuture<?> private static final intprivate static final org.slf4j.Loggerprivate final Runnableprivate final booleanprivate static final intprivate static final intprivate booleanprivate final StringFields inherited from class net.minecraft.client.renderer.texture.SimpleTexture
locationFields 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 voiddoNotchTransparencyHack(NativeImage image, int x, int y, int width, int height) private NativeImageload(InputStream stream) voidload(ResourceManager resourceManager) private voidloadCallback(NativeImage image) private NativeImageprocessLegacySkin(NativeImage image) private static voidsetNoAlpha(NativeImage image, int x, int y, int width, int height) private voidupload(NativeImage image) Methods inherited from class net.minecraft.client.renderer.texture.SimpleTexture
getTextureImageMethods 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:
loadin classSimpleTexture- Throws:
IOException
-
load
-
processLegacySkin
-
doNotchTransparencyHack
-
setNoAlpha
-