mods.bitwave-studios.com

Overview

This class initializes the entity components for the Wearables mod.

It registers the WearablesComponent to be attached to player entities, allowing them to manage their wearable items.

The component is set to always copy its data when the player respawns, ensuring that wearable items persist through death.

Usage

Use the @Override tag to implement the necessary methods for your custom slot. For example:

@Override
public void registerEntityComponentFactories(EntityComponentFactoryRegistry registry) {
    registry.registerForPlayers(
             WearablesComponents.WEARABLES,
             player -> new WearablesComponentImpl(),
             RespawnCopyStrategy.ALWAYS_COPY
    );
}

Methods

MethodDescription
registerEntityComponentFactories(EntityComponentFactoryRegistry registry)Registers the WearablesComponent to be attached to player entities.

Events

This class does not fire or use any events.