Class SimpleUnbakedGeometry<T extends SimpleUnbakedGeometry<T>>

java.lang.Object
io.github.vampirestudios.vampirelib.client.model.geometry.SimpleUnbakedGeometry<T>
All Implemented Interfaces:
IUnbakedGeometry<T>
Direct Known Subclasses:
EmptyModel, FullbrightModel

public abstract class SimpleUnbakedGeometry<T extends SimpleUnbakedGeometry<T>> extends Object implements IUnbakedGeometry<T>
Base class for implementations of IUnbakedGeometry which do not wish to handle model creation themselves, instead supplying baked quads through a builder.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
    addQuads(IGeometryBakingContext owner, IModelBuilder<?> modelBuilder, net.minecraft.client.resources.model.ModelBakery bakery, Function<net.minecraft.client.resources.model.Material,net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, net.minecraft.client.resources.model.ModelState modelTransform, net.minecraft.resources.ResourceLocation modelLocation)
     
    net.minecraft.client.resources.model.BakedModel
    bake(IGeometryBakingContext context, net.minecraft.client.resources.model.ModelBakery bakery, Function<net.minecraft.client.resources.model.Material,net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, net.minecraft.client.resources.model.ModelState modelState, net.minecraft.client.renderer.block.model.ItemOverrides overrides, net.minecraft.resources.ResourceLocation modelLocation)
     
    abstract Collection<net.minecraft.client.resources.model.Material>
    getMaterials(IGeometryBakingContext context, Function<net.minecraft.resources.ResourceLocation,net.minecraft.client.resources.model.UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String,String>> missingTextureErrors)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.github.vampirestudios.vampirelib.client.model.geometry.IUnbakedGeometry

    getConfigurableComponentNames
  • Constructor Details

    • SimpleUnbakedGeometry

      public SimpleUnbakedGeometry()
  • Method Details

    • bake

      public net.minecraft.client.resources.model.BakedModel bake(IGeometryBakingContext context, net.minecraft.client.resources.model.ModelBakery bakery, Function<net.minecraft.client.resources.model.Material,net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, net.minecraft.client.resources.model.ModelState modelState, net.minecraft.client.renderer.block.model.ItemOverrides overrides, net.minecraft.resources.ResourceLocation modelLocation)
      Specified by:
      bake in interface IUnbakedGeometry<T extends SimpleUnbakedGeometry<T>>
    • addQuads

      protected abstract void addQuads(IGeometryBakingContext owner, IModelBuilder<?> modelBuilder, net.minecraft.client.resources.model.ModelBakery bakery, Function<net.minecraft.client.resources.model.Material,net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, net.minecraft.client.resources.model.ModelState modelTransform, net.minecraft.resources.ResourceLocation modelLocation)
    • getMaterials

      public abstract Collection<net.minecraft.client.resources.model.Material> getMaterials(IGeometryBakingContext context, Function<net.minecraft.resources.ResourceLocation,net.minecraft.client.resources.model.UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String,String>> missingTextureErrors)
      Specified by:
      getMaterials in interface IUnbakedGeometry<T extends SimpleUnbakedGeometry<T>>