mirror of
https://github.com/neoforged/NeoForge.git
synced 2026-02-03 18:50:40 -06:00
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:
parent
92f33056e6
commit
1d508ab534
@ -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'
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user