FmmReloadListener

public class FmmReloadListener implements Listener

Listens for com.magmaguy.freeminecraftmodels.api.FmmReloadedEvent and re-attaches the FMM display to every tracked NPC. Required because FMM's reload tears down every DynamicEntity, leaving every NPC's cached customModel pointing at a destroyed display entity — the villager survives but is no longer visually wrapped, so it shows as an invisible mob to viewers.

Registered in EventsRegistrer only when this class loads (i.e. FMM is on the classpath); without FMM the class is unreferenced and no listener registers.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
public void onFmmReloaded(FmmReloadedEvent event)