AzureLib

Adding Default AzLayers

How to add Default AzLayers

AzureLib provides several default layers (AzLayers) that can be easily added to your entity renders. Some of the commonly available AzLayers include:

  • AzArmorLayer: Handles rendering of armor models for entities.
  • AzAutoGlowingLayer: Adds glowing effects to specific parts of the model based on the provided textures.
  • AzBlockAndItemLayer: Manages rendering of blocks or items held by entities.

You can add these layers to your renderer by customizing the AzRendererConfig during its setup process.

Example Usage

public class MarauderRenderer extends AzEntityRenderer<MarauderEntity> {
public MarauderRenderer(EntityRendererProvider.Context context) {
super(
AzEntityRendererConfig.<MarauderEntity>builder(MODEL, TEXTURE)
.addRenderLayer(new AzAutoGlowingLayer<>()) // Adds the glowing layer
.build(),
context
);
}
}