Class ModelBuilder
java.lang.Object
com.portingdeadmods.portingdeadlibs.api.datagen.ModelBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionModelBuilder(net.minecraft.world.level.block.Block block, net.neoforged.neoforge.client.model.generators.BlockStateProvider modelProvider) -
Method Summary
Modifier and TypeMethodDescriptionactive()back(BiFunction<net.minecraft.world.level.block.Block, String, net.minecraft.resources.ResourceLocation> backTexture, String suffix) back(Function<net.minecraft.world.level.block.Block, net.minecraft.resources.ResourceLocation> backTexture) back(net.minecraft.resources.ResourceLocation backTexture) bottom(BiFunction<net.minecraft.world.level.block.Block, String, net.minecraft.resources.ResourceLocation> bottomTexture, String suffix) bottom(Function<net.minecraft.world.level.block.Block, net.minecraft.resources.ResourceLocation> bottomTexture) bottom(net.minecraft.resources.ResourceLocation bottomTexture) voidcreate()cutout()defaultTexture(BiFunction<net.minecraft.world.level.block.Block, String, net.minecraft.resources.ResourceLocation> defaultTexture, String suffix) defaultTexture(Function<net.minecraft.world.level.block.Block, net.minecraft.resources.ResourceLocation> defaultTexture) defaultTexture(net.minecraft.resources.ResourceLocation defaultTexture) facing()front(BiFunction<net.minecraft.world.level.block.Block, String, net.minecraft.resources.ResourceLocation> frontTexture, String suffix) front(Function<net.minecraft.world.level.block.Block, net.minecraft.resources.ResourceLocation> frontTexture) front(net.minecraft.resources.ResourceLocation frontTexture) particle(BiFunction<net.minecraft.world.level.block.Block, String, net.minecraft.resources.ResourceLocation> particleTexture, String suffix) particle(Function<net.minecraft.world.level.block.Block, net.minecraft.resources.ResourceLocation> particleTexture) particle(net.minecraft.resources.ResourceLocation defaultTexture) voidsetDefaultTextureBlock(net.minecraft.world.level.block.Block defaultTextureBlock) sides(BiFunction<net.minecraft.world.level.block.Block, String, net.minecraft.resources.ResourceLocation> sidesTexture, String suffix) sides(Function<net.minecraft.world.level.block.Block, net.minecraft.resources.ResourceLocation> sidesTexture) sides(net.minecraft.resources.ResourceLocation sidesTexture) top(BiFunction<net.minecraft.world.level.block.Block, String, net.minecraft.resources.ResourceLocation> topTexture, String suffix) top(Function<net.minecraft.world.level.block.Block, net.minecraft.resources.ResourceLocation> topTexture) top(net.minecraft.resources.ResourceLocation topTexture)
-
Constructor Details
-
ModelBuilder
public ModelBuilder(net.minecraft.world.level.block.Block block, net.neoforged.neoforge.client.model.generators.BlockStateProvider modelProvider)
-
-
Method Details
-
cutout
-
active
-
facing
-
horizontalFacing
-
front
-
front
public ModelBuilder front(Function<net.minecraft.world.level.block.Block, net.minecraft.resources.ResourceLocation> frontTexture) -
front
public ModelBuilder front(BiFunction<net.minecraft.world.level.block.Block, String, net.minecraft.resources.ResourceLocation> frontTexture, String suffix) -
back
-
back
public ModelBuilder back(Function<net.minecraft.world.level.block.Block, net.minecraft.resources.ResourceLocation> backTexture) -
back
public ModelBuilder back(BiFunction<net.minecraft.world.level.block.Block, String, net.minecraft.resources.ResourceLocation> backTexture, String suffix) -
sides
-
sides
public ModelBuilder sides(Function<net.minecraft.world.level.block.Block, net.minecraft.resources.ResourceLocation> sidesTexture) -
sides
public ModelBuilder sides(BiFunction<net.minecraft.world.level.block.Block, String, net.minecraft.resources.ResourceLocation> sidesTexture, String suffix) -
top
-
top
public ModelBuilder top(Function<net.minecraft.world.level.block.Block, net.minecraft.resources.ResourceLocation> topTexture) -
top
public ModelBuilder top(BiFunction<net.minecraft.world.level.block.Block, String, net.minecraft.resources.ResourceLocation> topTexture, String suffix) -
bottom
-
bottom
public ModelBuilder bottom(Function<net.minecraft.world.level.block.Block, net.minecraft.resources.ResourceLocation> bottomTexture) -
bottom
public ModelBuilder bottom(BiFunction<net.minecraft.world.level.block.Block, String, net.minecraft.resources.ResourceLocation> bottomTexture, String suffix) -
defaultTexture
-
defaultTexture
public ModelBuilder defaultTexture(Function<net.minecraft.world.level.block.Block, net.minecraft.resources.ResourceLocation> defaultTexture) -
defaultTexture
public ModelBuilder defaultTexture(BiFunction<net.minecraft.world.level.block.Block, String, net.minecraft.resources.ResourceLocation> defaultTexture, String suffix) -
particle
-
particle
public ModelBuilder particle(Function<net.minecraft.world.level.block.Block, net.minecraft.resources.ResourceLocation> particleTexture) -
particle
public ModelBuilder particle(BiFunction<net.minecraft.world.level.block.Block, String, net.minecraft.resources.ResourceLocation> particleTexture, String suffix) -
create
public void create() -
setDefaultTextureBlock
public void setDefaultTextureBlock(net.minecraft.world.level.block.Block defaultTextureBlock)
-