Class AbstractUnbakedModel

java.lang.Object
net.neoforged.neoforge.client.model.AbstractUnbakedModel
All Implemented Interfaces:
net.minecraft.client.resources.model.ResolvableModel, net.minecraft.client.resources.model.UnbakedModel, UnbakedModelExtension
Direct Known Subclasses:
CompositeUnbakedModel, ObjModel

public abstract class AbstractUnbakedModel extends Object implements net.minecraft.client.resources.model.UnbakedModel
Base unbaked model for custom models which support the standard top-level model parameters added by vanilla and NeoForge except elements but create the quads from something other than the vanilla elements spec.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.client.resources.model.ResolvableModel

    net.minecraft.client.resources.model.ResolvableModel.Resolver

    Nested classes/interfaces inherited from interface net.minecraft.client.resources.model.UnbakedModel

    net.minecraft.client.resources.model.UnbakedModel.GuiLight
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final StandardModelParameters
    Holds the standard top-level model parameters except elements.

    Fields inherited from interface net.minecraft.client.resources.model.UnbakedModel

    PARTICLE_TEXTURE_REFERENCE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Boolean
     
    void
    fillAdditionalProperties(net.minecraft.util.context.ContextMap.Builder propertiesBuilder)
    Appends additional properties for this model to the builder.
    @Nullable net.minecraft.client.resources.model.UnbakedModel.GuiLight
     
    @Nullable net.minecraft.resources.ResourceLocation
     
    net.minecraft.client.renderer.block.model.TextureSlots.Data
     
    @Nullable net.minecraft.client.renderer.block.model.ItemTransforms
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraft.client.resources.model.UnbakedModel

    geometry

    Methods inherited from interface net.neoforged.neoforge.client.extensions.UnbakedModelExtension

    resolveDependencies
  • Field Details

  • Constructor Details

  • Method Details

    • ambientOcclusion

      @Nullable public @Nullable Boolean ambientOcclusion()
      Specified by:
      ambientOcclusion in interface net.minecraft.client.resources.model.UnbakedModel
    • guiLight

      @Nullable public @Nullable net.minecraft.client.resources.model.UnbakedModel.GuiLight guiLight()
      Specified by:
      guiLight in interface net.minecraft.client.resources.model.UnbakedModel
    • transforms

      @Nullable public @Nullable net.minecraft.client.renderer.block.model.ItemTransforms transforms()
      Specified by:
      transforms in interface net.minecraft.client.resources.model.UnbakedModel
    • textureSlots

      public net.minecraft.client.renderer.block.model.TextureSlots.Data textureSlots()
      Specified by:
      textureSlots in interface net.minecraft.client.resources.model.UnbakedModel
    • parent

      @Nullable public @Nullable net.minecraft.resources.ResourceLocation parent()
      Specified by:
      parent in interface net.minecraft.client.resources.model.UnbakedModel
    • fillAdditionalProperties

      public void fillAdditionalProperties(net.minecraft.util.context.ContextMap.Builder propertiesBuilder)
      Description copied from interface: UnbakedModelExtension
      Appends additional properties for this model to the builder.

      This method will already have been called on the parent models. It can modify the properties added by a parent model and/or add its own. This ensures that the properties are merged across the model parent-child chain.

      The context map containing all the properties can be retrieved later using ResolvedModelExtension.getTopAdditionalProperties().

      Specified by:
      fillAdditionalProperties in interface UnbakedModelExtension
      See Also: