Class TexturedChestBlock.Builder

java.lang.Object
net.anawesomguy.wsmlmb.block.chest.TexturedChestBlock.Builder
Enclosing class:
TexturedChestBlock

public static class TexturedChestBlock.Builder extends Object
A builder class for TexturedChestBlock, since blocks should be immutable.

You can use the constructor manually, but this is the recommended way.

  • Constructor Details

    • Builder

      public Builder(net.minecraft.block.AbstractBlock.Settings settings)
  • Method Details

    • setTextures

      public TexturedChestBlock.Builder setTextures(net.minecraft.util.Identifier single, net.minecraft.util.Identifier left, net.minecraft.util.Identifier right)
      Sets the textures of this chest (for when it is not Christmas). This will also set the TexturedChestBlock.christmasTextures if they have not been set already.
      Parameters:
      single - an Identifier for the texture for this chest when it is by itself.
      left - an Identifier for the texture for the left side of the double chest.
      right - an Identifier for the texture for the right side of the double chest.
      Returns:
      this, after the textures have been set.
    • setChristmasTextures

      public TexturedChestBlock.Builder setChristmasTextures(net.minecraft.util.Identifier single, net.minecraft.util.Identifier left, net.minecraft.util.Identifier right)
      Sets the textures of this chest for when it is Christmas. This will also set the TexturedChestBlock.normalTextures if they have not been set already.
      Parameters:
      single - an Identifier for the texture for this chest when it is by itself.
      left - an Identifier for the texture for the left side of the double chest.
      right - an Identifier for the texture for the right side of the double chest.
      Returns:
      this, after the textures have been set.
    • setTextures

      public TexturedChestBlock.Builder setTextures(net.minecraft.util.Identifier single, net.minecraft.util.Identifier left, net.minecraft.util.Identifier right, boolean christmas)
    • build

      public TexturedChestBlock build()