26 lines
1.0 KiB
Java
26 lines
1.0 KiB
Java
package net.minecraft.client.resources;
|
|
|
|
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
|
import net.minecraft.client.renderer.texture.TextureManager;
|
|
import net.minecraft.client.resources.model.AtlasIds;
|
|
import net.minecraft.resources.ResourceLocation;
|
|
import net.minecraft.world.entity.decoration.PaintingVariant;
|
|
import net.minecraftforge.api.distmarker.Dist;
|
|
import net.minecraftforge.api.distmarker.OnlyIn;
|
|
|
|
@OnlyIn(Dist.CLIENT)
|
|
public class PaintingTextureManager extends TextureAtlasHolder {
|
|
private static final ResourceLocation BACK_SPRITE_LOCATION = ResourceLocation.withDefaultNamespace("back");
|
|
|
|
public PaintingTextureManager(TextureManager p_118802_) {
|
|
super(p_118802_, ResourceLocation.withDefaultNamespace("textures/atlas/paintings.png"), AtlasIds.PAINTINGS);
|
|
}
|
|
|
|
public TextureAtlasSprite get(PaintingVariant p_235034_) {
|
|
return this.getSprite(p_235034_.assetId());
|
|
}
|
|
|
|
public TextureAtlasSprite getBackSprite() {
|
|
return this.getSprite(BACK_SPRITE_LOCATION);
|
|
}
|
|
} |