Package net.minecraftforge.debug
Class DataGeneratorTest.BlockStates
java.lang.Object
net.minecraftforge.client.model.generators.BlockStateProvider
net.minecraftforge.debug.DataGeneratorTest.BlockStates
- All Implemented Interfaces:
DataProvider
- Enclosing class:
- DataGeneratorTest
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.model.generators.BlockStateProvider
BlockStateProvider.ConfiguredModelList
Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider
DataProvider.Factory<T extends DataProvider>
-
Field Summary
FieldsModifier 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.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR
-
Constructor Summary
Constructors -
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
run
(CachedOutput cache) private String
toEquivalentString
(com.google.gson.JsonElement element) Methods inherited from class net.minecraftforge.client.model.generators.BlockStateProvider
axisBlock, axisBlock, axisBlock, axisBlock, axisBlockWithRenderType, axisBlockWithRenderType, axisBlockWithRenderType, axisBlockWithRenderType, axisBlockWithRenderType, axisBlockWithRenderType, blockTexture, buttonBlock, buttonBlock, cubeAll, directionalBlock, directionalBlock, directionalBlock, directionalBlock, doorBlock, doorBlock, doorBlock, doorBlockWithRenderType, doorBlockWithRenderType, doorBlockWithRenderType, doorBlockWithRenderType, fenceBlock, fenceBlock, fenceBlockWithRenderType, fenceBlockWithRenderType, fenceBlockWithRenderType, fenceBlockWithRenderType, fenceGateBlock, fenceGateBlock, fenceGateBlock, fenceGateBlockWithRenderType, fenceGateBlockWithRenderType, fenceGateBlockWithRenderType, fenceGateBlockWithRenderType, fourWayBlock, fourWayMultipart, getMultipartBuilder, getVariantBuilder, horizontalBlock, horizontalBlock, horizontalBlock, horizontalBlock, horizontalBlock, horizontalFaceBlock, horizontalFaceBlock, horizontalFaceBlock, horizontalFaceBlock, itemModels, logBlock, logBlockWithRenderType, logBlockWithRenderType, mcLoc, models, modLoc, paneBlock, paneBlock, paneBlock, paneBlockWithRenderType, paneBlockWithRenderType, paneBlockWithRenderType, paneBlockWithRenderType, pressurePlateBlock, pressurePlateBlock, signBlock, signBlock, simpleBlock, simpleBlock, simpleBlock, simpleBlock, simpleBlockItem, simpleBlockWithItem, slabBlock, slabBlock, slabBlock, stairsBlock, stairsBlock, stairsBlock, stairsBlock, stairsBlock, stairsBlockWithRenderType, stairsBlockWithRenderType, stairsBlockWithRenderType, stairsBlockWithRenderType, stairsBlockWithRenderType, stairsBlockWithRenderType, stairsBlockWithRenderType, stairsBlockWithRenderType, trapdoorBlock, trapdoorBlock, trapdoorBlock, trapdoorBlockWithRenderType, trapdoorBlockWithRenderType, trapdoorBlockWithRenderType, trapdoorBlockWithRenderType, wallBlock, wallBlock, wallBlock, wallBlockWithRenderType, wallBlockWithRenderType, wallBlockWithRenderType, wallBlockWithRenderType
-
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 interfaceDataProvider
- Overrides:
run
in classBlockStateProvider
-
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 interfaceDataProvider
- Overrides:
getName
in classBlockStateProvider
-