Clean up more null issues

This commit is contained in:
mezz committed 2016-12-28 23:55:10 -08:00
1 parent 1fa461430e
commit 4abbc92472
142 files changed
+707 -617

No files matched your search

@@ -5,8 +5,6 @@
******************************************************************************/
package forestry.api.apiculture;
import javax.annotation.Nullable;
import net.minecraft.item.ItemStack;
public interface IHiveFrame {
@@ -18,9 +16,8 @@ public interface IHiveFrame {
* @param frame ItemStack containing the actual frame.
* @param queen Current queen in the caller.
* @param wear Integer denoting the amount worn out. The wear modifier of the current beekeeping mode has already been taken into account.
* @return ItemStack containing the actual frame with adjusted damage, or null if it has been broken.
* @return ItemStack containing the actual frame with adjusted damage, or Empty ItemStack if it has been broken.
*/
@Nullable
ItemStack frameUsed(IBeeHousing housing, ItemStack frame, IBee queen, int wear);
IBeeModifier getBeeModifier();
@@ -123,6 +123,7 @@ public interface IAlleleRegistry {
* @param uid String based unique identifier of the allele to retrieve.
* @return IAllele if found or a replacement is found in the Deprecated Allele map, null otherwise.
*/
@Nullable
IAllele getAllele(String uid);
/**
@@ -5,8 +5,6 @@
******************************************************************************/
package forestry.api.genetics;
import javax.annotation.Nullable;
import forestry.api.apiculture.IBeekeepingMode;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
@@ -21,7 +19,6 @@ public interface IBreedingTracker {
/**
* @return Name of the current {@link IBeekeepingMode}.
*/
@Nullable
String getModeName();
/**
@@ -117,6 +117,14 @@ public interface ISpeciesRoot {
@Nullable
IAllele[] getTemplate(String identifier);
/**
* Retrieves a registered template using the passed species.
*
* @param species species
* @return Array of {@link IAllele} representing a genome.
*/
IAllele[] getTemplate(IAlleleSpecies species);
/**
* @return Default individual template for use when stuff breaks.
*/