Spaces:
Build error
Build error
package net.minecraft.client.resources; | |
import net.minecraft.client.renderer.texture.TextureAtlasSprite; | |
import net.minecraft.client.renderer.texture.TextureManager; | |
import net.minecraft.resources.ResourceLocation; | |
import net.minecraft.world.entity.decoration.PaintingVariant; | |
import net.minecraftforge.api.distmarker.Dist; | |
import net.minecraftforge.api.distmarker.OnlyIn; | |
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"), ResourceLocation.withDefaultNamespace("paintings")); | |
} | |
public TextureAtlasSprite get(PaintingVariant p_235034_) { | |
return this.getSprite(p_235034_.assetId()); | |
} | |
public TextureAtlasSprite getBackSprite() { | |
return this.getSprite(BACK_SPRITE_LOCATION); | |
} | |
} |