-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update to 24w12a - Dropped Columns support - Refactored registration of content - Capybara variants are now data-driven
- Loading branch information
Showing
1,141 changed files
with
23,027 additions
and
22,958 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,58 @@ | ||
package fr.hugman.promenade; | ||
|
||
import fr.hugman.dawn.Registrar; | ||
import com.google.common.reflect.Reflection; | ||
import fr.hugman.promenade.block.PromenadeBlocks; | ||
import fr.hugman.promenade.boat.PromenadeBoatTypes; | ||
import fr.hugman.promenade.config.PromenadeConfig; | ||
import fr.hugman.promenade.entity.PromenadeEntityTypes; | ||
import fr.hugman.promenade.entity.ai.brain.sensor.PromenadeSensorTypes; | ||
import fr.hugman.promenade.entity.data.PromenadeTrackedData; | ||
import fr.hugman.promenade.registry.content.*; | ||
import fr.hugman.promenade.item.PromenadeItems; | ||
import fr.hugman.promenade.registry.PromenadeRegistries; | ||
import fr.hugman.promenade.sound.PromenadeSoundEvents; | ||
import fr.hugman.promenade.world.biome.PromenadeBiomes; | ||
import fr.hugman.promenade.world.gen.feature.PromenadeFeatures; | ||
import fr.hugman.promenade.world.gen.feature.PromenadePlacedFeatures; | ||
import fr.hugman.promenade.world.gen.placement_modifier.PromenadePlacementModifierTypes; | ||
import fr.hugman.promenade.world.gen.tree.foliage.PromenadeFoliagePlacerTypes; | ||
import fr.hugman.promenade.world.gen.tree.trunk.PromenadeTrunkPlacerTypes; | ||
import me.shedaniel.autoconfig.AutoConfig; | ||
import me.shedaniel.autoconfig.serializer.GsonConfigSerializer; | ||
import me.shedaniel.autoconfig.serializer.PartitioningSerializer; | ||
import net.fabricmc.api.ModInitializer; | ||
import net.fabricmc.loader.api.FabricLoader; | ||
import net.minecraft.util.Identifier; | ||
import org.apache.logging.log4j.LogManager; | ||
import org.apache.logging.log4j.Logger; | ||
|
||
public class Promenade implements ModInitializer { | ||
public static final Registrar REGISTRAR = new Registrar("promenade"); | ||
public static final Logger LOGGER = LogManager.getLogger(); | ||
public static final PromenadeConfig CONFIG = AutoConfig.register(PromenadeConfig.class, PartitioningSerializer.wrap(GsonConfigSerializer::new)).getConfig(); | ||
|
||
@Override | ||
public void onInitialize() { | ||
PromenadeTrackedData.init(); | ||
PromenadeSensorTypes.register(REGISTRAR); | ||
|
||
AnimalContent.register(REGISTRAR); | ||
MonsterContent.register(REGISTRAR); | ||
|
||
CommonContent.register(REGISTRAR); | ||
VanillaPilesContent.register(REGISTRAR); | ||
FoodContent.register(REGISTRAR); | ||
IgneousContent.register(REGISTRAR); | ||
|
||
SakuraContent.register(REGISTRAR); | ||
MapleContent.register(REGISTRAR); | ||
TropicalContent.register(REGISTRAR); | ||
GlaglaglaContent.register(REGISTRAR); | ||
AmaranthContent.register(REGISTRAR); | ||
|
||
if(FabricLoader.getInstance().isModLoaded("columns")) { | ||
//TODO: haykam | ||
//ColumnsContent.init(); | ||
//Promenade.LOGGER.info("Initialized Columns compatibility"); | ||
Promenade.LOGGER.warn("Columns compatibility has not yet been implemented"); | ||
} | ||
} | ||
|
||
public static Identifier id(String path) { | ||
return REGISTRAR.id(path); | ||
} | ||
public static final String MOD_ID = "promenade"; | ||
public static final Logger LOGGER = LogManager.getLogger(); | ||
public static final PromenadeConfig CONFIG = AutoConfig.register(PromenadeConfig.class, PartitioningSerializer.wrap(GsonConfigSerializer::new)).getConfig(); | ||
|
||
@Override | ||
public void onInitialize() { | ||
PromenadeRegistries.register(); | ||
|
||
PromenadeBlocks.appendItemGroups(); | ||
PromenadeItems.appendItemGroups(); | ||
|
||
PromenadeBlocks.appendVillagerTrades(); | ||
|
||
Reflection.initialize(PromenadeFeatures.class); | ||
Reflection.initialize(PromenadePlacementModifierTypes.class); | ||
Reflection.initialize(PromenadeFoliagePlacerTypes.class); | ||
Reflection.initialize(PromenadeTrunkPlacerTypes.class); | ||
Reflection.initialize(PromenadeSensorTypes.class); | ||
Reflection.initialize(PromenadeBoatTypes.class); | ||
Reflection.initialize(PromenadeSoundEvents.class); | ||
Reflection.initialize(PromenadeTrackedData.class); | ||
|
||
PromenadeBiomes.appendWorldGen(); | ||
PromenadePlacedFeatures.appendWorldGen(); | ||
PromenadeEntityTypes.appendWorldGen(); | ||
} | ||
|
||
public static Identifier id(String path) { | ||
return Identifier.of(MOD_ID, path); | ||
} | ||
} |
Oops, something went wrong.