Skip to content

Commit

Permalink
Added TC6 support for the skulls to be infusion stabilizers
Browse files Browse the repository at this point in the history
  • Loading branch information
p455w0rd committed Apr 25, 2019
1 parent a39e1d6 commit a6d5624
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
9 changes: 8 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,20 @@ dependencies {
deobfCompile "slimeknights:TConstruct:1.12.2-2.10.1.518"
deobfCompile "slimeknights.mantle:Mantle:1.12-1.3.2.38"
deobfCompile "immersive-engineering:ImmersiveEngineering:0.12:89"
deobfCompile "p455w0rd:p455w0rdslib:1.12.2-2.0.38"
deobfCompile "p455w0rd:p455w0rdslib:1.12.2-2.1.44"
deobfCompile "info.loenwind.autoconfig:AutoConfig:1.12.2-1.0.1"
deobfCompile "info.loenwind.autosave:AutoSave:1.12.2-1.0.8"
deobfCompile "com.enderio.core:EnderCore:1.12.2-0.5.44"
deobfCompile ("com.enderio:EnderIO:1.12.2-5.0.39") {
transitive = false
}
deobfCompile "thaumcraft:Thaumcraft:1.12.2:6.1.BETA26"
deobfCompile "baubles:Baubles:1.12:1.5.2"
deobfCompile "placebo:Placebo:1.12.2:1.6.0"
deobfCompile "foundry:Foundry:1.10.2:2.2.3.0"
deobfCompile "primalcore:PrimalCore:1.12.2:0.6.104"
deobfCompile "journeymap:journeymap:1.12.2:5.5.5b4"

}

processResources {
Expand Down
25 changes: 24 additions & 1 deletion src/main/java/p455w0rd/endermanevo/items/ItemSkullBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.common.Optional;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import p455w0rd.endermanevo.api.IModelHolder;
Expand All @@ -25,12 +26,14 @@
import p455w0rd.endermanevo.init.ModBlocks;
import p455w0rd.endermanevo.init.ModMaterials;
import p455w0rdslib.util.MathUtils;
import thaumcraft.api.crafting.IInfusionStabiliserExt;

/**
* @author p455w0rd
*
*/
public class ItemSkullBase extends ItemArmor implements IModelHolder {
@Optional.Interface(modid = "thaumcraft", iface = "thaumcraft.api.crafting.IInfusionStabiliserExt", striprefs = true)
public class ItemSkullBase extends ItemArmor implements IModelHolder, IInfusionStabiliserExt {

private final BlockSkullBase skullBlock;
@SideOnly(Side.CLIENT)
Expand Down Expand Up @@ -177,4 +180,24 @@ public boolean isEndermanSkull() {

}

@Override
public boolean canStabaliseInfusion(final World world, final BlockPos pos) {
return true;
}

@Override
public float getStabilizationAmount(final World world, final BlockPos pos) {
return 0.1f;
}

@Override
public boolean hasSymmetryPenalty(final World world, final BlockPos pos1, final BlockPos pos2) {
return false;
}

@Override
public float getSymmetryPenalty(final World world, final BlockPos pos) {
return 0.0f;
}

}

0 comments on commit a6d5624

Please sign in to comment.