Class BaseModelSourceDataProvider

java.lang.Object
dev.dhyces.trimmed.api.data.model.source.BaseModelSourceDataProvider
All Implemented Interfaces:
net.minecraft.data.DataProvider

public abstract class BaseModelSourceDataProvider extends Object implements net.minecraft.data.DataProvider
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider

    net.minecraft.data.DataProvider.Factory<T extends net.minecraft.data.DataProvider>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Map<net.minecraft.resources.ResourceLocation,ModelSource>
     
    protected final String
     
    protected final net.minecraft.data.PackOutput
     
    protected final net.minecraft.data.PackOutput.PathProvider
     

    Fields inherited from interface net.minecraft.data.DataProvider

    FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER
  • Constructor Summary

    Constructors
    Constructor
    Description
    BaseModelSourceDataProvider(net.minecraft.data.PackOutput packOutput, String modid)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(net.minecraft.resources.ResourceLocation id, ModelSource modelSource)
     
    protected abstract void
     
    void
    addThreeLayerTrimsSource(net.minecraft.resources.ResourceLocation armorMaterial)
     
    void
    addThreeLayerTrimsSource(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation overlayTextures, net.minecraft.resources.ResourceLocation overrideTextures)
     
    void
    addTrimsSource(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation template, MapKey<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation> overlayTextures, MapKey<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation> overrideTextures)
     
    void
    addTrimsSource(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation template, net.minecraft.resources.ResourceLocation overlayTextures, net.minecraft.resources.ResourceLocation overrideTextures)
     
    void
    addTwoLayerTrimsSource(net.minecraft.resources.ResourceLocation armorMaterial)
     
    void
    addTwoLayerTrimsSource(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation overlayTextures, net.minecraft.resources.ResourceLocation overrideTextures)
     
     
    protected void
    onAdd(net.minecraft.resources.ResourceLocation id)
    Used in the Neo specific provider for adding to existing files
    run(net.minecraft.data.CachedOutput output)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • packOutput

      protected final net.minecraft.data.PackOutput packOutput
    • pathProvider

      protected final net.minecraft.data.PackOutput.PathProvider pathProvider
    • modid

      protected final String modid
    • modelSources

      protected final Map<net.minecraft.resources.ResourceLocation,ModelSource> modelSources
  • Constructor Details

    • BaseModelSourceDataProvider

      public BaseModelSourceDataProvider(net.minecraft.data.PackOutput packOutput, String modid)
  • Method Details

    • addModelSources

      protected abstract void addModelSources()
    • addTwoLayerTrimsSource

      public void addTwoLayerTrimsSource(net.minecraft.resources.ResourceLocation armorMaterial)
    • addThreeLayerTrimsSource

      public void addThreeLayerTrimsSource(net.minecraft.resources.ResourceLocation armorMaterial)
    • addTwoLayerTrimsSource

      public void addTwoLayerTrimsSource(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation overlayTextures, net.minecraft.resources.ResourceLocation overrideTextures)
    • addThreeLayerTrimsSource

      public void addThreeLayerTrimsSource(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation overlayTextures, net.minecraft.resources.ResourceLocation overrideTextures)
    • addTrimsSource

      public void addTrimsSource(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation template, net.minecraft.resources.ResourceLocation overlayTextures, net.minecraft.resources.ResourceLocation overrideTextures)
    • addTrimsSource

      public void addTrimsSource(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation template, MapKey<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation> overlayTextures, MapKey<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation> overrideTextures)
    • add

      public void add(net.minecraft.resources.ResourceLocation id, ModelSource modelSource)
    • onAdd

      protected void onAdd(net.minecraft.resources.ResourceLocation id)
      Used in the Neo specific provider for adding to existing files
      Parameters:
      id -
    • run

      public CompletableFuture<?> run(net.minecraft.data.CachedOutput output)
      Specified by:
      run in interface net.minecraft.data.DataProvider
    • getName

      public String getName()
      Specified by:
      getName in interface net.minecraft.data.DataProvider