public abstract class BlockStateProvider extends BlockModelProvider
BlockModelProvider
so that
blockstates and their referenced models can be provided in tandem.Modifier and Type | Class and Description |
---|---|
static class |
BlockStateProvider.ConfiguredModelList |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<Block,IGeneratedBlockstate> |
registeredBlocks |
BLOCK_FOLDER, cache, existingFileHelper, factory, folder, generatedModels, generator, ITEM_FOLDER, modid
HASH_FUNCTION
Constructor and Description |
---|
BlockStateProvider(DataGenerator gen,
java.lang.String modid,
ExistingFileHelper exFileHelper) |
Modifier and Type | Method and Description |
---|---|
protected void |
axisBlock(RotatedPillarBlock block) |
protected void |
axisBlock(RotatedPillarBlock block,
ModelFile model) |
protected void |
axisBlock(RotatedPillarBlock block,
ResourceLocation baseName) |
protected void |
axisBlock(RotatedPillarBlock block,
ResourceLocation side,
ResourceLocation end) |
protected ResourceLocation |
blockTexture(Block block) |
protected ModelFile |
cubeAll(Block block) |
protected void |
directionalBlock(Block block,
java.util.function.Function<BlockState,ModelFile> modelFunc) |
protected void |
directionalBlock(Block block,
java.util.function.Function<BlockState,ModelFile> modelFunc,
int angleOffset) |
protected void |
directionalBlock(Block block,
ModelFile model) |
protected void |
directionalBlock(Block block,
ModelFile model,
int angleOffset) |
protected void |
doorBlock(DoorBlock block,
ModelFile bottomLeft,
ModelFile bottomRight,
ModelFile topLeft,
ModelFile topRight) |
protected void |
doorBlock(DoorBlock block,
ResourceLocation bottom,
ResourceLocation top) |
protected void |
doorBlock(DoorBlock block,
java.lang.String name,
ResourceLocation bottom,
ResourceLocation top) |
protected void |
fenceBlock(FenceBlock block,
ResourceLocation texture) |
protected void |
fenceBlock(FenceBlock block,
java.lang.String name,
ResourceLocation texture) |
protected void |
fenceGateBlock(FenceGateBlock block,
ModelFile gate,
ModelFile gateOpen,
ModelFile gateWall,
ModelFile gateWallOpen) |
protected void |
fenceGateBlock(FenceGateBlock block,
ResourceLocation texture) |
protected void |
fenceGateBlock(FenceGateBlock block,
java.lang.String name,
ResourceLocation texture) |
protected void |
fourWayBlock(FourWayBlock block,
ModelFile post,
ModelFile side) |
protected void |
fourWayMultipart(MultiPartBlockStateBuilder builder,
ModelFile side) |
protected MultiPartBlockStateBuilder |
getMultipartBuilder(Block b) |
java.lang.String |
getName() |
protected VariantBlockStateBuilder |
getVariantBuilder(Block b) |
protected void |
horizontalBlock(Block block,
java.util.function.Function<BlockState,ModelFile> modelFunc) |
protected void |
horizontalBlock(Block block,
java.util.function.Function<BlockState,ModelFile> modelFunc,
int angleOffset) |
protected void |
horizontalBlock(Block block,
ModelFile model) |
protected void |
horizontalBlock(Block block,
ModelFile model,
int angleOffset) |
protected void |
horizontalBlock(Block block,
ResourceLocation side,
ResourceLocation front,
ResourceLocation top) |
protected void |
horizontalFaceBlock(Block block,
java.util.function.Function<BlockState,ModelFile> modelFunc) |
protected void |
horizontalFaceBlock(Block block,
java.util.function.Function<BlockState,ModelFile> modelFunc,
int angleOffset) |
protected void |
horizontalFaceBlock(Block block,
ModelFile model) |
protected void |
horizontalFaceBlock(Block block,
ModelFile model,
int angleOffset) |
protected void |
logBlock(LogBlock block) |
protected void |
paneBlock(PaneBlock block,
ModelFile post,
ModelFile side,
ModelFile sideAlt,
ModelFile noSide,
ModelFile noSideAlt) |
protected void |
paneBlock(PaneBlock block,
ResourceLocation pane,
ResourceLocation edge) |
protected void |
paneBlock(PaneBlock block,
java.lang.String name,
ResourceLocation pane,
ResourceLocation edge) |
protected void |
registerModels() |
protected abstract void |
registerStatesAndModels() |
protected void |
simpleBlock(Block block) |
protected void |
simpleBlock(Block block,
ConfiguredModel... models) |
protected void |
simpleBlock(Block block,
java.util.function.Function<ModelFile,ConfiguredModel[]> expander) |
protected void |
simpleBlock(Block block,
ModelFile model) |
protected void |
slabBlock(SlabBlock block,
ModelFile bottom,
ModelFile top,
ModelFile doubleslab) |
protected void |
slabBlock(SlabBlock block,
ResourceLocation doubleslab,
ResourceLocation texture) |
protected void |
slabBlock(SlabBlock block,
ResourceLocation doubleslab,
ResourceLocation side,
ResourceLocation bottom,
ResourceLocation top) |
protected void |
stairsBlock(StairsBlock block,
ModelFile stairs,
ModelFile stairsInner,
ModelFile stairsOuter) |
protected void |
stairsBlock(StairsBlock block,
ResourceLocation texture) |
protected void |
stairsBlock(StairsBlock block,
ResourceLocation side,
ResourceLocation bottom,
ResourceLocation top) |
protected void |
stairsBlock(StairsBlock block,
java.lang.String name,
ResourceLocation texture) |
protected void |
stairsBlock(StairsBlock block,
java.lang.String name,
ResourceLocation side,
ResourceLocation bottom,
ResourceLocation top) |
protected void |
trapdoorBlock(TrapDoorBlock block,
ModelFile bottom,
ModelFile top,
ModelFile open,
boolean orientable) |
protected void |
trapdoorBlock(TrapDoorBlock block,
ResourceLocation texture,
boolean orientable) |
protected void |
trapdoorBlock(TrapDoorBlock block,
java.lang.String name,
ResourceLocation texture,
boolean orientable) |
protected void |
wallBlock(WallBlock block,
ModelFile post,
ModelFile side) |
protected void |
wallBlock(WallBlock block,
ResourceLocation texture) |
protected void |
wallBlock(WallBlock block,
java.lang.String name,
ResourceLocation texture) |
act, carpet, crop, cross, cube, cubeAll, cubeBottomTop, cubeColumn, cubeTop, doorBottomLeft, doorBottomRight, doorTopLeft, doorTopRight, fenceGate, fenceGateOpen, fenceGateWall, fenceGateWallOpen, fenceInventory, fencePost, fenceSide, getBuilder, getExistingFile, mcLoc, modLoc, orientable, orientableVertical, orientableWithBottom, paneNoSide, paneNoSideAlt, panePost, paneSide, paneSideAlt, singleTexture, singleTexture, slab, slabTop, stairs, stairsInner, stairsOuter, torch, torchWall, trapdoorBottom, trapdoorOpen, trapdoorOrientableBottom, trapdoorOrientableOpen, trapdoorOrientableTop, trapdoorTop, wallInventory, wallPost, wallSide, withExistingParent, withExistingParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
save
protected final java.util.Map<Block,IGeneratedBlockstate> registeredBlocks
public BlockStateProvider(DataGenerator gen, java.lang.String modid, ExistingFileHelper exFileHelper)
protected final void registerModels()
registerModels
in class ModelProvider<BlockModelBuilder>
protected abstract void registerStatesAndModels()
protected VariantBlockStateBuilder getVariantBuilder(Block b)
protected MultiPartBlockStateBuilder getMultipartBuilder(Block b)
protected ResourceLocation blockTexture(Block block)
protected void simpleBlock(Block block)
protected void simpleBlock(Block block, java.util.function.Function<ModelFile,ConfiguredModel[]> expander)
protected void simpleBlock(Block block, ConfiguredModel... models)
protected void axisBlock(RotatedPillarBlock block)
protected void logBlock(LogBlock block)
protected void axisBlock(RotatedPillarBlock block, ResourceLocation baseName)
protected void axisBlock(RotatedPillarBlock block, ResourceLocation side, ResourceLocation end)
protected void axisBlock(RotatedPillarBlock block, ModelFile model)
protected void horizontalBlock(Block block, ResourceLocation side, ResourceLocation front, ResourceLocation top)
protected void horizontalBlock(Block block, java.util.function.Function<BlockState,ModelFile> modelFunc)
protected void horizontalBlock(Block block, java.util.function.Function<BlockState,ModelFile> modelFunc, int angleOffset)
protected void horizontalFaceBlock(Block block, ModelFile model, int angleOffset)
protected void horizontalFaceBlock(Block block, java.util.function.Function<BlockState,ModelFile> modelFunc)
protected void horizontalFaceBlock(Block block, java.util.function.Function<BlockState,ModelFile> modelFunc, int angleOffset)
protected void directionalBlock(Block block, java.util.function.Function<BlockState,ModelFile> modelFunc)
protected void directionalBlock(Block block, java.util.function.Function<BlockState,ModelFile> modelFunc, int angleOffset)
protected void stairsBlock(StairsBlock block, ResourceLocation texture)
protected void stairsBlock(StairsBlock block, java.lang.String name, ResourceLocation texture)
protected void stairsBlock(StairsBlock block, ResourceLocation side, ResourceLocation bottom, ResourceLocation top)
protected void stairsBlock(StairsBlock block, java.lang.String name, ResourceLocation side, ResourceLocation bottom, ResourceLocation top)
protected void stairsBlock(StairsBlock block, ModelFile stairs, ModelFile stairsInner, ModelFile stairsOuter)
protected void slabBlock(SlabBlock block, ResourceLocation doubleslab, ResourceLocation texture)
protected void slabBlock(SlabBlock block, ResourceLocation doubleslab, ResourceLocation side, ResourceLocation bottom, ResourceLocation top)
protected void slabBlock(SlabBlock block, ModelFile bottom, ModelFile top, ModelFile doubleslab)
protected void fourWayBlock(FourWayBlock block, ModelFile post, ModelFile side)
protected void fourWayMultipart(MultiPartBlockStateBuilder builder, ModelFile side)
protected void fenceBlock(FenceBlock block, ResourceLocation texture)
protected void fenceBlock(FenceBlock block, java.lang.String name, ResourceLocation texture)
protected void fenceGateBlock(FenceGateBlock block, ResourceLocation texture)
protected void fenceGateBlock(FenceGateBlock block, java.lang.String name, ResourceLocation texture)
protected void fenceGateBlock(FenceGateBlock block, ModelFile gate, ModelFile gateOpen, ModelFile gateWall, ModelFile gateWallOpen)
protected void wallBlock(WallBlock block, ResourceLocation texture)
protected void wallBlock(WallBlock block, java.lang.String name, ResourceLocation texture)
protected void paneBlock(PaneBlock block, ResourceLocation pane, ResourceLocation edge)
protected void paneBlock(PaneBlock block, java.lang.String name, ResourceLocation pane, ResourceLocation edge)
protected void paneBlock(PaneBlock block, ModelFile post, ModelFile side, ModelFile sideAlt, ModelFile noSide, ModelFile noSideAlt)
protected void doorBlock(DoorBlock block, ResourceLocation bottom, ResourceLocation top)
protected void doorBlock(DoorBlock block, java.lang.String name, ResourceLocation bottom, ResourceLocation top)
protected void doorBlock(DoorBlock block, ModelFile bottomLeft, ModelFile bottomRight, ModelFile topLeft, ModelFile topRight)
protected void trapdoorBlock(TrapDoorBlock block, ResourceLocation texture, boolean orientable)
protected void trapdoorBlock(TrapDoorBlock block, java.lang.String name, ResourceLocation texture, boolean orientable)
protected void trapdoorBlock(TrapDoorBlock block, ModelFile bottom, ModelFile top, ModelFile open, boolean orientable)
@Nonnull public java.lang.String getName()