Interface BakedModelMixin

All Superinterfaces:
IForgeBakedModel

public interface BakedModelMixin extends IForgeBakedModel
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.client.resources.model.BakedModel
    applyTransform(net.minecraft.client.renderer.block.model.ItemTransforms.TransformType transformType, com.mojang.blaze3d.vertex.PoseStack poseStack, boolean applyLeftHandTransform)
    Applies a transform for the given ItemTransforms.TransformType and applyLeftHandTransform, and returns the model to be rendered.
    net.minecraft.client.renderer.texture.TextureAtlasSprite
     
    default net.minecraft.client.renderer.texture.TextureAtlasSprite
    getParticleIcon(@NotNull ModelData data)
     
    default @NotNull List<net.minecraft.client.renderer.block.model.BakedQuad>
    getQuads(@Nullable net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.core.Direction side, @NotNull net.minecraft.util.RandomSource rand, @NotNull ModelData data, @Nullable net.minecraft.client.renderer.RenderType renderType)
    A null RenderType is used for the breaking overlay as well as non-standard rendering, so models should return all their quads.
    List<net.minecraft.client.renderer.block.model.BakedQuad>
    getQuads(@Nullable net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.core.Direction face, net.minecraft.util.RandomSource randomSource)
     
    default List<net.minecraft.client.resources.model.BakedModel>
    getRenderPasses(net.minecraft.world.item.ItemStack itemStack, boolean fabulous)
    Gets an ordered list of baked models used to render this model as an item.
    net.minecraft.client.renderer.block.model.ItemTransforms
     
    boolean
     
    default boolean
    useAmbientOcclusion(net.minecraft.world.level.block.state.BlockState state)
     

    Methods inherited from interface io.github.vampirestudios.vampirelib.api.extensions.IForgeBakedModel

    getModelData, getRenderTypes, useAmbientOcclusion
  • Method Details

    • getQuads

      List<net.minecraft.client.renderer.block.model.BakedQuad> getQuads(@Nullable @Nullable net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.core.Direction face, net.minecraft.util.RandomSource randomSource)
    • useAmbientOcclusion

      boolean useAmbientOcclusion()
    • getTransforms

      net.minecraft.client.renderer.block.model.ItemTransforms getTransforms()
    • getParticleIcon

      net.minecraft.client.renderer.texture.TextureAtlasSprite getParticleIcon()
    • getQuads

      @NotNull default @NotNull List<net.minecraft.client.renderer.block.model.BakedQuad> getQuads(@Nullable @Nullable net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.core.Direction side, @NotNull @NotNull net.minecraft.util.RandomSource rand, @NotNull @NotNull ModelData data, @Nullable @Nullable net.minecraft.client.renderer.RenderType renderType)
      Description copied from interface: IForgeBakedModel
      A null RenderType is used for the breaking overlay as well as non-standard rendering, so models should return all their quads.
      Specified by:
      getQuads in interface IForgeBakedModel
    • useAmbientOcclusion

      default boolean useAmbientOcclusion(net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      useAmbientOcclusion in interface IForgeBakedModel
    • applyTransform

      default net.minecraft.client.resources.model.BakedModel applyTransform(net.minecraft.client.renderer.block.model.ItemTransforms.TransformType transformType, com.mojang.blaze3d.vertex.PoseStack poseStack, boolean applyLeftHandTransform)
      Description copied from interface: IForgeBakedModel
      Applies a transform for the given ItemTransforms.TransformType and applyLeftHandTransform, and returns the model to be rendered.
      Specified by:
      applyTransform in interface IForgeBakedModel
    • getParticleIcon

      default net.minecraft.client.renderer.texture.TextureAtlasSprite getParticleIcon(@NotNull @NotNull ModelData data)
      Specified by:
      getParticleIcon in interface IForgeBakedModel
    • getRenderPasses

      default List<net.minecraft.client.resources.model.BakedModel> getRenderPasses(net.minecraft.world.item.ItemStack itemStack, boolean fabulous)
      Description copied from interface: IForgeBakedModel
      Gets an ordered list of baked models used to render this model as an item. Each of those models' render types will be queried via IForgeBakedModel.getRenderTypes(ItemStack, boolean).

      By default, returns the model itself.

      Specified by:
      getRenderPasses in interface IForgeBakedModel
      See Also: