Remove most deprecated things

This commit is contained in:
mezz committed 2016-02-25 04:45:19 -08:00
1 parent 65436a4e70
commit 78d836bc1f
31 files changed
+53 -475

No files matched your search

@@ -6,7 +6,6 @@
package forestry.api.apiculture;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
/**
@@ -23,17 +22,4 @@ public interface IArmorApiarist {
* @return Whether or not the armor should protect the player from that attack
*/
boolean protectEntity(EntityLivingBase entity, ItemStack armor, String cause, boolean doProtect);
/**
* Called when the apiarist's armor acts as protection against an attack.
*
* @param player Player being attacked
* @param armor Armor item
* @param cause Optional cause of attack, such as a bee effect identifier
* @param doProtect Whether or not to actually do the side effects of protection
* @return Whether or not the armor should protect the player from that attack
* @deprecated since Forestry 4.2. Use protectEntity
*/
@Deprecated
public boolean protectPlayer(EntityPlayer player, ItemStack armor, String cause, boolean doProtect);
}
@@ -6,7 +6,6 @@
package forestry.api.apiculture;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
/**
@@ -36,27 +35,4 @@ public interface IArmorApiaristHelper {
* @since Forestry 4.2
*/
int wearsItems(EntityLivingBase entity, String cause, boolean doProtect);
/**
* Called when the apiarist's armor acts as protection against an attack.
* @param stack ItemStack to check
* @param player Player being attacked
* @param cause Optional cause of attack, such as a bee effect identifier
* @param doProtect Whether or not to actually do the side effects of protection
* @return Whether or not the item is valid Apiarist Armor and should protect the player from that attack
* @deprecated since Forestry 4.2. use the EntityLivingBase version
*/
@Deprecated
boolean isArmorApiarist(ItemStack stack, EntityPlayer player, String cause, boolean doProtect);
/**
* Called when the apiarist's armor acts as protection against an attack.
* @param player Player being attacked
* @param cause Optional cause of attack, such as a bee effect identifier
* @param doProtect Whether or not to actually do the side effects of protection
* @return The number of valid Apiarist Armor pieces the player is wearing that are actually protecting
* @deprecated since Forestry 4.2. use the EntityLivingBase version
*/
@Deprecated
int wearsItems(EntityPlayer player, String cause, boolean doProtect);
}
@@ -87,67 +87,4 @@ public interface IAlleleFactory {
* @since Forestry 4.2
*/
IAlleleFlowers createFlowers(String modId, String category, String valueName, IFlowerProvider value, boolean isDominant, IChromosomeType... types);
/**
* @param modId mod prefix for uid and localization (i.e. "forestry")
* @param category allele category for uid and localization (i.e. "height")
* @param valueName allele value name for uid and localization (i.e. "smallest")
* @param value allele float value
* @param isDominant allele dominance
* @return a new IAlleleFloat, registered with the allele registry.
* @deprecated since Forestry 4.2. Use the IChromosomeType version.
*/
@Deprecated
IAlleleFloat createFloat(String modId, String category, String valueName, float value, boolean isDominant);
/**
* @param modId mod prefix for uid and localization (i.e. "forestry")
* @param category allele category for uid and localization (i.e. "territory")
* @param valueName allele value name for uid and localization (i.e. "large")
* @param xDimValue allele area X Size
* @param yDimValue allele area Y Size
* @param zDimValue allele area Z Size
* @param isDominant allele dominance
* @return a new IAlleleArea, registered with the allele registry.
* @deprecated since Forestry 4.2. Use the IChromosomeType version.
*/
@Deprecated
IAlleleArea createArea(String modId, String category, String valueName, int xDimValue, int yDimValue, int zDimValue, boolean isDominant);
/**
* @param modId mod prefix for uid and localization (i.e. "forestry")
* @param category allele category for uid and localization (i.e. "fertility")
* @param valueName allele value name for uid and localization (i.e. "low")
* @param value allele int value
* @param isDominant allele dominance
* @return a new IAlleleInteger, registered with the allele registry.
* @deprecated since Forestry 4.2. Use the IChromosomeType version.
*/
@Deprecated
IAlleleInteger createInteger(String modId, String category, String valueName, int value, boolean isDominant);
/**
* @param modId mod prefix for uid and localization (i.e. "forestry")
* @param category allele category for uid and localization (i.e. "fireproof")
* @param value allele boolean value
* @param isDominant allele dominance
* @return a new IAlleleBoolean, registered with the allele registry.
* Note that valueName will always be "true" or "false"
* @deprecated since Forestry 4.2. Use the IChromosomeType version.
*/
@Deprecated
IAlleleBoolean createBoolean(String modId, String category, boolean value, boolean isDominant);
/**
* @param modId mod prefix for uid (i.e. "forestry")
* @param category allele category for uid (i.e. "flowers")
* @param valueName allele value name for uid (i.e. "vanilla")
* @param value allele IFlowerProvider value
* @param isDominant allele dominance
* @return a new IAlleleFlowers, registered with the allele registry.
* IAlleleFlowers localization is handled by the IFlowerProvider.getDescription(), unlike the other alleles.
* @deprecated since Forestry 4.2. Use the IChromosomeType version.
*/
@Deprecated
IAlleleFlowers createFlowers(String modId, String category, String valueName, IFlowerProvider value, boolean isDominant);
}
@@ -79,15 +79,6 @@ public interface IAlleleRegistry {
*/
Map<String, IAllele> getRegisteredAlleles();
/**
* Registers an allele.
*
* @param allele IAllele to register.
* @deprecated since Forestry 4.2. Use the IChromosomeType-specific version.
*/
@Deprecated
void registerAllele(IAllele allele);
/**
* Registers an allele.
*
@@ -1,24 +0,0 @@
/*******************************************************************************
* Copyright 2011-2014 SirSengir
*
* This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
******************************************************************************/
package forestry.api.genetics;
import net.minecraft.block.Block;
/**
* @deprecated since Forestry 4.0. Use alternative methods in IFlowerRegistry.
*/
@Deprecated
public interface IFlower extends Comparable<IFlower> {
Block getBlock();
int getMeta();
double getWeight();
void setWeight(double weight);
boolean isPlantable();
}
@@ -5,10 +5,6 @@
******************************************************************************/
package forestry.api.genetics;
import java.util.Collection;
import java.util.Random;
import java.util.Set;
import net.minecraft.block.Block;
import net.minecraft.util.BlockPos;
import net.minecraft.world.World;
@@ -69,24 +65,4 @@ public interface IFlowerRegistry {
* Checks a single coordinate to see if it is an accepted flower.
*/
boolean isAcceptedFlower(String flowerType, World world, BlockPos pos);
/**
* For use by IFlowerGrowthRule implementations
* @deprecated since Forestry 4.0.8 This will be accessible to IFlowerGrowthRule via IFlowerGrowthHelper
*/
@Deprecated
IFlower getRandomPlantableFlower(String flowerType, Random rand);
/**
* Returns all known flower types.
* @deprecated since Forestry 4.0.8 This should only be used internally.
*/
@Deprecated
Collection<String> getFlowerTypes();
/**
* @deprecated since Forestry 4.0.8 This should only be used internally.
*/
@Deprecated
Set<IFlower> getAcceptableFlowers(String flowerType);
}
@@ -11,7 +11,6 @@ import java.util.List;
import java.util.Map;
import java.util.Random;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
@@ -71,12 +70,6 @@ public interface ISpeciesRoot {
/* BREEDING TRACKER */
IBreedingTracker getBreedingTracker(World world, GameProfile player);
/**
* @deprecated since Forestry 4.2.1. Breeding tracker should be automatically synced.
*/
@Deprecated
void syncBreedingTrackerToPlayer(EntityPlayer player);
/* GENOME MANIPULATION */
IIndividual templateAsIndividual(IAllele[] template);
@@ -6,7 +6,6 @@
package forestry.api.recipes;
import java.util.Collection;
import java.util.Map;
public interface ICraftingProvider<T extends IForestryRecipe> {
/**
@@ -28,13 +27,4 @@ public interface ICraftingProvider<T extends IForestryRecipe> {
* @since Forestry 4.1.0
*/
Collection<T> recipes();
/**
* Access to the full list of recipes contained in the crafting provider.
*
* @return List of the given format where the first array represents inputs and the second outputs. Objects can be either ItemStack or LiquidStack.
* @deprecated since Forestry 4.1.0. Use recipes()
*/
@Deprecated
Map<Object[], Object[]> getRecipes();
}
@@ -5,9 +5,7 @@
******************************************************************************/
package forestry.api.recipes;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.world.World;
/**
* Extension of IRecipe to give better access to the expected crafting inputs.
@@ -32,18 +30,4 @@ public interface IDescriptiveRecipe extends IRecipe {
*/
Object[] getIngredients();
/**
* @return true if the recipe manager should copy NBT from input items to the output item.
* If true, all input items must have the same NBT for it to succeed.
* @deprecated since Forestry 4.2 wood itemStacks use item damage (meta) instead of NBT
*/
@Deprecated
boolean preserveNBT();
/**
* Used to check if a recipe matches current crafting inventory
* @deprecated Since Forestry 4.1. This is handled by Forestry.
*/
@Deprecated
boolean matches(IInventory inventoryCrafting, World world);
}
@@ -13,10 +13,4 @@ public interface IFabricatorManager extends ICraftingProvider<IFabricatorRecipe>
void addRecipe(ItemStack plan, FluidStack molten, ItemStack result, Object[] pattern);
/**
* @deprecated since Forestry 4.1. Use IFabricatorSmeltingManager
*/
@Deprecated
void addSmelting(ItemStack resource, FluidStack molten, int meltingPoint);
}
@@ -5,20 +5,12 @@
******************************************************************************/
package forestry.api.recipes;
import java.util.Collection;
/**
* Contains all available recipe managers for Forestry machines and items.
*
* @author SirSengir
*/
public class RecipeManagers {
/**
* @deprecated since Forestry 4.1.0. Use the specific recipe managers below instead.
*/
@Deprecated
public static Collection<ICraftingProvider> craftingProviders;
/**
* Allows you to add recipes to the carpenter. See {@link ICarpenterManager} for details.