Files
MinecraftForge/patches/minecraft/net/minecraft/data/BuiltinRegistries.java.patch
T
4ed9117799 Forge 1.19
* Bump pack.mcmeta formats
* 1.19 biome modifiers
* Mark ClientPlayerNetworkEvent.LoggedOutEvent's getters as nullable
* Add docs and package-info to client extension interfaces package
* Move RenderBlockOverlayEvent hooks to ForgeHooksClient
* Add package-infos to client events package
* Rename SoundLoadEvent to SoundEngineLoadEvent

This reduces confusion from consumers which may think the
name SoundLoadEvent refers to an individual sound being loaded rather
than the sound engine.
* Document and change SoundLoadEvent to fire on mod bus

Previously, it fired on both the mod bus and the Forge bus, which is
confusing for consumers.
* Delete SoundSetupEvent

Looking at its original implementation shows that there isn't an
appropriate place in the new sound code to reinsert the event, and the
place of 'sound engine/manager initialization event' is taken already by SoundLoadEvent.
* Perform some cleanup on client events

 - Removed nullable annotations from ClientPlayerNetworkEvent
 - Renamed #getPartialTicks methods to #getPartialTick, to be consistent
  with vanilla's naming of the partial tick
 - Cleanup documentation to remove line breaks, use the
  spelling 'cancelled' over
  'canceled', and improve docs on existing and
   new methods.
* Remove EntityEvent.CanUpdate

Closes MinecraftForge/MinecraftForge#6394
* Switch to Jetbrains nullability annotations
* New PlayLevelSoundEvent; replaces old PlaySoundAtEntityEvent
* Remove ForgeWorldPresetScreens
* Remove IForgeRegistryEntry
* Remove use of List<Throwable> in FML's CompletableFutures
* Add docs to mod loading stages, stages, and phases
* Gradle 7.4.2
* Use SLF4J in FMLLoader and other subprojects
* Switch dynamic versions in subprojects to pinned ones
* Switch ForgeRoot and MDK to FG plugin markers
* Configure Forge javadoc task

The task now uses a custom stylesheet with MCForge elements, and
configured to combine the generation from the four FML subprojects
(fmlloader, fmlcore, javafmllanguage, mclanguage) and the Forge project
into the javadoc output.
* Update docs/md files, for 1.19 update and the move away from IRC to Discord.
* Make "Potentially dangerous alternative prefix" a debug warning, not info.

Co-authored-by: Curle <[email protected]>
Co-authored-by: sciwhiz12 <[email protected]>
Signed-off-by: SizableShrimp <[email protected]>
2022-06-07 15:31:26 -05:00

23 lines
1.5 KiB
Diff

--- a/net/minecraft/data/BuiltinRegistries.java
+++ b/net/minecraft/data/BuiltinRegistries.java
@@ -60,7 +_,7 @@
return ProcessorLists.f_127199_;
});
public static final Registry<StructureTemplatePool> f_123864_ = m_236001_(Registry.f_122884_, Pools::m_236491_);
- public static final Registry<Biome> f_123865_ = m_236001_(Registry.f_122885_, Biomes::m_236652_);
+ @Deprecated public static final Registry<Biome> f_123865_ = forge(Registry.f_122885_, Biomes::m_236652_);
public static final Registry<NormalNoise.NoiseParameters> f_194654_ = m_236001_(Registry.f_194568_, NoiseData::m_236475_);
public static final Registry<DensityFunction> f_211085_ = m_236001_(Registry.f_211074_, NoiseRouterData::m_224458_);
public static final Registry<NoiseGeneratorSettings> f_123866_ = m_236001_(Registry.f_122878_, NoiseGeneratorSettings::m_224383_);
@@ -71,6 +_,10 @@
private static <T> Registry<T> m_236001_(ResourceKey<? extends Registry<T>> p_236002_, BuiltinRegistries.RegistryBootstrap<T> p_236003_) {
return m_235992_(p_236002_, Lifecycle.stable(), p_236003_);
+ }
+
+ private static <T> Registry<T> forge(ResourceKey<? extends Registry<T>> key, BuiltinRegistries.RegistryBootstrap<T> bootstrap) {
+ return m_235996_(key, net.minecraftforge.registries.GameData.getWrapper(key, Lifecycle.stable()), bootstrap, Lifecycle.stable());
}
private static <T> Registry<T> m_235992_(ResourceKey<? extends Registry<T>> p_235993_, Lifecycle p_235994_, BuiltinRegistries.RegistryBootstrap<T> p_235995_) {