Class SpriteSourceProvider
java.lang.Object
io.github.vampirestudios.vampirelib.api.datagen.JsonCodecProvider<List<net.minecraft.client.renderer.texture.atlas.SpriteSource>>
io.github.vampirestudios.vampirelib.api.datagen.SpriteSourceProvider
- All Implemented Interfaces:
net.minecraft.data.DataProvider
public abstract class SpriteSourceProvider
extends JsonCodecProvider<List<net.minecraft.client.renderer.texture.atlas.SpriteSource>>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.data.DataProvider
net.minecraft.data.DataProvider.Factory<T extends net.minecraft.data.DataProvider> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final net.minecraft.resources.ResourceLocationprotected static final net.minecraft.resources.ResourceLocationprotected static final net.minecraft.resources.ResourceLocationprotected static final net.minecraft.resources.ResourceLocationprotected static final net.minecraft.resources.ResourceLocationprotected static final net.minecraft.resources.ResourceLocationprotected static final net.minecraft.resources.ResourceLocationprotected static final net.minecraft.resources.ResourceLocationprotected static final net.minecraft.resources.ResourceLocationprotected static final net.minecraft.resources.ResourceLocationFields inherited from class io.github.vampirestudios.vampirelib.api.datagen.JsonCodecProvider
codec, conditions, directory, dynamicOps, entries, existingFileHelper, modid, output, packTypeFields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionSpriteSourceProvider(net.minecraft.data.PackOutput output, ExistingFileHelper fileHelper, String modid) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidprotected final SpriteSourceProvider.SourceListatlas(net.minecraft.resources.ResourceLocation atlas) Get or create aSpriteSourceProvider.SourceListfor the given atlasprotected final voidgather(BiConsumer<net.minecraft.resources.ResourceLocation, List<net.minecraft.client.renderer.texture.atlas.SpriteSource>> consumer) Methods inherited from class io.github.vampirestudios.vampirelib.api.datagen.JsonCodecProvider
getName, run, setConditions
-
Field Details
-
BLOCKS_ATLAS
protected static final net.minecraft.resources.ResourceLocation BLOCKS_ATLAS -
BANNER_PATTERNS_ATLAS
protected static final net.minecraft.resources.ResourceLocation BANNER_PATTERNS_ATLAS -
BEDS_ATLAS
protected static final net.minecraft.resources.ResourceLocation BEDS_ATLAS -
CHESTS_ATLAS
protected static final net.minecraft.resources.ResourceLocation CHESTS_ATLAS -
SHIELD_PATTERNS_ATLAS
protected static final net.minecraft.resources.ResourceLocation SHIELD_PATTERNS_ATLAS -
SHULKER_BOXES_ATLAS
protected static final net.minecraft.resources.ResourceLocation SHULKER_BOXES_ATLAS -
SIGNS_ATLAS
protected static final net.minecraft.resources.ResourceLocation SIGNS_ATLAS -
MOB_EFFECTS_ATLAS
protected static final net.minecraft.resources.ResourceLocation MOB_EFFECTS_ATLAS -
PAINTINGS_ATLAS
protected static final net.minecraft.resources.ResourceLocation PAINTINGS_ATLAS -
PARTICLES_ATLAS
protected static final net.minecraft.resources.ResourceLocation PARTICLES_ATLAS
-
-
Constructor Details
-
SpriteSourceProvider
public SpriteSourceProvider(net.minecraft.data.PackOutput output, ExistingFileHelper fileHelper, String modid)
-
-
Method Details
-
gather
protected final void gather(BiConsumer<net.minecraft.resources.ResourceLocation, List<net.minecraft.client.renderer.texture.atlas.SpriteSource>> consumer) - Overrides:
gatherin classJsonCodecProvider<List<net.minecraft.client.renderer.texture.atlas.SpriteSource>>
-
addSources
protected abstract void addSources() -
atlas
protected final SpriteSourceProvider.SourceList atlas(net.minecraft.resources.ResourceLocation atlas) Get 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
-