Use generics for Chromosome type, begin unifying code

This commit is contained in:
mezz committed 2016-02-27 00:14:22 -08:00
1 parent a8270ef365
commit 43e41034f6
217 files changed
+3148 -2417

No files matched your search

@@ -10,6 +10,7 @@
******************************************************************************/
package forestry.apiculture;
import javax.annotation.Nonnull;
import java.util.Random;
import net.minecraft.nbt.NBTTagCompound;
@@ -102,7 +103,7 @@ public class HasFlowersCache implements INbtWritable, INbtReadable {
}
@Override
public void writeToNBT(NBTTagCompound nbttagcompound) {
public void writeToNBT(@Nonnull NBTTagCompound nbttagcompound) {
NBTTagCompound hasFlowerCacheNBT = new NBTTagCompound();
if (flowerCoords != null) {
hasFlowerCacheNBT.setInteger("flowerX", flowerCoords.getX());