Class TexturedChestBlock.Builder
java.lang.Object
net.anawesomguy.wsmlmb.block.chest.TexturedChestBlock.Builder
- Enclosing class:
- TexturedChestBlock
A builder class for
TexturedChestBlock, since blocks should be immutable.
You can use the constructor manually, but this is the recommended way.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()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.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).setTextures(net.minecraft.util.Identifier single, net.minecraft.util.Identifier left, net.minecraft.util.Identifier right, boolean christmas) Sets the textures of this chest for when it is Christmas.
-
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 theTexturedChestBlock.christmasTexturesif they have not been set already.The textures must be in the chest atlas, or in the
entity/chestdirectory.- Parameters:
single- anIdentifierfor the texture for this chest when it is by itself.left- anIdentifierfor the texture for the left side of the double chest.right- anIdentifierfor 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 theTexturedChestBlock.normalTexturesif they have not been set already.The textures must be in the chest atlas, or in the
entity/chestdirectory.- Parameters:
single- anIdentifierfor the texture for this chest when it is by itself.left- anIdentifierfor the texture for the left side of the double chest.right- anIdentifierfor 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) Sets the textures of this chest for when it is Christmas. This will also set theTexturedChestBlock.normalTexturesif they have not been set already.The textures must be in the chest atlas, or in the
entity/chestdirectory.- Parameters:
single- anIdentifierfor the texture for this chest when it is by itself.left- anIdentifierfor the texture for the left side of the double chest.right- anIdentifierfor the texture for the right side of the double chest.christmas- whether the textures to be set will be the ones for on Christmas.- Returns:
this, after the textures have been set.
-
build
- Returns:
- a new instance of
TexturedChestBlockusing this builder's settings and textures.
-