public static class DataGeneratorTest.BlockStates extends BlockStateProvider
BlockStateProvider.ConfiguredModelList
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
errors |
private static java.util.Set<Block> |
IGNORED_BLOCKS |
private static java.util.Set<ResourceLocation> |
IGNORED_MODELS |
private static org.apache.logging.log4j.Logger |
LOGGER |
registeredBlocks
HASH_FUNCTION
Constructor and Description |
---|
BlockStates(DataGenerator gen,
ExistingFileHelper exFileHelper) |
Modifier and Type | Method and Description |
---|---|
void |
act(DirectoryCache cache) |
private void |
blockstateError(Block block,
java.lang.String fmt,
java.lang.Object... args) |
private boolean |
compareArrays(Block block,
java.lang.String key,
java.lang.String name,
com.google.gson.JsonElement generated,
com.google.gson.JsonElement vanilla) |
private void |
compareMultipartBlockstates(Block block,
com.google.gson.JsonObject generated,
com.google.gson.JsonObject vanilla) |
private void |
compareVariant(Block block,
java.lang.String key,
com.google.gson.JsonObject generatedVariant,
com.google.gson.JsonObject vanillaVariant) |
private void |
compareVariantBlockstates(Block block,
com.google.gson.JsonObject generated,
com.google.gson.JsonObject vanilla) |
private void |
correctVariant(com.google.gson.JsonObject variant) |
java.lang.String |
getName() |
protected void |
registerStatesAndModels() |
private java.lang.String |
toEquivalentString(com.google.gson.JsonElement element) |
axisBlock, axisBlock, axisBlock, axisBlock, blockTexture, cubeAll, directionalBlock, directionalBlock, directionalBlock, directionalBlock, doorBlock, doorBlock, doorBlock, fenceBlock, fenceBlock, fenceGateBlock, fenceGateBlock, fenceGateBlock, fourWayBlock, fourWayMultipart, getMultipartBuilder, getVariantBuilder, horizontalBlock, horizontalBlock, horizontalBlock, horizontalBlock, horizontalBlock, horizontalFaceBlock, horizontalFaceBlock, horizontalFaceBlock, horizontalFaceBlock, itemModels, logBlock, mcLoc, models, modLoc, paneBlock, paneBlock, paneBlock, simpleBlock, simpleBlock, simpleBlock, simpleBlock, simpleBlockItem, slabBlock, slabBlock, slabBlock, stairsBlock, stairsBlock, stairsBlock, stairsBlock, stairsBlock, trapdoorBlock, trapdoorBlock, trapdoorBlock, wallBlock, wallBlock, wallBlock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
save
private static final org.apache.logging.log4j.Logger LOGGER
private static final java.util.Set<Block> IGNORED_BLOCKS
private static final java.util.Set<ResourceLocation> IGNORED_MODELS
private java.util.List<java.lang.String> errors
public BlockStates(DataGenerator gen, ExistingFileHelper exFileHelper)
protected void registerStatesAndModels()
registerStatesAndModels
in class BlockStateProvider
public void act(DirectoryCache cache) throws java.io.IOException
act
in interface IDataProvider
act
in class BlockStateProvider
java.io.IOException
private void compareVariantBlockstates(Block block, com.google.gson.JsonObject generated, com.google.gson.JsonObject vanilla)
private void compareVariant(Block block, java.lang.String key, com.google.gson.JsonObject generatedVariant, com.google.gson.JsonObject vanillaVariant)
private void compareMultipartBlockstates(Block block, com.google.gson.JsonObject generated, com.google.gson.JsonObject vanilla)
private java.lang.String toEquivalentString(com.google.gson.JsonElement element)
private void correctVariant(com.google.gson.JsonObject variant)
private boolean compareArrays(Block block, java.lang.String key, java.lang.String name, com.google.gson.JsonElement generated, com.google.gson.JsonElement vanilla)
private void blockstateError(Block block, java.lang.String fmt, java.lang.Object... args)
public java.lang.String getName()
getName
in interface IDataProvider
getName
in class BlockStateProvider