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
Modifier and TypeFieldDescriptionprivate File
private CompletableFuture<?>
private static int
private static org.apache.logging.log4j.Logger
private Runnable
private boolean
private static int
private static int
private boolean
private 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
ConstructorDescriptionHttpTexture(File p_118002_, String p_118003_, ResourceLocation p_118004_, boolean p_118005_, Runnable p_118006_)
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
doNotchTransparencyHack(NativeImage p_118013_, int p_118014_, int p_118015_, int p_118016_, int p_118017_)
private NativeImage
load(InputStream p_118019_)
void
load(ResourceManager p_118009_)
private void
loadCallback(NativeImage p_118011_)
private NativeImage
processLegacySkin(NativeImage p_118033_)
private static void
setNoAlpha(NativeImage p_118023_, int p_118024_, int p_118025_, int p_118026_, int p_118027_)
private void
upload(NativeImage p_118021_)
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.apache.logging.log4j.Logger LOGGER -
SKIN_WIDTH
private static final int SKIN_WIDTH- See Also:
- Constant Field Values
-
SKIN_HEIGHT
private static final int SKIN_HEIGHT- See Also:
- Constant Field Values
-
LEGACY_SKIN_HEIGHT
private static final int LEGACY_SKIN_HEIGHT- See Also:
- Constant Field Values
-
file
-
urlString
-
processLegacySkin
private final boolean processLegacySkin -
onDownloaded
-
future
-
uploaded
private boolean uploaded
-
-
Constructor Details
-
HttpTexture
public HttpTexture(@Nullable File p_118002_, String p_118003_, ResourceLocation p_118004_, boolean p_118005_, @Nullable Runnable p_118006_)
-
-
Method Details
-
loadCallback
-
upload
-
load
- Overrides:
load
in classSimpleTexture
- Throws:
IOException
-
load
-
processLegacySkin
-
doNotchTransparencyHack
private static void doNotchTransparencyHack(NativeImage p_118013_, int p_118014_, int p_118015_, int p_118016_, int p_118017_) -
setNoAlpha
private static void setNoAlpha(NativeImage p_118023_, int p_118024_, int p_118025_, int p_118026_, int p_118027_)
-