Skip to content

Commit

Permalink
Update mod to Minecraft snapshot 24w44a (#4197)
Browse files Browse the repository at this point in the history
* Update mod to Minecraft snapshot 24w44a

* Bump version

---------

Co-authored-by: modmuss50 <[email protected]>
  • Loading branch information
haykam821 and modmuss50 authored Oct 30, 2024
1 parent fd37071 commit 7feeb73
Show file tree
Hide file tree
Showing 100 changed files with 497 additions and 579 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.8",
"fabricloader": ">=0.16.9",
"fabric-api-base": "*",
"fabric-command-api-v2": "*"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.8",
"fabricloader": ">=0.16.9",
"fabric-api-base": "*",
"fabric-command-api-v2": "*"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
]
},
"depends": {
"fabricloader": ">=0.16.8",
"fabricloader": ">=0.16.9",
"minecraft": ">=1.18.2"
},
"description": "Contains common tags used by mods for vanilla things.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.8",
"fabricloader": ">=0.16.9",
"fabric-key-binding-api-v1": "*"
},
"description": "Keybinding registry API.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.8",
"fabricloader": ">=0.16.9",
"fabric-api-base": "*",
"fabric-resource-loader-v0": "*"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.8",
"fabricloader": ">=0.16.9",
"fabric-block-view-api-v2": "*"
},
"description": "Thread-safe hooks for block entity data use during terrain rendering.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
]
},
"depends": {
"fabricloader": ">=0.16.8",
"fabricloader": ">=0.16.9",
"minecraft": ">=1.15-alpha.19.39.a",
"fabric-api-base": "*",
"fabric-rendering-v1": "*"
Expand Down
2 changes: 1 addition & 1 deletion fabric-api-base/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.8"
"fabricloader": ">=0.16.9"
},
"description": "Contains the essentials for Fabric API modules.",
"custom": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.8",
"fabricloader": ">=0.16.9",
"fabric-api-base": "*",
"fabric-lifecycle-events-v1": "*"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import net.minecraft.sound.BiomeMoodSound;
import net.minecraft.sound.MusicSound;
import net.minecraft.sound.SoundEvent;
import net.minecraft.util.collection.DataPool;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.biome.BiomeEffects;
import net.minecraft.world.biome.BiomeParticleConfig;
Expand Down Expand Up @@ -270,23 +271,37 @@ default void clearAdditionsSound() {
* @see BiomeEffects#getMusic()
* @see BiomeEffects.Builder#music(MusicSound)
*/
void setMusic(Optional<MusicSound> sound);
void setMusic(Optional<DataPool<MusicSound>> sound);

/**
* @see BiomeEffects#getMusic()
* @see BiomeEffects.Builder#music(MusicSound)
*/
default void setMusic(@NotNull MusicSound sound) {
default void setMusic(@NotNull DataPool<MusicSound> sound) {
setMusic(Optional.of(sound));
}

/**
* @see BiomeEffects#getMusic()
* @see BiomeEffects.Builder#music(MusicSound)
*/
default void setMusic(@NotNull MusicSound sound) {
setMusic(DataPool.of(sound));
}

/**
* @see BiomeEffects#getMusic()
* @see BiomeEffects.Builder#music(MusicSound)
*/
default void clearMusic() {
setMusic(Optional.empty());
}

/**
* @see BiomeEffects#method_65135()
* @see BiomeEffects.Builder#method_65137(int)
*/
void setMusicVolume(float volume);
}

interface GenerationSettingsContext {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import net.minecraft.sound.BiomeMoodSound;
import net.minecraft.sound.MusicSound;
import net.minecraft.sound.SoundEvent;
import net.minecraft.util.collection.DataPool;
import net.minecraft.util.collection.Pool;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.biome.BiomeEffects;
Expand Down Expand Up @@ -188,9 +189,14 @@ public void setAdditionsSound(Optional<BiomeAdditionsSound> sound) {
}

@Override
public void setMusic(Optional<MusicSound> sound) {
public void setMusic(Optional<DataPool<MusicSound>> sound) {
effects.music = Objects.requireNonNull(sound);
}

@Override
public void setMusicVolume(float volume) {
effects.field_55050 = volume;
}
}

private class GenerationSettingsContextImpl implements GenerationSettingsContext {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ accessible field net/minecraft/world/biome/BiomeEffects additionsSound Ljava/uti
mutable field net/minecraft/world/biome/BiomeEffects additionsSound Ljava/util/Optional;
accessible field net/minecraft/world/biome/BiomeEffects music Ljava/util/Optional;
mutable field net/minecraft/world/biome/BiomeEffects music Ljava/util/Optional;
accessible field net/minecraft/world/biome/BiomeEffects field_55050 F
mutable field net/minecraft/world/biome/BiomeEffects field_55050 F

# Spawn Settings / Density
accessible field net/minecraft/world/biome/SpawnSettings creatureSpawnProbability F
Expand Down
2 changes: 1 addition & 1 deletion fabric-biome-api-v1/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.8",
"fabricloader": ">=0.16.9",
"minecraft": ">=1.16.2"
},
"description": "Hooks for adding biomes to the default world generator.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"sound": "minecraft:ambient.cave",
"tick_delay": 6000
},
"music_volume": 1.0,
"sky_color": 7907327,
"water_color": 4159204,
"water_fog_color": 329011
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"downfall": 0.4,
"effects": {
"fog_color": 12638463,
"music_volume": 1.0,
"sky_color": 7907327,
"water_color": 4159204,
"water_fog_color": 329011
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@
"sound": "minecraft:ambient.crimson_forest.mood",
"tick_delay": 6000
},
"music": {
"max_delay": 24000,
"min_delay": 12000,
"replace_current_music": false,
"sound": "minecraft:music.nether.crimson_forest"
},
"music": [
{
"data": {
"max_delay": 24000,
"min_delay": 12000,
"replace_current_music": false,
"sound": "minecraft:music.nether.crimson_forest"
},
"weight": 1
}
],
"music_volume": 1.0,
"particle": {
"options": {
"type": "minecraft:crimson_spore"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"sound": "minecraft:ambient.cave",
"tick_delay": 6000
},
"music_volume": 1.0,
"sky_color": 0,
"water_color": 4159204,
"water_fog_color": 329011
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"sound": "minecraft:ambient.cave",
"tick_delay": 6000
},
"music_volume": 1.0,
"sky_color": 0,
"water_color": 4159204,
"water_fog_color": 329011
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"sound": "minecraft:ambient.cave",
"tick_delay": 6000
},
"music_volume": 1.0,
"sky_color": 0,
"water_color": 4159204,
"water_fog_color": 329011
Expand Down
2 changes: 1 addition & 1 deletion fabric-block-api-v1/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.8"
"fabricloader": ">=0.16.9"
},
"entrypoints": {
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.8"
"fabricloader": ">=0.16.9"
},
"description": "Hooks for block views",
"mixins": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.8",
"fabricloader": ">=0.16.9",
"minecraft": ">=1.15-alpha.19.38.b",
"fabric-api-base": "*"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.8"
"fabricloader": ">=0.16.9"
},
"description": "Adds the ability to load tags from the local mods.",
"custom": {
Expand Down
2 changes: 1 addition & 1 deletion fabric-command-api-v2/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.8",
"fabricloader": ">=0.16.9",
"fabric-api-base": "*",
"minecraft": ">1.19-alpha.22.11.a"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.8",
"fabricloader": ">=0.16.9",
"fabric-api-base": "*",
"fabric-lifecycle-events-v1": "*",
"fabric-resource-loader-v0": "*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import net.minecraft.util.Identifier;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.biome.BiomeKeys;
import net.minecraft.world.biome.WinterDropBuiltinBiomes;

import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
import net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider;
Expand Down Expand Up @@ -97,7 +96,7 @@ private void generateCategoryTags() {
.add(BiomeKeys.OLD_GROWTH_BIRCH_FOREST);
getOrCreateTagBuilder(ConventionalBiomeTags.IS_DARK_FOREST)
.add(BiomeKeys.DARK_FOREST)
.addOptional(WinterDropBuiltinBiomes.PALE_GARDEN);
.add(BiomeKeys.PALE_GARDEN);
getOrCreateTagBuilder(ConventionalBiomeTags.IS_OCEAN)
.addOptionalTag(BiomeTags.IS_OCEAN)
.addOptionalTag(ConventionalBiomeTags.IS_DEEP_OCEAN)
Expand Down Expand Up @@ -179,7 +178,7 @@ private void generateClimateAndVegetationTags() {
.add(BiomeKeys.SWAMP)
.add(BiomeKeys.STONY_SHORE)
.add(BiomeKeys.DARK_FOREST)
.addOptional(WinterDropBuiltinBiomes.PALE_GARDEN)
.add(BiomeKeys.PALE_GARDEN)
.add(BiomeKeys.WINDSWEPT_FOREST)
.add(BiomeKeys.BIRCH_FOREST)
.add(BiomeKeys.OLD_GROWTH_BIRCH_FOREST)
Expand Down Expand Up @@ -252,7 +251,7 @@ private void generateClimateAndVegetationTags() {

getOrCreateTagBuilder(ConventionalBiomeTags.IS_VEGETATION_DENSE_OVERWORLD)
.add(BiomeKeys.DARK_FOREST)
.addOptional(WinterDropBuiltinBiomes.PALE_GARDEN)
.add(BiomeKeys.PALE_GARDEN)
.add(BiomeKeys.OLD_GROWTH_BIRCH_FOREST)
.add(BiomeKeys.OLD_GROWTH_SPRUCE_TAIGA)
.add(BiomeKeys.JUNGLE)
Expand Down Expand Up @@ -285,7 +284,7 @@ private void generateClimateAndVegetationTags() {
.add(BiomeKeys.FLOWER_FOREST)
.add(BiomeKeys.BIRCH_FOREST)
.add(BiomeKeys.DARK_FOREST)
.addOptional(WinterDropBuiltinBiomes.PALE_GARDEN)
.add(BiomeKeys.PALE_GARDEN)
.add(BiomeKeys.OLD_GROWTH_BIRCH_FOREST);
getOrCreateTagBuilder(ConventionalBiomeTags.IS_JUNGLE_TREE)
.addOptionalTag(ConventionalBiomeTags.IS_JUNGLE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ private void generateStorageTags() {
.addTag(ConventionalBlockTags.STORAGE_BLOCKS_RAW_GOLD)
.addTag(ConventionalBlockTags.STORAGE_BLOCKS_RAW_IRON)
.addTag(ConventionalBlockTags.STORAGE_BLOCKS_REDSTONE)
.addTag(ConventionalBlockTags.STORAGE_BLOCKS_RESIN)
.addTag(ConventionalBlockTags.STORAGE_BLOCKS_SLIME)
.addTag(ConventionalBlockTags.STORAGE_BLOCKS_WHEAT);

Expand Down Expand Up @@ -492,6 +493,9 @@ private void generateStorageTags() {
getOrCreateTagBuilder(ConventionalBlockTags.STORAGE_BLOCKS_REDSTONE)
.add(Blocks.REDSTONE_BLOCK);

getOrCreateTagBuilder(ConventionalBlockTags.STORAGE_BLOCKS_RESIN)
.add(Blocks.RESIN_BLOCK);

getOrCreateTagBuilder(ConventionalBlockTags.STORAGE_BLOCKS_SLIME)
.add(Blocks.SLIME_BLOCK);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public void generateTranslations(RegistryWrapper.WrapperLookup registryLookup, T
translationBuilder.add(ConventionalBlockTags.STORAGE_BLOCKS_RAW_GOLD, "Raw Gold Storage Blocks");
translationBuilder.add(ConventionalBlockTags.STORAGE_BLOCKS_RAW_IRON, "Raw Iron Storage Blocks");
translationBuilder.add(ConventionalBlockTags.STORAGE_BLOCKS_REDSTONE, "Redstone Storage Blocks");
translationBuilder.add(ConventionalBlockTags.STORAGE_BLOCKS_RESIN, "Resin Storage Blocks");
translationBuilder.add(ConventionalBlockTags.STORAGE_BLOCKS_SLIME, "Slime Storage Blocks");
translationBuilder.add(ConventionalBlockTags.STORAGE_BLOCKS_WHEAT, "Wheat Storage Blocks");
translationBuilder.add(ConventionalBlockTags.STRIPPED_LOGS, "Stripped Logs");
Expand Down Expand Up @@ -152,6 +153,7 @@ public void generateTranslations(RegistryWrapper.WrapperLookup registryLookup, T
translationBuilder.add(ConventionalItemTags.ENCHANTABLES, "Enchantables");
translationBuilder.add(ConventionalItemTags.BRICKS, "Bricks");
translationBuilder.add(ConventionalItemTags.DUSTS, "Dusts");
translationBuilder.add(ConventionalItemTags.CLUMPS, "Clumps");
translationBuilder.add(ConventionalItemTags.GEMS, "Gems");
translationBuilder.add(ConventionalItemTags.INGOTS, "Ingots");
translationBuilder.add(ConventionalItemTags.NUGGETS, "Nuggets");
Expand All @@ -166,6 +168,7 @@ public void generateTranslations(RegistryWrapper.WrapperLookup registryLookup, T
translationBuilder.add(ConventionalItemTags.COPPER_RAW_BLOCKS, "Raw Copper Blocks");
translationBuilder.add(ConventionalItemTags.NORMAL_BRICKS, "Bricks");
translationBuilder.add(ConventionalItemTags.NETHER_BRICKS, "Nether Bricks");
translationBuilder.add(ConventionalItemTags.RESIN_BRICKS, "Resin Bricks");
translationBuilder.add(ConventionalItemTags.IRON_INGOTS, "Iron Ingots");
translationBuilder.add(ConventionalItemTags.GOLD_INGOTS, "Gold Ingots");
translationBuilder.add(ConventionalItemTags.COPPER_INGOTS, "Copper Ingots");
Expand All @@ -182,6 +185,7 @@ public void generateTranslations(RegistryWrapper.WrapperLookup registryLookup, T
translationBuilder.add(ConventionalItemTags.GOLD_NUGGETS, "Gold Nuggets");
translationBuilder.add(ConventionalItemTags.REDSTONE_DUSTS, "Redstone Dusts");
translationBuilder.add(ConventionalItemTags.GLOWSTONE_DUSTS, "Glowstone Dusts");
translationBuilder.add(ConventionalItemTags.RESIN_CLUMPS, "Resin Clumps");
translationBuilder.add(ConventionalItemTags.COAL, "Coal");
translationBuilder.add(ConventionalItemTags.POTIONS, "Potions");
translationBuilder.add(ConventionalItemTags.FOODS, "Foods");
Expand Down Expand Up @@ -299,6 +303,7 @@ public void generateTranslations(RegistryWrapper.WrapperLookup registryLookup, T
translationBuilder.add(ConventionalItemTags.STORAGE_BLOCKS_RAW_GOLD, "Raw Gold Storage Blocks");
translationBuilder.add(ConventionalItemTags.STORAGE_BLOCKS_RAW_IRON, "Raw Iron Storage Blocks");
translationBuilder.add(ConventionalItemTags.STORAGE_BLOCKS_REDSTONE, "Redstone Storage Blocks");
translationBuilder.add(ConventionalItemTags.STORAGE_BLOCKS_RESIN, "Resin Storage Blocks");
translationBuilder.add(ConventionalItemTags.STORAGE_BLOCKS_SLIME, "Slime Storage Blocks");
translationBuilder.add(ConventionalItemTags.STORAGE_BLOCKS_WHEAT, "Wheat Storage Blocks");
translationBuilder.add(ConventionalItemTags.STRIPPED_LOGS, "Stripped Log Blocks");
Expand Down
Loading

0 comments on commit 7feeb73

Please sign in to comment.