Interface NativeMultipart


public interface NativeMultipart
A Block that can be converted (in-place) to an AbstractPart. (Usually called in MultipartUtil.offerNewPart(World, BlockPos, MultipartCreator).

This is generally only useful if your block does NOT already have a BlockEntity.

  • Method Summary

    Modifier and Type Method Description
    java.util.List<MultipartContainer.MultipartCreator> getMultipartConversion​(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state)  
  • Method Details

    • getMultipartConversion

      @Nullable java.util.List<MultipartContainer.MultipartCreator> getMultipartConversion​(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state)
      Returns:
      A List of MultipartContainer.MultipartCreator's that can create a new AbstractPart based on the current state at the given position, or null if the current state cannot be converted into an AbstractPart. An empty list will let this block be replaced with multiparts.

      Note that neither this function call, nor the Function that this returns should modify the World in any way!