Package net.minecraftforge.debug
Class DataGeneratorTest.BlockStates
java.lang.Object
net.minecraftforge.client.model.generators.BlockStateProvider
net.minecraftforge.debug.DataGeneratorTest.BlockStates
- All Implemented Interfaces:
IDataProvider
- Enclosing class:
- DataGeneratorTest
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.model.generators.BlockStateProvider
BlockStateProvider.ConfiguredModelList
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Set<ResourceLocation>
private static final Set<ResourceLocation>
private static final org.apache.logging.log4j.Logger
Fields inherited from class net.minecraftforge.client.model.generators.BlockStateProvider
registeredBlocks, WALL_PROPS
Fields inherited from interface net.minecraft.data.IDataProvider
SHA1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
blockstateError
(Block block, String fmt, Object... args) private boolean
compareArrays
(Block block, String key, 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, 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) getName()
protected void
void
run
(DirectoryCache cache) private String
toEquivalentString
(com.google.gson.JsonElement element) Methods inherited from class net.minecraftforge.client.model.generators.BlockStateProvider
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
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
IGNORED_BLOCKS
-
IGNORED_MODELS
-
CUSTOM_MODELS
-
errors
-
-
Constructor Details
-
BlockStates
-
-
Method Details
-
registerStatesAndModels
protected void registerStatesAndModels()- Specified by:
registerStatesAndModels
in classBlockStateProvider
-
run
- Specified by:
run
in interfaceIDataProvider
- Overrides:
run
in classBlockStateProvider
- Throws:
IOException
-
compareVariantBlockstates
private void compareVariantBlockstates(Block block, com.google.gson.JsonObject generated, com.google.gson.JsonObject vanilla) -
compareVariant
-
compareMultipartBlockstates
private void compareMultipartBlockstates(Block block, com.google.gson.JsonObject generated, com.google.gson.JsonObject vanilla) -
toEquivalentString
-
correctVariant
private void correctVariant(com.google.gson.JsonObject variant) -
compareArrays
-
blockstateError
-
getName
- Specified by:
getName
in interfaceIDataProvider
- Overrides:
getName
in classBlockStateProvider
-