public final class ItemLayerModel extends java.lang.Object implements IModelGeometry<ItemLayerModel>
ItemModelGenerator
, i.e. builtin/generated models,
with the following changes:
- Represented as a true IUnbakedModel
so it can be baked as usual instead of using
special-case logic like vanilla does.
- Various fixes in the baking logic.
- Not limited to 4 layers maximum.修飾子とタイプ | フィールドと説明 |
---|---|
static ItemLayerModel |
INSTANCE |
コンストラクタと説明 |
---|
ItemLayerModel() |
ItemLayerModel(com.google.common.collect.ImmutableList<Material> textures) |
修飾子とタイプ | メソッドと説明 |
---|---|
IBakedModel |
bake(IModelConfiguration owner,
ModelBakery bakery,
java.util.function.Function<Material,TextureAtlasSprite> spriteGetter,
IModelTransform modelTransform,
ItemOverrideList overrides,
ResourceLocation modelLocation) |
static com.google.common.collect.ImmutableList<BakedQuad> |
getQuadsForSprite(int tint,
TextureAtlasSprite sprite,
TransformationMatrix transform) |
static com.google.common.collect.ImmutableList<BakedQuad> |
getQuadsForSprites(java.util.List<Material> textures,
TransformationMatrix transform,
java.util.function.Function<Material,TextureAtlasSprite> spriteGetter) |
java.util.Collection<Material> |
getTextures(IModelConfiguration owner,
java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.Set<com.mojang.datafixers.util.Pair<java.lang.String,java.lang.String>> missingTextureErrors) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPart, getParts
public static final ItemLayerModel INSTANCE
public ItemLayerModel(com.google.common.collect.ImmutableList<Material> textures)
public ItemLayerModel()
public IBakedModel bake(IModelConfiguration owner, ModelBakery bakery, java.util.function.Function<Material,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation)
bake
インタフェース内 IModelGeometry<ItemLayerModel>
public static com.google.common.collect.ImmutableList<BakedQuad> getQuadsForSprites(java.util.List<Material> textures, TransformationMatrix transform, java.util.function.Function<Material,TextureAtlasSprite> spriteGetter)
public static com.google.common.collect.ImmutableList<BakedQuad> getQuadsForSprite(int tint, TextureAtlasSprite sprite, TransformationMatrix transform)
public java.util.Collection<Material> getTextures(IModelConfiguration owner, java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.Set<com.mojang.datafixers.util.Pair<java.lang.String,java.lang.String>> missingTextureErrors)
getTextures
インタフェース内 IModelGeometry<ItemLayerModel>