Add Parchment mappings

This commit is contained in:
Andrew 2022-08-13 10:16:50 +07:00
parent fe8dee6a34
commit 4aba2b3045
3 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,6 @@
plugins {
id 'net.minecraftforge.gradle' version '5.1.+'
id 'org.parchmentmc.librarian.forgegradle' version '1.+'
}
@ -26,6 +27,7 @@ minecraft {
// Use non-default mappings at your own risk. They may not always work.
// Simply re-run your setup task after changing the mappings to update your workspace.
mappings channel: 'official', version: '1.18.2'
mappings channel: 'parchment', version: '2022.08.07-1.18.2'
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')

View file

@ -2,6 +2,7 @@ pluginManagement {
repositories {
gradlePluginPortal()
maven { url = 'https://maven.minecraftforge.net/' }
maven { url = 'https://maven.parchmentmc.org' }
}
}

View file

@ -19,12 +19,12 @@ import java.util.stream.Collectors;
// The value here should match an entry in the META-INF/mods.toml file
@Mod("enchantmentscraping")
public class Enchantmentscraping {
public class EnchantmentScraping {
// Directly reference a slf4j logger
private static final Logger LOGGER = LogUtils.getLogger();
public Enchantmentscraping() {
public EnchantmentScraping() {
// Register the setup method for modloading
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup);
// Register the enqueueIMC method for modloading