Interface IPreviewableMultiblock

All Superinterfaces:
IMBStateSyncer, IMultiBlock
All Known Implementing Classes:
TestBlock

public interface IPreviewableMultiblock extends IMultiBlock
  • Method Details

    • skipJsonRendering

      default boolean skipJsonRendering()
      May save performance and fix translucency glitches if your preview only uses a block entity renderer. Usually it's easier to override BlockBehaviour.getRenderShape(BlockState) instead
    • getDefaultStateForPreviews

      default net.minecraft.world.level.block.state.BlockState getDefaultStateForPreviews(net.minecraft.core.Direction direction)
      Returns the default BlockState that will be used for previews
    • getBlockEntityForPreviews

      default net.minecraft.world.level.block.entity.BlockEntity getBlockEntityForPreviews(net.minecraft.world.level.block.entity.BlockEntity entity, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos blockPos)
      Allows changing the blocks block entity before it gets rendered as a preview. This block entity matches the one your EntityBlock.newBlockEntity(BlockPos, BlockState) returns, so feel free to cast it.