Class AbstractBakedPropertiesModel

java.lang.Object
codechicken.lib.model.bakedmodels.AbstractBakedPropertiesModel
All Implemented Interfaces:
PerspectiveModel, IModelParticleProvider, net.minecraft.client.resources.model.BakedModel, net.minecraftforge.client.extensions.IForgeBakedModel
Direct Known Subclasses:
PerspectiveAwareBakedModel, PerspectiveAwareLayeredModel

@Deprecated public abstract class AbstractBakedPropertiesModel extends Object implements PerspectiveModel, IModelParticleProvider, net.minecraft.client.resources.model.BakedModel
Deprecated.
Created by covers1624 on 1/02/2017.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final ModelProperties
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.resources.model.BakedModel
    applyTransform(net.minecraft.world.item.ItemDisplayContext context, com.mojang.blaze3d.vertex.PoseStack pStack, boolean leftFlip)
    Deprecated.
     
    protected boolean
    checkDepth(net.minecraft.client.renderer.block.model.BakedQuad quad, Vector3 hit, net.minecraft.core.Direction hitFace)
    Deprecated.
     
    protected List<net.minecraft.client.renderer.block.model.BakedQuad>
    getAllQuads(net.minecraft.world.level.block.state.BlockState state, net.minecraftforge.client.model.data.ModelData modelData)
    Deprecated.
     
    Set<net.minecraft.client.renderer.texture.TextureAtlasSprite>
    getDestroyEffects(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraftforge.client.model.data.ModelData data)
    Deprecated.
    Used to retrieve the destroy particles for the block.
    Set<net.minecraft.client.renderer.texture.TextureAtlasSprite>
    getHitEffects(net.minecraft.world.phys.BlockHitResult traceResult, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraftforge.client.model.data.ModelData modelData)
    Deprecated.
    Used to retrieve the particles to randomly choose from for hit particles.
    Deprecated.
    The PerspectiveModelState for this model.
    net.minecraft.client.renderer.texture.TextureAtlasSprite
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     

    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.BakedModel

    getOverrides, getQuads, getTransforms

    Methods inherited from interface net.minecraftforge.client.extensions.IForgeBakedModel

    getModelData, getParticleIcon, getQuads, getRenderPasses, getRenderTypes, getRenderTypes, useAmbientOcclusion, useAmbientOcclusion
  • Field Details

  • Constructor Details

    • AbstractBakedPropertiesModel

      public AbstractBakedPropertiesModel(ModelProperties properties)
      Deprecated.
  • Method Details

    • useAmbientOcclusion

      public boolean useAmbientOcclusion()
      Deprecated.
      Specified by:
      useAmbientOcclusion in interface net.minecraft.client.resources.model.BakedModel
    • isGui3d

      public boolean isGui3d()
      Deprecated.
      Specified by:
      isGui3d in interface net.minecraft.client.resources.model.BakedModel
    • isCustomRenderer

      public boolean isCustomRenderer()
      Deprecated.
      Specified by:
      isCustomRenderer in interface net.minecraft.client.resources.model.BakedModel
    • usesBlockLight

      public boolean usesBlockLight()
      Deprecated.
      Specified by:
      usesBlockLight in interface net.minecraft.client.resources.model.BakedModel
    • getParticleIcon

      public net.minecraft.client.renderer.texture.TextureAtlasSprite getParticleIcon()
      Deprecated.
      Specified by:
      getParticleIcon in interface net.minecraft.client.resources.model.BakedModel
      Specified by:
      getParticleIcon in interface IModelParticleProvider
    • getAllQuads

      protected List<net.minecraft.client.renderer.block.model.BakedQuad> getAllQuads(net.minecraft.world.level.block.state.BlockState state, net.minecraftforge.client.model.data.ModelData modelData)
      Deprecated.
    • getHitEffects

      public Set<net.minecraft.client.renderer.texture.TextureAtlasSprite> getHitEffects(@Nonnull net.minecraft.world.phys.BlockHitResult traceResult, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraftforge.client.model.data.ModelData modelData)
      Deprecated.
      Description copied from interface: IModelParticleProvider
      Used to retrieve the particles to randomly choose from for hit particles.
      Specified by:
      getHitEffects in interface IModelParticleProvider
      Parameters:
      traceResult - The trace result.
      state - The state, getActualState and getExtendedState has been called.
      world - The world.
      pos - The pos.
      Returns:
      A Set of Textures to use.
    • checkDepth

      protected boolean checkDepth(net.minecraft.client.renderer.block.model.BakedQuad quad, Vector3 hit, net.minecraft.core.Direction hitFace)
      Deprecated.
    • getDestroyEffects

      public Set<net.minecraft.client.renderer.texture.TextureAtlasSprite> getDestroyEffects(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraftforge.client.model.data.ModelData data)
      Deprecated.
      Description copied from interface: IModelParticleProvider
      Used to retrieve the destroy particles for the block.
      Specified by:
      getDestroyEffects in interface IModelParticleProvider
      Parameters:
      state - The state, getActualState and getExtendedState has been called.
      world - The world.
      pos - The pos.
      Returns:
      A Set of Textures to use.
    • getModelState

      @Nullable public @Nullable PerspectiveModelState getModelState()
      Deprecated.
      Description copied from interface: PerspectiveModel
      The PerspectiveModelState for this model.
      Specified by:
      getModelState in interface PerspectiveModel
      Returns:
      The state or null for vanilla behaviour.
    • applyTransform

      public net.minecraft.client.resources.model.BakedModel applyTransform(net.minecraft.world.item.ItemDisplayContext context, com.mojang.blaze3d.vertex.PoseStack pStack, boolean leftFlip)
      Deprecated.
      Specified by:
      applyTransform in interface net.minecraftforge.client.extensions.IForgeBakedModel
      Specified by:
      applyTransform in interface PerspectiveModel