Skip to content

Commit

Permalink
refactor code: fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
lustig7 committed Dec 30, 2024
1 parent 2f92bdb commit e799510
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 37 deletions.
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ loader_version_range=[4,)

# 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=capacitatoradditions
mod_id=capacitoradditions
# The human-readable display name for the mod.
mod_name=Enderio Capacitator Additions
mod_name=Enderio Capacitor Additions
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=All Rights Reserved
# The mod version. See https://semver.org/
mod_version=0.0.1
mod_version=1.0.1
# 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=net.enderio.capacitatoradditions
mod_group_id=net.enderio.capacitoradditions
# The authors of the mod. This is a simple text string that is used for display purposes in the mod list.
mod_authors=lustig7
# The description of the mod. This is a simple multiline text string that is used for display purposes in the mod list.
mod_description=Adds Allthemodium, Vibranium, and Enderium capacitors to Ender IO, enhancing machine speed and capacity for All the Mods progression.\n
mod_description=Adds Allthemodium, Vibranium, and Enderium capacitors to Ender IO, enhancing machine speed and capacity for faster processing time.\n

## Dependencies

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package net.enderio.capacitoradditions;

import com.enderio.base.api.capacitor.CapacitorData;
import com.mojang.logging.LogUtils;
import item.Items;
import net.enderio.capacitoradditions.component.ModDataComponents;
import net.minecraft.core.registries.Registries;
Expand All @@ -10,7 +8,6 @@
import net.neoforged.api.distmarker.Dist;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.bus.api.SubscribeEvent;
import net.neoforged.fml.InterModComms;
import net.neoforged.fml.ModContainer;
import net.neoforged.fml.common.EventBusSubscriber;
import net.neoforged.fml.common.Mod;
Expand All @@ -22,22 +19,19 @@
import net.neoforged.neoforge.event.server.ServerStartingEvent;
import net.neoforged.neoforge.registries.DeferredHolder;
import net.neoforged.neoforge.registries.DeferredRegister;
import org.slf4j.Logger;

import java.util.Map;

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

public static final String MOD_ID = "capacitatoradditions";
public static final String MOD_ID = "capacitoradditions";

public static final DeferredRegister<CreativeModeTab> CREATIVE_MODE_TABS = DeferredRegister
.create(Registries.CREATIVE_MODE_TAB, MOD_ID);

public static final DeferredHolder<CreativeModeTab, CreativeModeTab> CAPACITOR_TAB = CREATIVE_MODE_TABS
.register("capacitor_tab", () -> CreativeModeTab.builder()
.title(Component.translatable("tab.capacitatoradditions.capacitor"))
.title(Component.translatable("tab.capacitoradditions.capacitor"))

.icon(() -> Items.unobtainium_capacitor.get().getDefaultInstance())
.displayItems((parameters, output) -> {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 6 additions & 0 deletions src/main/resources/assets/capacitoradditions/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"item.capacitoradditions.allthemodium_capacitor": "Allthemodium Capacitor",
"item.capacitoradditions.vibranium_capacitor": "Vibranium Capacitor",
"item.capacitoradditions.unobtainium_capacitor": "Unobtainium Capacitor",
"tab.capacitoradditions.capacitor": "Capacitors"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "capacitoradditions:item/allthemodium_capacitor"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "capacitoradditions:item/unobtainium_capacitor"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "capacitatoradditions:item/vibranium_capacitor"
"layer0": "capacitoradditions:item/vibranium_capacitor"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"pattern": [" AG", "ADA", "GA "],
"result": {
"count": 1,
"id": "capacitatoradditions:allthemodium_capacitor"
"id": "capacitoradditions:allthemodium_capacitor"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"category": "misc",
"key": {
"C": {
"item": "capacitatoradditions:vibranium_capacitor"
"item": "capacitoradditions:vibranium_capacitor"
},
"G": {
"item": "enderio:grains_of_infinity"
Expand All @@ -15,6 +15,6 @@
"pattern": [" I ", "CGC", " I "],
"result": {
"count": 1,
"id": "capacitatoradditions:unobtainium_capacitor"
"id": "capacitoradditions:unobtainium_capacitor"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"category": "misc",
"key": {
"A": {
"item": "capacitatoradditions:allthemodium_capacitor"
"item": "capacitoradditions:allthemodium_capacitor"
},
"C": {
"item": "enderio:powdered_coal"
Expand All @@ -15,6 +15,6 @@
"pattern": [" I ", "ACA", " I "],
"result": {
"count": 1,
"id": "capacitatoradditions:vibranium_capacitor"
"id": "capacitoradditions:vibranium_capacitor"
}
}

0 comments on commit e799510

Please sign in to comment.