Class SignTextureConverter
java.lang.Object
net.mcreator.minecraft.SignTextureConverter
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImagetoHangingSignBlockTexture(BufferedImage entityTexture) static BufferedImagetoSignBlockTexture(BufferedImage entityTexture) static BufferedImagetoSignGUITexture(BufferedImage entityTexture)
-
Constructor Details
-
SignTextureConverter
public SignTextureConverter()
-
-
Method Details
-
toSignBlockTexture
- Parameters:
entityTexture- Standing sign texture in the 64x32 entity texture layout- Returns:
- 32x32 block texture for the sign block models
-
toHangingSignBlockTexture
- Parameters:
entityTexture- Hanging sign texture in the 64x32 entity texture layout- Returns:
- 32x32 block texture for the hanging sign block models
-
toSignGUITexture
- Parameters:
entityTexture- Standing sign texture in the 64x32 entity texture layout- Returns:
- 24x26 texture shown in the standing sign edit screen
-