Class AbstractMultipartBlock.Builder

java.lang.Object
net.liukrast.multipart.block.AbstractMultipartBlock.Builder
Enclosing class:
AbstractMultipartBlock

public static class AbstractMultipartBlock.Builder extends Object
Builder to define relative positions of multipart block parts.
  • Constructor Details

    • Builder

      @Internal protected Builder()
      Main constructor for Builder. You should not use this. You will only care about define(int, int, int)
  • Method Details

    • define

      public AbstractMultipartBlock.Builder define(int x, int y, int z)
      Defines a new relative position for a part.
      Parameters:
      x - relative X coordinate.
      y - relative Y coordinate.
      z - relative Z coordinate.
      Returns:
      the builder instance for chaining.
      Throws:
      IllegalCallerException - if the position is already defined.
    • build

      @Internal protected List<net.minecraft.core.BlockPos> build()
      Internal code. Do not use.
      Returns:
      a list of block positions