Open main menu
Home
Random
Log in
Settings
About Forge Community Wiki
Disclaimers
Forge Community Wiki
Search
Changes
← Older edit
Registration/1.16
(view source)
Revision as of 15:06, 12 November 2021
5 bytes removed
,
15:06, 12 November 2021
Remove lazy wrap from java example
Line 351:
Line 351:
|java=public static final DeferredRegister<ExampleRegistry> EXAMPLE = DeferredRegister.create(ExampleRegistry.class, MODID);
|java=public static final DeferredRegister<ExampleRegistry> EXAMPLE = DeferredRegister.create(ExampleRegistry.class, MODID);
−
public static final
Lazy
<IForgeRegistry<ExampleRegistry>> REGISTRY =
Lazy.of(
EXAMPLE.makeRegistry("example_registry", RegistryBuilder::new
)
);
+
public static final
Supplier
<IForgeRegistry<ExampleRegistry>> REGISTRY = EXAMPLE.makeRegistry("example_registry", RegistryBuilder::new);
|kotlin=val EXAMPLE: DeferredRegister<ExampleRegistry> = DeferredRegister.create(ExampleRegistry::class.java, MODID)
|kotlin=val EXAMPLE: DeferredRegister<ExampleRegistry> = DeferredRegister.create(ExampleRegistry::class.java, MODID)
ChampionAsh5357
Administrators
,
Interface administrators
,
Keepers of the Keys
213
edits