mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-22 05:02:34 +00:00
More null annotations
This commit is contained in:
1 parent
da8a833485
commit
a5daa93bf1
163 files changed
+952
-849
No files matched your search
@@ -21,6 +21,8 @@ import forestry.core.genetics.Genome;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class FlowerGenome extends Genome implements IFlowerGenome {
|
||||
public FlowerGenome(final NBTTagCompound nbttagcompound) {
|
||||
super(nbttagcompound);
|
||||
@@ -30,6 +32,7 @@ public class FlowerGenome extends Genome implements IFlowerGenome {
|
||||
super(chromosomes);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static IAlleleFlowerSpecies getSpecies(ItemStack itemStack) {
|
||||
if (!FlowerManager.flowerRoot.isMember(itemStack)) {
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user