Package net.neoforged.neoforge.common
Class TagConventionLogWarning
java.lang.Object
net.neoforged.neoforge.common.TagConventionLogWarning
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionOld `forge` tags that we migrated to a new tag under a new convention.private static final org.apache.logging.log4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> AbstractMap.SimpleEntry<TagKey<T>, String> createForgeMapEntry(ResourceKey<Registry<T>> registryKey, String tagId1, String tagId2) private static <T,R> AbstractMap.SimpleEntry <TagKey<T>, String> createForgeMapEntry(ResourceKey<Registry<T>> registryKey, String tagId1, TagKey<R> tag2) private static <T,R> AbstractMap.SimpleEntry <TagKey<T>, String> createMapEntry(ResourceKey<Registry<T>> registryKey, String tagNamespace1, String tagId1, TagKey<R> tag2) private static <T,R> AbstractMap.SimpleEntry <TagKey<T>, String> createMapEntry(ResourceKey<Registry<T>> registryKey, String tagNamespace1, String tagId1, TagKey<R>... replacementTags) private static <T> TagKey<T> createTagKey(ResourceKey<Registry<T>> registryKey, String namespace, String tagId) (package private) static voidinit()private static voidsetupLegacyTagWarning(net.neoforged.bus.api.IEventBus forgeBus)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
LEGACY_FORGE_TAGS
Old `forge` tags that we migrated to a new tag under a new convention. May also contain commonly used `forge` tags that are not following convention.
-
-
Constructor Details
-
TagConventionLogWarning
private TagConventionLogWarning()
-
-
Method Details
-
init
static void init() -
setupLegacyTagWarning
private static void setupLegacyTagWarning(net.neoforged.bus.api.IEventBus forgeBus) -
createForgeMapEntry
private static <T> AbstractMap.SimpleEntry<TagKey<T>,String> createForgeMapEntry(ResourceKey<Registry<T>> registryKey, String tagId1, String tagId2) -
createForgeMapEntry
private static <T,R> AbstractMap.SimpleEntry<TagKey<T>,String> createForgeMapEntry(ResourceKey<Registry<T>> registryKey, String tagId1, TagKey<R> tag2) -
createMapEntry
private static <T,R> AbstractMap.SimpleEntry<TagKey<T>,String> createMapEntry(ResourceKey<Registry<T>> registryKey, String tagNamespace1, String tagId1, TagKey<R> tag2) -
createMapEntry
private static <T,R> AbstractMap.SimpleEntry<TagKey<T>,String> createMapEntry(ResourceKey<Registry<T>> registryKey, String tagNamespace1, String tagId1, TagKey<R>... replacementTags) -
createTagKey
private static <T> TagKey<T> createTagKey(ResourceKey<Registry<T>> registryKey, String namespace, String tagId)
-