Removed deprecated functionality and moved to equivalent.
This commit is contained in:
parent
23e8abe00a
commit
c55db01daf
5 changed files with 6 additions and 69 deletions
|
@ -132,8 +132,8 @@ public class BuildCraftEnergy extends BuildCraftMod {
|
|||
oilBiomeIDs,
|
||||
BuildCraftCore.mainConfiguration
|
||||
.get(Configuration.CATEGORY_GENERAL, "oil.increasedBiomeIDs",
|
||||
new String[] {BiomeDictionary.Type.DESERT.toString(), BiomeGenBase.taiga.biomeName},
|
||||
"IDs or Biome Types (e.g. DESERT,OCEAN) of biomes that should have increased oil generation rates."));
|
||||
new String[] {BiomeDictionary.Type.SANDY.toString(), BiomeGenBase.taiga.biomeName},
|
||||
"IDs or Biome Types (e.g. SANDY,OCEAN) of biomes that should have increased oil generation rates."));
|
||||
|
||||
setBiomeList(
|
||||
excessiveOilBiomeIDs,
|
||||
|
@ -141,12 +141,12 @@ public class BuildCraftEnergy extends BuildCraftMod {
|
|||
.get(Configuration.CATEGORY_GENERAL,
|
||||
"oil.excessiveBiomeIDs",
|
||||
new String[] {},
|
||||
"IDs or Biome Types (e.g. DESERT,OCEAN) of biomes that should have GREATLY increased oil generation rates."));
|
||||
"IDs or Biome Types (e.g. SANDY,OCEAN) of biomes that should have GREATLY increased oil generation rates."));
|
||||
|
||||
setBiomeList(excludeOilBiomeIDs, BuildCraftCore.mainConfiguration
|
||||
.get(Configuration.CATEGORY_GENERAL, "oil.excludeBiomeIDs",
|
||||
new String[] {BiomeGenBase.sky.biomeName, BiomeGenBase.hell.biomeName},
|
||||
"IDs or Biome Types (e.g. DESERT,OCEAN) of biomes that are excluded from generating oil."));
|
||||
"IDs or Biome Types (e.g. SANDY,OCEAN) of biomes that are excluded from generating oil."));
|
||||
|
||||
double fuelOilMultiplier = BuildCraftCore.mainConfiguration.get(Configuration.CATEGORY_GENERAL, "fuel.oil.combustion", 1.0F, "adjust energy value of Oil in Combustion Engines").getDouble(1.0F);
|
||||
double fuelFuelMultiplier = BuildCraftCore.mainConfiguration.get(Configuration.CATEGORY_GENERAL, "fuel.fuel.combustion", 1.0F, "adjust energy value of Fuel in Combustion Engines").getDouble(1.0F);
|
||||
|
|
|
@ -82,7 +82,7 @@ public class Tank extends FluidTank {
|
|||
toolTip.clear();
|
||||
int amount = 0;
|
||||
if (getFluid() != null && getFluid().amount > 0) {
|
||||
ToolTipLine fluidName = new ToolTipLine(getFluid().getFluid().getLocalizedName());
|
||||
ToolTipLine fluidName = new ToolTipLine(getFluid().getFluid().getLocalizedName(getFluid()));
|
||||
fluidName.setSpacing(2);
|
||||
toolTip.add(fluidName);
|
||||
amount = getFluid().amount;
|
||||
|
|
|
@ -28,7 +28,7 @@ public final class BiomeGenOilDesert extends BiomeGenDesert {
|
|||
|
||||
public static BiomeGenOilDesert makeBiome(int id) {
|
||||
BiomeGenOilDesert biome = new BiomeGenOilDesert(id);
|
||||
BiomeDictionary.registerBiomeType(biome, BiomeDictionary.Type.DESERT);
|
||||
BiomeDictionary.registerBiomeType(biome, BiomeDictionary.Type.SANDY);
|
||||
OilPopulate.INSTANCE.excessiveBiomes.add(biome.biomeID);
|
||||
OilPopulate.INSTANCE.surfaceDepositBiomes.add(biome.biomeID);
|
||||
return biome;
|
||||
|
|
|
@ -1,34 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) 2011-2014, SpaceToad and the BuildCraft Team
|
||||
* http://www.mod-buildcraft.com
|
||||
*
|
||||
* BuildCraft is distributed under the terms of the Minecraft Mod Public
|
||||
* License 1.0, or MMPL. Please check the contents of the license located in
|
||||
* http://www.mod-buildcraft.com/MMPL-1.0.txt
|
||||
*/
|
||||
package buildcraft.transport;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
/**
|
||||
* @deprecated This has been replaced by the Pipe Event system.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface IItemTravelingHook {
|
||||
|
||||
void drop(PipeTransportItems transport, TravelingItem item);
|
||||
|
||||
void centerReached(PipeTransportItems transport, TravelingItem item);
|
||||
|
||||
/**
|
||||
* Overrides default handling of what occurs when an Item reaches the end of
|
||||
* the pipe.
|
||||
*
|
||||
* @param transport
|
||||
* @param item
|
||||
* @param tile
|
||||
* @return false if the transport code should handle the item normally, true
|
||||
* if its been handled
|
||||
*/
|
||||
boolean endReached(PipeTransportItems transport, TravelingItem item, TileEntity tile);
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) 2011-2014, SpaceToad and the BuildCraft Team
|
||||
* http://www.mod-buildcraft.com
|
||||
*
|
||||
* BuildCraft is distributed under the terms of the Minecraft Mod Public
|
||||
* License 1.0, or MMPL. Please check the contents of the license located in
|
||||
* http://www.mod-buildcraft.com/MMPL-1.0.txt
|
||||
*/
|
||||
package buildcraft.transport;
|
||||
|
||||
import java.util.LinkedList;
|
||||
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
import buildcraft.api.core.Position;
|
||||
|
||||
/**
|
||||
* @deprecated This has been replaced by the Pipe Event system.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface IPipeTransportItemsHook {
|
||||
|
||||
LinkedList<ForgeDirection> filterPossibleMovements(LinkedList<ForgeDirection> possibleOrientations, Position pos,
|
||||
TravelingItem item);
|
||||
|
||||
void entityEntered(TravelingItem item, ForgeDirection orientation);
|
||||
|
||||
void readjustSpeed(TravelingItem item);
|
||||
}
|
Loading…
Reference in a new issue