Class DelegatingDynamicItemAndBlockModel
java.lang.Object
org.cyclops.cyclopscore.client.model.DynamicBaseModel
org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel
org.cyclops.cyclopscore.client.model.DelegatingDynamicItemAndBlockModel
- All Implemented Interfaces:
net.minecraft.client.resources.model.BakedModel,net.neoforged.neoforge.client.extensions.IBakedModelExtension
- Direct Known Subclasses:
DelegatingChildDynamicItemAndBlockModel
A dynamic model that can be used for items and blocks that delegates its blockstate.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel
DynamicItemAndBlockModel.ItemOverridesInner -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final net.minecraft.world.level.block.state.BlockStateprotected final net.minecraft.world.entity.LivingEntityprotected final net.minecraft.core.Directionprotected final net.minecraft.world.item.ItemStackprotected final net.neoforged.neoforge.client.model.data.ModelDataprotected final net.minecraft.util.RandomSourceprotected final net.minecraft.client.renderer.RenderTypeprotected final net.minecraft.world.level.LevelFields inherited from class org.cyclops.cyclopscore.client.model.DynamicBaseModel
ROTATION_FIX, ROTATION_UV, UVS -
Constructor Summary
ConstructorsConstructorDescriptionDelegatingDynamicItemAndBlockModel(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity) DelegatingDynamicItemAndBlockModel(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
Methods inherited from class org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel
getGeneralQuads, getOverrides, getQuads, getQuads, getRenderingSide, handleBlockState, handleItemState, isItemStackMethods inherited from class org.cyclops.cyclopscore.client.model.DynamicBaseModel
addBakedQuad, addBakedQuad, addBakedQuadRotated, addBakedQuadRotated, addColoredBakedQuad, addColoredBakedQuad, isCustomRenderer, isGui3d, revRotate, rotate, useAmbientOcclusion, vertexToIntsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.resources.model.BakedModel
getParticleIcon, getTransforms, usesBlockLightMethods inherited from interface net.neoforged.neoforge.client.extensions.IBakedModelExtension
applyTransform, getModelData, getParticleIcon, getRenderPasses, getRenderTypes, getRenderTypes, useAmbientOcclusion
-
Field Details
-
blockState
@Nullable protected final net.minecraft.world.level.block.state.BlockState blockState -
facing
@Nullable protected final net.minecraft.core.Direction facing -
rand
protected final net.minecraft.util.RandomSource rand -
modelData
protected final net.neoforged.neoforge.client.model.data.ModelData modelData -
renderType
protected final net.minecraft.client.renderer.RenderType renderType -
itemStack
protected final net.minecraft.world.item.ItemStack itemStack -
world
protected final net.minecraft.world.level.Level world -
entity
protected final net.minecraft.world.entity.LivingEntity entity
-
-
Constructor Details
-
DelegatingDynamicItemAndBlockModel
public DelegatingDynamicItemAndBlockModel() -
DelegatingDynamicItemAndBlockModel
public DelegatingDynamicItemAndBlockModel(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) -
DelegatingDynamicItemAndBlockModel
public DelegatingDynamicItemAndBlockModel(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity)
-