Backport to 1.20.6: Add Deprecation Message for IdMappingEvent (#2716)

Co-authored-by: ChampionAsh5357 <19510740+ChampionAsh5357@users.noreply.github.com>
Co-authored-by: ChampionAsh5357 <ash@ashwork.net>
This commit is contained in:
neoforged-automation[bot] 2025-10-22 11:23:24 -04:00 committed by GitHub
parent 92f33056e6
commit 1d508ab534
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import net.neoforged.jarcompatibilitychecker.gradle.ProvideNeoForgeJarTask
plugins {
id 'java-library'
id 'maven-publish'
id 'net.neoforged.jarcompatibilitychecker' version '0.1.10'
id 'net.neoforged.jarcompatibilitychecker' version '0.1.15'
}
apply plugin: 'net.neoforged.gradleutils'

View File

@ -14,7 +14,6 @@ import java.util.List;
import java.util.Map;
import net.minecraft.resources.ResourceLocation;
import net.neoforged.bus.api.Event;
import net.neoforged.neoforge.common.NeoForge;
/**
* Called whenever the ID mapping might have changed. If you register for this event, you
@ -26,8 +25,10 @@ import net.neoforged.neoforge.common.NeoForge;
* this event to update caches or other in-mod artifacts that might be impacted by an ID
* change.
* <p>
* Fired on the {@link NeoForge#EVENT_BUS forge bus}.
*
* @deprecated This event is no longer fired, use {@link DeferredRegister#addAlias(ResourceLocation, ResourceLocation)} or {@link IRegistryExtension#addAlias(ResourceLocation, ResourceLocation)} instead
*/
@Deprecated(forRemoval = true, since = "1.20.2")
public class IdMappingEvent extends Event {
public static class ModRemapping {
public final ResourceLocation registry;