Clean up more null/nonnull, refactor gui ledgers

This commit is contained in:
mezz committed 2016-12-26 08:08:08 -08:00
1 parent b2d4e6eaba
commit 35f9b95f37
124 files changed
+827 -655

No files matched your search

@@ -187,9 +187,11 @@ public class BeeRoot extends SpeciesRoot implements IBeeRoot {
}
@Override
@Nullable
public IBee getMember(ItemStack stack) {
Preconditions.checkArgument(isMember(stack), "ItemStack must be a bee.");
Preconditions.checkArgument(stack.getTagCompound() != null, "ItemStack must have a tag compound.");
if (!isMember(stack) || stack.getTagCompound() == null) {
return null;
}
return new Bee(stack.getTagCompound());
}