blob: be9ecf6ffe8ebb442dc8bcf8f012a52b333b02f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package kr.syeyoung.dungeonsguide.party;
import lombok.Data;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.texture.DynamicTexture;
import net.minecraft.util.ResourceLocation;
import java.awt.image.BufferedImage;
@Data
public class LoadedImage {
private String url;
private BufferedImage image;
private DynamicTexture previewTexture;
private ResourceLocation resourceLocation;
public void buildGLThings() {
previewTexture = new DynamicTexture(image);
resourceLocation = Minecraft.getMinecraft().getTextureManager().getDynamicTextureLocation("dgurl/"+url, previewTexture);
}
}
|