Class CableModel
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
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
ConstructorDescriptionCableModel
(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 TypeMethodDescriptionprotected 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) protected PartRenderPosition
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.integrateddynamics.client.model.CableModelBase
getFacadeQuads, getGeneralQuads, getMatrix, getModelData, getParticleIcon, getRenderTypes, getRotation, getTransforms, makeQuadVertexes, usesBlockLight
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 classCableModelBase
-
getFacade
protected Optional<net.minecraft.world.level.block.state.BlockState> getFacade(net.neoforged.neoforge.client.model.data.ModelData modelData) - Specified by:
getFacade
in classCableModelBase
-
isConnected
protected boolean isConnected(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side) - Specified by:
isConnected
in classCableModelBase
-
hasPart
protected boolean hasPart(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side) - Specified by:
hasPart
in classCableModelBase
-
getPartRenderPosition
protected PartRenderPosition getPartRenderPosition(net.neoforged.neoforge.client.model.data.ModelData modelData, net.minecraft.core.Direction side) - Specified by:
getPartRenderPosition
in classCableModelBase
-
shouldRenderParts
protected boolean shouldRenderParts(net.neoforged.neoforge.client.model.data.ModelData modelData) - Specified by:
shouldRenderParts
in classCableModelBase
-
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 classCableModelBase
-
getRenderState
- Specified by:
getRenderState
in classCableModelBase
-
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 classorg.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 classorg.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel
-