mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 05:02:18 +00:00
[1.17.x Omnibus] Fix typos and javadocs across code base (#8144)
This commit is contained in:
1 parent
df8954869a
commit
b4feee8046
163 files changed
+708
-454
No files matched your search
@@ -40,7 +40,7 @@ import java.util.function.Supplier;
|
||||
* Suppliers should return NEW instances every time.
|
||||
*
|
||||
*Example Usage:
|
||||
*<pre>
|
||||
*<pre>{@code
|
||||
* private static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, MODID);
|
||||
* private static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, MODID);
|
||||
*
|
||||
@@ -51,7 +51,7 @@ import java.util.function.Supplier;
|
||||
* ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus());
|
||||
* BLOCKS.register(FMLJavaModLoadingContext.get().getModEventBus());
|
||||
* }
|
||||
*</pre>
|
||||
*}</pre>
|
||||
*
|
||||
* @param <T> The base registry type, must be a concrete base class, do not use subclasses or wild cards.
|
||||
*/
|
||||
|
||||
@@ -58,6 +58,7 @@ import net.minecraft.world.level.levelgen.feature.treedecorators.TreeDecoratorTy
|
||||
import net.minecraftforge.common.Tags;
|
||||
import net.minecraftforge.common.loot.GlobalLootModifierSerializer;
|
||||
import net.minecraftforge.common.world.ForgeWorldType;
|
||||
import net.minecraftforge.fmllegacy.common.registry.GameRegistry;
|
||||
|
||||
/**
|
||||
* A class that exposes static references to all vanilla and Forge registries.
|
||||
|
||||
@@ -663,7 +663,7 @@ public class ForgeRegistry<V extends IForgeRegistryEntry<V>> implements IForgeRe
|
||||
|
||||
/**
|
||||
* Used to control the times where people can modify this registry.
|
||||
* Users should only ever register things in the Register<?> events!
|
||||
* Users should only ever register things in the {@literal Register<?>} events!
|
||||
*/
|
||||
public void freeze()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user