Skip to content

Commit

Permalink
feat: 1.20.4 initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bconlon1 committed Mar 18, 2024
1 parent 719cd74 commit 56404bc
Show file tree
Hide file tree
Showing 14 changed files with 767 additions and 767 deletions.
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ sourceSets.main.resources {

subsystems {
parchment {
minecraftVersion = project.mc_version
minecraftVersion = "1.20.3" //todo
mappingsVersion = project.mappings
}
}
Expand Down Expand Up @@ -109,10 +109,10 @@ dependencies {
// runtimeOnly "me.shedaniel.cloth:cloth-config-neoforge:$cloth_config_version"
// runtimeOnly "dev.architectury:architectury-neoforge:$architectury_version"

compileOnly "me.shedaniel:RoughlyEnoughItems-api-neoforge:$rei_version"
compileOnly "me.shedaniel:RoughlyEnoughItems-default-plugin-neoforge:$rei_version"
compileOnly "me.shedaniel.cloth:cloth-config-neoforge:$cloth_config_version"
compileOnly "dev.architectury:architectury-neoforge:$architectury_version"
// compileOnly "me.shedaniel:RoughlyEnoughItems-api-neoforge:$rei_version"
// compileOnly "me.shedaniel:RoughlyEnoughItems-default-plugin-neoforge:$rei_version"
// compileOnly "me.shedaniel.cloth:cloth-config-neoforge:$cloth_config_version"
// compileOnly "dev.architectury:architectury-neoforge:$architectury_version"
}

repositories {
Expand Down
22 changes: 11 additions & 11 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@ org.gradle.daemon=false
mod_id=aether
mod_name=The Aether
mod_version=1.3.0
mc_version=1.20.2
neoforge_version=20.2.88
mappings=2023.12.10
mc_version=1.20.4
neoforge_version=20.4.200
mappings=2023.12.31

# Dependencies
nitrogen_version=1.20.2-1.0.23-neoforge
cumulus_version=1.20.2-1.0.0-neoforge
curios_version=6.1.0
caelus_version=4.0.0+1.20.2
cumulus_version=1.20.4-1.0.0-neoforge
curios_version=7.3.4
caelus_version=5.0.1+1.20.4
#jei_version=15.2.0.27
crafttweaker_version=1.20.2:15.0.6
jade_version=4979237
crafttweaker_version=1.20.4:17.0.12
jade_version=5109393
#lootr_version=4608503
#debugutils_version=1.0.2
#smoothboot_version=1.16.4-1.2.1
##https://www.curseforge.com/minecraft/mc-mods/colytra/files/3310142
#colytra_version=3310142
#https://www.curseforge.com/minecraft/mc-mods/curious-elytra/files/3601975
#curiouselytra_version=3601975
rei_version=13.0.685
cloth_config_version=12.0.119
architectury_version=10.0.17
#rei_version=13.0.685
#cloth_config_version=12.0.119
#architectury_version=10.0.17

# Publishing
curseforge_id=255308
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
package com.aetherteam.aether.integration.rei;

import com.aetherteam.aether.Aether;
import com.aetherteam.aether.integration.rei.categories.ban.PlacementBanRecipeDisplay;
import com.aetherteam.aether.integration.rei.categories.item.AetherCookingRecipeDisplay;
import com.aetherteam.aether.recipe.recipes.ban.BlockBanRecipe;
import com.aetherteam.aether.recipe.recipes.ban.ItemBanRecipe;
import com.aetherteam.aether.recipe.recipes.block.*;
import com.aetherteam.aether.recipe.recipes.item.AltarRepairRecipe;
import com.aetherteam.aether.recipe.recipes.item.EnchantingRecipe;
import com.aetherteam.aether.recipe.recipes.item.FreezingRecipe;
import com.aetherteam.aether.recipe.recipes.item.IncubationRecipe;
import com.aetherteam.nitrogen.integration.rei.displays.BlockStateRecipeDisplay;
import com.aetherteam.nitrogen.integration.rei.displays.FuelDisplay;
import me.shedaniel.rei.api.common.category.CategoryIdentifier;
import me.shedaniel.rei.api.common.display.DisplaySerializerRegistry;
import me.shedaniel.rei.api.common.plugins.REIServerPlugin;
import me.shedaniel.rei.forge.REIPluginCommon;
import net.minecraft.resources.ResourceLocation;

@REIPluginCommon
public class AetherREIServerPlugin implements REIServerPlugin {
public static final CategoryIdentifier<PlacementBanRecipeDisplay<BlockBanRecipe>> BLOCK_PLACEMENT_BAN = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "block_placement_ban"));
public static final CategoryIdentifier<PlacementBanRecipeDisplay<ItemBanRecipe>> ITEM_PLACEMENT_BAN = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "item_placement_ban"));

public static final CategoryIdentifier<BlockStateRecipeDisplay<AccessoryFreezableRecipe>> ACCESSORY_FREEZABLE = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "accessory_freezable"));
public static final CategoryIdentifier<BlockStateRecipeDisplay<AmbrosiumRecipe>> AMBROSIUM_ENCHANTING = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "ambrosium_enchanting"));
public static final CategoryIdentifier<BlockStateRecipeDisplay<IcestoneFreezableRecipe>> ICESTONE_FREEZABLE = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "icestone_freezable"));

public static final CategoryIdentifier<BlockStateRecipeDisplay<PlacementConversionRecipe>> PLACEMENT_CONVERSION = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "placement_conversion"));
public static final CategoryIdentifier<BlockStateRecipeDisplay<SwetBallRecipe>> SWET_BALL_CONVERSION = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "swet_ball_conversion"));

public static final CategoryIdentifier<FuelDisplay> AETHER_FUEL = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "fuel"));

public static final CategoryIdentifier<AetherCookingRecipeDisplay<AltarRepairRecipe>> ALTAR_REPAIR = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "repairing"));
public static final CategoryIdentifier<AetherCookingRecipeDisplay<EnchantingRecipe>> ALTAR_ENCHANTING = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "enchanting"));
public static final CategoryIdentifier<AetherCookingRecipeDisplay<FreezingRecipe>> FREEZING = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "freezing"));
public static final CategoryIdentifier<AetherCookingRecipeDisplay<IncubationRecipe>> INCUBATING = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "incubating"));

@Override
public void registerDisplaySerializer(DisplaySerializerRegistry registry) {
registry.register(ALTAR_REPAIR, AetherCookingRecipeDisplay.serializer(ALTAR_REPAIR));
registry.register(ALTAR_ENCHANTING, AetherCookingRecipeDisplay.serializer(ALTAR_ENCHANTING));
registry.register(FREEZING, AetherCookingRecipeDisplay.serializer(FREEZING));
registry.register(INCUBATING, AetherCookingRecipeDisplay.serializer(INCUBATING));
}
}
//import com.aetherteam.aether.Aether;
//import com.aetherteam.aether.integration.rei.categories.ban.PlacementBanRecipeDisplay;
//import com.aetherteam.aether.integration.rei.categories.item.AetherCookingRecipeDisplay;
//import com.aetherteam.aether.recipe.recipes.ban.BlockBanRecipe;
//import com.aetherteam.aether.recipe.recipes.ban.ItemBanRecipe;
//import com.aetherteam.aether.recipe.recipes.block.*;
//import com.aetherteam.aether.recipe.recipes.item.AltarRepairRecipe;
//import com.aetherteam.aether.recipe.recipes.item.EnchantingRecipe;
//import com.aetherteam.aether.recipe.recipes.item.FreezingRecipe;
//import com.aetherteam.aether.recipe.recipes.item.IncubationRecipe;
//import com.aetherteam.nitrogen.integration.rei.displays.BlockStateRecipeDisplay;
//import com.aetherteam.nitrogen.integration.rei.displays.FuelDisplay;
//import me.shedaniel.rei.api.common.category.CategoryIdentifier;
//import me.shedaniel.rei.api.common.display.DisplaySerializerRegistry;
//import me.shedaniel.rei.api.common.plugins.REIServerPlugin;
//import me.shedaniel.rei.forge.REIPluginCommon;
//import net.minecraft.resources.ResourceLocation;
//
//@REIPluginCommon
//public class AetherREIServerPlugin implements REIServerPlugin {
// public static final CategoryIdentifier<PlacementBanRecipeDisplay<BlockBanRecipe>> BLOCK_PLACEMENT_BAN = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "block_placement_ban"));
// public static final CategoryIdentifier<PlacementBanRecipeDisplay<ItemBanRecipe>> ITEM_PLACEMENT_BAN = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "item_placement_ban"));
//
// public static final CategoryIdentifier<BlockStateRecipeDisplay<AccessoryFreezableRecipe>> ACCESSORY_FREEZABLE = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "accessory_freezable"));
// public static final CategoryIdentifier<BlockStateRecipeDisplay<AmbrosiumRecipe>> AMBROSIUM_ENCHANTING = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "ambrosium_enchanting"));
// public static final CategoryIdentifier<BlockStateRecipeDisplay<IcestoneFreezableRecipe>> ICESTONE_FREEZABLE = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "icestone_freezable"));
//
// public static final CategoryIdentifier<BlockStateRecipeDisplay<PlacementConversionRecipe>> PLACEMENT_CONVERSION = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "placement_conversion"));
// public static final CategoryIdentifier<BlockStateRecipeDisplay<SwetBallRecipe>> SWET_BALL_CONVERSION = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "swet_ball_conversion"));
//
// public static final CategoryIdentifier<FuelDisplay> AETHER_FUEL = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "fuel"));
//
// public static final CategoryIdentifier<AetherCookingRecipeDisplay<AltarRepairRecipe>> ALTAR_REPAIR = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "repairing"));
// public static final CategoryIdentifier<AetherCookingRecipeDisplay<EnchantingRecipe>> ALTAR_ENCHANTING = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "enchanting"));
// public static final CategoryIdentifier<AetherCookingRecipeDisplay<FreezingRecipe>> FREEZING = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "freezing"));
// public static final CategoryIdentifier<AetherCookingRecipeDisplay<IncubationRecipe>> INCUBATING = CategoryIdentifier.of(new ResourceLocation(Aether.MODID, "incubating"));
//
// @Override
// public void registerDisplaySerializer(DisplaySerializerRegistry registry) {
// registry.register(ALTAR_REPAIR, AetherCookingRecipeDisplay.serializer(ALTAR_REPAIR));
// registry.register(ALTAR_ENCHANTING, AetherCookingRecipeDisplay.serializer(ALTAR_ENCHANTING));
// registry.register(FREEZING, AetherCookingRecipeDisplay.serializer(FREEZING));
// registry.register(INCUBATING, AetherCookingRecipeDisplay.serializer(INCUBATING));
// }
//}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.aetherteam.aether.integration.rei;

import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.block.Block;

import java.util.List;

public record FuelRecipe(List<ItemStack> inputItems, int burnTime, Block usageBlock) { }
//import net.minecraft.world.item.ItemStack;
//import net.minecraft.world.level.block.Block;
//
//import java.util.List;
//
//public record FuelRecipe(List<ItemStack> inputItems, int burnTime, Block usageBlock) { }
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
package com.aetherteam.aether.integration.rei.categories;

import me.shedaniel.rei.api.client.gui.widgets.Tooltip;
import net.minecraft.ChatFormatting;
import net.minecraft.client.Minecraft;
import net.minecraft.core.registries.Registries;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceKey;
import net.minecraft.tags.TagKey;
import net.minecraft.world.level.biome.Biome;

import java.util.Optional;

public interface BiomeTooltip {
default void populateBiomeInformation(Optional<ResourceKey<Biome>> biomeKey, Optional<TagKey<Biome>> biomeTag, Tooltip tooltip) {
if (Minecraft.getInstance().level != null && (biomeKey.isPresent() || biomeTag.isPresent())) {
tooltip.add(Component.translatable("gui.aether.jei.biome.tooltip").withStyle(ChatFormatting.GRAY));
if (biomeKey.isPresent()) {
tooltip.add(Component.translatable("gui.aether.jei.biome.tooltip.biome").withStyle(ChatFormatting.DARK_GRAY));
tooltip.add(Component.literal(biomeKey.get().location().toString()).withStyle(ChatFormatting.DARK_GRAY));
} else {
tooltip.add(Component.translatable("gui.aether.jei.biome.tooltip.tag").withStyle(ChatFormatting.DARK_GRAY));
tooltip.add(Component.literal("#" + biomeTag.get().location()).withStyle(ChatFormatting.DARK_GRAY));

tooltip.add(Component.translatable("gui.aether.jei.biome.tooltip.biomes").withStyle(ChatFormatting.DARK_GRAY));
Minecraft.getInstance().level.registryAccess().registryOrThrow(Registries.BIOME).getTagOrEmpty(biomeTag.get()).forEach((biomeHolder) -> biomeHolder.unwrapKey().ifPresent((key) -> tooltip.add(Component.literal(key.location().toString()).withStyle(ChatFormatting.DARK_GRAY))));
}
}
}
}
//import me.shedaniel.rei.api.client.gui.widgets.Tooltip;
//import net.minecraft.ChatFormatting;
//import net.minecraft.client.Minecraft;
//import net.minecraft.core.registries.Registries;
//import net.minecraft.network.chat.Component;
//import net.minecraft.resources.ResourceKey;
//import net.minecraft.tags.TagKey;
//import net.minecraft.world.level.biome.Biome;
//
//import java.util.Optional;
//
//public interface BiomeTooltip {
// default void populateBiomeInformation(Optional<ResourceKey<Biome>> biomeKey, Optional<TagKey<Biome>> biomeTag, Tooltip tooltip) {
// if (Minecraft.getInstance().level != null && (biomeKey.isPresent() || biomeTag.isPresent())) {
// tooltip.add(Component.translatable("gui.aether.jei.biome.tooltip").withStyle(ChatFormatting.GRAY));
// if (biomeKey.isPresent()) {
// tooltip.add(Component.translatable("gui.aether.jei.biome.tooltip.biome").withStyle(ChatFormatting.DARK_GRAY));
// tooltip.add(Component.literal(biomeKey.get().location().toString()).withStyle(ChatFormatting.DARK_GRAY));
// } else {
// tooltip.add(Component.translatable("gui.aether.jei.biome.tooltip.tag").withStyle(ChatFormatting.DARK_GRAY));
// tooltip.add(Component.literal("#" + biomeTag.get().location()).withStyle(ChatFormatting.DARK_GRAY));
//
// tooltip.add(Component.translatable("gui.aether.jei.biome.tooltip.biomes").withStyle(ChatFormatting.DARK_GRAY));
// Minecraft.getInstance().level.registryAccess().registryOrThrow(Registries.BIOME).getTagOrEmpty(biomeTag.get()).forEach((biomeHolder) -> biomeHolder.unwrapKey().ifPresent((key) -> tooltip.add(Component.literal(key.location().toString()).withStyle(ChatFormatting.DARK_GRAY))));
// }
// }
// }
//}
Loading

0 comments on commit 56404bc

Please sign in to comment.