Interface IPreviewableMultiblock

All Superinterfaces:
IMBStateSharer, IMultiBlock
All Known Implementing Classes:
DiamondStructureBlock, SimpleMultiBlock, 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 AbstractMultiBlock.getMultiblockRenderShape(BlockState, boolean) instead
    • shouldPreview

      default boolean shouldPreview(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos, PreviewMode previewMode)
    • 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.