Image
Extends BentoElement.
The image renders an image.
The aspect ratio is enforced when setting the width.
Builders:
builder: The default builder.
Builder methods:
image: The image to use.- getter / setter
Class methods:
isImageMissing: Returnstrueif the image is missing.getTextureWidth: Gets the texture width.getTextureHeight: Gets the texture height.
Example:
Image.builder() .image(Identifier.ofVanilla("textures/paintings/kebab.png")) .width(64) .build();