Cleanup Tag Loading, this migrates thins to more of a vanilla style. (#7898)

This commit is contained in:
Cyborgmas authored and GitHub committed 2021-08-30 14:58:30 -07:00
1 parent a336e443f7
commit d17f10d80c
27 files changed
+178 -590

No files matched your search

@@ -20,11 +20,14 @@
package net.minecraftforge.event;
import net.minecraft.tags.TagContainer;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.Event;
/**
* Fired on the client when {@link ITagCollectionSupplier} has all of its tags synced from the server to the client (just after a client has connected).
* Fired on the server when {@link ITagCollectionSupplier} has read all tags from disk (during a data reload).
* Fired on the client when :
* {@link TagContainer} has all of its tags synced from the server to the client (just after a client has connected).
* The integrated server is about to be created see {@link net.minecraft.client.Minecraft#doLoadLevel}
* Fired on the server when {@link TagContainer} has read all tags from disk, during initial load and after the reload command is used
* This event is fired on the {@link MinecraftForge#EVENT_BUS}
* On the client, this event fires on the Client Thread.
* On the server, this event may be fired on the Server Thread, or an async reloader thread.
@@ -45,26 +48,4 @@ public class TagsUpdatedEvent extends Event
{
return manager;
}
/**
* Fired after the Vanilla Tag types have been processed
*/
public static class VanillaTagTypes extends TagsUpdatedEvent
{
public VanillaTagTypes(TagContainer manager)
{
super(manager);
}
}
/**
* Fired after any custom tag types have been processed
*/
public static class CustomTagTypes extends TagsUpdatedEvent
{
public CustomTagTypes(TagContainer manager)
{
super(manager);
}
}
}