mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-03-04 06:44:40 +01:00
make root registry private, improve comments
This commit is contained in:
parent
17fe7a31ed
commit
fe57475d40
2 changed files with 7 additions and 2 deletions
|
@ -25,7 +25,7 @@ import net.minecraft.resources.ResourceKey;
|
|||
* @see CreateRegistries
|
||||
*/
|
||||
public class CreateBuiltInRegistries {
|
||||
public static final WritableRegistry<WritableRegistry<?>> ROOT_REGISTRY = getRootRegistry();
|
||||
private static final WritableRegistry<WritableRegistry<?>> ROOT_REGISTRY = getRootRegistry();
|
||||
|
||||
public static final Registry<ArmInteractionPointType> ARM_INTERACTION_POINT_TYPE = simple(CreateRegistries.ARM_INTERACTION_POINT_TYPE);
|
||||
public static final Registry<FanProcessingType> FAN_PROCESSING_TYPE = simple(CreateRegistries.FAN_PROCESSING_TYPE);
|
||||
|
@ -62,5 +62,6 @@ public class CreateBuiltInRegistries {
|
|||
@ApiStatus.Internal
|
||||
public static void init() {
|
||||
// make sure the class is loaded.
|
||||
// this method is called at the tail of BuiltInRegistries, injected by a coremod. See it for details.
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
var ASMAPI = Java.type('net.minecraftforge.coremod.api.ASMAPI')
|
||||
|
||||
// Necessary to fix forge being a terrible loader
|
||||
// this is terrible, but Forge has forced our hands.
|
||||
// for some reason, Forge loads half the game with Bootstrap.bootStrap *before* loading mods during datagen.
|
||||
// this is not the case in other entrypoints.
|
||||
// this makes mixins to some important places, like BuiltInRegistries, impossible since mixin isn't
|
||||
// initialized when the class is loaded.
|
||||
function initializeCoreMod() {
|
||||
return {
|
||||
"registrycoremod": {
|
||||
|
|
Loading…
Add table
Reference in a new issue