Class DelegatingDynamicItemAndBlockModel

All Implemented Interfaces:
net.minecraft.client.resources.model.BakedModel, net.minecraftforge.client.extensions.IForgeBakedModel
Direct Known Subclasses:
DelegatingChildDynamicItemAndBlockModel

public abstract class DelegatingDynamicItemAndBlockModel extends DynamicItemAndBlockModel
A dynamic model that can be used for items and blocks that delegates its blockstate.
  • 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.minecraftforge.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.minecraftforge.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)