Package net.minecraftforge.fml.network
Class FMLPlayMessages.SyncCustomTagTypes
java.lang.Object
net.minecraftforge.fml.network.FMLPlayMessages.SyncCustomTagTypes
- Enclosing class:
- FMLPlayMessages
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<ResourceLocation,
ITagCollection<?>> private static final org.apache.logging.log4j.Logger
-
Constructor Summary
ConstructorDescriptionSyncCustomTagTypes
(Map<ResourceLocation, ITagCollection<?>> customTagTypeCollections) -
Method Summary
Modifier and TypeMethodDescriptiondecode
(PacketBuffer buf) static void
private static <T> void
forgeTagCollectionWrite
(PacketBuffer buf, ResourceLocation registryName, Map<ResourceLocation, ITag<T>> tags) static void
private static <T extends IForgeRegistryEntry<T>>
ITagCollection<T>readTagCollection
(PacketBuffer buf, IForgeRegistry<T> registry)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
customTagTypeCollections
-
-
Constructor Details
-
SyncCustomTagTypes
SyncCustomTagTypes(Map<ResourceLocation, ITagCollection<?>> customTagTypeCollections)
-
-
Method Details
-
getCustomTagTypes
-
encode
-
forgeTagCollectionWrite
private static <T> void forgeTagCollectionWrite(PacketBuffer buf, ResourceLocation registryName, Map<ResourceLocation, ITag<T>> tags) -
decode
-
readTagCollection
private static <T extends IForgeRegistryEntry<T>> ITagCollection<T> readTagCollection(PacketBuffer buf, IForgeRegistry<T> registry) -
handle
public static void handle(FMLPlayMessages.SyncCustomTagTypes msg, Supplier<NetworkEvent.Context> ctx)
-