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
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.renderer.block.model.ItemOverrides
net.minecraft.client.renderer.texture.TextureAtlasSprite
<B extends IVariableModelProvider.BakedModelProvider>
BgetSubModels
(IVariableModelProvider<B> provider) 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) <B extends IVariableModelProvider.BakedModelProvider>
voidsetSubModels
(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 interfaceIVariableModelBaked
- 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 interfaceIVariableModelBaked
- 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 classorg.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 classorg.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel
-
usesBlockLight
public boolean usesBlockLight()- Specified by:
usesBlockLight
in interfacenet.minecraft.client.resources.model.BakedModel
-
getParticleIcon
public net.minecraft.client.renderer.texture.TextureAtlasSprite getParticleIcon()- Specified by:
getParticleIcon
in interfacenet.minecraft.client.resources.model.BakedModel
-
getTransforms
public net.minecraft.client.renderer.block.model.ItemTransforms getTransforms()- Specified by:
getTransforms
in interfacenet.minecraft.client.resources.model.BakedModel
-
getOverrides
public net.minecraft.client.renderer.block.model.ItemOverrides getOverrides()- Specified by:
getOverrides
in interfacenet.minecraft.client.resources.model.BakedModel
- Overrides:
getOverrides
in classorg.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel
-