Class VariableModelBaked

java.lang.Object
org.cyclops.cyclopscore.client.model.DynamicBaseModel
org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel
org.cyclops.cyclopscore.client.model.DelegatingDynamicItemAndBlockModel
org.cyclops.cyclopscore.client.model.DelegatingChildDynamicItemAndBlockModel
org.cyclops.integrateddynamics.core.client.model.VariableModelBaked
All Implemented Interfaces:
net.minecraft.client.resources.model.BakedModel, net.minecraftforge.client.extensions.IForgeBakedModel, IVariableModelBaked

public class VariableModelBaked extends org.cyclops.cyclopscore.client.model.DelegatingChildDynamicItemAndBlockModel implements IVariableModelBaked
A baked variable model.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel

    org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel.ItemOverridesInner
  • Field Summary

    Fields inherited from class org.cyclops.cyclopscore.client.model.DelegatingChildDynamicItemAndBlockModel

    baseModel

    Fields inherited from class org.cyclops.cyclopscore.client.model.DelegatingDynamicItemAndBlockModel

    blockState, entity, facing, itemStack, modelData, rand, renderType, world

    Fields inherited from class org.cyclops.cyclopscore.client.model.DynamicBaseModel

    ROTATION_FIX, ROTATION_UV, UVS
  • Constructor Summary

    Constructors
    Constructor
    Description
    VariableModelBaked(net.minecraft.client.resources.model.BakedModel parent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.renderer.block.model.ItemOverrides
     
    net.minecraft.client.renderer.texture.TextureAtlasSprite
     
    Get the baked submodels for the given provider.
    net.minecraft.client.renderer.block.model.ItemTransforms
     
    net.minecraft.client.resources.model.BakedModel
    handleBlockState(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction side, net.minecraft.util.RandomSource rand, net.minecraftforge.client.model.data.ModelData modelData, net.minecraft.client.renderer.RenderType renderType)
     
    net.minecraft.client.resources.model.BakedModel
    handleItemState(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity)
     
    setSubModels(IVariableModelProvider<B> provider, B subModels)
    Set the baked submodels for the given provider.
    boolean
     

    Methods inherited from class org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel

    getGeneralQuads, getQuads, getQuads, getRenderingSide, isItemStack

    Methods inherited from class org.cyclops.cyclopscore.client.model.DynamicBaseModel

    addBakedQuad, addBakedQuad, addBakedQuadRotated, addBakedQuadRotated, addColoredBakedQuad, addColoredBakedQuad, isCustomRenderer, isGui3d, revRotate, rotate, useAmbientOcclusion, vertexToInts

    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

    getQuads, isCustomRenderer, isGui3d, useAmbientOcclusion

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

    applyTransform, getModelData, getParticleIcon, getQuads, getRenderPasses, getRenderTypes, getRenderTypes, useAmbientOcclusion, useAmbientOcclusion
  • Constructor Details

    • VariableModelBaked

      public VariableModelBaked(net.minecraft.client.resources.model.BakedModel parent)
  • Method Details

    • setSubModels

      public <B extends IVariableModelProvider.BakedModelProvider> void setSubModels(IVariableModelProvider<B> provider, B subModels)
      Description copied from interface: IVariableModelBaked
      Set the baked submodels for the given provider.
      Specified by:
      setSubModels in interface IVariableModelBaked
      Type Parameters:
      B - The baked sub model type.
      Parameters:
      provider - The provider.
      subModels - The baked sub model holder.
    • getSubModels

      public <B extends IVariableModelProvider.BakedModelProvider> B getSubModels(IVariableModelProvider<B> provider)
      Description copied from interface: IVariableModelBaked
      Get the baked submodels for the given provider.
      Specified by:
      getSubModels in interface IVariableModelBaked
      Type Parameters:
      B - The baked sub model type.
      Parameters:
      provider - The provider.
      Returns:
      The baked model provider.
    • handleBlockState

      public net.minecraft.client.resources.model.BakedModel handleBlockState(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction side, net.minecraft.util.RandomSource rand, net.minecraftforge.client.model.data.ModelData modelData, net.minecraft.client.renderer.RenderType renderType)
      Specified by:
      handleBlockState in class org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel
    • handleItemState

      public net.minecraft.client.resources.model.BakedModel handleItemState(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity)
      Specified by:
      handleItemState in class org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel
    • usesBlockLight

      public boolean usesBlockLight()
      Specified by:
      usesBlockLight 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
    • getTransforms

      public net.minecraft.client.renderer.block.model.ItemTransforms getTransforms()
      Specified by:
      getTransforms 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
      Overrides:
      getOverrides in class org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel