Search in sources :

Example 1 with GearNamePrefixesEvent

use of net.silentchaos512.gear.api.event.GearNamePrefixesEvent in project Silent-Gear by SilentChaos512.

the class GearHelper method getNamePrefixes.

private static Collection<Component> getNamePrefixes(ItemStack gear, PartDataList parts) {
    GearNamePrefixesEvent event = new GearNamePrefixesEvent(gear, parts);
    MinecraftForge.EVENT_BUS.post(event);
    return event.getPrefixes();
}
Also used : GearNamePrefixesEvent(net.silentchaos512.gear.api.event.GearNamePrefixesEvent)

Aggregations

GearNamePrefixesEvent (net.silentchaos512.gear.api.event.GearNamePrefixesEvent)1