Class MinecraftImageGenerator.Preview
- Enclosing class:
MinecraftImageGenerator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImage
generateAchievementPreviewPicture
(Workspace workspace, MItemBlock achievementIcon, String name) This method generates achievement images.static Image
static Image
static BufferedImage
generateArmorPreviewPicture
(List<Image> armorPieces) This method generates armor images.static BufferedImage
generateBiomePreviewPicture
(Workspace workspace, Color airColor, Color grassColor, Color waterColor, MItemBlock groundBlock, MItemBlock undergroundBlock, int treesPerChunk, int treeType, MItemBlock treeStem, MItemBlock treeBranch) This method generates biome images.static BufferedImage
generateBlastingPreviewPicture
(Workspace workspace, MItemBlock input, MItemBlock result) This method generates blasting recipe images.static Image
generateBlockIcon
(Image top, Image left, Image front) This method generates the block icon.static BufferedImage
generateBrewingPreviewPicture
(Workspace workspace, MItemBlock input, MItemBlock ingredient, MItemBlock result) This method generates brewing recipe images.static Image
generateButtonIcon
(Image texture) This method generates the block icon for button.static BufferedImage
generateCampfirePreviewPicture
(Workspace workspace, MItemBlock input, MItemBlock result) This method generates campfire recipe images.static BufferedImage
generateCommandPreviewPicture
(String command, String procedurexml) This method generates the command image preview.static BufferedImage
generateCreativeTabPreviewPicture
(Workspace workspace, MItemBlock item) This method generates creative tab images.static BufferedImage
generateDimensionPreviewPicture
(Workspace workspace, Image portalTexture, Image triggerTexture, MItemBlock portalFrameTexture, boolean isIgniterEnabled) This method generates dimension images.static Image
generateEndRodIcon
(Image texture) This method generates the block icon for end rods.static Image
generateFenceGateIcon
(Image texture) This method generates the block icon for fence gates.static Image
generateFenceIcon
(Image texture) This method generates the block icon for fences.static BufferedImage
This method generates game rule images.static BufferedImage
generateKeybindPreviewPicture
(String keybind) This method generates key binding images.static BufferedImage
generateMobPreviewPicture
(Image mobModelTexture, Color spawnEggBaseColor, Color spawnEggDotColor, boolean hasSpawnEgg) This method generates mob images.static BufferedImage
generatePaintingPreviewPicture
(Image texture, int width, int height) This method generates painting images.static BufferedImage
generateParticlePreviewPicture
(Image texture, boolean tiled, String randomSeed) This method generates particle images.static BufferedImage
This method generates the potion effect icons.static BufferedImage
generatePotionIcon
(Color color) This method generates the potion bottle icon for potions.static Image
generatePressurePlateIcon
(Image texture) This method generates the block icon for pressure plate.static BufferedImage
generateProcedurePreviewPicture
(String procedurexml, List<Dependency> dependencies) This method generates procedure images.static BufferedImage
generateRecipePreviewPicture
(Workspace workspace, MItemBlock[] recipe, MItemBlock result) This method generates recipe images.static Image
generateSlabIcon
(Image top, Image side) This method generates the block icon for slabs.static BufferedImage
generateSmithingPreviewPicture
(Workspace workspace, MItemBlock template, MItemBlock input, MItemBlock addition) This method generates smithing recipe images.static BufferedImage
generateSmokingPreviewPicture
(Workspace workspace, MItemBlock input, MItemBlock result) This method generates smoking recipe images.static Image
generateStairsIcon
(Image top, Image side) This method generates the block icon for stairs.static BufferedImage
generateStoneCuttingPreviewPicture
(Workspace workspace, MItemBlock input, MItemBlock result) This method generates stone cutter recipe images.static Image
generateTrapdoorIcon
(Image texture) This method generates the block icon for trapdoors.static Image
generateWallIcon
(Image texture) This method generates the block icon for walls.
-
Constructor Details
-
Preview
public Preview()
-
-
Method Details
-
generateArmorPreviewFrame1
-
generateArmorPreviewFrame2
-
generateBlastingPreviewPicture
public static BufferedImage generateBlastingPreviewPicture(Workspace workspace, MItemBlock input, MItemBlock result) This method generates blasting recipe images.
- Parameters:
input
- Input of the recipe.result
- Result of the recipe.- Returns:
- Returns the generated image.
-
generateSmithingPreviewPicture
public static BufferedImage generateSmithingPreviewPicture(Workspace workspace, MItemBlock template, MItemBlock input, MItemBlock addition) This method generates smithing recipe images.
- Parameters:
template
- Template of the recipe.input
- Input of the recipe.addition
- Addition of the recipe.- Returns:
- Returns the generated image.
-
generateBrewingPreviewPicture
public static BufferedImage generateBrewingPreviewPicture(Workspace workspace, MItemBlock input, MItemBlock ingredient, MItemBlock result) This method generates brewing recipe images.
- Parameters:
input
- Input of the recipe.ingredient
- Ingredient of the reciperesult
- Result of the recipe.- Returns:
- Returns the generated image.
-
generateSmokingPreviewPicture
public static BufferedImage generateSmokingPreviewPicture(Workspace workspace, MItemBlock input, MItemBlock result) This method generates smoking recipe images.
- Parameters:
input
- Input of the recipe.result
- Result of the recipe.- Returns:
- Returns the generated image.
-
generateStoneCuttingPreviewPicture
public static BufferedImage generateStoneCuttingPreviewPicture(Workspace workspace, MItemBlock input, MItemBlock result) This method generates stone cutter recipe images.
- Parameters:
input
- Input of the recipe.result
- Result of the recipe.- Returns:
- Returns the generated image.
-
generateCampfirePreviewPicture
public static BufferedImage generateCampfirePreviewPicture(Workspace workspace, MItemBlock input, MItemBlock result) This method generates campfire recipe images.
- Parameters:
input
- Input of the recipe.result
- Result of the recipe.- Returns:
- Returns the generated image.
-
generateRecipePreviewPicture
public static BufferedImage generateRecipePreviewPicture(Workspace workspace, MItemBlock[] recipe, MItemBlock result) This method generates recipe images.
- Parameters:
recipe
-The recipe field is an ArrayList of Images. If containing 1 element, it generates furnace recipe picture. If it contains 9 elements it creates a crafting recipe and are inserted as shown in the table:
Recipe slot IDs 0 1 2 3 4 5 6 7 8 Null elements are ignored/not drawn.
result
- Result of a recipe is only drawn on furnace recipes.- Returns:
- Returns generated image.
-
generateAchievementPreviewPicture
public static BufferedImage generateAchievementPreviewPicture(Workspace workspace, MItemBlock achievementIcon, String name) This method generates achievement images.
- Parameters:
achievementIcon
-Achievement's icon
name
-Name of the achievement
- Returns:
Returns generated image.
-
generateCommandPreviewPicture
This method generates the command image preview.
- Parameters:
command
-The command.
- Returns:
Returns generated image.
-
generateKeybindPreviewPicture
This method generates key binding images.
- Parameters:
keybind
-The key binding.
- Returns:
Returns generated image.
-
generateCreativeTabPreviewPicture
This method generates creative tab images.
- Parameters:
item
-The item used as tab's icon.
- Returns:
Returns generated image.
-
generateDimensionPreviewPicture
public static BufferedImage generateDimensionPreviewPicture(Workspace workspace, Image portalTexture, Image triggerTexture, MItemBlock portalFrameTexture, boolean isIgniterEnabled) This method generates dimension images.
- Parameters:
portalTexture
-This texture is used for portal's inner filler.
triggerTexture
-This texture is used for portal's igniter texture above portal.
portalFrameTexture
-The item provided is used to calculate it's average color for portal's frame.
isIgniterEnabled
-Whether the portal's igniter is enabled or not.
- Returns:
Returns generated image.
-
generateArmorPreviewPicture
This method generates armor images.
- Parameters:
armorPieces
-These textures are used to assemble the armor image.
- Returns:
Returns generated image.
-
generateBlockIcon
This method generates the block icon.
- Parameters:
top
-Top side texture
left
-Front side texture
front
-Right side texture
- Returns:
Returns generated image.
-
generateSlabIcon
This method generates the block icon for slabs.
- Parameters:
top
-Top side texture
side
-Side texture
- Returns:
Returns generated image.
-
generateTrapdoorIcon
This method generates the block icon for trapdoors.
- Parameters:
texture
-Block texture
- Returns:
Returns generated image.
-
generateStairsIcon
This method generates the block icon for stairs.
- Parameters:
top
-Top side texture
side
-Side texture
- Returns:
Returns generated image.
-
generateWallIcon
This method generates the block icon for walls.
- Parameters:
texture
-Block texture
- Returns:
Returns generated image.
-
generateFenceIcon
This method generates the block icon for fences.
- Parameters:
texture
-Block texture
- Returns:
Returns generated image.
-
generateFenceGateIcon
This method generates the block icon for fence gates.
- Parameters:
texture
-Block texture
- Returns:
Returns generated image.
-
generateEndRodIcon
This method generates the block icon for end rods.
- Parameters:
texture
-Block texture
- Returns:
Returns generated image.
-
generatePressurePlateIcon
This method generates the block icon for pressure plate.
- Parameters:
texture
-Block texture
- Returns:
Returns generated image.
-
generateButtonIcon
This method generates the block icon for button.
- Parameters:
texture
-Block texture
- Returns:
Returns generated image.
-
generatePotionIcon
This method generates the potion bottle icon for potions.
- Parameters:
color
-Color of the potion
- Returns:
Returns generated image.
-
generatePotionEffectIcon
This method generates the potion effect icons.
- Parameters:
icon
-Effect icon
- Returns:
Returns generated image.
-
generateBiomePreviewPicture
public static BufferedImage generateBiomePreviewPicture(Workspace workspace, Color airColor, Color grassColor, Color waterColor, MItemBlock groundBlock, MItemBlock undergroundBlock, int treesPerChunk, int treeType, MItemBlock treeStem, MItemBlock treeBranch) This method generates biome images.- Parameters:
airColor
- Biome's air color.grassColor
- Biome's grass color.waterColor
- Biome's water color.groundBlock
- Block used to calculate ground color. If grass, uses grass color insteadundergroundBlock
- Block used to calculate underground color.treesPerChunk
- If there are any, a tree renders.treeType
- Use default colors if vanilla.treeStem
- Item used to calculate tree stem color.treeBranch
- Item used to calculate tree branch/leaf color.- Returns:
- Returns generated image.
-
generateMobPreviewPicture
public static BufferedImage generateMobPreviewPicture(Image mobModelTexture, Color spawnEggBaseColor, Color spawnEggDotColor, boolean hasSpawnEgg) This method generates mob images.- Parameters:
mobModelTexture
- LivingEntity model full texture.spawnEggBaseColor
- Spawn egg's base (egg) color.spawnEggDotColor
- Spawn egg's detail (dot) color.hasSpawnEgg
- Toggle spawn egg rendering.- Returns:
- Returns generated image.
-
generatePaintingPreviewPicture
This method generates painting images.- Parameters:
texture
- Painting's texture.width
- Painting's width.height
- Painting's height.- Returns:
- Returns generated image.
-
generateProcedurePreviewPicture
public static BufferedImage generateProcedurePreviewPicture(String procedurexml, List<Dependency> dependencies) This method generates procedure images.- Parameters:
procedurexml
- LivingEntity model full texture.dependencies
- Spawn egg's base (egg) color.- Returns:
- Returns generated image.
-
generateParticlePreviewPicture
public static BufferedImage generateParticlePreviewPicture(Image texture, boolean tiled, String randomSeed) This method generates particle images.- Parameters:
texture
- Particle's texture.tiled
- If the texture is tiled.- Returns:
- Returns generated image.
-
generateGameRulePreviewPicture
This method generates game rule images.- Parameters:
type
- Game rule type string.- Returns:
- Returns generated image.
-