Skip to content

Commit

Permalink
- Update Soot to work with Embers Rekindled
Browse files Browse the repository at this point in the history
- Remove many things that were originally in Soot but now moved to Embers
  • Loading branch information
DaedalusGame committed Jun 15, 2018
1 parent 091758b commit 2d5dcf1
Show file tree
Hide file tree
Showing 174 changed files with 238 additions and 6,716 deletions.
Binary file removed libs/embers-0.230.jar
Binary file not shown.
17 changes: 0 additions & 17 deletions src/main/java/soot/ClientProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.SoundCategory;
import net.minecraft.util.SoundEvent;
import net.minecraftforge.client.event.ModelRegistryEvent;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.common.MinecraftForge;
Expand All @@ -27,7 +24,6 @@
import soot.entity.EntityMuse;
import soot.entity.EntityMuseRenderer;
import soot.tile.*;
import soot.tile.overrides.*;
import soot.util.*;
import teamroots.embers.tileentity.TileEntityBinRenderer;

Expand Down Expand Up @@ -56,16 +52,6 @@ public EntityPlayer getMainPlayer() {
return Minecraft.getMinecraft().player;
}

@Override
public void playMachineSound(TileEntity tile, int id, SoundEvent soundIn, SoundCategory categoryIn, float volumeIn, float pitchIn, boolean repeatIn, float xIn, float yIn, float zIn) {
Minecraft.getMinecraft().getSoundHandler().playSound(new MachineSound(tile, id, soundIn, categoryIn, volumeIn, pitchIn, repeatIn, xIn, yIn, zIn));
}

@Override
public void playParallelMachineSound(TileEntity tile, int id, SoundEvent soundIn, SoundCategory categoryIn, float volumeIn, float pitchIn, boolean repeatIn, float xIn, float yIn, float zIn) {
Minecraft.getMinecraft().getSoundHandler().playSound(new ParallelMachineSound(tile, id, soundIn, categoryIn, volumeIn, pitchIn, repeatIn, xIn, yIn, zIn));
}

@Override
public void addResourceOverride(String space, String dir, String file, String ext) {
resourceProxy.addResource(space, dir, file, ext);
Expand Down Expand Up @@ -127,11 +113,8 @@ public static void registerTESRs()
{
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityEmberBurst.class, new TileEntityEmberBurstRenderer());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAlchemyGlobe.class, new TileEntityAlchemyGlobeRenderer());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityEmberBoreImproved.class, new TileEntityEmberBoreImprovedRenderer());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityStamperImproved.class, new TileEntityStamperImprovedRenderer());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRedstoneBin.class, new TileEntityBinRenderer());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityStillTip.class, new TileEntityStillTipRenderer());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAlchemyTabletImproved.class, new TileEntityAlchemyTabletImprovedRenderer());
}

@Override
Expand Down
50 changes: 4 additions & 46 deletions src/main/java/soot/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,6 @@ public class Config {
public static boolean TRADING_ANTIMONY;
public static boolean GOLEMS_TYRFING_WEAK;
public static boolean GOLEMS_POISON_IMMUNE;
public static boolean HEARTHCOIL_SMELTING;
public static boolean ASH_FIRST;
public static boolean MIGRATE_STAMPER_RECIPES;
public static boolean MIGRATE_ALCHEMY_RECIPES;
public static int MELTER_ORE_AMOUNT;
public static boolean METALLURGICAL_DUST_COLLECT;
public static boolean METALLURGICAL_DUST_IS_WHITELIST;
public static HashSet<String> METALLURGICAL_DUST_BLACKLIST;

public static boolean OVERRIDE_BORE;
public static boolean OVERRIDE_DAWNSTONE_ANVIL;
public static boolean OVERRIDE_HEARTH_COIL;
public static boolean OVERRIDE_MIXER;
public static boolean OVERRIDE_STAMPER;
public static boolean OVERRIDE_BEAM_CANNON;
public static boolean OVERRIDE_ALCHEMY_TABLET;
public static boolean FIX_MATH_ERROR_A;
public static boolean FIX_MATH_ERROR_B;
public static boolean OVERRIDE_MECH_ACCESSOR;
public static boolean OVERRIDE_ALCHEMY_PEDESTAL;
public static boolean OVERRIDE_CRYSTAL_CELL;
public static boolean OVERRIDE_CODEX;
public static boolean EMBERS_CRAFTTWEAKER_SUPPORT;

public static boolean GENERATE_SULFUR_ORE;

Expand All @@ -48,32 +25,13 @@ public static void preInit(FMLPreInitializationEvent event)

DEBUG_MODE = loadPropBool("debug","Debug","Enables full stack traces when something goes wrong",false);

OVERRIDE_BORE = loadPropBool("bore","Overrides","Overrides the Ember Bore",true);
OVERRIDE_STAMPER = loadPropBool("stamper","Overrides","Overrides the Stamper",true);
OVERRIDE_MECH_ACCESSOR = loadPropBool("mechAccessor","Overrides","Overrides the Mech Accessor",true);
OVERRIDE_DAWNSTONE_ANVIL = loadPropBool("dawnstoneAnvil","Overrides","Overrides the Dawnstone Anvil",true);
OVERRIDE_HEARTH_COIL = loadPropBool("hearthCoil","Overrides","Overrides the Hearth Coil",true);
OVERRIDE_MIXER = loadPropBool("mixer","Overrides","Overrides the Mixer Centrifuge",true);
OVERRIDE_BEAM_CANNON = loadPropBool("beamCannon","Overrides","Overrides the Beam Cannon",true);
OVERRIDE_ALCHEMY_TABLET = loadPropBool("alchemyTablet","Overrides","Overrides the Exchange Tablet",true);
OVERRIDE_ALCHEMY_PEDESTAL = loadPropBool("alchemyPedestal","Overrides","Overrides the Alchemy Pedestal",true);
OVERRIDE_CRYSTAL_CELL = loadPropBool("crystalCell","Overrides","Overrides the Crystal Cell",true);
OVERRIDE_CODEX = loadPropBool("codex","Overrides","Overrides the Codex gui",true);

EMBERS_CRAFTTWEAKER_SUPPORT = loadPropBool("embersCraftTweaker","Features","Registers the Crafttweaker Support for Embers.",true);
TRADING_ANTIMONY = loadPropBool("tradingAntimony","Features","Allows trading signet of antimony with villagers instead of emeralds.",true);
GOLEMS_TYRFING_WEAK = loadPropBool("golemsTyrfingWeak","Features","Golems take extra damage from the Tyrfing.",true);
GOLEMS_POISON_IMMUNE = loadPropBool("golemsPoisonImmune","Features","Golems are immune to poison.",true);
HEARTHCOIL_SMELTING = loadPropBool("hearthCoilSmelting","Features","(requires override) The Hearthcoil can smelt items normally smeltable in a furnace.",true);
ASH_FIRST = loadPropBool("ashFirst","Features","Ash is removed before the aspect from pedestals.",true);
MIGRATE_STAMPER_RECIPES = loadPropBool("migrateStamperRecipes","Features","Disabling this will clear all stamper recipes if the stamper override is enabled.",true);
MIGRATE_ALCHEMY_RECIPES = loadPropBool("migrateAlchemyRecipes","Features","Disabling this will clear all alchemy recipes if the alchemy tablet override is enabled.",true);
FIX_MATH_ERROR_A = loadPropBool("fixMathErrorA","Features","If two aspect ranges are the same size on an alchemy recipe, they will no longer have the same exact value.",true);
FIX_MATH_ERROR_B = loadPropBool("fixMathErrorB","Features","If two aspect ranges are the same size on two alchemy recipes, they will no longer have the same exact value.",true);
MELTER_ORE_AMOUNT = loadPropInt("melterOreAmount","Features","How many mb of fluid are obtained per ore output in the melter. This is multiplied by the amount of output a melter would produce, so by default 144mb * 2 ingots.",144);
METALLURGICAL_DUST_COLLECT = loadPropBool("metallurgicalDustCollect","Features","Disabling this will disable filling in the default Metallurgical Dust compatibility. So you can do it all via CT.",true);
METALLURGICAL_DUST_IS_WHITELIST = loadPropBool("metallurgicalDustIsWhitelist","Features","Whether the blacklist is actually a whitelist.",false);
METALLURGICAL_DUST_BLACKLIST = loadPropStringSet("metallurgicalDustBlacklist","Features","Ores that should not be affected by metallurgical dust.",new String[]{"rftools:dimensional_shard_ore"});
//MELTER_ORE_AMOUNT = loadPropInt("melterOreAmount","Features","How many mb of fluid are obtained per ore output in the melter. This is multiplied by the amount of output a melter would produce, so by default 144mb * 2 ingots.",144);
//METALLURGICAL_DUST_COLLECT = loadPropBool("metallurgicalDustCollect","Features","Disabling this will disable filling in the default Metallurgical Dust compatibility. So you can do it all via CT.",true);
//METALLURGICAL_DUST_IS_WHITELIST = loadPropBool("metallurgicalDustIsWhitelist","Features","Whether the blacklist is actually a whitelist.",false);
//METALLURGICAL_DUST_BLACKLIST = loadPropStringSet("metallurgicalDustBlacklist","Features","Ores that should not be affected by metallurgical dust.",new String[]{"rftools:dimensional_shard_ore"});

GENERATE_SULFUR_ORE = loadPropBool("sulfurOre","Generation","Whether sulfur ore generates in new chunks.",true);

Expand Down
4 changes: 0 additions & 4 deletions src/main/java/soot/IProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ public interface IProxy {

EntityPlayer getMainPlayer();

void playMachineSound(TileEntity tile, int id, SoundEvent soundIn, SoundCategory categoryIn, float volumeIn, float pitchIn, boolean repeatIn, float xIn, float yIn, float zIn);

void playParallelMachineSound(TileEntity tile, int id, SoundEvent soundIn, SoundCategory categoryIn, float volumeIn, float pitchIn, boolean repeatIn, float xIn, float yIn, float zIn);

void addResourceOverride(String space, String dir, String file, String ext);

void addResourceOverride(String modid, String space, String dir, String file, String ext);
Expand Down
Loading

0 comments on commit 2d5dcf1

Please sign in to comment.