Package net.minecraftforge.common.data
Class SpriteSourceProvider
java.lang.Object
net.minecraftforge.common.data.JsonCodecProvider<List<SpriteSource>>
net.minecraftforge.common.data.SpriteSourceProvider
- All Implemented Interfaces:
- DataProvider
- Direct Known Subclasses:
- ForgeSpriteSourceProvider
Data provider for atlas configuration files.
 An atlas configuration is bound to a specific texture atlas such as the minecraft:blocks atlas and
 allows adding additional textures to the atlas by adding SpriteSources to the configuration.
See SpriteSources for the available sources and the constants in this class for the
 atlases used in vanilla Minecraft
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface net.minecraft.data.DataProviderDataProvider.Factory<T extends DataProvider>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Map<ResourceLocation,SpriteSourceProvider.SourceList> protected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationprotected static final ResourceLocationFields inherited from class net.minecraftforge.common.data.JsonCodecProvidercodec, conditions, directory, dynamicOps, entries, existingFileHelper, modid, output, packTypeFields inherited from interface net.minecraft.data.DataProviderFIXED_ORDER_FIELDS, KEY_COMPARATOR
- 
Constructor SummaryConstructorsConstructorDescriptionSpriteSourceProvider(PackOutput output, ExistingFileHelper fileHelper, String modid) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract voidprotected final SpriteSourceProvider.SourceListatlas(ResourceLocation atlas) Get or create aSpriteSourceProvider.SourceListfor the given atlasprotected final voidgather(BiConsumer<ResourceLocation, List<SpriteSource>> consumer) Methods inherited from class net.minecraftforge.common.data.JsonCodecProvidergetName, run, setConditions
- 
Field Details- 
BLOCKS_ATLAS
- 
BANNER_PATTERNS_ATLAS
- 
BEDS_ATLAS
- 
CHESTS_ATLAS
- 
SHIELD_PATTERNS_ATLAS
- 
SHULKER_BOXES_ATLAS
- 
SIGNS_ATLAS
- 
MOB_EFFECTS_ATLAS
- 
PAINTINGS_ATLAS
- 
PARTICLES_ATLAS
- 
atlases
 
- 
- 
Constructor Details- 
SpriteSourceProvider
 
- 
- 
Method Details- 
gather- Overrides:
- gatherin class- JsonCodecProvider<List<SpriteSource>>
 
- 
addSourcesprotected abstract void addSources()
- 
atlasGet or create aSpriteSourceProvider.SourceListfor the given atlas- Parameters:
- atlas- The texture atlas the sources should be added to, see constants at the top for the format and the vanilla atlases
- Returns:
- an existing SourceListfor the given atlas or a new one if not present yet
 
 
-