public abstract class ModelProvider<T extends ModelBuilder<T>> extends java.lang.Object implements IDataProvider
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
BLOCK_FOLDER  | 
protected DirectoryCache | 
cache  | 
protected ExistingFileHelper | 
existingFileHelper  | 
protected java.util.function.Function<ResourceLocation,T> | 
factory  | 
protected java.lang.String | 
folder  | 
protected java.util.Map<ResourceLocation,T> | 
generatedModels  | 
protected DataGenerator | 
generator  | 
static java.lang.String | 
ITEM_FOLDER  | 
protected java.lang.String | 
modid  | 
HASH_FUNCTION| Constructor and Description | 
|---|
ModelProvider(DataGenerator generator,
             java.lang.String modid,
             java.lang.String folder,
             java.util.function.BiFunction<ResourceLocation,ExistingFileHelper,T> builderFromModId,
             ExistingFileHelper existingFileHelper)  | 
ModelProvider(DataGenerator generator,
             java.lang.String modid,
             java.lang.String folder,
             java.util.function.Function<ResourceLocation,T> factory,
             ExistingFileHelper existingFileHelper)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
act(DirectoryCache cache)  | 
protected T | 
carpet(java.lang.String name,
      ResourceLocation wool)  | 
protected T | 
crop(java.lang.String name,
    ResourceLocation crop)  | 
protected T | 
cross(java.lang.String name,
     ResourceLocation cross)  | 
protected T | 
cube(java.lang.String name,
    ResourceLocation down,
    ResourceLocation up,
    ResourceLocation north,
    ResourceLocation south,
    ResourceLocation east,
    ResourceLocation west)  | 
protected T | 
cubeAll(java.lang.String name,
       ResourceLocation texture)  | 
protected T | 
cubeBottomTop(java.lang.String name,
             ResourceLocation side,
             ResourceLocation bottom,
             ResourceLocation top)  | 
protected T | 
cubeColumn(java.lang.String name,
          ResourceLocation side,
          ResourceLocation end)  | 
protected T | 
cubeTop(java.lang.String name,
       ResourceLocation side,
       ResourceLocation top)  | 
protected T | 
doorBottomLeft(java.lang.String name,
              ResourceLocation bottom,
              ResourceLocation top)  | 
protected T | 
doorBottomRight(java.lang.String name,
               ResourceLocation bottom,
               ResourceLocation top)  | 
protected T | 
doorTopLeft(java.lang.String name,
           ResourceLocation bottom,
           ResourceLocation top)  | 
protected T | 
doorTopRight(java.lang.String name,
            ResourceLocation bottom,
            ResourceLocation top)  | 
protected T | 
fenceGate(java.lang.String name,
         ResourceLocation texture)  | 
protected T | 
fenceGateOpen(java.lang.String name,
             ResourceLocation texture)  | 
protected T | 
fenceGateWall(java.lang.String name,
             ResourceLocation texture)  | 
protected T | 
fenceGateWallOpen(java.lang.String name,
                 ResourceLocation texture)  | 
protected T | 
fenceInventory(java.lang.String name,
              ResourceLocation texture)  | 
protected T | 
fencePost(java.lang.String name,
         ResourceLocation texture)  | 
protected T | 
fenceSide(java.lang.String name,
         ResourceLocation texture)  | 
protected T | 
getBuilder(java.lang.String path)  | 
protected ModelFile.ExistingModelFile | 
getExistingFile(ResourceLocation path)  | 
protected ResourceLocation | 
mcLoc(java.lang.String name)  | 
protected ResourceLocation | 
modLoc(java.lang.String name)  | 
protected T | 
orientable(java.lang.String name,
          ResourceLocation side,
          ResourceLocation front,
          ResourceLocation top)  | 
protected T | 
orientableVertical(java.lang.String name,
                  ResourceLocation side,
                  ResourceLocation front)  | 
protected T | 
orientableWithBottom(java.lang.String name,
                    ResourceLocation side,
                    ResourceLocation front,
                    ResourceLocation bottom,
                    ResourceLocation top)  | 
protected T | 
paneNoSide(java.lang.String name,
          ResourceLocation pane)  | 
protected T | 
paneNoSideAlt(java.lang.String name,
             ResourceLocation pane)  | 
protected T | 
panePost(java.lang.String name,
        ResourceLocation pane,
        ResourceLocation edge)  | 
protected T | 
paneSide(java.lang.String name,
        ResourceLocation pane,
        ResourceLocation edge)  | 
protected T | 
paneSideAlt(java.lang.String name,
           ResourceLocation pane,
           ResourceLocation edge)  | 
protected abstract void | 
registerModels()  | 
protected T | 
singleTexture(java.lang.String name,
             ResourceLocation parent,
             ResourceLocation texture)  | 
protected T | 
singleTexture(java.lang.String name,
             ResourceLocation parent,
             java.lang.String textureKey,
             ResourceLocation texture)  | 
protected T | 
slab(java.lang.String name,
    ResourceLocation side,
    ResourceLocation bottom,
    ResourceLocation top)  | 
protected T | 
slabTop(java.lang.String name,
       ResourceLocation side,
       ResourceLocation bottom,
       ResourceLocation top)  | 
protected T | 
stairs(java.lang.String name,
      ResourceLocation side,
      ResourceLocation bottom,
      ResourceLocation top)  | 
protected T | 
stairsInner(java.lang.String name,
           ResourceLocation side,
           ResourceLocation bottom,
           ResourceLocation top)  | 
protected T | 
stairsOuter(java.lang.String name,
           ResourceLocation side,
           ResourceLocation bottom,
           ResourceLocation top)  | 
protected T | 
torch(java.lang.String name,
     ResourceLocation torch)  | 
protected T | 
torchWall(java.lang.String name,
         ResourceLocation torch)  | 
protected T | 
trapdoorBottom(java.lang.String name,
              ResourceLocation texture)  | 
protected T | 
trapdoorOpen(java.lang.String name,
            ResourceLocation texture)  | 
protected T | 
trapdoorOrientableBottom(java.lang.String name,
                        ResourceLocation texture)  | 
protected T | 
trapdoorOrientableOpen(java.lang.String name,
                      ResourceLocation texture)  | 
protected T | 
trapdoorOrientableTop(java.lang.String name,
                     ResourceLocation texture)  | 
protected T | 
trapdoorTop(java.lang.String name,
           ResourceLocation texture)  | 
protected T | 
wallInventory(java.lang.String name,
             ResourceLocation wall)  | 
protected T | 
wallPost(java.lang.String name,
        ResourceLocation wall)  | 
protected T | 
wallSide(java.lang.String name,
        ResourceLocation wall)  | 
protected T | 
withExistingParent(java.lang.String name,
                  ResourceLocation parent)  | 
protected T | 
withExistingParent(java.lang.String name,
                  java.lang.String parent)  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, savepublic static final java.lang.String BLOCK_FOLDER
public static final java.lang.String ITEM_FOLDER
protected final DataGenerator generator
protected final java.lang.String modid
protected final java.lang.String folder
protected final java.util.function.Function<ResourceLocation,T extends ModelBuilder<T>> factory
protected final java.util.Map<ResourceLocation,T extends ModelBuilder<T>> generatedModels
protected final ExistingFileHelper existingFileHelper
protected DirectoryCache cache
public ModelProvider(DataGenerator generator, java.lang.String modid, java.lang.String folder, java.util.function.Function<ResourceLocation,T> factory, ExistingFileHelper existingFileHelper)
public ModelProvider(DataGenerator generator, java.lang.String modid, java.lang.String folder, java.util.function.BiFunction<ResourceLocation,ExistingFileHelper,T> builderFromModId, ExistingFileHelper existingFileHelper)
protected abstract void registerModels()
protected T getBuilder(java.lang.String path)
protected ResourceLocation modLoc(java.lang.String name)
protected ResourceLocation mcLoc(java.lang.String name)
protected T withExistingParent(java.lang.String name, java.lang.String parent)
protected T withExistingParent(java.lang.String name, ResourceLocation parent)
protected T cube(java.lang.String name, ResourceLocation down, ResourceLocation up, ResourceLocation north, ResourceLocation south, ResourceLocation east, ResourceLocation west)
protected T singleTexture(java.lang.String name, ResourceLocation parent, ResourceLocation texture)
protected T singleTexture(java.lang.String name, ResourceLocation parent, java.lang.String textureKey, ResourceLocation texture)
protected T cubeAll(java.lang.String name, ResourceLocation texture)
protected T cubeTop(java.lang.String name, ResourceLocation side, ResourceLocation top)
protected T cubeBottomTop(java.lang.String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top)
protected T cubeColumn(java.lang.String name, ResourceLocation side, ResourceLocation end)
protected T orientableVertical(java.lang.String name, ResourceLocation side, ResourceLocation front)
protected T orientableWithBottom(java.lang.String name, ResourceLocation side, ResourceLocation front, ResourceLocation bottom, ResourceLocation top)
protected T orientable(java.lang.String name, ResourceLocation side, ResourceLocation front, ResourceLocation top)
protected T crop(java.lang.String name, ResourceLocation crop)
protected T cross(java.lang.String name, ResourceLocation cross)
protected T stairs(java.lang.String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top)
protected T stairsOuter(java.lang.String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top)
protected T stairsInner(java.lang.String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top)
protected T slab(java.lang.String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top)
protected T slabTop(java.lang.String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top)
protected T fencePost(java.lang.String name, ResourceLocation texture)
protected T fenceSide(java.lang.String name, ResourceLocation texture)
protected T fenceInventory(java.lang.String name, ResourceLocation texture)
protected T fenceGate(java.lang.String name, ResourceLocation texture)
protected T fenceGateOpen(java.lang.String name, ResourceLocation texture)
protected T fenceGateWall(java.lang.String name, ResourceLocation texture)
protected T fenceGateWallOpen(java.lang.String name, ResourceLocation texture)
protected T wallPost(java.lang.String name, ResourceLocation wall)
protected T wallSide(java.lang.String name, ResourceLocation wall)
protected T wallInventory(java.lang.String name, ResourceLocation wall)
protected T panePost(java.lang.String name, ResourceLocation pane, ResourceLocation edge)
protected T paneSide(java.lang.String name, ResourceLocation pane, ResourceLocation edge)
protected T paneSideAlt(java.lang.String name, ResourceLocation pane, ResourceLocation edge)
protected T paneNoSide(java.lang.String name, ResourceLocation pane)
protected T paneNoSideAlt(java.lang.String name, ResourceLocation pane)
protected T doorBottomLeft(java.lang.String name, ResourceLocation bottom, ResourceLocation top)
protected T doorBottomRight(java.lang.String name, ResourceLocation bottom, ResourceLocation top)
protected T doorTopLeft(java.lang.String name, ResourceLocation bottom, ResourceLocation top)
protected T doorTopRight(java.lang.String name, ResourceLocation bottom, ResourceLocation top)
protected T trapdoorBottom(java.lang.String name, ResourceLocation texture)
protected T trapdoorTop(java.lang.String name, ResourceLocation texture)
protected T trapdoorOpen(java.lang.String name, ResourceLocation texture)
protected T trapdoorOrientableBottom(java.lang.String name, ResourceLocation texture)
protected T trapdoorOrientableTop(java.lang.String name, ResourceLocation texture)
protected T trapdoorOrientableOpen(java.lang.String name, ResourceLocation texture)
protected T torch(java.lang.String name, ResourceLocation torch)
protected T torchWall(java.lang.String name, ResourceLocation torch)
protected T carpet(java.lang.String name, ResourceLocation wool)
protected ModelFile.ExistingModelFile getExistingFile(ResourceLocation path)
public void act(DirectoryCache cache) throws java.io.IOException
act in interface IDataProviderjava.io.IOException