Class ModelProvider<T extends ModelBuilder<T>>

java.lang.Object
io.github.vampirestudios.vampirelib.api.datagen.ModelProvider<T>
All Implemented Interfaces:
net.minecraft.data.DataProvider
Direct Known Subclasses:
BlockModelProvider, ItemModelProvider

public abstract class ModelProvider<T extends ModelBuilder<T>> extends Object implements net.minecraft.data.DataProvider
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
     
    protected final Function<net.minecraft.resources.ResourceLocation,T>
     
    protected final String
     
    final Map<net.minecraft.resources.ResourceLocation,T>
     
    protected final net.minecraft.data.DataGenerator
     
    static final String
     
    protected static final ExistingFileHelper.ResourceType
     
    protected static final ExistingFileHelper.ResourceType
     
    protected final String
     
    protected static final ExistingFileHelper.ResourceType
     

    Fields inherited from interface net.minecraft.data.DataProvider

    FIXED_ORDER_FIELDS, KEY_COMPARATOR
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModelProvider(net.minecraft.data.DataGenerator generator, String modid, String folder, BiFunction<net.minecraft.resources.ResourceLocation,ExistingFileHelper,T> builderFromModId, ExistingFileHelper existingFileHelper)
     
    ModelProvider(net.minecraft.data.DataGenerator generator, String modid, String folder, Function<net.minecraft.resources.ResourceLocation,T> factory, ExistingFileHelper existingFileHelper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    button(String name, net.minecraft.resources.ResourceLocation texture)
     
    buttonInventory(String name, net.minecraft.resources.ResourceLocation texture)
     
    buttonPressed(String name, net.minecraft.resources.ResourceLocation texture)
     
    carpet(String name, net.minecraft.resources.ResourceLocation wool)
     
    protected void
     
    crop(String name, net.minecraft.resources.ResourceLocation crop)
     
    cross(String name, net.minecraft.resources.ResourceLocation cross)
     
    cube(String name, net.minecraft.resources.ResourceLocation down, net.minecraft.resources.ResourceLocation up, net.minecraft.resources.ResourceLocation north, net.minecraft.resources.ResourceLocation south, net.minecraft.resources.ResourceLocation east, net.minecraft.resources.ResourceLocation west)
     
    cubeAll(String name, net.minecraft.resources.ResourceLocation texture)
     
    cubeBottomTop(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
     
    cubeColumn(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation end)
     
    cubeColumnHorizontal(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation end)
     
    cubeTop(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation top)
     
    doorBottomLeft(String name, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
     
    doorBottomLeftOpen(String name, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
     
    doorBottomRight(String name, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
     
    doorBottomRightOpen(String name, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
     
    doorTopLeft(String name, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
     
    doorTopLeftOpen(String name, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
     
    doorTopRight(String name, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
     
    doorTopRightOpen(String name, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
     
    fenceGate(String name, net.minecraft.resources.ResourceLocation texture)
     
    fenceGateOpen(String name, net.minecraft.resources.ResourceLocation texture)
     
    fenceGateWall(String name, net.minecraft.resources.ResourceLocation texture)
     
    fenceGateWallOpen(String name, net.minecraft.resources.ResourceLocation texture)
     
    fenceInventory(String name, net.minecraft.resources.ResourceLocation texture)
     
    fencePost(String name, net.minecraft.resources.ResourceLocation texture)
     
    fenceSide(String name, net.minecraft.resources.ResourceLocation texture)
     
    protected void
    generateAll(net.minecraft.data.CachedOutput cache)
     
     
    getExistingFile(net.minecraft.resources.ResourceLocation path)
     
    net.minecraft.resources.ResourceLocation
    mcLoc(String name)
     
    net.minecraft.resources.ResourceLocation
    modLoc(String name)
     
    Returns a model builder that's not directly saved to disk. Meant for use in custom model loaders..
    orientable(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation front, net.minecraft.resources.ResourceLocation top)
     
    orientableVertical(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation front)
     
    orientableWithBottom(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation front, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
     
    paneNoSide(String name, net.minecraft.resources.ResourceLocation pane)
     
    paneNoSideAlt(String name, net.minecraft.resources.ResourceLocation pane)
     
    panePost(String name, net.minecraft.resources.ResourceLocation pane, net.minecraft.resources.ResourceLocation edge)
     
    paneSide(String name, net.minecraft.resources.ResourceLocation pane, net.minecraft.resources.ResourceLocation edge)
     
    paneSideAlt(String name, net.minecraft.resources.ResourceLocation pane, net.minecraft.resources.ResourceLocation edge)
     
    pressurePlate(String name, net.minecraft.resources.ResourceLocation texture)
     
    pressurePlateDown(String name, net.minecraft.resources.ResourceLocation texture)
     
    protected abstract void
     
    void
    run(net.minecraft.data.CachedOutput cache)
     
    sign(String name, net.minecraft.resources.ResourceLocation texture)
     
    singleTexture(String name, net.minecraft.resources.ResourceLocation parent, String textureKey, net.minecraft.resources.ResourceLocation texture)
     
    singleTexture(String name, net.minecraft.resources.ResourceLocation parent, net.minecraft.resources.ResourceLocation texture)
     
    slab(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
     
    slabTop(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
     
    stairs(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
     
    stairsInner(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
     
    stairsOuter(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
     
    torch(String name, net.minecraft.resources.ResourceLocation torch)
     
    torchWall(String name, net.minecraft.resources.ResourceLocation torch)
     
    trapdoorBottom(String name, net.minecraft.resources.ResourceLocation texture)
     
    trapdoorOpen(String name, net.minecraft.resources.ResourceLocation texture)
     
    trapdoorOrientableBottom(String name, net.minecraft.resources.ResourceLocation texture)
     
    trapdoorOrientableOpen(String name, net.minecraft.resources.ResourceLocation texture)
     
    trapdoorOrientableTop(String name, net.minecraft.resources.ResourceLocation texture)
     
    trapdoorTop(String name, net.minecraft.resources.ResourceLocation texture)
     
    wallInventory(String name, net.minecraft.resources.ResourceLocation wall)
     
    wallPost(String name, net.minecraft.resources.ResourceLocation wall)
     
    wallSide(String name, net.minecraft.resources.ResourceLocation wall)
     
    wallSideTall(String name, net.minecraft.resources.ResourceLocation wall)
     
     
    withExistingParent(String name, net.minecraft.resources.ResourceLocation parent)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.data.DataProvider

    getName
  • Field Details

  • Constructor Details

  • Method Details

    • registerModels

      protected abstract void registerModels()
    • getBuilder

      public T getBuilder(String path)
    • modLoc

      public net.minecraft.resources.ResourceLocation modLoc(String name)
    • mcLoc

      public net.minecraft.resources.ResourceLocation mcLoc(String name)
    • withExistingParent

      public T withExistingParent(String name, String parent)
    • withExistingParent

      public T withExistingParent(String name, net.minecraft.resources.ResourceLocation parent)
    • cube

      public T cube(String name, net.minecraft.resources.ResourceLocation down, net.minecraft.resources.ResourceLocation up, net.minecraft.resources.ResourceLocation north, net.minecraft.resources.ResourceLocation south, net.minecraft.resources.ResourceLocation east, net.minecraft.resources.ResourceLocation west)
    • singleTexture

      public T singleTexture(String name, net.minecraft.resources.ResourceLocation parent, net.minecraft.resources.ResourceLocation texture)
    • singleTexture

      public T singleTexture(String name, net.minecraft.resources.ResourceLocation parent, String textureKey, net.minecraft.resources.ResourceLocation texture)
    • cubeAll

      public T cubeAll(String name, net.minecraft.resources.ResourceLocation texture)
    • cubeTop

      public T cubeTop(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation top)
    • cubeBottomTop

      public T cubeBottomTop(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
    • cubeColumn

      public T cubeColumn(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation end)
    • cubeColumnHorizontal

      public T cubeColumnHorizontal(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation end)
    • orientableVertical

      public T orientableVertical(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation front)
    • orientableWithBottom

      public T orientableWithBottom(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation front, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
    • orientable

      public T orientable(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation front, net.minecraft.resources.ResourceLocation top)
    • crop

      public T crop(String name, net.minecraft.resources.ResourceLocation crop)
    • cross

      public T cross(String name, net.minecraft.resources.ResourceLocation cross)
    • stairs

      public T stairs(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
    • stairsOuter

      public T stairsOuter(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
    • stairsInner

      public T stairsInner(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
    • slab

      public T slab(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
    • slabTop

      public T slabTop(String name, net.minecraft.resources.ResourceLocation side, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
    • button

      public T button(String name, net.minecraft.resources.ResourceLocation texture)
    • buttonPressed

      public T buttonPressed(String name, net.minecraft.resources.ResourceLocation texture)
    • buttonInventory

      public T buttonInventory(String name, net.minecraft.resources.ResourceLocation texture)
    • pressurePlate

      public T pressurePlate(String name, net.minecraft.resources.ResourceLocation texture)
    • pressurePlateDown

      public T pressurePlateDown(String name, net.minecraft.resources.ResourceLocation texture)
    • sign

      public T sign(String name, net.minecraft.resources.ResourceLocation texture)
    • fencePost

      public T fencePost(String name, net.minecraft.resources.ResourceLocation texture)
    • fenceSide

      public T fenceSide(String name, net.minecraft.resources.ResourceLocation texture)
    • fenceInventory

      public T fenceInventory(String name, net.minecraft.resources.ResourceLocation texture)
    • fenceGate

      public T fenceGate(String name, net.minecraft.resources.ResourceLocation texture)
    • fenceGateOpen

      public T fenceGateOpen(String name, net.minecraft.resources.ResourceLocation texture)
    • fenceGateWall

      public T fenceGateWall(String name, net.minecraft.resources.ResourceLocation texture)
    • fenceGateWallOpen

      public T fenceGateWallOpen(String name, net.minecraft.resources.ResourceLocation texture)
    • wallPost

      public T wallPost(String name, net.minecraft.resources.ResourceLocation wall)
    • wallSide

      public T wallSide(String name, net.minecraft.resources.ResourceLocation wall)
    • wallSideTall

      public T wallSideTall(String name, net.minecraft.resources.ResourceLocation wall)
    • wallInventory

      public T wallInventory(String name, net.minecraft.resources.ResourceLocation wall)
    • panePost

      public T panePost(String name, net.minecraft.resources.ResourceLocation pane, net.minecraft.resources.ResourceLocation edge)
    • paneSide

      public T paneSide(String name, net.minecraft.resources.ResourceLocation pane, net.minecraft.resources.ResourceLocation edge)
    • paneSideAlt

      public T paneSideAlt(String name, net.minecraft.resources.ResourceLocation pane, net.minecraft.resources.ResourceLocation edge)
    • paneNoSide

      public T paneNoSide(String name, net.minecraft.resources.ResourceLocation pane)
    • paneNoSideAlt

      public T paneNoSideAlt(String name, net.minecraft.resources.ResourceLocation pane)
    • doorBottomLeft

      public T doorBottomLeft(String name, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
    • doorBottomLeftOpen

      public T doorBottomLeftOpen(String name, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
    • doorBottomRight

      public T doorBottomRight(String name, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
    • doorBottomRightOpen

      public T doorBottomRightOpen(String name, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
    • doorTopLeft

      public T doorTopLeft(String name, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
    • doorTopLeftOpen

      public T doorTopLeftOpen(String name, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
    • doorTopRight

      public T doorTopRight(String name, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
    • doorTopRightOpen

      public T doorTopRightOpen(String name, net.minecraft.resources.ResourceLocation bottom, net.minecraft.resources.ResourceLocation top)
    • trapdoorBottom

      public T trapdoorBottom(String name, net.minecraft.resources.ResourceLocation texture)
    • trapdoorTop

      public T trapdoorTop(String name, net.minecraft.resources.ResourceLocation texture)
    • trapdoorOpen

      public T trapdoorOpen(String name, net.minecraft.resources.ResourceLocation texture)
    • trapdoorOrientableBottom

      public T trapdoorOrientableBottom(String name, net.minecraft.resources.ResourceLocation texture)
    • trapdoorOrientableTop

      public T trapdoorOrientableTop(String name, net.minecraft.resources.ResourceLocation texture)
    • trapdoorOrientableOpen

      public T trapdoorOrientableOpen(String name, net.minecraft.resources.ResourceLocation texture)
    • torch

      public T torch(String name, net.minecraft.resources.ResourceLocation torch)
    • torchWall

      public T torchWall(String name, net.minecraft.resources.ResourceLocation torch)
    • carpet

      public T carpet(String name, net.minecraft.resources.ResourceLocation wool)
    • nested

      public T nested()
      Returns a model builder that's not directly saved to disk. Meant for use in custom model loaders..
      Returns:
      a model builder that's not directly saved to disk. Meant for use in custom model loaders.
    • getExistingFile

      public ModelFile.ExistingModelFile getExistingFile(net.minecraft.resources.ResourceLocation path)
    • clear

      protected void clear()
    • run

      public void run(net.minecraft.data.CachedOutput cache) throws IOException
      Specified by:
      run in interface net.minecraft.data.DataProvider
      Throws:
      IOException
    • generateAll

      protected void generateAll(net.minecraft.data.CachedOutput cache)