20 lines
831 B
Java
20 lines
831 B
Java
package net.minecraft.client.resources;
|
|
|
|
import net.fabricmc.api.EnvType;
|
|
import net.fabricmc.api.Environment;
|
|
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.level.saveddata.maps.MapDecoration;
|
|
|
|
@Environment(EnvType.CLIENT)
|
|
public class MapDecorationTextureManager extends TextureAtlasHolder {
|
|
public MapDecorationTextureManager(TextureManager textureManager) {
|
|
super(textureManager, ResourceLocation.withDefaultNamespace("textures/atlas/map_decorations.png"), AtlasIds.MAP_DECORATIONS);
|
|
}
|
|
|
|
public TextureAtlasSprite get(MapDecoration mapDecoration) {
|
|
return this.getSprite(mapDecoration.getSpriteLocation());
|
|
}
|
|
}
|