Class DynamicItemAndBlockModel

java.lang.Object
org.cyclops.cyclopscore.client.model.DynamicBaseModel
org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel
All Implemented Interfaces:
net.minecraft.client.resources.model.BakedModel, net.minecraftforge.client.extensions.IForgeBakedModel
Direct Known Subclasses:
DelegatingDynamicItemAndBlockModel

public abstract class DynamicItemAndBlockModel extends DynamicBaseModel
A dynamic model that can be used for items and blocks.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
     
  • Field Summary

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

    ROTATION_FIX, ROTATION_UV, UVS
  • Constructor Summary

    Constructors
    Constructor
    Description
    DynamicItemAndBlockModel(boolean factory, boolean item)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<net.minecraft.client.renderer.block.model.BakedQuad>
     
    net.minecraft.client.renderer.block.model.ItemOverrides
     
    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)
     
    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)
     
    net.minecraft.core.Direction
     
    abstract 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 extraData, net.minecraft.client.renderer.RenderType renderType)
     
    abstract net.minecraft.client.resources.model.BakedModel
    handleItemState(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity)
     
    protected 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

    getParticleIcon, getTransforms, usesBlockLight

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

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

    • DynamicItemAndBlockModel

      public DynamicItemAndBlockModel(boolean factory, boolean item)
  • Method Details

    • isItemStack

      protected boolean isItemStack()
    • getQuads

      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, net.minecraft.util.RandomSource rand)
      Specified by:
      getQuads in interface net.minecraft.client.resources.model.BakedModel
      Overrides:
      getQuads in class DynamicBaseModel
    • getQuads

      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, @Nullable net.minecraft.client.renderer.RenderType renderType)
    • getGeneralQuads

      public List<net.minecraft.client.renderer.block.model.BakedQuad> getGeneralQuads()
    • handleBlockState

      public abstract net.minecraft.client.resources.model.BakedModel handleBlockState(@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, @Nullable net.minecraft.client.renderer.RenderType renderType)
    • handleItemState

      public abstract net.minecraft.client.resources.model.BakedModel handleItemState(@Nullable net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.world.level.Level world, @Nullable net.minecraft.world.entity.LivingEntity entity)
    • 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 DynamicBaseModel
    • getRenderingSide

      public net.minecraft.core.Direction getRenderingSide()