@Override public IFlexibleBakedModel bake(IModelState state, VertexFormat format, Function<ResourceLocation, TextureAtlasSprite> bakedTextureGetter) { if(!Attributes.moreSpecific(format, Attributes.DEFAULT_BAKED_FORMAT)) { throw new IllegalArgumentException("can't bake vanilla models to the format that doesn't fit into the default one: " + format); } ItemIconModel test = new ItemIconModel(this, state, bakedTextureGetter); return test; }
public ItemIconModel(IModel modelCls, IModelState state, Function<ResourceLocation, TextureAtlasSprite> bakedTextureGetter) { super(false, false, null, Attributes.DEFAULT_BAKED_FORMAT, bakedTextureGetter); this.textureLocation = null; this.state = state; this.iModel = modelCls; }
@Override public IModelState getDefaultState() { return ModelRotation.X0_Y0; }
public IFlexibleBakedModel bake(IModelState state, VertexFormat format, Function<ResourceLocation, TextureAtlasSprite> textures) { return new VCraftBakedModel(textures.apply(dummyTexture)); }
public IModelState getDefaultState() { return ModelRotation.X0_Y0; }