类 ModelProvider<T extends ModelBuilder<T>>
java.lang.Object
net.minecraftforge.client.model.generators.ModelProvider<T>
- 所有已实现的接口:
DataProvider
- 直接已知子类:
BlockModelProvider
,ItemModelProvider
@Deprecated(since="1.21.4",
forRemoval=true)
public abstract class ModelProvider<T extends ModelBuilder<T>>
extends Object
implements DataProvider
已过时, 待删除: 此 API 元素将从以后的版本中删除。
In 1.21.4 Mojang exposed their data generators for their models. So it should be feasible to just use theirs.
If you find something lacking feel free to open a PR so that we can extend it.
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.data.DataProvider
DataProvider.Factory<T extends DataProvider>
-
字段概要
字段修饰符和类型字段说明static final String
已过时, 待删除: 此 API 元素将从以后的版本中删除。final ExistingFileHelper
已过时, 待删除: 此 API 元素将从以后的版本中删除。protected final Function
<ResourceLocation, T> 已过时, 待删除: 此 API 元素将从以后的版本中删除。protected final String
已过时, 待删除: 此 API 元素将从以后的版本中删除。final Map
<ResourceLocation, T> 已过时, 待删除: 此 API 元素将从以后的版本中删除。static final String
已过时, 待删除: 此 API 元素将从以后的版本中删除。protected static final ExistingFileHelper.ResourceType
已过时, 待删除: 此 API 元素将从以后的版本中删除。protected static final ExistingFileHelper.ResourceType
已过时, 待删除: 此 API 元素将从以后的版本中删除。protected final String
已过时, 待删除: 此 API 元素将从以后的版本中删除。protected final PackOutput
已过时, 待删除: 此 API 元素将从以后的版本中删除。protected static final ExistingFileHelper.ResourceType
已过时, 待删除: 此 API 元素将从以后的版本中删除。从接口继承的字段 net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER
-
构造器概要
构造器构造器说明ModelProvider
(PackOutput output, String modid, String folder, BiFunction<ResourceLocation, ExistingFileHelper, T> builderFromModId, ExistingFileHelper existingFileHelper) 已过时, 待删除: 此 API 元素将从以后的版本中删除。ModelProvider
(PackOutput output, String modid, String folder, Function<ResourceLocation, T> factory, ExistingFileHelper existingFileHelper) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
方法概要
修饰符和类型方法说明button
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。buttonInventory
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。buttonPressed
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。carpet
(String name, ResourceLocation wool) 已过时, 待删除: 此 API 元素将从以后的版本中删除。protected void
clear()
已过时, 待删除: 此 API 元素将从以后的版本中删除。crop
(String name, ResourceLocation crop) 已过时, 待删除: 此 API 元素将从以后的版本中删除。cross
(String name, ResourceLocation cross) 已过时, 待删除: 此 API 元素将从以后的版本中删除。cube
(String name, ResourceLocation down, ResourceLocation up, ResourceLocation north, ResourceLocation south, ResourceLocation east, ResourceLocation west) 已过时, 待删除: 此 API 元素将从以后的版本中删除。cubeAll
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。cubeBottomTop
(String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。cubeColumn
(String name, ResourceLocation side, ResourceLocation end) 已过时, 待删除: 此 API 元素将从以后的版本中删除。cubeColumnHorizontal
(String name, ResourceLocation side, ResourceLocation end) 已过时, 待删除: 此 API 元素将从以后的版本中删除。cubeTop
(String name, ResourceLocation side, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。private T
door
(String name, String model, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。doorBottomLeft
(String name, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。doorBottomLeftOpen
(String name, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。doorBottomRight
(String name, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。doorBottomRightOpen
(String name, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。doorTopLeft
(String name, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。doorTopLeftOpen
(String name, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。doorTopRight
(String name, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。doorTopRightOpen
(String name, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。private ResourceLocation
已过时, 待删除: 此 API 元素将从以后的版本中删除。fenceGate
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。fenceGateOpen
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。fenceGateWall
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。fenceGateWallOpen
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。fenceInventory
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。fencePost
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。fenceSide
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。protected CompletableFuture
<?> generateAll
(CachedOutput cache) 已过时, 待删除: 此 API 元素将从以后的版本中删除。getBuilder
(String path) 已过时, 待删除: 此 API 元素将从以后的版本中删除。已过时, 待删除: 此 API 元素将从以后的版本中删除。protected Path
已过时, 待删除: 此 API 元素将从以后的版本中删除。leaves
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。已过时, 待删除: 此 API 元素将从以后的版本中删除。已过时, 待删除: 此 API 元素将从以后的版本中删除。nested()
已过时, 待删除: 此 API 元素将从以后的版本中删除。返回 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) 已过时, 待删除: 此 API 元素将从以后的版本中删除。orientableVertical
(String name, ResourceLocation side, ResourceLocation front) 已过时, 待删除: 此 API 元素将从以后的版本中删除。orientableWithBottom
(String name, ResourceLocation side, ResourceLocation front, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。private T
pane
(String name, String parent, ResourceLocation pane, ResourceLocation edge) 已过时, 待删除: 此 API 元素将从以后的版本中删除。paneNoSide
(String name, ResourceLocation pane) 已过时, 待删除: 此 API 元素将从以后的版本中删除。paneNoSideAlt
(String name, ResourceLocation pane) 已过时, 待删除: 此 API 元素将从以后的版本中删除。panePost
(String name, ResourceLocation pane, ResourceLocation edge) 已过时, 待删除: 此 API 元素将从以后的版本中删除。paneSide
(String name, ResourceLocation pane, ResourceLocation edge) 已过时, 待删除: 此 API 元素将从以后的版本中删除。paneSideAlt
(String name, ResourceLocation pane, ResourceLocation edge) 已过时, 待删除: 此 API 元素将从以后的版本中删除。pressurePlate
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。pressurePlateDown
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。protected abstract void
已过时, 待删除: 此 API 元素将从以后的版本中删除。run
(CachedOutput cache) 已过时, 待删除: 此 API 元素将从以后的版本中删除。private T
sideBottomTop
(String name, String parent, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。sign
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。private T
singleTexture
(String name, String parent, String textureKey, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。private T
singleTexture
(String name, String parent, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。singleTexture
(String name, ResourceLocation parent, String textureKey, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。singleTexture
(String name, ResourceLocation parent, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。slab
(String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。slabTop
(String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。stairs
(String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。stairsInner
(String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。stairsOuter
(String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。torch
(String name, ResourceLocation torch) 已过时, 待删除: 此 API 元素将从以后的版本中删除。torchWall
(String name, ResourceLocation torch) 已过时, 待删除: 此 API 元素将从以后的版本中删除。trapdoorBottom
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。trapdoorOpen
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。trapdoorOrientableBottom
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。trapdoorOrientableOpen
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。trapdoorOrientableTop
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。trapdoorTop
(String name, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。wallInventory
(String name, ResourceLocation wall) 已过时, 待删除: 此 API 元素将从以后的版本中删除。wallPost
(String name, ResourceLocation wall) 已过时, 待删除: 此 API 元素将从以后的版本中删除。wallSide
(String name, ResourceLocation wall) 已过时, 待删除: 此 API 元素将从以后的版本中删除。wallSideTall
(String name, ResourceLocation wall) 已过时, 待删除: 此 API 元素将从以后的版本中删除。withExistingParent
(String name, String parent) 已过时, 待删除: 此 API 元素将从以后的版本中删除。withExistingParent
(String name, ResourceLocation parent) 已过时, 待删除: 此 API 元素将从以后的版本中删除。从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.data.DataProvider
getName
-
字段详细资料
-
BLOCK_FOLDER
已过时, 待删除: 此 API 元素将从以后的版本中删除。- 另请参阅:
-
ITEM_FOLDER
已过时, 待删除: 此 API 元素将从以后的版本中删除。- 另请参阅:
-
TEXTURE
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
MODEL
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
MODEL_WITH_EXTENSION
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
output
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
modid
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
folder
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
factory
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
generatedModels
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
existingFileHelper
已过时, 待删除: 此 API 元素将从以后的版本中删除。
-
-
构造器详细资料
-
ModelProvider
public ModelProvider(PackOutput output, String modid, String folder, Function<ResourceLocation, T> factory, ExistingFileHelper existingFileHelper) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
ModelProvider
public ModelProvider(PackOutput output, String modid, String folder, BiFunction<ResourceLocation, ExistingFileHelper, T> builderFromModId, ExistingFileHelper existingFileHelper) 已过时, 待删除: 此 API 元素将从以后的版本中删除。
-
-
方法详细资料
-
registerModels
protected abstract void registerModels()已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
getBuilder
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
extendWithFolder
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
modLoc
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
mcLoc
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
withExistingParent
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
withExistingParent
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
cube
public T cube(String name, ResourceLocation down, ResourceLocation up, ResourceLocation north, ResourceLocation south, ResourceLocation east, ResourceLocation west) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
singleTexture
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
singleTexture
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
singleTexture
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
singleTexture
public T singleTexture(String name, ResourceLocation parent, String textureKey, ResourceLocation texture) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
cubeAll
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
cubeTop
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
sideBottomTop
private T sideBottomTop(String name, String parent, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
cubeBottomTop
public T cubeBottomTop(String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
cubeColumn
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
cubeColumnHorizontal
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
orientableVertical
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
orientableWithBottom
public T orientableWithBottom(String name, ResourceLocation side, ResourceLocation front, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
orientable
public T orientable(String name, ResourceLocation side, ResourceLocation front, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
crop
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
cross
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
stairs
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
stairsOuter
public T stairsOuter(String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
stairsInner
public T stairsInner(String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
slab
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
slabTop
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
button
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
buttonPressed
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
buttonInventory
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
pressurePlate
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
pressurePlateDown
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
sign
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
fencePost
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
fenceSide
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
fenceInventory
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
fenceGate
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
fenceGateOpen
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
fenceGateWall
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
fenceGateWallOpen
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
wallPost
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
wallSide
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
wallSideTall
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
wallInventory
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
pane
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
panePost
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
paneSide
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
paneSideAlt
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
paneNoSide
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
paneNoSideAlt
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
door
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
doorBottomLeft
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
doorBottomLeftOpen
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
doorBottomRight
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
doorBottomRightOpen
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
doorTopLeft
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
doorTopLeftOpen
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
doorTopRight
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
doorTopRightOpen
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
trapdoorBottom
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
trapdoorTop
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
trapdoorOpen
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
trapdoorOrientableBottom
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
trapdoorOrientableTop
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
trapdoorOrientableOpen
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
torch
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
torchWall
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
carpet
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
leaves
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
nested
已过时, 待删除: 此 API 元素将从以后的版本中删除。返回 a model builder that's not directly saved to disk. Meant for use in custom model loaders.。- 返回:
- a model builder that's not directly saved to disk. Meant for use in custom model loaders.
-
getExistingFile
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
clear
protected void clear()已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
run
已过时, 待删除: 此 API 元素将从以后的版本中删除。- 指定者:
run
在接口中DataProvider
-
generateAll
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
getPath
已过时, 待删除: 此 API 元素将从以后的版本中删除。
-
ModelProvider