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.renderer.block.model.BlockStateModel
,net.minecraft.client.resources.model.ModelDebugName
,net.minecraft.client.resources.model.ResolvedModel
,net.neoforged.neoforge.client.extensions.BlockStateModelExtension
,net.neoforged.neoforge.client.extensions.ResolvedModelExtension
- 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 interface net.minecraft.client.renderer.block.model.BlockStateModel
net.minecraft.client.renderer.block.model.BlockStateModel.SimpleCachedUnbakedRoot, net.minecraft.client.renderer.block.model.BlockStateModel.Unbaked, net.minecraft.client.renderer.block.model.BlockStateModel.UnbakedRoot
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final net.minecraft.world.level.block.state.BlockState
protected final net.minecraft.core.Direction
protected final net.minecraft.world.level.BlockAndTintGetter
protected final net.neoforged.neoforge.model.data.ModelData
protected final net.minecraft.util.RandomSource
protected final net.minecraft.client.renderer.chunk.ChunkSectionLayer
Fields inherited from class org.cyclops.cyclopscore.client.model.DynamicBaseModel
ROTATION_FIX, ROTATION_UV, UVS
Fields inherited from interface net.minecraft.client.resources.model.ResolvedModel
DEFAULT_AMBIENT_OCCLUSION, DEFAULT_GUI_LIGHT
-
Constructor Summary
ConstructorsConstructorDescriptionDelegatingDynamicItemAndBlockModel
(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level level, net.minecraft.world.entity.LivingEntity entity) DelegatingDynamicItemAndBlockModel
(net.minecraft.world.level.BlockAndTintGetter level, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.core.Direction facing, net.minecraft.util.RandomSource rand, net.neoforged.neoforge.model.data.ModelData modelData, net.minecraft.client.renderer.chunk.ChunkSectionLayer renderType) -
Method Summary
Methods inherited from class org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel
getGeneralQuads, handleItemState, isItemStack
Methods inherited from class org.cyclops.cyclopscore.client.model.DynamicBaseModel
addBakedQuad, addBakedQuad, addBakedQuadRotated, addBakedQuadRotated, addColoredBakedQuad, addColoredBakedQuad, collectParts, collectParts, getModelData, getRenderTypes, handleBlockState, revRotate, rotate, usesBlockLight, 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.renderer.block.model.BlockStateModel
collectParts, particleIcon
Methods inherited from interface net.neoforged.neoforge.client.extensions.BlockStateModelExtension
collectParts, createGeometryKey, particleIcon
Methods inherited from interface net.minecraft.client.resources.model.ModelDebugName
debugName
Methods inherited from interface net.minecraft.client.resources.model.ResolvedModel
bakeTopGeometry, getTopAmbientOcclusion, getTopGeometry, getTopGuiLight, getTopTextureSlots, getTopTransforms, parent, resolveParticleSprite, wrapped
Methods inherited from interface net.neoforged.neoforge.client.extensions.ResolvedModelExtension
getTopAdditionalProperties
-
Field Details
-
level
@Nullable protected final net.minecraft.world.level.BlockAndTintGetter level -
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.model.data.ModelData modelData -
renderType
protected final net.minecraft.client.renderer.chunk.ChunkSectionLayer renderType
-
-
Constructor Details
-
DelegatingDynamicItemAndBlockModel
public DelegatingDynamicItemAndBlockModel() -
DelegatingDynamicItemAndBlockModel
public DelegatingDynamicItemAndBlockModel(net.minecraft.world.level.BlockAndTintGetter level, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.core.Direction facing, net.minecraft.util.RandomSource rand, net.neoforged.neoforge.model.data.ModelData modelData, net.minecraft.client.renderer.chunk.ChunkSectionLayer renderType) -
DelegatingDynamicItemAndBlockModel
public DelegatingDynamicItemAndBlockModel(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level level, net.minecraft.world.entity.LivingEntity entity)
-