Class RenderedItemModel

java.lang.Object
me.desht.pneumaticcraft.client.model.custom.RenderedItemModel
All Implemented Interfaces:
net.minecraft.client.resources.model.BakedModel, net.minecraftforge.client.extensions.IForgeBakedModel, net.minecraftforge.client.model.IDynamicBakedModel

public class RenderedItemModel extends Object implements net.minecraftforge.client.model.IDynamicBakedModel
An item with a TEISR (ISTER) with a base (static) model. When in hand, the item will have an empty static model, otherwise it will use the base model. And isBuiltinRenderer() is true to allow ISTER drawing to happen.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.resources.model.BakedModel
    applyTransform(net.minecraft.world.item.ItemDisplayContext displayContext, com.mojang.blaze3d.vertex.PoseStack poseStack, boolean applyLeftHandTransform)
     
    net.minecraft.client.renderer.block.model.ItemOverrides
     
    net.minecraft.client.renderer.texture.TextureAtlasSprite
     
    List<net.minecraft.client.renderer.block.model.BakedQuad>
    getQuads(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction side, net.minecraft.util.RandomSource rand, net.minecraftforge.client.model.data.ModelData extraData, net.minecraft.client.renderer.RenderType renderType)
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     

    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

    getTransforms

    Methods inherited from interface net.minecraftforge.client.model.IDynamicBakedModel

    getQuads

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

    getModelData, getParticleIcon, getRenderPasses, getRenderTypes, getRenderTypes, useAmbientOcclusion, useAmbientOcclusion
  • Method Details

    • getQuads

      @Nonnull public List<net.minecraft.client.renderer.block.model.BakedQuad> getQuads(@Nullable net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.core.Direction side, @Nonnull net.minecraft.util.RandomSource rand, @Nonnull net.minecraftforge.client.model.data.ModelData extraData, net.minecraft.client.renderer.RenderType renderType)
      Specified by:
      getQuads in interface net.minecraftforge.client.model.IDynamicBakedModel
      Specified by:
      getQuads in interface net.minecraftforge.client.extensions.IForgeBakedModel
    • useAmbientOcclusion

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

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

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

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

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

      public net.minecraft.client.renderer.block.model.ItemOverrides getOverrides()
      Specified by:
      getOverrides in interface net.minecraft.client.resources.model.BakedModel
    • applyTransform

      public net.minecraft.client.resources.model.BakedModel applyTransform(net.minecraft.world.item.ItemDisplayContext displayContext, com.mojang.blaze3d.vertex.PoseStack poseStack, boolean applyLeftHandTransform)
      Specified by:
      applyTransform in interface net.minecraftforge.client.extensions.IForgeBakedModel