From cba94da5c5ff6504c122648c471369394fd337ad Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 17 Jun 2016 14:54:53 +0200 Subject: [PATCH] Removed rarmor integration as the mod is being rewritten soon. Sorry. :v --- build.gradle | 1 - .../mod/ActuallyAdditions.java | 2 +- .../mod/booklet/InitBooklet.java | 5 - .../mod/crafting/ItemCrafting.java | 10 -- .../mod/creative/CreativeTab.java | 1 - .../mod/items/InitItems.java | 6 - .../items/ItemRarmorModuleReconstructor.java | 140 ------------------ .../assets/actuallyadditions/lang/en_US.lang | 3 - 8 files changed, 1 insertion(+), 167 deletions(-) delete mode 100644 src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemRarmorModuleReconstructor.java diff --git a/build.gradle b/build.gradle index 800d2848a..c1ad80592 100644 --- a/build.gradle +++ b/build.gradle @@ -49,7 +49,6 @@ dependencies { compile "net.darkhax.tesla:Tesla:1.9.4-1.1.0.24" deobfCompile "mezz.jei:jei_1.9.4:3.4.0.202" - compile files("lib/Rarmor.jar") } processResources { diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/ActuallyAdditions.java b/src/main/java/de/ellpeck/actuallyadditions/mod/ActuallyAdditions.java index 461bca0fb..044c33ecb 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/ActuallyAdditions.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/ActuallyAdditions.java @@ -139,7 +139,7 @@ public class ActuallyAdditions{ if(mapping.name != null){ String name = mapping.name.toLowerCase(Locale.ROOT); if(name.startsWith(ModUtil.MOD_ID+":")){ - if(name.contains("paxel") || name.contains("itemspecial") || name.contains("blockbookstand") || name.contains("rarmor") || name.contains("bucket")){ + if(name.contains("paxel") || name.contains("itemspecial") || name.contains("blockbookstand") || name.contains("rarmor") || name.contains("bucket") || name.contains("modulereconstructor")){ mapping.ignore(); ModUtil.LOGGER.info("Missing Mapping "+mapping.name+" is getting ignored. This is intentional."); } diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/InitBooklet.java b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/InitBooklet.java index fa334c9ad..77f21a05f 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/InitBooklet.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/InitBooklet.java @@ -157,10 +157,5 @@ public class InitBooklet{ new BookletChapter("growthRing", ActuallyAdditionsAPI.entryItemsRF, new ItemStack(InitItems.itemGrowthRing), new PageCrafting(1, ItemCrafting.recipeGrowthRing)); new BookletChapter("waterRemovalRing", ActuallyAdditionsAPI.entryItemsRF, new ItemStack(InitItems.itemWaterRemovalRing), new PageCrafting(1, ItemCrafting.recipeWaterRing)); new BookletChapter("batteries", ActuallyAdditionsAPI.entryItemsRF, new ItemStack(InitItems.itemBatteryTriple), new PageTextOnly(1), new PageCrafting(2, ItemCrafting.recipeBattery).setNoText(), new PageCrafting(3, ItemCrafting.recipeBatteryDouble).setNoText(), new PageCrafting(4, ItemCrafting.recipeBatteryTriple).setNoText(), new PageCrafting(5, ItemCrafting.recipeBatteryQuadruple).setNoText(), new PageCrafting(6, ItemCrafting.recipeBatteryQuintuple).setNoText()); - - //Crossover - if(Loader.isModLoaded("rarmor")){ - new BookletChapter("rarmorModuleReconstructor", ActuallyAdditionsAPI.entryCrossover, new ItemStack(InitItems.itemRarmorModuleReconstructor), new PageTextOnly(1), new PageCrafting(2, ItemCrafting.recipeRarmorModuleReconstructor).setNoText()); - } } } diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/ItemCrafting.java b/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/ItemCrafting.java index 79153cf4f..e70bb06b5 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/ItemCrafting.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/ItemCrafting.java @@ -83,7 +83,6 @@ public class ItemCrafting{ public static IRecipe recipeLens; public static IRecipe recipeCrateKeeper; public static IRecipe recipeEnderStar; - public static IRecipe recipeRarmorModuleReconstructor; public static IRecipe recipeSpawnerChanger; public static IRecipe recipeFilter; @@ -472,15 +471,6 @@ public class ItemCrafting{ new ItemStack(Items.SIGN))); } - //Rarmor Reconstructor Module - if(Loader.isModLoaded("rarmor") && ConfigCrafting.RARMOR_RECONSTRUCTOR_MODULE.isEnabled()){ - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemRarmorModuleReconstructor), - " G ", "GSG", " G ", - 'G', ItemUtil.getItemFromName("rarmor:ribbonCable"), - 'S', new ItemStack(InitBlocks.blockAtomicReconstructor))); - recipeRarmorModuleReconstructor = RecipeUtil.lastIRecipe(); - } - //Tiny Coal GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemMisc, 8, TheMiscItems.TINY_COAL.ordinal()), new ItemStack(Items.COAL)); diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/creative/CreativeTab.java b/src/main/java/de/ellpeck/actuallyadditions/mod/creative/CreativeTab.java index 087c750a3..4547e4974 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/creative/CreativeTab.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/creative/CreativeTab.java @@ -189,7 +189,6 @@ public class CreativeTab extends CreativeTabs{ this.add(InitItems.itemSolidifiedExperience); this.add(InitItems.itemLeafBlower); this.add(InitItems.itemLeafBlowerAdvanced); - this.add(InitItems.itemRarmorModuleReconstructor); this.add(InitItems.woodenPaxel); this.add(InitItems.stonePaxel); diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/items/InitItems.java b/src/main/java/de/ellpeck/actuallyadditions/mod/items/InitItems.java index 5ecdca573..bdf9f281f 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/items/InitItems.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/items/InitItems.java @@ -210,8 +210,6 @@ public class InitItems{ public static Item itemWaterBowl; public static Item itemFilter; - public static Item itemRarmorModuleReconstructor; - public static void init(){ ModUtil.LOGGER.info("Initializing Items..."); @@ -372,9 +370,5 @@ public class InitItems{ itemPantsCrystalWhite = new ItemArmorAA("itemPantsCrystalWhite", InitArmorMaterials.armorMaterialCrystalWhite, 2, new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()), Util.CRYSTAL_WHITE_RARITY); itemBootsCrystalWhite = new ItemArmorAA("itemBootsCrystalWhite", InitArmorMaterials.armorMaterialCrystalWhite, 3, new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()), Util.CRYSTAL_WHITE_RARITY); itemPaxelCrystalWhite = new ItemAllToolAA(InitToolMaterials.toolMaterialCrystalWhite, new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()), "itemPaxelCrystalWhite", Util.CRYSTAL_WHITE_RARITY, 14606302); - - if(Loader.isModLoaded("rarmor")){ - itemRarmorModuleReconstructor = new ItemRarmorModuleReconstructor("itemRarmorModuleReconstructor"); - } } } diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemRarmorModuleReconstructor.java b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemRarmorModuleReconstructor.java deleted file mode 100644 index 93c367859..000000000 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemRarmorModuleReconstructor.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * This file ("ItemRarmorModuleReconstructor.java") is part of the Actually Additions mod for Minecraft. - * It is created and owned by Ellpeck and distributed - * under the Actually Additions License to be found at - * http://ellpeck.de/actaddlicense - * View the source code at https://github.com/Ellpeck/ActuallyAdditions - * - * © 2015-2016 Ellpeck - */ - -package de.ellpeck.actuallyadditions.mod.items; - -import cofh.api.energy.IEnergyContainerItem; -import de.canitzp.rarmor.api.InventoryBase; -import de.canitzp.rarmor.api.modules.IRarmorModule; -import de.ellpeck.actuallyadditions.api.ActuallyAdditionsAPI; -import de.ellpeck.actuallyadditions.api.internal.IAtomicReconstructor; -import de.ellpeck.actuallyadditions.api.lens.Lens; -import de.ellpeck.actuallyadditions.mod.items.base.ItemBase; -import de.ellpeck.actuallyadditions.mod.tile.TileEntityAtomicReconstructor; -import de.ellpeck.actuallyadditions.mod.util.WorldUtil; -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.EnumRarity; -import net.minecraft.item.Item; -import net.minecraft.item.ItemStack; -import net.minecraft.util.EnumFacing; -import net.minecraft.util.math.BlockPos; -import net.minecraft.util.math.MathHelper; -import net.minecraft.util.math.RayTraceResult; -import net.minecraft.world.World; -import net.minecraftforge.fml.common.Optional; - -import java.util.ArrayList; -import java.util.List; - -@Optional.Interface(modid = "rarmor", iface = "de.canitzp.rarmor.api.modules.IRarmorModule") -public class ItemRarmorModuleReconstructor extends ItemBase implements IRarmorModule{ - - public ItemRarmorModuleReconstructor(String name){ - super(name); - - this.setMaxStackSize(1); - } - - @Override - public String getUniqueName(){ - return this.getRegistryName().toString(); - } - - - @Override - public EnumRarity getRarity(ItemStack stack){ - return EnumRarity.RARE; - } - - @Override - public ModuleType getModuleType(){ - return ModuleType.ACTIVE; - } - - @Override - public List getGuiHelp(){ - List text = new ArrayList(); - text.add("Read more about this in the"); - text.add("Actually Additions Manual!"); - return text; - } - - @Override - public void onModuleTickInArmor(World world, EntityPlayer player, ItemStack armorChestplate, ItemStack module, InventoryBase inventory){ - if(!world.isRemote && player.isSneaking() && player.onGround){ - if(world.getTotalWorldTime()%50 == 0){ - IAtomicReconstructor fake = this.getFakeReconstructor(world, player, armorChestplate); - RayTraceResult result = WorldUtil.getNearestPositionWithAir(world, player, fake.getLens().getDistance()); - if(result != null){ - BlockPos pos = result.getBlockPos(); - if(pos != null){ - int energyUse = TileEntityAtomicReconstructor.ENERGY_USE*2; - if(fake.getEnergy() >= energyUse){ - fake.getLens().invoke(world.getBlockState(pos), pos, fake); - - EnumFacing hit = result.sideHit; - TileEntityAtomicReconstructor.shootLaser(world, player.posX-player.width/2, player.posY+player.getYOffset()+player.getEyeHeight()/2, player.posZ-player.width/2, pos.getX()+hit.getFrontOffsetX(), pos.getY()+hit.getFrontOffsetY(), pos.getZ()+hit.getFrontOffsetZ(), fake.getLens()); - - fake.extractEnergy(energyUse); - } - } - } - } - } - } - - private IAtomicReconstructor getFakeReconstructor(final World world, final EntityPlayer player, final ItemStack armorChestplate){ - return new IAtomicReconstructor(){ - @Override - public int getX(){ - return MathHelper.floor_double(player.posX); - } - - @Override - public int getY(){ - return MathHelper.floor_double(player.posY); - } - - @Override - public int getZ(){ - return MathHelper.floor_double(player.posZ); - } - - @Override - public World getWorldObject(){ - return world; - } - - @Override - public void extractEnergy(int amount){ - Item item = armorChestplate.getItem(); - if(item instanceof IEnergyContainerItem){ - ((IEnergyContainerItem)item).extractEnergy(armorChestplate, amount, false); - } - } - - @Override - public int getEnergy(){ - Item item = armorChestplate.getItem(); - if(item instanceof IEnergyContainerItem){ - return ((IEnergyContainerItem)item).getEnergyStored(armorChestplate); - } - else{ - return 0; - } - } - - @Override - public Lens getLens(){ - return ActuallyAdditionsAPI.lensDefaultConversion; - } - }; - } -} diff --git a/src/main/resources/assets/actuallyadditions/lang/en_US.lang b/src/main/resources/assets/actuallyadditions/lang/en_US.lang index 44edf344f..21c4b1805 100644 --- a/src/main/resources/assets/actuallyadditions/lang/en_US.lang +++ b/src/main/resources/assets/actuallyadditions/lang/en_US.lang @@ -866,9 +866,6 @@ booklet.actuallyadditions.chapter.enderStar.text.1=The Ender Star can b booklet.actuallyadditions.chapter.phantomRedstoneface.name=Phantom Redstoneface booklet.actuallyadditions.chapter.phantomRedstoneface.text.1=If you don't know what Phantomfaces are, check the Phantomfaces Entry first. The Phantom Redstoneface can be used to transmit redstone signals. This one, however, works differently to the other Phantomfaces as it only works in one direction. What this means is that the connected block has to provide redstone power for redstone next to the Redstoneface to become powered. It does not work the other way around. -booklet.actuallyadditions.chapter.rarmorModuleReconstructor.name=Reconstruction Module -booklet.actuallyadditions.chapter.rarmorModuleReconstructor.text.1=The Reconstruction Module can be used in the Rarmor. The Rarmor is a type of configurable armor that is added by the Rarmor Mod. If you want to use this module, place it inside the Rarmor GUI that is accessed by wearing the armor and opening your inventory. The module, when the player is sneaking, will shoot out a reconstruction beam that would be created by the Atomic Reconstructor without a lens. This will cause blocks that are hit to be reconstructed. - booklet.actuallyadditions.chapter.spawnerShard.name=Spawner Shards booklet.actuallyadditions.chapter.spawnerShard.text.1=The Spawner Shards are a crafting ingredient found by breaking spawners. Once a spawner in the world is broken, it will always drop one Shard.