Class CableModelBase

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
All Implemented Interfaces:
net.minecraft.client.resources.model.BakedModel, net.neoforged.neoforge.client.extensions.IBakedModelExtension
Direct Known Subclasses:
CableModel

public abstract class CableModelBase extends org.cyclops.cyclopscore.client.model.DelegatingDynamicItemAndBlockModel
A base 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
    Modifier and Type
    Field
    Description
    static final float
     
    static final float
     
    protected static final net.minecraft.client.renderer.block.model.ItemTransforms
     

    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
     
    CableModelBase(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity)
     
    CableModelBase(net.minecraft.world.level.block.state.BlockState blockState, 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 abstract Optional<net.minecraft.world.level.block.state.BlockState>
    getFacade(net.neoforged.neoforge.client.model.data.ModelData modelData)
     
    List<net.minecraft.client.renderer.block.model.BakedQuad>
    getFacadeQuads(net.minecraft.client.resources.model.BakedModel facadeModel, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.core.Direction side, PartRenderPosition partRenderPosition)
     
    List<net.minecraft.client.renderer.block.model.BakedQuad>
     
    static com.mojang.math.Transformation
    getMatrix(net.minecraft.client.resources.model.BlockModelRotation modelRotation)
     
    net.neoforged.neoforge.client.model.data.ModelData
    getModelData(net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.neoforged.neoforge.client.model.data.ModelData tileData)
     
    net.minecraft.client.renderer.texture.TextureAtlasSprite
     
    protected abstract net.minecraft.client.resources.model.BakedModel
    getPartModel(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side)
     
    protected abstract PartRenderPosition
    getPartRenderPosition(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side)
     
    protected abstract IRenderState
    getRenderState(net.neoforged.neoforge.client.model.data.ModelData modelData)
     
    net.neoforged.neoforge.client.ChunkRenderTypeSet
    getRenderTypes(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.util.RandomSource rand, @NotNull net.neoforged.neoforge.client.model.data.ModelData data)
     
    static net.minecraft.client.resources.model.BlockModelRotation
    getRotation(net.minecraft.core.Direction facing)
     
    net.minecraft.client.renderer.block.model.ItemTransforms
     
    protected abstract boolean
    hasPart(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side)
     
    protected abstract boolean
    isConnected(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side)
     
    protected abstract boolean
    isRealCable(net.neoforged.neoforge.client.model.data.ModelData modelData)
     
    protected static float[][][]
    makeQuadVertexes(float min, float max, float length)
     
    protected abstract boolean
    shouldRenderParts(net.neoforged.neoforge.client.model.data.ModelData modelData)
     
    boolean
     

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

    getOverrides, getQuads, getQuads, getRenderingSide, handleBlockState, handleItemState, 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
  • Field Details

    • MIN

      public static final float MIN
      See Also:
    • MAX

      public static final float MAX
      See Also:
    • TRANSFORMS

      protected static final net.minecraft.client.renderer.block.model.ItemTransforms TRANSFORMS
  • Constructor Details

    • CableModelBase

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

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

      public CableModelBase()
  • Method Details

    • makeQuadVertexes

      protected static float[][][] makeQuadVertexes(float min, float max, float length)
    • getFacadeQuads

      public List<net.minecraft.client.renderer.block.model.BakedQuad> getFacadeQuads(net.minecraft.client.resources.model.BakedModel facadeModel, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.core.Direction side, PartRenderPosition partRenderPosition)
    • getMatrix

      public static com.mojang.math.Transformation getMatrix(net.minecraft.client.resources.model.BlockModelRotation modelRotation)
    • getRotation

      public static net.minecraft.client.resources.model.BlockModelRotation getRotation(net.minecraft.core.Direction facing)
    • isRealCable

      protected abstract boolean isRealCable(net.neoforged.neoforge.client.model.data.ModelData modelData)
    • getFacade

      protected abstract Optional<net.minecraft.world.level.block.state.BlockState> getFacade(net.neoforged.neoforge.client.model.data.ModelData modelData)
    • isConnected

      protected abstract boolean isConnected(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side)
    • hasPart

      protected abstract boolean hasPart(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side)
    • getPartRenderPosition

      protected abstract PartRenderPosition getPartRenderPosition(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side)
    • shouldRenderParts

      protected abstract boolean shouldRenderParts(net.neoforged.neoforge.client.model.data.ModelData modelData)
    • getPartModel

      protected abstract net.minecraft.client.resources.model.BakedModel getPartModel(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side)
    • getRenderState

      protected abstract IRenderState getRenderState(net.neoforged.neoforge.client.model.data.ModelData modelData)
    • getGeneralQuads

      public List<net.minecraft.client.renderer.block.model.BakedQuad> getGeneralQuads()
      Overrides:
      getGeneralQuads in class org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel
    • getParticleIcon

      public net.minecraft.client.renderer.texture.TextureAtlasSprite getParticleIcon()
    • getModelData

      @Nonnull public net.neoforged.neoforge.client.model.data.ModelData getModelData(@Nonnull net.minecraft.world.level.BlockAndTintGetter world, @Nonnull net.minecraft.core.BlockPos pos, @Nonnull net.minecraft.world.level.block.state.BlockState state, @Nonnull net.neoforged.neoforge.client.model.data.ModelData tileData)
    • usesBlockLight

      public boolean usesBlockLight()
    • getTransforms

      public net.minecraft.client.renderer.block.model.ItemTransforms getTransforms()
    • getRenderTypes

      public net.neoforged.neoforge.client.ChunkRenderTypeSet getRenderTypes(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.util.RandomSource rand, @NotNull @NotNull net.neoforged.neoforge.client.model.data.ModelData data)