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
A dynamic model that can be used for items and blocks.
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.cyclops.cyclopscore.client.model.DynamicBaseModel
ROTATION_FIX, ROTATION_UV, UVS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<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 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
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 interfacenet.minecraft.client.resources.model.BakedModel
- Overrides:
getQuads
in classDynamicBaseModel
-
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
-
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 interfacenet.minecraft.client.resources.model.BakedModel
- Overrides:
getOverrides
in classDynamicBaseModel
-
getRenderingSide
public net.minecraft.core.Direction getRenderingSide()
-