-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Removed Architectury dependency - Added version to fabric.mod.json - Removed some unused imports, variables and functions - Bump version to 1.0.3 Need to test the mod on dedicated servers, seems it's not showing pokémon evolutions properly
- Loading branch information
1 parent
cd9f907
commit 401d576
Showing
12 changed files
with
51 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 23 additions & 12 deletions
35
forge/src/main/kotlin/rafacasari/cobbledex/forge/CobbledexForge.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,41 @@ | ||
package rafacasari.cobbledex.forge | ||
|
||
import dev.architectury.platform.forge.EventBuses | ||
import net.minecraft.util.Identifier | ||
import net.minecraftforge.common.MinecraftForge | ||
import net.minecraftforge.eventbus.api.IEventBus | ||
import net.minecraftforge.fml.common.Mod | ||
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext | ||
import net.minecraftforge.fml.loading.FMLEnvironment | ||
import rafacasari.cobbledex.CobbledexImplementation | ||
import rafacasari.cobbledex.Cobbledex | ||
import rafacasari.cobbledex.Cobbledex.init | ||
import rafacasari.cobbledex.Environment | ||
import rafacasari.cobbledex.ModAPI | ||
import net.minecraftforge.registries.ForgeRegistries | ||
import net.minecraftforge.registries.RegisterEvent | ||
import rafacasari.cobbledex.* | ||
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext | ||
|
||
@Mod(Cobbledex.MOD_ID) | ||
class CobbledexForge : CobbledexImplementation { | ||
|
||
private val modBus: IEventBus = FMLJavaModLoadingContext.get().modEventBus | ||
|
||
init { | ||
EventBuses.registerModEventBus(Cobbledex.MOD_ID, FMLJavaModLoadingContext.get().modEventBus) | ||
init(this) | ||
//EventBuses.registerModEventBus(Cobbledex.MOD_ID, FMLJavaModLoadingContext.get().modEventBus) | ||
|
||
Cobbledex.init(this@CobbledexForge) | ||
MinecraftForge.EVENT_BUS.register(this) | ||
} | ||
|
||
|
||
override val modAPI: ModAPI = ModAPI.FORGE | ||
override fun registerItems() { | ||
with(modBus) { | ||
addListener<RegisterEvent> { event -> | ||
event.register(ForgeRegistries.Keys.ITEMS) { | ||
it.register(Identifier(Cobbledex.MOD_ID, "cobbledex_item"), CobbledexConstants.Cobbledex_Item) | ||
} | ||
} | ||
} | ||
} | ||
|
||
override val modAPI: ModAPI = ModAPI.FORGE | ||
|
||
override fun environment(): Environment { | ||
return if (FMLEnvironment.dist.isClient) Environment.CLIENT else Environment.SERVER | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"homepage": "https://modrinth.com/mod/cobbledex", | ||
"promos": { | ||
"1.20.1-latest": "1.0.0", | ||
"1.20.1-recommended": "1.0.0" | ||
"1.20.1-latest": "1.0.3", | ||
"1.20.1-recommended": "1.0.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"pack": { | ||
"description": "Cobbledex resources", | ||
"pack_format": 10, "forge:resource_pack_format": 9, "forge:data_pack_format": 10 | ||
"description": "Cobbledex Resources", | ||
"pack_format": 10 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters