Class DatagenSystemCommons
java.lang.Object
team.lodestar.lodestone.modules.datagen.DatagenSystemCommons
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionStores the textures used by the most recently generated block.static net.minecraft.world.level.block.Blockprotected static final Set<net.minecraft.resources.ResourceLocation> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic net.minecraft.resources.ResourceLocationescapeTextureFolderHierarchy(net.minecraft.resources.ResourceLocation texture) static net.minecraft.resources.ResourceLocationstatic net.minecraft.resources.ResourceLocationmodifyModelParentPath(net.minecraft.resources.ResourceLocation modelPath) static net.minecraft.resources.ResourceLocationmodifyModelPath(net.minecraft.resources.ResourceLocation modelPath) static net.minecraft.resources.ResourceLocationmodifyTexturePath(net.minecraft.resources.ResourceLocation texture) static voidwriteBlockTextureFromBlockModel(String key, net.minecraft.resources.ResourceLocation texture)
-
Field Details
-
BLOCK_MODEL_TEXTURE_REFERENCE
protected static final HashMap<String,net.minecraft.resources.ResourceLocation> BLOCK_MODEL_TEXTURE_REFERENCEStores the textures used by the most recently generated block. Used for more easily generating item models based off of blocks which have weirdly specific custom item models, like walls. -
IMMUTABLE_TEXTURES
-
CURRENT_BLOCK
public static net.minecraft.world.level.block.Block CURRENT_BLOCK -
MODEL_PARENT
-
BLOCK_TEXTURE
-
BLOCK_MODEL
-
ITEM_TEXTURE
-
ITEM_MODEL
-
-
Constructor Details
-
DatagenSystemCommons
public DatagenSystemCommons()
-
-
Method Details
-
getBlockTextureFromBlockModel
-
writeBlockTextureFromBlockModel
public static void writeBlockTextureFromBlockModel(String key, net.minecraft.resources.ResourceLocation texture) -
clearCachedBlockTextures
public static void clearCachedBlockTextures() -
escapeTextureFolderHierarchy
public static net.minecraft.resources.ResourceLocation escapeTextureFolderHierarchy(net.minecraft.resources.ResourceLocation texture) -
modifyTexturePath
public static net.minecraft.resources.ResourceLocation modifyTexturePath(net.minecraft.resources.ResourceLocation texture) -
modifyModelParentPath
public static net.minecraft.resources.ResourceLocation modifyModelParentPath(net.minecraft.resources.ResourceLocation modelPath) -
modifyModelPath
public static net.minecraft.resources.ResourceLocation modifyModelPath(net.minecraft.resources.ResourceLocation modelPath)
-