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
- All Implemented Interfaces:
AutoCloseable
@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 StringurlFields inherited from class net.minecraft.client.texture.ResourceTexture
locationFields inherited from class net.minecraft.client.texture.AbstractTexture
bilinear, glId, mipmap -
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 x1, int y1, int x2, int y2)private static voidstripColor(NativeImage image, int x1, int y1, int x2, int y2)private voiduploadTexture(NativeImage image)Methods inherited from class net.minecraft.client.texture.ResourceTexture
loadTextureDataMethods inherited from class net.minecraft.client.texture.AbstractTexture
bindTexture, clearGlId, close, getGlId, registerTexture, setFilter
-
Field Details
-
LOGGER
-
cacheFile
-
url
-
convertLegacy
private final boolean convertLegacy -
loadedCallback
-
loader
-
loaded
private boolean loaded
-
-
Constructor Details
-
PlayerSkinTexture
-
-
Method Details
-
onTextureLoaded
-
uploadTexture
-
load
- Overrides:
loadin classResourceTexture- Throws:
IOException
-
loadTexture
-
remapTexture
-
stripColor
-
stripAlpha
-