Class ModelProvider<T extends ModelBuilder<T>>
java.lang.Object
net.minecraftforge.client.model.generators.ModelProvider<T>
- All Implemented Interfaces:
- DataProvider
- Direct Known Subclasses:
- BlockModelProvider,- ItemModelProvider
public abstract class ModelProvider<T extends ModelBuilder<T>>
extends Object
implements DataProvider
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.data.DataProviderDataProvider.Factory<T extends DataProvider>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringfinal ExistingFileHelperprotected final Function<ResourceLocation,T> protected final Stringfinal Map<ResourceLocation,T> private static final com.google.gson.Gsonstatic final Stringprotected static final ExistingFileHelper.ResourceTypeprotected static final ExistingFileHelper.ResourceTypeprotected final Stringprotected final PackOutputprotected static final ExistingFileHelper.ResourceTypeFields inherited from interface net.minecraft.data.DataProviderFIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER
- 
Constructor SummaryConstructorsConstructorDescriptionModelProvider(PackOutput output, String modid, String folder, BiFunction<ResourceLocation, ExistingFileHelper, T> builderFromModId, ExistingFileHelper existingFileHelper) ModelProvider(PackOutput output, String modid, String folder, Function<ResourceLocation, T> factory, ExistingFileHelper existingFileHelper) 
- 
Method SummaryModifier and TypeMethodDescriptionbutton(String name, ResourceLocation texture) buttonInventory(String name, ResourceLocation texture) buttonPressed(String name, ResourceLocation texture) carpet(String name, ResourceLocation wool) protected voidclear()crop(String name, ResourceLocation crop) cross(String name, ResourceLocation cross) cube(String name, ResourceLocation down, ResourceLocation up, ResourceLocation north, ResourceLocation south, ResourceLocation east, ResourceLocation west) cubeAll(String name, ResourceLocation texture) cubeBottomTop(String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) cubeColumn(String name, ResourceLocation side, ResourceLocation end) cubeColumnHorizontal(String name, ResourceLocation side, ResourceLocation end) cubeTop(String name, ResourceLocation side, ResourceLocation top) private Tdoor(String name, String model, ResourceLocation bottom, ResourceLocation top) doorBottomLeft(String name, ResourceLocation bottom, ResourceLocation top) doorBottomLeftOpen(String name, ResourceLocation bottom, ResourceLocation top) doorBottomRight(String name, ResourceLocation bottom, ResourceLocation top) doorBottomRightOpen(String name, ResourceLocation bottom, ResourceLocation top) doorTopLeft(String name, ResourceLocation bottom, ResourceLocation top) doorTopLeftOpen(String name, ResourceLocation bottom, ResourceLocation top) doorTopRight(String name, ResourceLocation bottom, ResourceLocation top) doorTopRightOpen(String name, ResourceLocation bottom, ResourceLocation top) private ResourceLocationfenceGate(String name, ResourceLocation texture) fenceGateOpen(String name, ResourceLocation texture) fenceGateWall(String name, ResourceLocation texture) fenceGateWallOpen(String name, ResourceLocation texture) fenceInventory(String name, ResourceLocation texture) fencePost(String name, ResourceLocation texture) fenceSide(String name, ResourceLocation texture) protected CompletableFuture<?>generateAll(CachedOutput cache) getBuilder(String path) protected Pathnested()Returns a model builder that's not directly saved to disk. Meant for use in custom model loaders..orientable(String name, ResourceLocation side, ResourceLocation front, ResourceLocation top) orientableVertical(String name, ResourceLocation side, ResourceLocation front) orientableWithBottom(String name, ResourceLocation side, ResourceLocation front, ResourceLocation bottom, ResourceLocation top) private Tpane(String name, String parent, ResourceLocation pane, ResourceLocation edge) paneNoSide(String name, ResourceLocation pane) paneNoSideAlt(String name, ResourceLocation pane) panePost(String name, ResourceLocation pane, ResourceLocation edge) paneSide(String name, ResourceLocation pane, ResourceLocation edge) paneSideAlt(String name, ResourceLocation pane, ResourceLocation edge) pressurePlate(String name, ResourceLocation texture) pressurePlateDown(String name, ResourceLocation texture) protected abstract voidrun(CachedOutput cache) private TsideBottomTop(String name, String parent, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) sign(String name, ResourceLocation texture) private TsingleTexture(String name, String parent, String textureKey, ResourceLocation texture) private TsingleTexture(String name, String parent, ResourceLocation texture) singleTexture(String name, ResourceLocation parent, String textureKey, ResourceLocation texture) singleTexture(String name, ResourceLocation parent, ResourceLocation texture) slab(String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) slabTop(String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) stairs(String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) stairsInner(String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) stairsOuter(String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) torch(String name, ResourceLocation torch) torchWall(String name, ResourceLocation torch) trapdoorBottom(String name, ResourceLocation texture) trapdoorOpen(String name, ResourceLocation texture) trapdoorOrientableBottom(String name, ResourceLocation texture) trapdoorOrientableOpen(String name, ResourceLocation texture) trapdoorOrientableTop(String name, ResourceLocation texture) trapdoorTop(String name, ResourceLocation texture) wallInventory(String name, ResourceLocation wall) wallPost(String name, ResourceLocation wall) wallSide(String name, ResourceLocation wall) wallSideTall(String name, ResourceLocation wall) withExistingParent(String name, String parent) withExistingParent(String name, ResourceLocation parent) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.data.DataProvidergetName
- 
Field Details- 
BLOCK_FOLDER- See Also:
 
- 
ITEM_FOLDER- See Also:
 
- 
TEXTURE
- 
MODEL
- 
MODEL_WITH_EXTENSION
- 
GSONprivate static final com.google.gson.Gson GSON
- 
output
- 
modid
- 
folder
- 
factory
- 
generatedModels
- 
existingFileHelper
 
- 
- 
Constructor Details- 
ModelProviderpublic ModelProvider(PackOutput output, String modid, String folder, Function<ResourceLocation, T> factory, ExistingFileHelper existingFileHelper) 
- 
ModelProviderpublic ModelProvider(PackOutput output, String modid, String folder, BiFunction<ResourceLocation, ExistingFileHelper, T> builderFromModId, ExistingFileHelper existingFileHelper) 
 
- 
- 
Method Details- 
registerModelsprotected abstract void registerModels()
- 
getBuilder
- 
extendWithFolder
- 
modLoc
- 
mcLoc
- 
withExistingParent
- 
withExistingParent
- 
cubepublic T cube(String name, ResourceLocation down, ResourceLocation up, ResourceLocation north, ResourceLocation south, ResourceLocation east, ResourceLocation west) 
- 
singleTexture
- 
singleTexture
- 
singleTexture
- 
singleTexturepublic T singleTexture(String name, ResourceLocation parent, String textureKey, ResourceLocation texture) 
- 
cubeAll
- 
cubeTop
- 
sideBottomTopprivate T sideBottomTop(String name, String parent, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) 
- 
cubeBottomToppublic T cubeBottomTop(String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) 
- 
cubeColumn
- 
cubeColumnHorizontal
- 
orientableVertical
- 
orientableWithBottompublic T orientableWithBottom(String name, ResourceLocation side, ResourceLocation front, ResourceLocation bottom, ResourceLocation top) 
- 
orientablepublic T orientable(String name, ResourceLocation side, ResourceLocation front, ResourceLocation top) 
- 
crop
- 
cross
- 
stairs
- 
stairsOuterpublic T stairsOuter(String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) 
- 
stairsInnerpublic T stairsInner(String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) 
- 
slab
- 
slabTop
- 
button
- 
buttonPressed
- 
buttonInventory
- 
pressurePlate
- 
pressurePlateDown
- 
sign
- 
fencePost
- 
fenceSide
- 
fenceInventory
- 
fenceGate
- 
fenceGateOpen
- 
fenceGateWall
- 
fenceGateWallOpen
- 
wallPost
- 
wallSide
- 
wallSideTall
- 
wallInventory
- 
pane
- 
panePost
- 
paneSide
- 
paneSideAlt
- 
paneNoSide
- 
paneNoSideAlt
- 
door
- 
doorBottomLeft
- 
doorBottomLeftOpen
- 
doorBottomRight
- 
doorBottomRightOpen
- 
doorTopLeft
- 
doorTopLeftOpen
- 
doorTopRight
- 
doorTopRightOpen
- 
trapdoorBottom
- 
trapdoorTop
- 
trapdoorOpen
- 
trapdoorOrientableBottom
- 
trapdoorOrientableTop
- 
trapdoorOrientableOpen
- 
torch
- 
torchWall
- 
carpet
- 
nestedReturns 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
- 
clearprotected void clear()
- 
run- Specified by:
- runin interface- DataProvider
 
- 
generateAll
- 
getPath
 
-