Class SpriteSourceProvider
java.lang.Object
net.neoforged.neoforge.common.data.JsonCodecProvider<List<SpriteSource>>
net.neoforged.neoforge.common.data.SpriteSourceProvider
- All Implemented Interfaces:
DataProvider
- Direct Known Subclasses:
NeoForgeSpriteSourceProvider
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 Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.data.DataProvider
DataProvider.Factory<T extends DataProvider> -
Field Summary
FieldsModifier 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.neoforged.neoforge.common.data.JsonCodecProvider
codec, conditions, directory, existingFileHelper, lookupProvider, modid, pathProvider, resourceTypeFields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionSpriteSourceProvider(PackOutput output, CompletableFuture<HolderLookup.Provider> lookupProvider, String modId, ExistingFileHelper existingFileHelper) -
Method Summary
Modifier and TypeMethodDescriptionprotected final SpriteSourceProvider.SourceListGet or create aSpriteSourceProvider.SourceListfor the given atlasMethods inherited from class net.neoforged.neoforge.common.data.JsonCodecProvider
conditionally, gather, getName, run, unconditional
-
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
public SpriteSourceProvider(PackOutput output, CompletableFuture<HolderLookup.Provider> lookupProvider, String modId, ExistingFileHelper existingFileHelper)
-
-
Method Details
-
atlas
Get or create aSpriteSourceProvider.SourceListfor the given atlas- Parameters:
id- 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
-