java.lang.Object
org.cyclops.cyclopscore.client.model.DynamicBaseModel
org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel
org.cyclops.cyclopscore.client.model.DelegatingDynamicItemAndBlockModel
org.cyclops.integrateddynamics.client.model.CableModelBase
org.cyclops.integrateddynamics.client.model.CableModel
All Implemented Interfaces:
net.minecraft.client.resources.model.BakedModel, net.neoforged.neoforge.client.extensions.IBakedModelExtension

public class CableModel extends CableModelBase
A dynamic model for cables.
  • 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.integrateddynamics.client.model.CableModelBase

    MAX, MIN, TRANSFORMS

    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
     
    CableModel(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity)
     
    CableModel(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction facing, net.minecraft.util.RandomSource rand, net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.client.renderer.RenderType renderType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Optional<net.minecraft.world.level.block.state.BlockState>
    getFacade(net.neoforged.neoforge.client.model.data.ModelData modelData)
     
    protected net.minecraft.client.resources.model.BakedModel
    getPartModel(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side)
     
    getPartRenderPosition(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side)
     
    protected IRenderState
    getRenderState(net.neoforged.neoforge.client.model.data.ModelData modelData)
     
    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.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.client.renderer.RenderType renderType)
     
    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
    hasPart(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side)
     
    protected boolean
    isConnected(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side)
     
    protected boolean
    isRealCable(net.neoforged.neoforge.client.model.data.ModelData modelData)
     
    protected boolean
    shouldRenderParts(net.neoforged.neoforge.client.model.data.ModelData modelData)
     

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

    getOverrides, 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.neoforged.neoforge.client.extensions.IBakedModelExtension

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

    • CableModel

      public CableModel(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction facing, net.minecraft.util.RandomSource rand, net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.client.renderer.RenderType renderType)
    • CableModel

      public CableModel(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity)
    • CableModel

      public CableModel()
  • Method Details

    • isRealCable

      protected boolean isRealCable(net.neoforged.neoforge.client.model.data.ModelData modelData)
      Specified by:
      isRealCable in class CableModelBase
    • getFacade

      protected Optional<net.minecraft.world.level.block.state.BlockState> getFacade(net.neoforged.neoforge.client.model.data.ModelData modelData)
      Specified by:
      getFacade in class CableModelBase
    • isConnected

      protected boolean isConnected(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side)
      Specified by:
      isConnected in class CableModelBase
    • hasPart

      protected boolean hasPart(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side)
      Specified by:
      hasPart in class CableModelBase
    • getPartRenderPosition

      protected PartRenderPosition getPartRenderPosition(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side)
      Specified by:
      getPartRenderPosition in class CableModelBase
    • shouldRenderParts

      protected boolean shouldRenderParts(net.neoforged.neoforge.client.model.data.ModelData modelData)
      Specified by:
      shouldRenderParts in class CableModelBase
    • getPartModel

      protected net.minecraft.client.resources.model.BakedModel getPartModel(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side)
      Specified by:
      getPartModel in class CableModelBase
    • getRenderState

      protected IRenderState getRenderState(net.neoforged.neoforge.client.model.data.ModelData modelData)
      Specified by:
      getRenderState in class CableModelBase
    • 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.neoforged.neoforge.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 stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity)
      Specified by:
      handleItemState in class org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel