Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

改名字 #11

Merged
merged 1 commit into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ mapping_version=2023.09.03-1.20.1

# The unique mod identifier for the mod. Must be lowercase in English locale. Must fit the regex [a-z][a-z0-9_]{1,63}
# Must match the String constant located in the main mod class annotated with @Mod.
mod_id=nucleardelight
mod_id=nuclearelysian
# The human-readable display name for the mod.
mod_name=NuclearDelight
mod_name=NuclearElysian
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=GPL-3.0
# The mod version. See https://semver.org/
mod_version=1.0-SNAPSHOT
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
mod_group_id=com.gensokyo
mod_group_id=org.hiedacamellia
# The authors of the mod. This is a simple text string that is used for display purposes in the mod list.
mod_authors=
# The description of the mod. This is a simple multiline text string that is used for display purposes in the mod list.
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0'
}

rootProject.name = 'NuclearDelight'
rootProject.name = 'NuclearElysian'
2 changes: 1 addition & 1 deletion src/main/java/org/hiedacamellia/nuclearelysian/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

// An example config class. This is not required, but it's a good idea to have one to keep your config organized.
// Demonstrates how to use Forge's config APIs
@Mod.EventBusSubscriber(modid = NuclearDelight.MODID, bus = Mod.EventBusSubscriber.Bus.MOD)
@Mod.EventBusSubscriber(modid = NuclearElysian.MODID, bus = Mod.EventBusSubscriber.Bus.MOD)
public class Config
{
private static final ForgeConfigSpec.Builder BUILDER = new ForgeConfigSpec.Builder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
import java.util.function.Supplier;

// The value here should match an entry in the META-INF/mods.toml file
@Mod(NuclearDelight.MODID)
public class NuclearDelight {
@Mod(NuclearElysian.MODID)
public class NuclearElysian {

// Define mod id in a common place for everything to reference
public static final String MODID = "nucleardelight";
Expand Down Expand Up @@ -75,7 +75,7 @@ public class NuclearDelight {

public static List<RegistryObject<Item>> RegisteredItems = new ArrayList<>();

public NuclearDelight() {
public NuclearElysian() {
IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();

// Register the commonSetup method for modloading
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.hiedacamellia.nuclearelysian.datagenerator;

import org.hiedacamellia.nuclearelysian.NuclearDelight;
import org.hiedacamellia.nuclearelysian.NuclearElysian;
import net.minecraft.data.PackOutput;
import net.minecraft.world.item.Item;
import net.minecraftforge.common.data.ExistingFileHelper;
Expand All @@ -18,9 +18,9 @@ public static void dataGen(GatherDataEvent event) {
PackOutput packOutput = event.getGenerator().getPackOutput();
ExistingFileHelper existingFileHelper = event.getExistingFileHelper();

List<Item> items = NuclearDelight.RegisteredItems.stream().map(RegistryObject::get).toList();
List<Item> items = NuclearElysian.RegisteredItems.stream().map(RegistryObject::get).toList();
event.getGenerator().addProvider(true, new SingleTextureItemModelGenerator(items, packOutput, existingFileHelper));

NuclearDelight.LangKeyValuePairs.forEach((lang, name) -> event.getGenerator().addProvider(true, new LangGenerator(packOutput, lang)));
NuclearElysian.LangKeyValuePairs.forEach((lang, name) -> event.getGenerator().addProvider(true, new LangGenerator(packOutput, lang)));
}
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package org.hiedacamellia.nuclearelysian.datagenerator;

import org.hiedacamellia.nuclearelysian.NuclearDelight;
import org.hiedacamellia.nuclearelysian.NuclearElysian;
import net.minecraft.data.PackOutput;
import net.minecraftforge.common.data.LanguageProvider;

public class LangGenerator extends LanguageProvider {
public LangGenerator(PackOutput output, String locale) {
super(output, NuclearDelight.MODID, locale);
super(output, NuclearElysian.MODID, locale);
this.locale = locale;
}

private final String locale;

@Override
protected void addTranslations() {
NuclearDelight.LangKeyValuePairs.get(locale).forEach((key, value) -> add(key.get(), value));
NuclearElysian.LangKeyValuePairs.get(locale).forEach((key, value) -> add(key.get(), value));
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.hiedacamellia.nuclearelysian.datagenerator;

import org.hiedacamellia.nuclearelysian.NuclearDelight;
import org.hiedacamellia.nuclearelysian.NuclearElysian;
import net.minecraft.data.PackOutput;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.Item;
Expand All @@ -14,7 +14,7 @@ public class SingleTextureItemModelGenerator extends ItemModelProvider {
private final Collection<Item> items;

public SingleTextureItemModelGenerator(Collection<Item> items, PackOutput output, ExistingFileHelper existingFileHelper) {
super(output, NuclearDelight.MODID, existingFileHelper);
super(output, NuclearElysian.MODID, existingFileHelper);
this.items = items;
}

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"required": true,
"minVersion": "0.8",
"package": "com.gensokyo.nucleardelight.mixin",
"package": "org.hiedacamellia.nuclearelysian.mixin",
"compatibilityLevel": "JAVA_8",
"refmap": "NuclearDelight.refmap.json",
"refmap": "NuclearElysian.refmap.json",
"mixins": [
],
"client": [
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pack": {
"description": "nucleardelight resources",
"description": "nuclearelysian resources",
"pack_format": 15,
"forge:server_data_pack_format": 12
}
Expand Down