Package net.minecraft.client.texture
Class PlayerSkinTexture
java.lang.Object
net.minecraft.client.texture.AbstractTexture
net.minecraft.client.texture.ResourceTexture
net.minecraft.client.texture.PlayerSkinTexture
@Environment(CLIENT) public class PlayerSkinTexture extends ResourceTexture
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.texture.ResourceTexture
ResourceTexture.TextureData -
Field Summary
Fields Modifier and Type Field Description private FilecacheFileprivate booleanconvertLegacyprivate booleanloadedprivate RunnableloadedCallbackprivate CompletableFuture<?>loaderprivate static LoggerLOGGERprivate Stringurl -
Constructor Summary
Constructors Constructor Description PlayerSkinTexture(File cacheFile, String url, Identifier fallbackSkin, boolean convertLegacy, Runnable callback) -
Method Summary
Modifier and Type Method Description voidload(ResourceManager manager)private NativeImageloadTexture(InputStream stream)private voidonTextureLoaded(NativeImage image)private static NativeImageremapTexture(NativeImage image)private static voidstripAlpha(NativeImage image, int x, int y, int width, int height)private static voidstripColor(NativeImage image, int x, int y, int width, int height)private voiduploadTexture(NativeImage image)Methods inherited from class net.minecraft.client.texture.AbstractTexture
bindTexture, clearGlId, getGlId, registerTexture, setFilter
-
Field Details
-
LOGGER
-
cacheFile
-
url
-
convertLegacy
private final boolean convertLegacy -
loadedCallback
-
loader
-
loaded
private boolean loaded
-
-
Constructor Details
-
Method Details
-
onTextureLoaded
-
uploadTexture
-
load
- Overrides:
loadin classResourceTexture- Throws:
IOException
-
loadTexture
-
remapTexture
-
stripColor
-
stripAlpha
-