Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of Blood Magic Frames #20

Merged
merged 72 commits into from
Apr 30, 2023
Merged
Show file tree
Hide file tree
Changes from 65 commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
e12eda7
Addition of Blood Magic Frames
Alastors Apr 28, 2023
c7c47b9
fer fecks sake spotless
Alastors Apr 28, 2023
1d4a52c
You gonna work this time?
Alastors Apr 28, 2023
77936b6
Finally fixed the optional dependency
Alastors Apr 28, 2023
b9292af
SpOtLeSsChEcK fAiLEd
Alastors Apr 28, 2023
ef43598
Should work this time
Alastors Apr 28, 2023
87ec6c6
I swear to god if this fixes it
Alastors Apr 28, 2023
7268313
Update dependencies.gradle
Alastors Apr 28, 2023
6c6b690
Update dependencies.gradle
Alastors Apr 28, 2023
138e8d9
Please work
Alastors Apr 28, 2023
32ffe03
Update Config.java
Alastors Apr 28, 2023
75db132
Update Config.java
Alastors Apr 28, 2023
e1d289b
update bs+sa
Dream-Master Apr 28, 2023
61398d3
update dep file
Dream-Master Apr 28, 2023
e90b401
derp
Dream-Master Apr 28, 2023
108a11c
Fix?
Alastors Apr 28, 2023
3a0d935
I fucking forgot spotless again
Alastors Apr 28, 2023
9b21be0
Added Recipes
Alastors Apr 28, 2023
1e0c7d3
Add recipes and research nodes
Alastors Apr 29, 2023
3afee4f
fix the glitch
Alastors Apr 29, 2023
80c1c4d
fix?
Alastors Apr 29, 2023
bc963b0
Gonna be annoyed if this works
Alastors Apr 29, 2023
c3fcb6f
work?
Alastors Apr 29, 2023
9f1642f
please fix
Alastors Apr 29, 2023
17768a1
Update Config.java
Alastors Apr 29, 2023
5b4aaf5
Update BloodHelper.java
Alastors Apr 29, 2023
98fd7c1
Update Config.java
Alastors Apr 29, 2023
c209ef5
Update Config.java
Alastors Apr 29, 2023
c317260
Update Config.java
Alastors Apr 29, 2023
806c326
Update Config.java
Alastors Apr 29, 2023
d612f8c
Update Config.java
Alastors Apr 29, 2023
a64ae86
Update BloodHelper.java
Alastors Apr 29, 2023
66c5bdf
please fucking work
Alastors Apr 29, 2023
5e5a80f
a
Alastors Apr 29, 2023
b76b77d
b
Alastors Apr 29, 2023
840771f
Revert "b"
Alastors Apr 29, 2023
fddc31a
Revert "a"
Alastors Apr 29, 2023
cf6536c
Revert "please fucking work"
Alastors Apr 29, 2023
1391dd3
Revert "Update BloodHelper.java"
Alastors Apr 29, 2023
8412246
Revert "Update Config.java"
Alastors Apr 29, 2023
764fda0
Revert "Update Config.java"
Alastors Apr 29, 2023
c47b50b
Revert "Update Config.java"
Alastors Apr 29, 2023
8f919fc
Revert "Update Config.java"
Alastors Apr 29, 2023
2ea0a44
Revert "Update Config.java"
Alastors Apr 29, 2023
918ec20
Revert "Update BloodHelper.java"
Alastors Apr 29, 2023
79d0283
Revert "Update Config.java"
Alastors Apr 29, 2023
2c547e3
Revert "please fix"
Alastors Apr 29, 2023
309a9c0
Revert "work?"
Alastors Apr 29, 2023
639c53a
Revert "Gonna be annoyed if this works"
Alastors Apr 29, 2023
756b186
Revert "fix?"
Alastors Apr 29, 2023
fdc1301
Revert "fix the glitch"
Alastors Apr 29, 2023
fa10e88
Revert "Add recipes and research nodes"
Alastors Apr 29, 2023
02afe5d
Adding back the textures and lang file
Alastors Apr 29, 2023
d83a0cc
Remove comments + add helper
Alastors Apr 29, 2023
0efc169
Revert "Remove comments + add helper"
Alastors Apr 29, 2023
0b6c1cc
Revert "Adding back the textures and lang file"
Alastors Apr 29, 2023
c4ef06b
Revert "Revert "Add recipes and research nodes""
Alastors Apr 29, 2023
ff25ec6
Everything works again
Alastors Apr 29, 2023
fe56288
I forgot to spotless
Alastors Apr 29, 2023
83b0bfc
I actually fixed it this time
Alastors Apr 29, 2023
5f56b46
Kuba requested changes, what am I doing wrong?
Alastors Apr 29, 2023
b0b38a4
small update to BloodBase
Alastors Apr 29, 2023
1cbe881
firenoo fix
Alastors Apr 29, 2023
966e4ba
WE'VE FINALLY FIXED IT 100%
Alastors Apr 29, 2023
5dfa179
Final Pull on this PR
Alastors Apr 30, 2023
66b1f3e
Merge branch 'master' into Blood-Frames
Dream-Master Apr 30, 2023
f85900d
spotlessApply
Apr 30, 2023
96514b1
Merge pull request #25 from GTNewHorizons/Blood-Frames-spotless-fixes
Dream-Master Apr 30, 2023
2870e06
Actual Final PR of this
Alastors Apr 30, 2023
b338d97
Fixed multipler issue with blood frames
OneEyeMaker Apr 30, 2023
614acf5
Moved ring code to optional module
OneEyeMaker Apr 30, 2023
9f17d8c
Added configuration for new modules
OneEyeMaker Apr 30, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
461 changes: 338 additions & 123 deletions build.gradle

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// Add your dependencies here

dependencies {
compile('com.github.GTNewHorizons:ForestryMC:4.5.2:dev')
compile('com.github.GTNewHorizons:ForestryMC:4.6.6:dev')

compileOnly('com.github.GTNewHorizons:Baubles:1.0.1.14:dev') {transitive = false}
compileOnly('com.github.GTNewHorizons:Botania:1.9.2-GTNH:api') {transitive = false}
compileOnly('com.github.GTNewHorizons:BloodMagic:1.4.0:dev')
compileOnly('com.github.GTNewHorizons:Baubles:1.0.1.16:dev') {transitive = false}
compileOnly('com.github.GTNewHorizons:Botania:1.9.17-GTNH:api') {transitive = false}
compileOnly('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') {transitive = false}

}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 2 additions & 2 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
Expand Down
25 changes: 12 additions & 13 deletions src/main/java/magicbees/bees/Allele.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
package magicbees.bees;

import net.minecraft.potion.Potion;

import forestry.api.apiculture.EnumBeeChromosome;
import forestry.api.apiculture.IAlleleBeeEffect;
import forestry.api.apiculture.IAlleleBeeSpecies;
import forestry.api.genetics.AlleleManager;
import forestry.api.genetics.IAllele;
import forestry.api.genetics.IAlleleEffect;
import forestry.api.genetics.IAlleleFlowers;
import forestry.api.genetics.IAlleleRegistry;
import forestry.api.genetics.IChromosomeType;
import forestry.api.genetics.IFlowerProvider;
import magicbees.api.MagicBeesAPI;
import magicbees.bees.allele.effect.AlleleEffectCrumbling;
import magicbees.bees.allele.effect.AlleleEffectCure;
Expand Down Expand Up @@ -27,20 +39,7 @@
import magicbees.main.utils.compat.BotaniaHelper;
import magicbees.main.utils.compat.ThaumcraftHelper;
import magicbees.main.utils.compat.ThermalModsHelper;

import net.minecraft.potion.Potion;

import thaumcraft.api.nodes.NodeType;
import forestry.api.apiculture.EnumBeeChromosome;
import forestry.api.apiculture.IAlleleBeeEffect;
import forestry.api.apiculture.IAlleleBeeSpecies;
import forestry.api.genetics.AlleleManager;
import forestry.api.genetics.IAllele;
import forestry.api.genetics.IAlleleEffect;
import forestry.api.genetics.IAlleleFlowers;
import forestry.api.genetics.IAlleleRegistry;
import forestry.api.genetics.IChromosomeType;
import forestry.api.genetics.IFlowerProvider;

public class Allele implements IAllele {

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/magicbees/bees/BeeClassification.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import java.util.ArrayList;

import magicbees.main.utils.LocalizationManager;
import forestry.api.genetics.AlleleManager;
import forestry.api.genetics.IAlleleSpecies;
import forestry.api.genetics.IClassification;
import magicbees.main.utils.LocalizationManager;

public enum BeeClassification implements IClassification {

Expand Down
5 changes: 2 additions & 3 deletions src/main/java/magicbees/bees/BeeGenomeManager.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package magicbees.bees;

import magicbees.main.utils.ItemInterface;
import magicbees.main.utils.compat.ExtraBeesHelper;

import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;

import forestry.api.apiculture.EnumBeeChromosome;
import forestry.api.apiculture.EnumBeeType;
import forestry.api.genetics.IAllele;
import magicbees.main.utils.ItemInterface;
import magicbees.main.utils.compat.ExtraBeesHelper;

/**
* Simply a class to hold all the functions to manage species' default genomes.
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/magicbees/bees/BeeIconProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

import java.util.Locale;

import magicbees.main.CommonProxy;

import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.util.IIcon;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import forestry.api.apiculture.EnumBeeType;
import forestry.api.apiculture.IBeeIconProvider;
import magicbees.main.CommonProxy;

public enum BeeIconProvider implements IBeeIconProvider {

Expand Down
11 changes: 5 additions & 6 deletions src/main/java/magicbees/bees/BeeManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
import java.util.List;
import java.util.Random;

import magicbees.block.types.HiveType;
import magicbees.item.types.DropType;
import magicbees.main.Config;
import magicbees.main.utils.Tuple;
import magicbees.main.utils.compat.ExtraBeesHelper;

import net.minecraft.item.ItemStack;

import forestry.api.apiculture.EnumBeeType;
Expand All @@ -20,6 +14,11 @@
import forestry.api.apiculture.IBeeRoot;
import forestry.api.genetics.AlleleManager;
import forestry.api.genetics.IAllele;
import magicbees.block.types.HiveType;
import magicbees.item.types.DropType;
import magicbees.main.Config;
import magicbees.main.utils.Tuple;
import magicbees.main.utils.compat.ExtraBeesHelper;

public class BeeManager {

Expand Down
17 changes: 8 additions & 9 deletions src/main/java/magicbees/bees/BeeMutation.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
package magicbees.bees;

import net.minecraft.init.Blocks;
import net.minecraftforge.common.BiomeDictionary;
import net.minecraftforge.common.BiomeDictionary.Type;
import net.minecraftforge.oredict.OreDictionary;

import forestry.api.apiculture.IAlleleBeeSpecies;
import forestry.api.apiculture.IBeeMutationCustom;
import forestry.api.apiculture.IBeeMutationFactory;
import magicbees.main.utils.LogHelper;
import magicbees.main.utils.MoonPhase;
import magicbees.main.utils.compat.AppliedEnergisticsHelper;
Expand All @@ -12,15 +20,6 @@
import magicbees.main.utils.compat.ThaumcraftHelper;
import magicbees.main.utils.compat.ThermalModsHelper;

import net.minecraft.init.Blocks;
import net.minecraftforge.common.BiomeDictionary;
import net.minecraftforge.common.BiomeDictionary.Type;
import net.minecraftforge.oredict.OreDictionary;

import forestry.api.apiculture.IAlleleBeeSpecies;
import forestry.api.apiculture.IBeeMutationCustom;
import forestry.api.apiculture.IBeeMutationFactory;

public class BeeMutation {

private static IBeeMutationFactory beeMutationFactory = forestry.api.apiculture.BeeManager.beeMutationFactory;
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/magicbees/bees/BeeProductHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

import static magicbees.bees.BeeSpecies.*;

import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;

import magicbees.item.types.CombType;
import magicbees.item.types.DropType;
import magicbees.item.types.NuggetType;
Expand All @@ -20,11 +25,6 @@
import magicbees.main.utils.compat.ThaumcraftHelper;
import magicbees.main.utils.compat.ThermalModsHelper;

import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;

public class BeeProductHelper {

public static void initBaseProducts() {
Expand Down
15 changes: 7 additions & 8 deletions src/main/java/magicbees/bees/BeeSpecies.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
package magicbees.bees;

import magicbees.main.utils.compat.AppliedEnergisticsHelper;
import magicbees.main.utils.compat.ArsMagicaHelper;
import magicbees.main.utils.compat.BotaniaHelper;
import magicbees.main.utils.compat.EquivalentExchangeHelper;
import magicbees.main.utils.compat.RedstoneArsenalHelper;
import magicbees.main.utils.compat.ThaumcraftHelper;
import magicbees.main.utils.compat.ThermalModsHelper;

import net.minecraft.item.ItemStack;

import forestry.api.apiculture.EnumBeeChromosome;
Expand All @@ -24,6 +16,13 @@
import forestry.api.genetics.IAllele;
import forestry.api.genetics.IAlleleTolerance;
import forestry.api.genetics.IClassification;
import magicbees.main.utils.compat.AppliedEnergisticsHelper;
import magicbees.main.utils.compat.ArsMagicaHelper;
import magicbees.main.utils.compat.BotaniaHelper;
import magicbees.main.utils.compat.EquivalentExchangeHelper;
import magicbees.main.utils.compat.RedstoneArsenalHelper;
import magicbees.main.utils.compat.ThaumcraftHelper;
import magicbees.main.utils.compat.ThermalModsHelper;

public enum BeeSpecies {

Expand Down
17 changes: 8 additions & 9 deletions src/main/java/magicbees/bees/HiveDescription.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@
import java.util.Locale;
import java.util.Random;

import magicbees.block.types.HiveType;
import magicbees.main.Config;
import magicbees.main.utils.BlockUtil;
import magicbees.main.utils.LogHelper;
import magicbees.world.feature.FeatureOreVein;
import magicbees.world.feature.HiveGenNether;
import magicbees.world.feature.HiveGenOblivion;
import magicbees.world.feature.HiveGenUnderground;

import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;
Expand All @@ -25,6 +16,14 @@
import forestry.api.apiculture.hives.IHiveGen;
import forestry.api.core.EnumHumidity;
import forestry.api.core.EnumTemperature;
import magicbees.block.types.HiveType;
import magicbees.main.Config;
import magicbees.main.utils.BlockUtil;
import magicbees.main.utils.LogHelper;
import magicbees.world.feature.FeatureOreVein;
import magicbees.world.feature.HiveGenNether;
import magicbees.world.feature.HiveGenOblivion;
import magicbees.world.feature.HiveGenUnderground;

public enum HiveDescription implements IHiveDescription {

Expand Down
5 changes: 2 additions & 3 deletions src/main/java/magicbees/bees/MoonPhaseMutationBonus.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package magicbees.bees;

import magicbees.main.utils.LocalizationManager;
import magicbees.main.utils.MoonPhase;

import net.minecraft.world.World;

import forestry.api.core.IClimateProvider;
import forestry.api.genetics.IAllele;
import forestry.api.genetics.IGenome;
import forestry.api.genetics.IMutationCondition;
import magicbees.main.utils.LocalizationManager;
import magicbees.main.utils.MoonPhase;

// There is a bonus to this mutation during moon phases...
public class MoonPhaseMutationBonus implements IMutationCondition {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package magicbees.bees;

import magicbees.main.utils.LocalizationManager;
import magicbees.main.utils.MoonPhase;

import net.minecraft.world.World;

import forestry.api.core.IClimateProvider;
import forestry.api.genetics.IAllele;
import forestry.api.genetics.IGenome;
import forestry.api.genetics.IMutationCondition;
import magicbees.main.utils.LocalizationManager;
import magicbees.main.utils.MoonPhase;

public class MoonPhaseMutationRestriction implements IMutationCondition {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

import java.util.HashMap;

import magicbees.bees.AlleleEffect;
import magicbees.bees.BeeManager;

import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
Expand All @@ -16,6 +13,8 @@
import forestry.api.apiculture.IBeeHousing;
import forestry.api.apiculture.IBeeModifier;
import forestry.api.genetics.IEffectData;
import magicbees.bees.AlleleEffect;
import magicbees.bees.BeeManager;

public class AlleleEffectCrumbling extends AlleleEffect {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

import java.util.List;

import magicbees.bees.AlleleEffect;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;

import forestry.api.apiculture.IBeeGenome;
import forestry.api.apiculture.IBeeHousing;
import forestry.api.genetics.IEffectData;
import magicbees.bees.AlleleEffect;

public class AlleleEffectCure extends AlleleEffect {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,23 @@
import java.util.Collections;
import java.util.List;

import magicbees.bees.AlleleEffect;
import magicbees.bees.BeeManager;
import magicbees.main.Config;
import magicbees.main.utils.BlockUtil;
import magicbees.main.utils.compat.thaumcraft.NodeHelper;

import net.minecraft.util.ChunkCoordinates;
import net.minecraft.world.World;
import net.minecraft.world.chunk.Chunk;

import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.nodes.INode;
import forestry.api.apiculture.IAlleleBeeAcceleratableEffect;
import forestry.api.apiculture.IBeeGenome;
import forestry.api.apiculture.IBeeHousing;
import forestry.api.apiculture.IBeeModifier;
import forestry.api.genetics.IEffectData;
import magicbees.bees.AlleleEffect;
import magicbees.bees.BeeManager;
import magicbees.main.Config;
import magicbees.main.utils.BlockUtil;
import magicbees.main.utils.compat.thaumcraft.NodeHelper;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.nodes.INode;

public class AlleleEffectEmpowering extends AlleleEffect implements IAlleleBeeAcceleratableEffect {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@

import java.util.List;

import magicbees.bees.AlleleEffect;
import magicbees.bees.BeeManager;
import magicbees.main.utils.BlockUtil;
import magicbees.main.utils.compat.thaumcraft.NodeHelper;

import net.minecraft.util.ChunkCoordinates;
import net.minecraft.world.World;
import net.minecraft.world.chunk.Chunk;

import thaumcraft.api.nodes.NodeType;
import forestry.api.apiculture.IBeeGenome;
import forestry.api.apiculture.IBeeHousing;
import forestry.api.apiculture.IBeeModifier;
import forestry.api.genetics.IEffectData;
import magicbees.bees.AlleleEffect;
import magicbees.bees.BeeManager;
import magicbees.main.utils.BlockUtil;
import magicbees.main.utils.compat.thaumcraft.NodeHelper;
import thaumcraft.api.nodes.NodeType;

public class AlleleEffectNodeConversion extends AlleleEffect {

Expand Down
Loading