-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- rewrote the entire mod - new world generation - new configuration - new registries
- Loading branch information
1 parent
fc71166
commit 390c637
Showing
32 changed files
with
186 additions
and
4,653 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
56 changes: 18 additions & 38 deletions
56
src/main/java/wks/wolfkidsounds/wildplants/Wildplants.java
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,58 +1,38 @@ | ||
package wks.wolfkidsounds.wildplants; | ||
|
||
import net.minecraft.world.item.CreativeModeTab; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.level.block.Blocks; | ||
import net.minecraftforge.common.MinecraftForge; | ||
import net.minecraftforge.eventbus.api.IEventBus; | ||
import net.minecraftforge.fml.ModLoadingContext; | ||
import net.minecraftforge.fml.common.Mod; | ||
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; | ||
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent; | ||
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; | ||
import org.apache.logging.log4j.LogManager; | ||
import org.apache.logging.log4j.Logger; | ||
import wks.wolfkidsounds.wildplants.block.ModBlocks; | ||
import wks.wolfkidsounds.wildplants.config.WildplantsConfig; | ||
import wks.wolfkidsounds.wildplants.config.features.WildplantsFeaturesConfig; | ||
import wks.wolfkidsounds.wildplants.utils.FileUtils; | ||
import wks.wolfkidsounds.wildplants.items.ModItems; | ||
import wks.wolfkidsounds.wildplants.render.ModRenderers; | ||
|
||
// The value here should match an entry in the META-INF/mods.toml file | ||
@Mod("wildplants") | ||
import wks.wolfkidsounds.wildplants.config.Configuration; | ||
import wks.wolfkidsounds.wildplants.config.features.MinecraftConfig; | ||
import wks.wolfkidsounds.wildplants.registry.ModBiomeFeatures; | ||
import wks.wolfkidsounds.wildplants.registry.ModBlocks; | ||
import wks.wolfkidsounds.wildplants.registry.ModItems; | ||
import wks.wolfkidsounds.wildplants.registry.ModPlacementModifiers; | ||
import wks.wolfkidsounds.wildplants.world.RenderSetup; | ||
|
||
@Mod(Wildplants.MOD_ID) | ||
public class Wildplants { | ||
|
||
public static final String MOD_ID = "wildplants"; | ||
public static final Logger LOGGER = LogManager.getLogger(Wildplants.class); | ||
public static final CreativeModeTab ITEM_GROUP = new CreativeModeTab("tab_wild_plants") { | ||
@Override | ||
public ItemStack makeIcon() { | ||
return new ItemStack(Blocks.TALL_GRASS); | ||
} | ||
}; | ||
|
||
public Wildplants() { | ||
IEventBus eventBus = FMLJavaModLoadingContext.get().getModEventBus(); | ||
final IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus(); | ||
|
||
FileUtils.createFolders(); | ||
modEventBus.addListener(CommonSetup::init); | ||
modEventBus.addListener(RenderSetup::init); | ||
|
||
ModLoadingContext.get().registerConfig(net.minecraftforge.fml.config.ModConfig.Type.COMMON, WildplantsConfig.SPEC, "wildplants/wildplants-common.toml"); | ||
ModLoadingContext.get().registerConfig(net.minecraftforge.fml.config.ModConfig.Type.CLIENT, WildplantsFeaturesConfig.SPEC, "wildplants/settings-common.toml"); | ||
ModLoadingContext.get().registerConfig(net.minecraftforge.fml.config.ModConfig.Type.COMMON, Configuration.SPEC, "wildplants/wildplants-common.toml"); | ||
ModLoadingContext.get().registerConfig(net.minecraftforge.fml.config.ModConfig.Type.CLIENT, MinecraftConfig.SPEC, "wildplants/mods/minecraft.toml"); | ||
|
||
ModBlocks.register(eventBus); | ||
ModItems.register(eventBus); | ||
|
||
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup); | ||
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff); | ||
ModItems.ITEMS.register(modEventBus); | ||
ModBlocks.BLOCKS.register(modEventBus); | ||
ModBiomeFeatures.FEATURES.register(modEventBus); | ||
ModPlacementModifiers.PLACEMENT_MODIFIERS.register(modEventBus); | ||
|
||
MinecraftForge.EVENT_BUS.register(this); | ||
} | ||
|
||
private void setup(final FMLCommonSetupEvent event) { | ||
} | ||
|
||
private void doClientStuff(final FMLClientSetupEvent event) { | ||
ModRenderers.registerBlockCutout(); | ||
} | ||
} |
327 changes: 0 additions & 327 deletions
327
src/main/java/wks/wolfkidsounds/wildplants/block/ModBlocks.java
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
src/main/java/wks/wolfkidsounds/wildplants/block/package-info.java
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@ParametersAreNonnullByDefault | ||
@MethodsReturnNonnullByDefault | ||
|
||
package wks.wolfkidsounds.wildplants.block; | ||
|
||
import net.minecraft.MethodsReturnNonnullByDefault; | ||
import javax.annotation.ParametersAreNonnullByDefault; |
42 changes: 0 additions & 42 deletions
42
src/main/java/wks/wolfkidsounds/wildplants/config/CompatConfig.java
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
src/main/java/wks/wolfkidsounds/wildplants/config/WildplantsConfig.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.