Class MinecraftImageGenerator.Preview

java.lang.Object
net.mcreator.minecraft.MinecraftImageGenerator.Preview
Enclosing class:
MinecraftImageGenerator

public static class MinecraftImageGenerator.Preview extends Object
  • Constructor Details

    • Preview

      public Preview()
  • Method Details

    • generateArmorPreviewFrame1

      public static Image generateArmorPreviewFrame1()
    • generateArmorPreviewFrame2

      public static Image 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 recipe
      result - 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
      012
      345
      678

      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

      public static BufferedImage generateCommandPreviewPicture(String command, String procedurexml)

      This method generates the command image preview.

      Parameters:
      command -

      The command.

      Returns:

      Returns generated image.

    • generateKeybindPreviewPicture

      public static BufferedImage generateKeybindPreviewPicture(String keybind)

      This method generates key binding images.

      Parameters:
      keybind -

      The key binding.

      Returns:

      Returns generated image.

    • generateCreativeTabPreviewPicture

      public static BufferedImage generateCreativeTabPreviewPicture(Workspace workspace, MItemBlock item)

      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

      public static BufferedImage generateArmorPreviewPicture(List<Image> armorPieces)

      This method generates armor images.

      Parameters:
      armorPieces -

      These textures are used to assemble the armor image.

      Returns:

      Returns generated image.

    • generateBlockIcon

      public static Image generateBlockIcon(Image top, Image left, Image front)

      This method generates the block icon.

      Parameters:
      top -

      Top side texture

      left -

      Front side texture

      front -

      Right side texture

      Returns:

      Returns generated image.

    • generateSlabIcon

      public static Image generateSlabIcon(Image top, Image side)

      This method generates the block icon for slabs.

      Parameters:
      top -

      Top side texture

      side -

      Side texture

      Returns:

      Returns generated image.

    • generateTrapdoorIcon

      public static Image generateTrapdoorIcon(Image texture)

      This method generates the block icon for trapdoors.

      Parameters:
      texture -

      Block texture

      Returns:

      Returns generated image.

    • generateStairsIcon

      public static Image generateStairsIcon(Image top, Image side)

      This method generates the block icon for stairs.

      Parameters:
      top -

      Top side texture

      side -

      Side texture

      Returns:

      Returns generated image.

    • generateWallIcon

      public static Image generateWallIcon(Image texture)

      This method generates the block icon for walls.

      Parameters:
      texture -

      Block texture

      Returns:

      Returns generated image.

    • generateFenceIcon

      public static Image generateFenceIcon(Image texture)

      This method generates the block icon for fences.

      Parameters:
      texture -

      Block texture

      Returns:

      Returns generated image.

    • generateFenceGateIcon

      public static Image generateFenceGateIcon(Image texture)

      This method generates the block icon for fence gates.

      Parameters:
      texture -

      Block texture

      Returns:

      Returns generated image.

    • generateEndRodIcon

      public static Image generateEndRodIcon(Image texture)

      This method generates the block icon for end rods.

      Parameters:
      texture -

      Block texture

      Returns:

      Returns generated image.

    • generatePressurePlateIcon

      public static Image generatePressurePlateIcon(Image texture)

      This method generates the block icon for pressure plate.

      Parameters:
      texture -

      Block texture

      Returns:

      Returns generated image.

    • generateButtonIcon

      public static Image generateButtonIcon(Image texture)

      This method generates the block icon for button.

      Parameters:
      texture -

      Block texture

      Returns:

      Returns generated image.

    • generatePotionIcon

      public static BufferedImage generatePotionIcon(Color color)

      This method generates the potion bottle icon for potions.

      Parameters:
      color -

      Color of the potion

      Returns:

      Returns generated image.

    • generatePotionEffectIcon

      public static BufferedImage generatePotionEffectIcon(Image icon)

      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 instead
      undergroundBlock - 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

      public static BufferedImage generatePaintingPreviewPicture(Image texture, int width, int height)
      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

      public static BufferedImage generateGameRulePreviewPicture(String type)
      This method generates game rule images.
      Parameters:
      type - Game rule type string.
      Returns:
      Returns generated image.