类 ItemLayerModel
java.lang.Object
net.minecraftforge.client.model.ItemLayerModel
- 所有已实现的接口:
IUnbakedGeometry<ItemLayerModel>
Forge reimplementation of vanilla's
ItemModelGenerator
, i.e. builtin/generated models with some tweaks:
- Represented as IUnbakedGeometry
so it can be baked as usual instead of being special-cased
- Not limited to an arbitrary number of layers (5)
- Support for per-layer render types-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<ForgeFaceData>
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<ResourceLocation>
private @Nullable com.google.common.collect.ImmutableList<Material>
-
构造器概要
构造器限定符构造器说明private
ItemLayerModel
(@Nullable com.google.common.collect.ImmutableList<Material> textures, it.unimi.dsi.fastutil.ints.Int2ObjectMap<ForgeFaceData> layerData, it.unimi.dsi.fastutil.ints.Int2ObjectMap<ResourceLocation> renderTypeNames) -
方法概要
修饰符和类型方法说明bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraftforge.client.model.geometry.IUnbakedGeometry
getConfigurableComponentNames, resolveParents
-
字段详细资料
-
textures
-
layerData
-
renderTypeNames
-
-
构造器详细资料
-
ItemLayerModel
private ItemLayerModel(@Nullable @Nullable com.google.common.collect.ImmutableList<Material> textures, it.unimi.dsi.fastutil.ints.Int2ObjectMap<ForgeFaceData> layerData, it.unimi.dsi.fastutil.ints.Int2ObjectMap<ResourceLocation> renderTypeNames)
-
-
方法详细资料
-
bake
public BakedModel bake(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) - 指定者:
bake
在接口中IUnbakedGeometry<ItemLayerModel>
-