Class SignTextureConverter

java.lang.Object
net.mcreator.minecraft.SignTextureConverter

public final class SignTextureConverter extends Object
Converts sign textures in the legacy 64x32 entity texture layout (box unwraps of the sign model parts) to the texture layouts used since Minecraft 26.3, where signs are rendered as block models: - 32x32 block texture referenced by the sign block model templates - 24x26 GUI texture used by the standing sign edit screen

Textures with higher resolution than 64x32 are supported as long as they keep the 2:1 aspect ratio.

  • Constructor Details

    • SignTextureConverter

      public SignTextureConverter()
  • Method Details

    • toSignBlockTexture

      public static BufferedImage toSignBlockTexture(BufferedImage entityTexture)
      Parameters:
      entityTexture - Standing sign texture in the 64x32 entity texture layout
      Returns:
      32x32 block texture for the sign block models
    • toHangingSignBlockTexture

      public static BufferedImage toHangingSignBlockTexture(BufferedImage entityTexture)
      Parameters:
      entityTexture - Hanging sign texture in the 64x32 entity texture layout
      Returns:
      32x32 block texture for the hanging sign block models
    • toSignGUITexture

      public static BufferedImage toSignGUITexture(BufferedImage entityTexture)
      Parameters:
      entityTexture - Standing sign texture in the 64x32 entity texture layout
      Returns:
      24x26 texture shown in the standing sign edit screen